| 1 | |||
| 2 | package Paws::EC2::CreateCustomerGateway; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has BgpAsn => (is => 'ro', isa => 'Int', required => 1); | |
| 5 | 1 | has CertificateArn => (is => 'ro', isa => 'Str'); | |
| 6 | 1 | has DeviceName => (is => 'ro', isa => 'Str'); | |
| 7 | 1 | has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' ); | |
| 8 | 1 | has PublicIp => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'IpAddress' ); | |
| 9 | 1 | has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' ); | |
| 10 | 1 | has Type => (is => 'ro', isa => 'Str', required => 1); | |
| 11 | |||
| 12 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateCustomerGateway'); | |
| 15 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateCustomerGatewayResult'); | |
| 16 | 1 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 17 | 1 | 1; | |
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::EC2::CreateCustomerGateway - Arguments for method CreateCustomerGateway on L<Paws::EC2> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreateCustomerGateway on the | ||
| 28 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 29 | as arguments to method CreateCustomerGateway. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateCustomerGateway. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $ec2 = Paws->service('EC2'); | ||
| 36 | # To create a customer gateway | ||
| 37 | # This example creates a customer gateway with the specified IP address for its | ||
| 38 | # outside interface. | ||
| 39 | my $CreateCustomerGatewayResult = $ec2->CreateCustomerGateway( | ||
| 40 | 'BgpAsn' => 65534, | ||
| 41 | 'PublicIp' => '12.1.2.3', | ||
| 42 | 'Type' => 'ipsec.1' | ||
| 43 | ); | ||
| 44 | |||
| 45 | # Results: | ||
| 46 | my $CustomerGateway = $CreateCustomerGatewayResult->CustomerGateway; | ||
| 47 | |||
| 48 | # Returns a L<Paws::EC2::CreateCustomerGatewayResult> object. | ||
| 49 | |||
| 50 | 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. | ||
| 51 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateCustomerGateway> | ||
| 52 | |||
| 53 | =head1 ATTRIBUTES | ||
| 54 | |||
| 55 | |||
| 56 | =head2 B<REQUIRED> BgpAsn => Int | ||
| 57 | |||
| 58 | For devices that support BGP, the customer gateway's BGP ASN. | ||
| 59 | |||
| 60 | Default: 65000 | ||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | =head2 CertificateArn => Str | ||
| 65 | |||
| 66 | The Amazon Resource Name (ARN) for the customer gateway certificate. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 DeviceName => Str | ||
| 71 | |||
| 72 | A name for the customer gateway device. | ||
| 73 | |||
| 74 | Length Constraints: Up to 255 characters. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head2 DryRun => Bool | ||
| 79 | |||
| 80 | Checks whether you have the required permissions for the action, | ||
| 81 | without actually making the request, and provides an error response. If | ||
| 82 | you have the required permissions, the error response is | ||
| 83 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | =head2 PublicIp => Str | ||
| 88 | |||
| 89 | The Internet-routable IP address for the customer gateway's outside | ||
| 90 | interface. The address must be static. | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>] | ||
| 95 | |||
| 96 | The tags to apply to the customer gateway. | ||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head2 B<REQUIRED> Type => Str | ||
| 101 | |||
| 102 | The type of VPN connection that this customer gateway supports | ||
| 103 | (C<ipsec.1>). | ||
| 104 | |||
| 105 | Valid values are: C<"ipsec.1"> | ||
| 106 | |||
| 107 | |||
| 108 | =head1 SEE ALSO | ||
| 109 | |||
| 110 | This class forms part of L<Paws>, documenting arguments for method CreateCustomerGateway in L<Paws::EC2> | ||
| 111 | |||
| 112 | =head1 BUGS and CONTRIBUTIONS | ||
| 113 | |||
| 114 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 115 | |||
| 116 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 117 | |||
| 118 | =cut | ||
| 119 | |||