describe_secondary_subnets
async
¶
describe_secondary_subnets(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
filters: Optional[FilterList] = None,
max_results: Optional[DescribeSecondarySubnetsMaxResults] = None,
next_token: Optional[String] = None,
secondary_subnet_ids: Optional[SecondarySubnetIdList] = None,
) -> DescribeSecondarySubnetsResult
Describes one or more of your secondary subnets.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
filters(Optional[FilterList], default:None) –The filters.
-
ipv4-cidr-block-association.association-id- The association ID for an IPv4 CIDR block associated with the secondary subnet. -
ipv4-cidr-block-association.cidr-block- An IPv4 CIDR block associated with the secondary subnet. -
ipv4-cidr-block-association.state- The state of an IPv4 CIDR block associated with the secondary subnet. -
owner-id- The ID of the Amazon Web Services account that owns the secondary subnet. -
secondary-network-id- The ID of the secondary network. -
secondary-network-type- The type of the secondary network (rdma). -
secondary-subnet-id- The ID of the secondary subnet. -
secondary-subnet-arn- The ARN of the secondary subnet. -
state- The state of the secondary subnet (create-in-progress|create-complete|create-failed|delete-in-progress|delete-complete|delete-failed). -
tag:- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Ownerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
-
-
max_results(Optional[DescribeSecondarySubnetsMaxResults], default:None) –The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue. -
next_token(Optional[String], default:None) –The token for the next page of results.
-
secondary_subnet_ids(Optional[SecondarySubnetIdList], default:None) –The IDs of the secondary subnets.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe specified secondary subnets This example describes the specified secondary subnets.
>>> await client.describe_secondary_subnets(secondary_subnet_ids=['ss-0123456789abcdef0', 'ss-0987654321fedcba0'])
Source code in docs_src/capo_ec2/_services/async_ec2.py
33068 33069 33070 33071 33072 33073 33074 33075 33076 33077 33078 33079 33080 33081 33082 33083 33084 33085 33086 33087 33088 33089 33090 33091 33092 33093 33094 33095 33096 33097 33098 33099 33100 33101 33102 33103 33104 33105 33106 33107 33108 33109 33110 33111 33112 33113 33114 33115 33116 33117 33118 33119 33120 33121 33122 33123 33124 33125 33126 33127 33128 33129 33130 33131 33132 33133 33134 33135 33136 33137 | |