File Coverage

blib/lib/Paws/EC2/InstanceNetworkInterfaceSpecification.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Paws::EC2::InstanceNetworkInterfaceSpecification;
2 1     1   557 use Moose;
  1     2   3  
  1         8  
  2         1356  
  2         6  
  2         15  
3             has AssociatePublicIpAddress => (is => 'ro', isa => 'Bool', request_name => 'associatePublicIpAddress', traits => ['NameInRequest']);
4             has DeleteOnTermination => (is => 'ro', isa => 'Bool', request_name => 'deleteOnTermination', traits => ['NameInRequest']);
5             has Description => (is => 'ro', isa => 'Str', request_name => 'description', traits => ['NameInRequest']);
6             has DeviceIndex => (is => 'ro', isa => 'Int', request_name => 'deviceIndex', traits => ['NameInRequest']);
7             has Groups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'SecurityGroupId', traits => ['NameInRequest']);
8             has Ipv6AddressCount => (is => 'ro', isa => 'Int', request_name => 'ipv6AddressCount', traits => ['NameInRequest']);
9             has Ipv6Addresses => (is => 'ro', isa => 'ArrayRef[Paws::EC2::InstanceIpv6Address]', request_name => 'ipv6AddressesSet', traits => ['NameInRequest']);
10             has NetworkInterfaceId => (is => 'ro', isa => 'Str', request_name => 'networkInterfaceId', traits => ['NameInRequest']);
11             has PrivateIpAddress => (is => 'ro', isa => 'Str', request_name => 'privateIpAddress', traits => ['NameInRequest']);
12             has PrivateIpAddresses => (is => 'ro', isa => 'ArrayRef[Paws::EC2::PrivateIpAddressSpecification]', request_name => 'privateIpAddressesSet', traits => ['NameInRequest']);
13             has SecondaryPrivateIpAddressCount => (is => 'ro', isa => 'Int', request_name => 'secondaryPrivateIpAddressCount', traits => ['NameInRequest']);
14             has SubnetId => (is => 'ro', isa => 'Str', request_name => 'subnetId', traits => ['NameInRequest']);
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::EC2::InstanceNetworkInterfaceSpecification
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::InstanceNetworkInterfaceSpecification object:
33              
34             $service_obj->Method(Att1 => { AssociatePublicIpAddress => $value, ..., SubnetId => $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::InstanceNetworkInterfaceSpecification object:
39              
40             $result = $service_obj->Method(...);
41             $result->Att1->AssociatePublicIpAddress
42              
43             =head1 DESCRIPTION
44              
45             This class has no description
46              
47             =head1 ATTRIBUTES
48              
49              
50             =head2 AssociatePublicIpAddress => Bool
51              
52             Indicates whether to assign a public IPv4 address to an instance you
53             launch in a VPC. The public IP address can only be assigned to a
54             network interface for eth0, and can only be assigned to a new network
55             interface, not an existing one. You cannot specify more than one
56             network interface in the request. If launching into a default subnet,
57             the default value is C<true>.
58              
59              
60             =head2 DeleteOnTermination => Bool
61              
62             If set to C<true>, the interface is deleted when the instance is
63             terminated. You can specify C<true> only if creating a new network
64             interface when launching an instance.
65              
66              
67             =head2 Description => Str
68              
69             The description of the network interface. Applies only if creating a
70             network interface when launching an instance.
71              
72              
73             =head2 DeviceIndex => Int
74              
75             The index of the device on the instance for the network interface
76             attachment. If you are specifying a network interface in a RunInstances
77             request, you must provide the device index.
78              
79              
80             =head2 Groups => ArrayRef[Str|Undef]
81              
82             The IDs of the security groups for the network interface. Applies only
83             if creating a network interface when launching an instance.
84              
85              
86             =head2 Ipv6AddressCount => Int
87              
88             A number of IPv6 addresses to assign to the network interface. Amazon
89             EC2 chooses the IPv6 addresses from the range of the subnet. You cannot
90             specify this option and the option to assign specific IPv6 addresses in
91             the same request. You can specify this option if you've specified a
92             minimum number of instances to launch.
93              
94              
95             =head2 Ipv6Addresses => ArrayRef[L<Paws::EC2::InstanceIpv6Address>]
96              
97             One or more IPv6 addresses to assign to the network interface. You
98             cannot specify this option and the option to assign a number of IPv6
99             addresses in the same request. You cannot specify this option if you've
100             specified a minimum number of instances to launch.
101              
102              
103             =head2 NetworkInterfaceId => Str
104              
105             The ID of the network interface.
106              
107              
108             =head2 PrivateIpAddress => Str
109              
110             The private IPv4 address of the network interface. Applies only if
111             creating a network interface when launching an instance. You cannot
112             specify this option if you're launching more than one instance in a
113             RunInstances request.
114              
115              
116             =head2 PrivateIpAddresses => ArrayRef[L<Paws::EC2::PrivateIpAddressSpecification>]
117              
118             One or more private IPv4 addresses to assign to the network interface.
119             Only one private IPv4 address can be designated as primary. You cannot
120             specify this option if you're launching more than one instance in a
121             RunInstances request.
122              
123              
124             =head2 SecondaryPrivateIpAddressCount => Int
125              
126             The number of secondary private IPv4 addresses. You can't specify this
127             option and specify more than one private IP address using the private
128             IP addresses option. You cannot specify this option if you're launching
129             more than one instance in a RunInstances request.
130              
131              
132             =head2 SubnetId => Str
133              
134             The ID of the subnet associated with the network string. Applies only
135             if creating a network interface when launching an instance.
136              
137              
138              
139             =head1 SEE ALSO
140              
141             This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
142              
143             =head1 BUGS and CONTRIBUTIONS
144              
145             The source code is located here: https://github.com/pplu/aws-sdk-perl
146              
147             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
148              
149             =cut