blib/lib/Paws/EC2/ReleaseAddress.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::ReleaseAddress;
3 use Moose;
4 has AllocationId => (is => 'ro', isa => 'Str');
5 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
6 has NetworkBorderGroup => (is => 'ro', isa => 'Str');
7 has PublicIp => (is => 'ro', isa => 'Str');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ReleaseAddress');
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::ReleaseAddress - Arguments for method ReleaseAddress on L<Paws::EC2>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method ReleaseAddress on the
25 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
26 as arguments to method ReleaseAddress.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ReleaseAddress.
29  
30 =head1 SYNOPSIS
31  
32 my $ec2 = Paws->service('EC2');
33 # To release an Elastic IP address for EC2-VPC
34 # This example releases an Elastic IP address for use with instances in a VPC.
35 $ec2->ReleaseAddress( 'AllocationId' => 'eipalloc-64d5890a' );
36  
37 # To release an Elastic IP addresses for EC2-Classic
38 # This example releases an Elastic IP address for use with instances in
39 # EC2-Classic.
40 $ec2->ReleaseAddress( 'PublicIp' => '198.51.100.0' );
41  
42  
43 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.
44 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ReleaseAddress>
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 AllocationId => Str
50  
51 [EC2-VPC] The allocation ID. Required for EC2-VPC.
52  
53  
54  
55 =head2 DryRun => Bool
56  
57 Checks whether you have the required permissions for the action,
58 without actually making the request, and provides an error response. If
59 you have the required permissions, the error response is
60 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
61  
62  
63  
64 =head2 NetworkBorderGroup => Str
65  
66 The set of Availability Zones, Local Zones, or Wavelength Zones from
67 which AWS advertises IP addresses.
68  
69 If you provide an incorrect network border group, you will receive an
70 C<InvalidAddress.NotFound> error. For more information, see Error Codes
71 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
72  
73 You cannot use a network border group with EC2 Classic. If you attempt
74 this operation on EC2 classic, you will receive an
75 C<InvalidParameterCombination> error. For more information, see Error
76 Codes
77 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
78  
79  
80  
81 =head2 PublicIp => Str
82  
83 [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
84  
85  
86  
87  
88 =head1 SEE ALSO
89  
90 This class forms part of L<Paws>, documenting arguments for method ReleaseAddress in L<Paws::EC2>
91  
92 =head1 BUGS and CONTRIBUTIONS
93  
94 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
95  
96 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
97  
98 =cut
99