« blib/lib/Paws/EC2/AllocateAddressResult.pm
↑ Summary
blib/lib/Paws/EC2/AssignPrivateIpAddressesResult.pm »
| 1 | |||
| 2 | package Paws::EC2::AssignPrivateIpAddresses; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has AllowReassignment => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'allowReassignment' ); | |
| 5 | 1 | has NetworkInterfaceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'networkInterfaceId' , required => 1); | |
| 6 | 1 | has PrivateIpAddresses => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'privateIpAddress' ); | |
| 7 | 1 | has SecondaryPrivateIpAddressCount => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'secondaryPrivateIpAddressCount' ); | |
| 8 | |||
| 9 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'AssignPrivateIpAddresses'); | |
| 12 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::AssignPrivateIpAddressesResult'); | |
| 13 | 1 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 14 | 1 | 1; | |
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::EC2::AssignPrivateIpAddresses - Arguments for method AssignPrivateIpAddresses on L<Paws::EC2> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method AssignPrivateIpAddresses on the | ||
| 25 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 26 | as arguments to method AssignPrivateIpAddresses. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AssignPrivateIpAddresses. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $ec2 = Paws->service('EC2'); | ||
| 33 | # To assign a specific secondary private IP address to an interface | ||
| 34 | # This example assigns the specified secondary private IP address to the | ||
| 35 | # specified network interface. | ||
| 36 | my $AssignPrivateIpAddressesResult = $ec2->AssignPrivateIpAddresses( | ||
| 37 | 'NetworkInterfaceId' => 'eni-e5aa89a3', | ||
| 38 | 'PrivateIpAddresses' => ['10.0.0.82'] | ||
| 39 | ); | ||
| 40 | |||
| 41 | # To assign secondary private IP addresses that Amazon EC2 selects to an interface | ||
| 42 | # This example assigns two secondary private IP addresses to the specified | ||
| 43 | # network interface. Amazon EC2 automatically assigns these IP addresses from | ||
| 44 | # the available IP addresses in the CIDR block range of the subnet the network | ||
| 45 | # interface is associated with. | ||
| 46 | my $AssignPrivateIpAddressesResult = $ec2->AssignPrivateIpAddresses( | ||
| 47 | 'NetworkInterfaceId' => 'eni-e5aa89a3', | ||
| 48 | 'SecondaryPrivateIpAddressCount' => 2 | ||
| 49 | ); | ||
| 50 | |||
| 51 | |||
| 52 | 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. | ||
| 53 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/AssignPrivateIpAddresses> | ||
| 54 | |||
| 55 | =head1 ATTRIBUTES | ||
| 56 | |||
| 57 | |||
| 58 | =head2 AllowReassignment => Bool | ||
| 59 | |||
| 60 | Indicates whether to allow an IP address that is already assigned to | ||
| 61 | another network interface or instance to be reassigned to the specified | ||
| 62 | network interface. | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 B<REQUIRED> NetworkInterfaceId => Str | ||
| 67 | |||
| 68 | The ID of the network interface. | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head2 PrivateIpAddresses => ArrayRef[Str|Undef] | ||
| 73 | |||
| 74 | One or more IP addresses to be assigned as a secondary private IP | ||
| 75 | address to the network interface. You can't specify this parameter when | ||
| 76 | also specifying a number of secondary IP addresses. | ||
| 77 | |||
| 78 | If you don't specify an IP address, Amazon EC2 automatically selects an | ||
| 79 | IP address within the subnet range. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head2 SecondaryPrivateIpAddressCount => Int | ||
| 84 | |||
| 85 | The number of secondary IP addresses to assign to the network | ||
| 86 | interface. You can't specify this parameter when also specifying | ||
| 87 | private IP addresses. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | =head1 SEE ALSO | ||
| 93 | |||
| 94 | This class forms part of L<Paws>, documenting arguments for method AssignPrivateIpAddresses in L<Paws::EC2> | ||
| 95 | |||
| 96 | =head1 BUGS and CONTRIBUTIONS | ||
| 97 | |||
| 98 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 99 | |||
| 100 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 101 | |||
| 102 | =cut | ||
| 103 | |||