describe_vpn_gateways
async
¶
describe_vpn_gateways(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
filters: Optional[FilterList] = None,
vpn_gateway_ids: Optional[VpnGatewayIdStringList] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeVpnGatewaysResult
Describes one or more of your virtual private gateways.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
Parameters:
-
filters(Optional[FilterList], default:None) –One or more filters.
-
amazon-side-asn- The Autonomous System Number (ASN) for the Amazon side of the gateway. -
attachment.state- The current state of the attachment between the gateway and the VPC (attaching|attached|detaching|detached). -
attachment.vpc-id- The ID of an attached VPC. -
availability-zone- The Availability Zone for the virtual private gateway (if applicable). -
state- The state of the virtual private gateway (pending|available|deleting|deleted). -
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. -
type- The type of virtual private gateway. Currently the only supported type isipsec.1. -
vpn-gateway-id- The ID of the virtual private gateway.
-
-
vpn_gateway_ids(Optional[VpnGatewayIdStringList], default:None) –One or more virtual private gateway IDs.
Default: Describes all your virtual private gateways.
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
38627 38628 38629 38630 38631 38632 38633 38634 38635 38636 38637 38638 38639 38640 38641 38642 38643 38644 38645 38646 38647 38648 38649 38650 38651 38652 38653 38654 38655 38656 38657 38658 38659 38660 38661 38662 38663 38664 38665 38666 38667 38668 38669 38670 38671 38672 38673 38674 38675 38676 38677 38678 38679 38680 | |