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

filter: Statementstmt 0.0% 0 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Paws::EC2::NatGateway;
2 use Moose;
3 has ConnectivityType => (is => 'ro', isa => 'Str', request_name => 'connectivityType', traits => ['NameInRequest']);
4 has CreateTime => (is => 'ro', isa => 'Str', request_name => 'createTime', traits => ['NameInRequest']);
5 has DeleteTime => (is => 'ro', isa => 'Str', request_name => 'deleteTime', traits => ['NameInRequest']);
6 has FailureCode => (is => 'ro', isa => 'Str', request_name => 'failureCode', traits => ['NameInRequest']);
7 has FailureMessage => (is => 'ro', isa => 'Str', request_name => 'failureMessage', traits => ['NameInRequest']);
8 has NatGatewayAddresses => (is => 'ro', isa => 'ArrayRef[Paws::EC2::NatGatewayAddress]', request_name => 'natGatewayAddressSet', traits => ['NameInRequest']);
9 has NatGatewayId => (is => 'ro', isa => 'Str', request_name => 'natGatewayId', traits => ['NameInRequest']);
10 has ProvisionedBandwidth => (is => 'ro', isa => 'Paws::EC2::ProvisionedBandwidth', request_name => 'provisionedBandwidth', traits => ['NameInRequest']);
11 has State => (is => 'ro', isa => 'Str', request_name => 'state', traits => ['NameInRequest']);
12 has SubnetId => (is => 'ro', isa => 'Str', request_name => 'subnetId', traits => ['NameInRequest']);
13 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Tag]', request_name => 'tagSet', traits => ['NameInRequest']);
14 has VpcId => (is => 'ro', isa => 'Str', request_name => 'vpcId', traits => ['NameInRequest']);
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::EC2::NatGateway
22  
23 =head1 USAGE
24  
25 This class represents one of two things:
26  
27 =head3 Arguments in a call to a service
28  
29 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
30 Each attribute should be used as a named argument in the calls that expect this type of object.
31  
32 As an example, if Att1 is expected to be a Paws::EC2::NatGateway object:
33  
34 $service_obj->Method(Att1 => { ConnectivityType => $value, ..., VpcId => $value });
35  
36 =head3 Results returned from an API call
37  
38 Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::NatGateway object:
39  
40 $result = $service_obj->Method(...);
41 $result->Att1->ConnectivityType
42  
43 =head1 DESCRIPTION
44  
45 This class has no description
46  
47 =head1 ATTRIBUTES
48  
49  
50 =head2 ConnectivityType => Str
51  
52 Indicates whether the NAT gateway supports public or private
53 connectivity.
54  
55  
56 =head2 CreateTime => Str
57  
58 The date and time the NAT gateway was created.
59  
60  
61 =head2 DeleteTime => Str
62  
63 The date and time the NAT gateway was deleted, if applicable.
64  
65  
66 =head2 FailureCode => Str
67  
68 If the NAT gateway could not be created, specifies the error code for
69 the failure. (C<InsufficientFreeAddressesInSubnet> |
70 C<Gateway.NotAttached> | C<InvalidAllocationID.NotFound> |
71 C<Resource.AlreadyAssociated> | C<InternalError> |
72 C<InvalidSubnetID.NotFound>)
73  
74  
75 =head2 FailureMessage => Str
76  
77 If the NAT gateway could not be created, specifies the error message
78 for the failure, that corresponds to the error code.
79  
80 =over
81  
82 =item *
83  
84 For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free
85 addresses to create this NAT gateway"
86  
87 =item *
88  
89 For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway
90 attached"
91  
92 =item *
93  
94 For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx
95 could not be associated with this NAT gateway"
96  
97 =item *
98  
99 For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx
100 is already associated"
101  
102 =item *
103  
104 For InternalError: "Network interface eni-xxxxxxxx, created and used
105 internally by this NAT gateway is in an invalid state. Please try
106 again."
107  
108 =item *
109  
110 For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx
111 does not exist or could not be found."
112  
113 =back
114  
115  
116  
117 =head2 NatGatewayAddresses => ArrayRef[L<Paws::EC2::NatGatewayAddress>]
118  
119 Information about the IP addresses and network interface associated
120 with the NAT gateway.
121  
122  
123 =head2 NatGatewayId => Str
124  
125 The ID of the NAT gateway.
126  
127  
128 =head2 ProvisionedBandwidth => L<Paws::EC2::ProvisionedBandwidth>
129  
130 Reserved. If you need to sustain traffic greater than the documented
131 limits
132 (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html),
133 contact us through the Support Center
134 (https://console.aws.amazon.com/support/home?).
135  
136  
137 =head2 State => Str
138  
139 The state of the NAT gateway.
140  
141 =over
142  
143 =item *
144  
145 C<pending>: The NAT gateway is being created and is not ready to
146 process traffic.
147  
148 =item *
149  
150 C<failed>: The NAT gateway could not be created. Check the
151 C<failureCode> and C<failureMessage> fields for the reason.
152  
153 =item *
154  
155 C<available>: The NAT gateway is able to process traffic. This status
156 remains until you delete the NAT gateway, and does not indicate the
157 health of the NAT gateway.
158  
159 =item *
160  
161 C<deleting>: The NAT gateway is in the process of being terminated and
162 may still be processing traffic.
163  
164 =item *
165  
166 C<deleted>: The NAT gateway has been terminated and is no longer
167 processing traffic.
168  
169 =back
170  
171  
172  
173 =head2 SubnetId => Str
174  
175 The ID of the subnet in which the NAT gateway is located.
176  
177  
178 =head2 Tags => ArrayRef[L<Paws::EC2::Tag>]
179  
180 The tags for the NAT gateway.
181  
182  
183 =head2 VpcId => Str
184  
185 The ID of the VPC in which the NAT gateway is located.
186  
187  
188  
189 =head1 SEE ALSO
190  
191 This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
192  
193 =head1 BUGS and CONTRIBUTIONS
194  
195 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
196  
197 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
198  
199 =cut