create_vpn_gateway
async
¶
create_vpn_gateway(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
availability_zone: Optional[String] = None,
type: Optional[GatewayType] = None,
tag_specifications: Optional[TagSpecificationList] = None,
amazon_side_asn: Optional[Long] = None,
dry_run: Optional[Boolean] = None,
) -> CreateVpnGatewayResult
Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
Parameters:
-
availability_zone(Optional[String], default:None) –The Availability Zone for the virtual private gateway.
-
type(Optional[GatewayType], default:None) –The type of VPN connection this virtual private gateway supports.
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to apply to the virtual private gateway.
-
amazon_side_asn(Optional[Long], default:None) –A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
Default: 64512
-
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
15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 | |