blib/lib/Paws/EC2/CreateNetworkInterface.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/EC2/CreateNetworkAclResult.pm ↑ Summary blib/lib/Paws/EC2/CreateNetworkInterfaceResult.pm »
1  
2 package Paws::EC2::CreateNetworkInterface;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has ClientToken => (is => 'ro', isa => 'Str');
5 1 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
6 1 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
7 1 has Groups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'SecurityGroupId' );
8 1 has InterfaceType => (is => 'ro', isa => 'Str');
9 1 has Ipv6AddressCount => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'ipv6AddressCount' );
10 1 has Ipv6Addresses => (is => 'ro', isa => 'ArrayRef[Paws::EC2::InstanceIpv6Address]', traits => ['NameInRequest'], request_name => 'ipv6Addresses' );
11 1 has PrivateIpAddress => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'privateIpAddress' );
12 1 has PrivateIpAddresses => (is => 'ro', isa => 'ArrayRef[Paws::EC2::PrivateIpAddressSpecification]', traits => ['NameInRequest'], request_name => 'privateIpAddresses' );
13 1 has SecondaryPrivateIpAddressCount => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'secondaryPrivateIpAddressCount' );
14 1 has SubnetId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'subnetId' , required => 1);
15 1 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' );
16  
17 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateNetworkInterface');
20 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateNetworkInterfaceResult');
21 1 class_has _result_key => (isa => 'Str', is => 'ro');
22 1 1;
23  
24 ### main pod documentation begin ###
25  
26 =head1 NAME
27  
28 Paws::EC2::CreateNetworkInterface - Arguments for method CreateNetworkInterface on L<Paws::EC2>
29  
30 =head1 DESCRIPTION
31  
32 This class represents the parameters used for calling the method CreateNetworkInterface on the
33 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
34 as arguments to method CreateNetworkInterface.
35  
36 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateNetworkInterface.
37  
38 =head1 SYNOPSIS
39  
40 my $ec2 = Paws->service('EC2');
41 # To create a network interface
42 # This example creates a network interface for the specified subnet.
43 my $CreateNetworkInterfaceResult = $ec2->CreateNetworkInterface(
44 'Description' => 'my network interface',
45 'Groups' => ['sg-903004f8'],
46 'PrivateIpAddress' => '10.0.2.17',
47 'SubnetId' => 'subnet-9d4a7b6c'
48 );
49  
50 # Results:
51 my $NetworkInterface = $CreateNetworkInterfaceResult->NetworkInterface;
52  
53 # Returns a L<Paws::EC2::CreateNetworkInterfaceResult> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateNetworkInterface>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 ClientToken => Str
62  
63 Unique, case-sensitive identifier that you provide to ensure the
64 idempotency of the request. For more information, see Ensuring
65 Idempotency
66 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
67  
68  
69  
70 =head2 Description => Str
71  
72 A description for the network interface.
73  
74  
75  
76 =head2 DryRun => Bool
77  
78 Checks whether you have the required permissions for the action,
79 without actually making the request, and provides an error response. If
80 you have the required permissions, the error response is
81 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
82  
83  
84  
85 =head2 Groups => ArrayRef[Str|Undef]
86  
87 The IDs of one or more security groups.
88  
89  
90  
91 =head2 InterfaceType => Str
92  
93 Indicates the type of network interface. To create an Elastic Fabric
94 Adapter (EFA), specify C<efa>. For more information, see Elastic Fabric
95 Adapter (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html)
96 in the I<Amazon Elastic Compute Cloud User Guide>. To create a trunk
97 network interface, specify C<efa>. For more information, see Network
98 interface trunking
99 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/eni-trunking.html)
100 in the I<Amazon Elastic Compute Cloud User Guide>.
101  
102 Valid values are: C<"efa">, C<"branch">, C<"trunk">
103  
104 =head2 Ipv6AddressCount => Int
105  
106 The number of IPv6 addresses to assign to a network interface. Amazon
107 EC2 automatically selects the IPv6 addresses from the subnet range. You
108 can't use this option if specifying specific IPv6 addresses. If your
109 subnet has the C<AssignIpv6AddressOnCreation> attribute set to C<true>,
110 you can specify C<0> to override this setting.
111  
112  
113  
114 =head2 Ipv6Addresses => ArrayRef[L<Paws::EC2::InstanceIpv6Address>]
115  
116 One or more specific IPv6 addresses from the IPv6 CIDR block range of
117 your subnet. You can't use this option if you're specifying a number of
118 IPv6 addresses.
119  
120  
121  
122 =head2 PrivateIpAddress => Str
123  
124 The primary private IPv4 address of the network interface. If you don't
125 specify an IPv4 address, Amazon EC2 selects one for you from the
126 subnet's IPv4 CIDR range. If you specify an IP address, you cannot
127 indicate any IP addresses specified in C<privateIpAddresses> as primary
128 (only one IP address can be designated as primary).
129  
130  
131  
132 =head2 PrivateIpAddresses => ArrayRef[L<Paws::EC2::PrivateIpAddressSpecification>]
133  
134 One or more private IPv4 addresses.
135  
136  
137  
138 =head2 SecondaryPrivateIpAddressCount => Int
139  
140 The number of secondary private IPv4 addresses to assign to a network
141 interface. When you specify a number of secondary IPv4 addresses,
142 Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR
143 range. You can't specify this option and specify more than one private
144 IP address using C<privateIpAddresses>.
145  
146 The number of IP addresses you can assign to a network interface varies
147 by instance type. For more information, see IP Addresses Per ENI Per
148 Instance Type
149 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
150 in the I<Amazon Virtual Private Cloud User Guide>.
151  
152  
153  
154 =head2 B<REQUIRED> SubnetId => Str
155  
156 The ID of the subnet to associate with the network interface.
157  
158  
159  
160 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>]
161  
162 The tags to apply to the new network interface.
163  
164  
165  
166  
167 =head1 SEE ALSO
168  
169 This class forms part of L<Paws>, documenting arguments for method CreateNetworkInterface in L<Paws::EC2>
170  
171 =head1 BUGS and CONTRIBUTIONS
172  
173 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
174  
175 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
176  
177 =cut
178  
« blib/lib/Paws/EC2/CreateNetworkAclResult.pm ↑ Summary blib/lib/Paws/EC2/CreateNetworkInterfaceResult.pm »