File Coverage

blib/lib/Paws/EC2/AssociateAddress.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::AssociateAddress;
3 1     1   548 use Moose;
  1     1   4  
  1         11  
  1         499  
  1         3  
  1         10  
4             has AllocationId => (is => 'ro', isa => 'Str');
5             has AllowReassociation => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'allowReassociation' );
6             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
7             has InstanceId => (is => 'ro', isa => 'Str');
8             has NetworkInterfaceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'networkInterfaceId' );
9             has PrivateIpAddress => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'privateIpAddress' );
10             has PublicIp => (is => 'ro', isa => 'Str');
11              
12 1     1   6539 use MooseX::ClassAttribute;
  1     1   3  
  1         9  
  1         6804  
  1         3  
  1         9  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'AssociateAddress');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::AssociateAddressResult');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::EC2::AssociateAddress - Arguments for method AssociateAddress on Paws::EC2
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method AssociateAddress on the
28             Amazon Elastic Compute Cloud service. Use the attributes of this class
29             as arguments to method AssociateAddress.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AssociateAddress.
32              
33             As an example:
34              
35             $service_obj->AssociateAddress(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 AllocationId => Str
43              
44             [EC2-VPC] The allocation ID. This is required for EC2-VPC.
45              
46              
47              
48             =head2 AllowReassociation => Bool
49              
50             [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an
51             Elastic IP address that is already associated with an instance or
52             network interface to be reassociated with the specified instance or
53             network interface. Otherwise, the operation fails. In a VPC in an
54             EC2-VPC-only account, reassociation is automatic, therefore you can
55             specify false to ensure the operation fails if the Elastic IP address
56             is already associated with another resource.
57              
58              
59              
60             =head2 DryRun => Bool
61              
62             Checks whether you have the required permissions for the action,
63             without actually making the request, and provides an error response. If
64             you have the required permissions, the error response is
65             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
66              
67              
68              
69             =head2 InstanceId => Str
70              
71             The ID of the instance. This is required for EC2-Classic. For EC2-VPC,
72             you can specify either the instance ID or the network interface ID, but
73             not both. The operation fails if you specify an instance ID unless
74             exactly one network interface is attached.
75              
76              
77              
78             =head2 NetworkInterfaceId => Str
79              
80             [EC2-VPC] The ID of the network interface. If the instance has more
81             than one network interface, you must specify a network interface ID.
82              
83              
84              
85             =head2 PrivateIpAddress => Str
86              
87             [EC2-VPC] The primary or secondary private IP address to associate with
88             the Elastic IP address. If no private IP address is specified, the
89             Elastic IP address is associated with the primary private IP address.
90              
91              
92              
93             =head2 PublicIp => Str
94              
95             The Elastic IP address. This is required for EC2-Classic.
96              
97              
98              
99              
100             =head1 SEE ALSO
101              
102             This class forms part of L<Paws>, documenting arguments for method AssociateAddress in L<Paws::EC2>
103              
104             =head1 BUGS and CONTRIBUTIONS
105              
106             The source code is located here: https://github.com/pplu/aws-sdk-perl
107              
108             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
109              
110             =cut
111