blib/lib/Paws/EC2/CreateNatGateway.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::CreateNatGateway;
3 use Moose;
4 has AllocationId => (is => 'ro', isa => 'Str');
5 has ClientToken => (is => 'ro', isa => 'Str');
6 has ConnectivityType => (is => 'ro', isa => 'Str');
7 has DryRun => (is => 'ro', isa => 'Bool');
8 has SubnetId => (is => 'ro', isa => 'Str', required => 1);
9 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' );
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateNatGateway');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateNatGatewayResult');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::EC2::CreateNatGateway - Arguments for method CreateNatGateway on L<Paws::EC2>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateNatGateway on the
27 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
28 as arguments to method CreateNatGateway.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateNatGateway.
31  
32 =head1 SYNOPSIS
33  
34 my $ec2 = Paws->service('EC2');
35 # To create a NAT gateway
36 # This example creates a NAT gateway in subnet subnet-1a2b3c4d and associates an
37 # Elastic IP address with the allocation ID eipalloc-37fc1a52 with the NAT
38 # gateway.
39 my $CreateNatGatewayResult = $ec2->CreateNatGateway(
40 'AllocationId' => 'eipalloc-37fc1a52',
41 'SubnetId' => 'subnet-1a2b3c4d'
42 );
43  
44 # Results:
45 my $NatGateway = $CreateNatGatewayResult->NatGateway;
46  
47 # Returns a L<Paws::EC2::CreateNatGatewayResult> object.
48  
49 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.
50 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateNatGateway>
51  
52 =head1 ATTRIBUTES
53  
54  
55 =head2 AllocationId => Str
56  
57 [Public NAT gateways only] The allocation ID of an Elastic IP address
58 to associate with the NAT gateway. You cannot specify an Elastic IP
59 address with a private NAT gateway. If the Elastic IP address is
60 associated with another resource, you must first disassociate it.
61  
62  
63  
64 =head2 ClientToken => Str
65  
66 Unique, case-sensitive identifier that you provide to ensure the
67 idempotency of the request. For more information, see How to Ensure
68 Idempotency
69 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
70  
71 Constraint: Maximum 64 ASCII characters.
72  
73  
74  
75 =head2 ConnectivityType => Str
76  
77 Indicates whether the NAT gateway supports public or private
78 connectivity. The default is public connectivity.
79  
80 Valid values are: C<"private">, C<"public">
81  
82 =head2 DryRun => Bool
83  
84 Checks whether you have the required permissions for the action,
85 without actually making the request, and provides an error response. If
86 you have the required permissions, the error response is
87 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
88  
89  
90  
91 =head2 B<REQUIRED> SubnetId => Str
92  
93 The subnet in which to create the NAT gateway.
94  
95  
96  
97 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>]
98  
99 The tags to assign to the NAT gateway.
100  
101  
102  
103  
104 =head1 SEE ALSO
105  
106 This class forms part of L<Paws>, documenting arguments for method CreateNatGateway in L<Paws::EC2>
107  
108 =head1 BUGS and CONTRIBUTIONS
109  
110 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
111  
112 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
113  
114 =cut
115