describe_secondary_subnets
¶
describe_secondary_subnets(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
>>> client.describe_secondary_subnets(secondary_subnet_ids=['ss-0123456789abcdef0', 'ss-0987654321fedcba0'])
Source code in docs_src/capo_ec2/_services/ec2.py
32633 32634 32635 32636 32637 32638 32639 32640 32641 32642 32643 32644 32645 32646 32647 32648 32649 32650 32651 32652 32653 32654 32655 32656 32657 32658 32659 32660 32661 32662 32663 32664 32665 32666 32667 32668 32669 32670 32671 32672 32673 32674 32675 32676 32677 32678 32679 32680 32681 32682 32683 32684 32685 32686 32687 32688 32689 32690 32691 32692 32693 32694 32695 32696 32697 32698 32699 32700 32701 | |