-
It looks to me that |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You should be able to get this with VpcSecurityGroupMembership (and DbSubnetGroup will have even more info) It would look like this: let client = aws_sdk_rds::Client::new(&config);
let result = client.describe_db_instances().send.await?;
//optionally pass db_instance_identifier or filters (https://docs.rs/aws-sdk-rds/latest/aws_sdk_rds/operation/describe_db_instances/struct.DescribeDbInstancesInput.html)
for db_instance in result.db_instances().unwrap_or_default() {
println!(
"DB security groups: {:?}",
db_instance
.vpc_security_groups().unwrap_or_default().vpc_security_group_id().unwrap()
.expect("instance should have a security group")
);
println!(
"DB subnet group: {:?}",
db_instance
.db_subnet_group().unwrap_or_default().db_subnet_group_name().unwrap()
.expect("instance should a subnet group")
);
} |
Beta Was this translation helpful? Give feedback.
-
I just found that Edit: I may need to use https://docs.rs/aws-sdk-rds/latest/aws_sdk_rds/operation/describe_db_subnet_groups/struct.DescribeDbSubnetGroupsOutput.html#method.db_subnet_groups |
Beta Was this translation helpful? Give feedback.
I just found that
pub fn db_subnet_group(&self) -> ::std::option::Option<&str>
does not return astruct DbSubnetGroup
andVpcSecurityGroupMembership
only hasvpc_security_group_id
and hasstatus
.Edit: I may need to use https://docs.rs/aws-sdk-rds/latest/aws_sdk_rds/operation/describe_db_subnet_groups/struct.DescribeDbSubnetGroupsOutput.html#method.db_subnet_groups