| 1 | |||
| 2 | package Paws::EC2::AllocateAddress; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has Address => (is => 'ro', isa => 'Str'); | |
| 5 | 1 | has CustomerOwnedIpv4Pool => (is => 'ro', isa => 'Str'); | |
| 6 | 1 | has Domain => (is => 'ro', isa => 'Str'); | |
| 7 | 1 | has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' ); | |
| 8 | 1 | has NetworkBorderGroup => (is => 'ro', isa => 'Str'); | |
| 9 | 1 | has PublicIpv4Pool => (is => 'ro', isa => 'Str'); | |
| 10 | 1 | has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' ); | |
| 11 | |||
| 12 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'AllocateAddress'); | |
| 15 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::AllocateAddressResult'); | |
| 16 | 1 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 17 | 1 | 1; | |
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::EC2::AllocateAddress - Arguments for method AllocateAddress on L<Paws::EC2> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method AllocateAddress on the | ||
| 28 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 29 | as arguments to method AllocateAddress. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AllocateAddress. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $ec2 = Paws->service('EC2'); | ||
| 36 | # To allocate an Elastic IP address for EC2-VPC | ||
| 37 | # This example allocates an Elastic IP address to use with an instance in a VPC. | ||
| 38 | my $AllocateAddressResult = $ec2->AllocateAddress( 'Domain' => 'vpc' ); | ||
| 39 | |||
| 40 | # Results: | ||
| 41 | my $AllocationId = $AllocateAddressResult->AllocationId; | ||
| 42 | my $Domain = $AllocateAddressResult->Domain; | ||
| 43 | my $PublicIp = $AllocateAddressResult->PublicIp; | ||
| 44 | |||
| 45 | # Returns a L<Paws::EC2::AllocateAddressResult> object. | ||
| 46 | # To allocate an Elastic IP address for EC2-Classic | ||
| 47 | # This example allocates an Elastic IP address to use with an instance in | ||
| 48 | # EC2-Classic. | ||
| 49 | my $AllocateAddressResult = $ec2->AllocateAddress(); | ||
| 50 | |||
| 51 | # Results: | ||
| 52 | my $Domain = $AllocateAddressResult->Domain; | ||
| 53 | my $PublicIp = $AllocateAddressResult->PublicIp; | ||
| 54 | |||
| 55 | # Returns a L<Paws::EC2::AllocateAddressResult> object. | ||
| 56 | |||
| 57 | 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. | ||
| 58 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/AllocateAddress> | ||
| 59 | |||
| 60 | =head1 ATTRIBUTES | ||
| 61 | |||
| 62 | |||
| 63 | =head2 Address => Str | ||
| 64 | |||
| 65 | [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an | ||
| 66 | address pool. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 CustomerOwnedIpv4Pool => Str | ||
| 71 | |||
| 72 | The ID of a customer-owned address pool. Use this parameter to let | ||
| 73 | Amazon EC2 select an address from the address pool. Alternatively, | ||
| 74 | specify a specific address from the address pool. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head2 Domain => Str | ||
| 79 | |||
| 80 | Indicates whether the Elastic IP address is for use with instances in a | ||
| 81 | VPC or instances in EC2-Classic. | ||
| 82 | |||
| 83 | Default: If the Region supports EC2-Classic, the default is | ||
| 84 | C<standard>. Otherwise, the default is C<vpc>. | ||
| 85 | |||
| 86 | Valid values are: C<"vpc">, C<"standard"> | ||
| 87 | |||
| 88 | =head2 DryRun => Bool | ||
| 89 | |||
| 90 | Checks whether you have the required permissions for the action, | ||
| 91 | without actually making the request, and provides an error response. If | ||
| 92 | you have the required permissions, the error response is | ||
| 93 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 NetworkBorderGroup => Str | ||
| 98 | |||
| 99 | A unique set of Availability Zones, Local Zones, or Wavelength Zones | ||
| 100 | from which AWS advertises IP addresses. Use this parameter to limit the | ||
| 101 | IP address to this location. IP addresses cannot move between network | ||
| 102 | border groups. | ||
| 103 | |||
| 104 | Use DescribeAvailabilityZones | ||
| 105 | (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html) | ||
| 106 | to view the network border groups. | ||
| 107 | |||
| 108 | You cannot use a network border group with EC2 Classic. If you attempt | ||
| 109 | this operation on EC2 classic, you will receive an | ||
| 110 | C<InvalidParameterCombination> error. For more information, see Error | ||
| 111 | Codes | ||
| 112 | (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html). | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | =head2 PublicIpv4Pool => Str | ||
| 117 | |||
| 118 | The ID of an address pool that you own. Use this parameter to let | ||
| 119 | Amazon EC2 select an address from the address pool. To specify a | ||
| 120 | specific address from the address pool, use the C<Address> parameter | ||
| 121 | instead. | ||
| 122 | |||
| 123 | |||
| 124 | |||
| 125 | =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>] | ||
| 126 | |||
| 127 | The tags to assign to the Elastic IP address. | ||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | |||
| 132 | =head1 SEE ALSO | ||
| 133 | |||
| 134 | This class forms part of L<Paws>, documenting arguments for method AllocateAddress in L<Paws::EC2> | ||
| 135 | |||
| 136 | =head1 BUGS and CONTRIBUTIONS | ||
| 137 | |||
| 138 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 139 | |||
| 140 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 141 | |||
| 142 | =cut | ||
| 143 | |||