File Coverage

blib/lib/Paws/EC2/CreateNetworkInterface.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::CreateNetworkInterface;
3 1     1   507 use Moose;
  1     1   4  
  1         9  
  1         513  
  1         2  
  1         9  
4             has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
5             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
6             has Groups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'SecurityGroupId' );
7             has Ipv6AddressCount => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'ipv6AddressCount' );
8             has Ipv6Addresses => (is => 'ro', isa => 'ArrayRef[Paws::EC2::InstanceIpv6Address]', traits => ['NameInRequest'], request_name => 'ipv6Addresses' );
9             has PrivateIpAddress => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'privateIpAddress' );
10             has PrivateIpAddresses => (is => 'ro', isa => 'ArrayRef[Paws::EC2::PrivateIpAddressSpecification]', traits => ['NameInRequest'], request_name => 'privateIpAddresses' );
11             has SecondaryPrivateIpAddressCount => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'secondaryPrivateIpAddressCount' );
12             has SubnetId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'subnetId' , required => 1);
13              
14 1     1   6320 use MooseX::ClassAttribute;
  1     1   4  
  1         13  
  1         7083  
  1         2  
  1         9  
15              
16             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateNetworkInterface');
17             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateNetworkInterfaceResult');
18             class_has _result_key => (isa => 'Str', is => 'ro');
19             1;
20              
21             ### main pod documentation begin ###
22              
23             =head1 NAME
24              
25             Paws::EC2::CreateNetworkInterface - Arguments for method CreateNetworkInterface on Paws::EC2
26              
27             =head1 DESCRIPTION
28              
29             This class represents the parameters used for calling the method CreateNetworkInterface on the
30             Amazon Elastic Compute Cloud service. Use the attributes of this class
31             as arguments to method CreateNetworkInterface.
32              
33             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateNetworkInterface.
34              
35             As an example:
36              
37             $service_obj->CreateNetworkInterface(Att1 => $value1, Att2 => $value2, ...);
38              
39             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.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 Description => Str
45              
46             A description for the network interface.
47              
48              
49              
50             =head2 DryRun => Bool
51              
52             Checks whether you have the required permissions for the action,
53             without actually making the request, and provides an error response. If
54             you have the required permissions, the error response is
55             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
56              
57              
58              
59             =head2 Groups => ArrayRef[Str|Undef]
60              
61             The IDs of one or more security groups.
62              
63              
64              
65             =head2 Ipv6AddressCount => Int
66              
67             The number of IPv6 addresses to assign to a network interface. Amazon
68             EC2 automatically selects the IPv6 addresses from the subnet range. You
69             can't use this option if specifying specific IPv6 addresses. If your
70             subnet has the C<AssignIpv6AddressOnCreation> attribute set to C<true>,
71             you can specify C<0> to override this setting.
72              
73              
74              
75             =head2 Ipv6Addresses => ArrayRef[L<Paws::EC2::InstanceIpv6Address>]
76              
77             One or more specific IPv6 addresses from the IPv6 CIDR block range of
78             your subnet. You can't use this option if you're specifying a number of
79             IPv6 addresses.
80              
81              
82              
83             =head2 PrivateIpAddress => Str
84              
85             The primary private IPv4 address of the network interface. If you don't
86             specify an IPv4 address, Amazon EC2 selects one for you from the
87             subnet's IPv4 CIDR range. If you specify an IP address, you cannot
88             indicate any IP addresses specified in C<privateIpAddresses> as primary
89             (only one IP address can be designated as primary).
90              
91              
92              
93             =head2 PrivateIpAddresses => ArrayRef[L<Paws::EC2::PrivateIpAddressSpecification>]
94              
95             One or more private IPv4 addresses.
96              
97              
98              
99             =head2 SecondaryPrivateIpAddressCount => Int
100              
101             The number of secondary private IPv4 addresses to assign to a network
102             interface. When you specify a number of secondary IPv4 addresses,
103             Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR
104             range. You can't specify this option and specify more than one private
105             IP address using C<privateIpAddresses>.
106              
107             The number of IP addresses you can assign to a network interface varies
108             by instance type. For more information, see IP Addresses Per ENI Per
109             Instance Type in the I<Amazon Virtual Private Cloud User Guide>.
110              
111              
112              
113             =head2 B<REQUIRED> SubnetId => Str
114              
115             The ID of the subnet to associate with the network interface.
116              
117              
118              
119              
120             =head1 SEE ALSO
121              
122             This class forms part of L<Paws>, documenting arguments for method CreateNetworkInterface in L<Paws::EC2>
123              
124             =head1 BUGS and CONTRIBUTIONS
125              
126             The source code is located here: https://github.com/pplu/aws-sdk-perl
127              
128             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
129              
130             =cut
131