1 2package Paws::EC2::CreateNetworkInterface { 3 use Moose; 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]', traits => ['NameInRequest'], request_name => 'SecurityGroupId' ); 7 has PrivateIpAddress => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'privateIpAddress' ); 8 has PrivateIpAddresses => (is => 'ro', isa => 'ArrayRef[Paws::EC2::PrivateIpAddressSpecification]', traits => ['NameInRequest'], request_name => 'privateIpAddresses' ); 9 has SecondaryPrivateIpAddressCount => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'secondaryPrivateIpAddressCount' ); 10 has SubnetId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'subnetId' , required => 1); 11 12 use MooseX::ClassAttribute; 13 14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateNetworkInterface'); 15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateNetworkInterfaceResult'); 16 class_has _result_key => (isa => 'Str', is => 'ro'); 17} 181; 19 20### main pod documentation begin ### 21 22=head1 NAME 23 24Paws::EC2::CreateNetworkInterface - Arguments for method CreateNetworkInterface on Paws::EC2 25 26=head1 DESCRIPTION 27 28This class represents the parameters used for calling the method CreateNetworkInterface on the 29Amazon Elastic Compute Cloud service. Use the attributes of this class 30as arguments to method CreateNetworkInterface. 31 32You shouln't make instances of this class. Each attribute should be used as a named argument in the call to CreateNetworkInterface. 33 34As an example: 35 36 $service_obj->CreateNetworkInterface(Att1 => $value1, Att2 => $value2, ...); 37 38Values 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. 39 40=head1 ATTRIBUTES 41 42=head2 Description => Str 43 44 45 46A description for the network interface. 47 48 49 50 51 52 53 54 55 56 57=head2 DryRun => Bool 58 59 60 61Checks whether you have the required permissions for the action, 62without actually making the request, and provides an error response. If 63you have the required permissions, the error response is 64C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. 65 66 67 68 69 70 71 72 73 74 75=head2 Groups => ArrayRef[Str] 76 77 78 79The IDs of one or more security groups. 80 81 82 83 84 85 86 87 88 89 90=head2 PrivateIpAddress => Str 91 92 93 94The primary private IP address of the network interface. If you don't 95specify an IP address, Amazon EC2 selects one for you from the subnet 96range. If you specify an IP address, you cannot indicate any IP 97addresses specified in C<privateIpAddresses> as primary (only one IP 98address can be designated as primary). 99 100 101 102 103 104 105 106 107 108 109=head2 PrivateIpAddresses => ArrayRef[Paws::EC2::PrivateIpAddressSpecification] 110 111 112 113One or more private IP addresses. 114 115 116 117 118 119 120 121 122 123 124=head2 SecondaryPrivateIpAddressCount => Int 125 126 127 128The number of secondary private IP addresses to assign to a network 129interface. When you specify a number of secondary IP addresses, Amazon 130EC2 selects these IP addresses within the subnet range. You can't 131specify this option and specify more than one private IP address using 132C<privateIpAddresses>. 133 134The number of IP addresses you can assign to a network interface varies 135by instance type. For more information, see Private IP Addresses Per 136ENI Per Instance Type in the I<Amazon Elastic Compute Cloud User 137Guide>. 138 139 140 141 142 143 144 145 146 147 148=head2 B<REQUIRED> SubnetId => Str 149 150 151 152The ID of the subnet to associate with the network interface. 153 154 155 156 157 158 159 160 161 162 163 164 165=head1 SEE ALSO 166 167This class forms part of L<Paws>, documenting arguments for method CreateNetworkInterface in L<Paws::EC2> 168 169=head1 BUGS and CONTRIBUTIONS 170 171The source code is located here: https://github.com/pplu/aws-sdk-perl 172 173Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues 174 175=cut 176 177