File Coverage

blib/lib/Paws/EC2/AssignPrivateIpAddresses.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::AssignPrivateIpAddresses;
3 1     1   280 use Moose;
  1     1   3  
  1         6  
  1         494  
  1         3  
  1         10  
4             has AllowReassignment => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'allowReassignment' );
5             has NetworkInterfaceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'networkInterfaceId' , required => 1);
6             has PrivateIpAddresses => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'privateIpAddress' );
7             has SecondaryPrivateIpAddressCount => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'secondaryPrivateIpAddressCount' );
8              
9 1     1   5232 use MooseX::ClassAttribute;
  1     1   2  
  1         5  
  1         6939  
  1         3  
  1         9  
10              
11             class_has _api_call => (isa => 'Str', is => 'ro', default => 'AssignPrivateIpAddresses');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::EC2::AssignPrivateIpAddresses - Arguments for method AssignPrivateIpAddresses on Paws::EC2
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method AssignPrivateIpAddresses on the
25             Amazon Elastic Compute Cloud 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             As an example:
31              
32             $service_obj->AssignPrivateIpAddresses(Att1 => $value1, Att2 => $value2, ...);
33              
34             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.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 AllowReassignment => Bool
40              
41             Indicates whether to allow an IP address that is already assigned to
42             another network interface or instance to be reassigned to the specified
43             network interface.
44              
45              
46              
47             =head2 B<REQUIRED> NetworkInterfaceId => Str
48              
49             The ID of the network interface.
50              
51              
52              
53             =head2 PrivateIpAddresses => ArrayRef[Str|Undef]
54              
55             One or more IP addresses to be assigned as a secondary private IP
56             address to the network interface. You can't specify this parameter when
57             also specifying a number of secondary IP addresses.
58              
59             If you don't specify an IP address, Amazon EC2 automatically selects an
60             IP address within the subnet range.
61              
62              
63              
64             =head2 SecondaryPrivateIpAddressCount => Int
65              
66             The number of secondary IP addresses to assign to the network
67             interface. You can't specify this parameter when also specifying
68             private IP addresses.
69              
70              
71              
72              
73             =head1 SEE ALSO
74              
75             This class forms part of L<Paws>, documenting arguments for method AssignPrivateIpAddresses in L<Paws::EC2>
76              
77             =head1 BUGS and CONTRIBUTIONS
78              
79             The source code is located here: https://github.com/pplu/aws-sdk-perl
80              
81             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
82              
83             =cut
84