| 1 | |||
| 2 | package Paws::EC2::CreateVpnGateway; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has AmazonSideAsn => (is => 'ro', isa => 'Int'); | |
| 5 | 1 | has AvailabilityZone => (is => 'ro', isa => 'Str'); | |
| 6 | 1 | has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' ); | |
| 7 | 1 | has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' ); | |
| 8 | 1 | has Type => (is => 'ro', isa => 'Str', required => 1); | |
| 9 | |||
| 10 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateVpnGateway'); | |
| 13 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateVpnGatewayResult'); | |
| 14 | 1 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 15 | 1 | 1; | |
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::EC2::CreateVpnGateway - Arguments for method CreateVpnGateway on L<Paws::EC2> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method CreateVpnGateway on the | ||
| 26 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 27 | as arguments to method CreateVpnGateway. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateVpnGateway. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $ec2 = Paws->service('EC2'); | ||
| 34 | my $CreateVpnGatewayResult = $ec2->CreateVpnGateway( | ||
| 35 | Type => 'ipsec.1', | ||
| 36 | AmazonSideAsn => 1, # OPTIONAL | ||
| 37 | AvailabilityZone => 'MyString', # OPTIONAL | ||
| 38 | DryRun => 1, # OPTIONAL | ||
| 39 | TagSpecifications => [ | ||
| 40 | { | ||
| 41 | ResourceType => 'client-vpn-endpoint' | ||
| 42 | , # values: client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log; OPTIONAL | ||
| 43 | Tags => [ | ||
| 44 | { | ||
| 45 | Key => 'MyString', | ||
| 46 | Value => 'MyString', | ||
| 47 | }, | ||
| 48 | ... | ||
| 49 | ], # OPTIONAL | ||
| 50 | }, | ||
| 51 | ... | ||
| 52 | ], # OPTIONAL | ||
| 53 | ); | ||
| 54 | |||
| 55 | # Results: | ||
| 56 | my $VpnGateway = $CreateVpnGatewayResult->VpnGateway; | ||
| 57 | |||
| 58 | # Returns a L<Paws::EC2::CreateVpnGatewayResult> object. | ||
| 59 | |||
| 60 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 61 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateVpnGateway> | ||
| 62 | |||
| 63 | =head1 ATTRIBUTES | ||
| 64 | |||
| 65 | |||
| 66 | =head2 AmazonSideAsn => Int | ||
| 67 | |||
| 68 | A private Autonomous System Number (ASN) for the Amazon side of a BGP | ||
| 69 | session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 | ||
| 70 | range. If you're using a 32-bit ASN, it must be in the 4200000000 to | ||
| 71 | 4294967294 range. | ||
| 72 | |||
| 73 | Default: 64512 | ||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | =head2 AvailabilityZone => Str | ||
| 78 | |||
| 79 | The Availability Zone for the virtual private gateway. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head2 DryRun => Bool | ||
| 84 | |||
| 85 | Checks whether you have the required permissions for the action, | ||
| 86 | without actually making the request, and provides an error response. If | ||
| 87 | you have the required permissions, the error response is | ||
| 88 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>] | ||
| 93 | |||
| 94 | The tags to apply to the virtual private gateway. | ||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | =head2 B<REQUIRED> Type => Str | ||
| 99 | |||
| 100 | The type of VPN connection this virtual private gateway supports. | ||
| 101 | |||
| 102 | Valid values are: C<"ipsec.1"> | ||
| 103 | |||
| 104 | |||
| 105 | =head1 SEE ALSO | ||
| 106 | |||
| 107 | This class forms part of L<Paws>, documenting arguments for method CreateVpnGateway in L<Paws::EC2> | ||
| 108 | |||
| 109 | =head1 BUGS and CONTRIBUTIONS | ||
| 110 | |||
| 111 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 112 | |||
| 113 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 114 | |||
| 115 | =cut | ||
| 116 | |||