« blib/lib/Paws/ELBv2/CreateListenerOutput.pm
↑ Summary
blib/lib/Paws/ELBv2/CreateLoadBalancerOutput.pm »
| 1 | |||
| 2 | package Paws::ELBv2::CreateLoadBalancer; | ||
| 3 | use Moose; | ||
| 4 | has CustomerOwnedIpv4Pool => (is => 'ro', isa => 'Str'); | ||
| 5 | has IpAddressType => (is => 'ro', isa => 'Str'); | ||
| 6 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has Scheme => (is => 'ro', isa => 'Str'); | ||
| 8 | has SecurityGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | ||
| 9 | has SubnetMappings => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::SubnetMapping]'); | ||
| 10 | has Subnets => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | ||
| 11 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::Tag]'); | ||
| 12 | has Type => (is => 'ro', isa => 'Str'); | ||
| 13 | |||
| 14 | use MooseX::ClassAttribute; | ||
| 15 | |||
| 16 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLoadBalancer'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::CreateLoadBalancerOutput'); | ||
| 18 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateLoadBalancerResult'); | ||
| 19 | 1; | ||
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::ELBv2::CreateLoadBalancer - Arguments for method CreateLoadBalancer on L<Paws::ELBv2> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method CreateLoadBalancer on the | ||
| 30 | L<Elastic Load Balancing|Paws::ELBv2> service. Use the attributes of this class | ||
| 31 | as arguments to method CreateLoadBalancer. | ||
| 32 | |||
| 33 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLoadBalancer. | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $elasticloadbalancing = Paws->service('ELBv2'); | ||
| 38 | # To create an Internet-facing load balancer | ||
| 39 | # This example creates an Internet-facing load balancer and enables the | ||
| 40 | # Availability Zones for the specified subnets. | ||
| 41 | my $CreateLoadBalancerOutput = $elasticloadbalancing->CreateLoadBalancer( | ||
| 42 | 'Name' => 'my-load-balancer', | ||
| 43 | 'Subnets' => [ 'subnet-b7d581c0', 'subnet-8360a9e7' ] | ||
| 44 | ); | ||
| 45 | |||
| 46 | # Results: | ||
| 47 | my $LoadBalancers = $CreateLoadBalancerOutput->LoadBalancers; | ||
| 48 | |||
| 49 | # Returns a L<Paws::ELBv2::CreateLoadBalancerOutput> object. | ||
| 50 | # To create an internal load balancer | ||
| 51 | # This example creates an internal load balancer and enables the Availability | ||
| 52 | # Zones for the specified subnets. | ||
| 53 | my $CreateLoadBalancerOutput = $elasticloadbalancing->CreateLoadBalancer( | ||
| 54 | 'Name' => 'my-internal-load-balancer', | ||
| 55 | 'Scheme' => 'internal', | ||
| 56 | 'SecurityGroups' => [ | ||
| 57 | |||
| 58 | ], | ||
| 59 | 'Subnets' => [ 'subnet-b7d581c0', 'subnet-8360a9e7' ] | ||
| 60 | ); | ||
| 61 | |||
| 62 | # Results: | ||
| 63 | my $LoadBalancers = $CreateLoadBalancerOutput->LoadBalancers; | ||
| 64 | |||
| 65 | # Returns a L<Paws::ELBv2::CreateLoadBalancerOutput> object. | ||
| 66 | |||
| 67 | 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. | ||
| 68 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/CreateLoadBalancer> | ||
| 69 | |||
| 70 | =head1 ATTRIBUTES | ||
| 71 | |||
| 72 | |||
| 73 | =head2 CustomerOwnedIpv4Pool => Str | ||
| 74 | |||
| 75 | [Application Load Balancers on Outposts] The ID of the customer-owned | ||
| 76 | address pool (CoIP pool). | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head2 IpAddressType => Str | ||
| 81 | |||
| 82 | The type of IP addresses used by the subnets for your load balancer. | ||
| 83 | The possible values are C<ipv4> (for IPv4 addresses) and C<dualstack> | ||
| 84 | (for IPv4 and IPv6 addresses). Internal load balancers must use | ||
| 85 | C<ipv4>. | ||
| 86 | |||
| 87 | Valid values are: C<"ipv4">, C<"dualstack"> | ||
| 88 | |||
| 89 | =head2 B<REQUIRED> Name => Str | ||
| 90 | |||
| 91 | The name of the load balancer. | ||
| 92 | |||
| 93 | This name must be unique per region per account, can have a maximum of | ||
| 94 | 32 characters, must contain only alphanumeric characters or hyphens, | ||
| 95 | must not begin or end with a hyphen, and must not begin with | ||
| 96 | "internal-". | ||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head2 Scheme => Str | ||
| 101 | |||
| 102 | The nodes of an Internet-facing load balancer have public IP addresses. | ||
| 103 | The DNS name of an Internet-facing load balancer is publicly resolvable | ||
| 104 | to the public IP addresses of the nodes. Therefore, Internet-facing | ||
| 105 | load balancers can route requests from clients over the internet. | ||
| 106 | |||
| 107 | The nodes of an internal load balancer have only private IP addresses. | ||
| 108 | The DNS name of an internal load balancer is publicly resolvable to the | ||
| 109 | private IP addresses of the nodes. Therefore, internal load balancers | ||
| 110 | can route requests only from clients with access to the VPC for the | ||
| 111 | load balancer. | ||
| 112 | |||
| 113 | The default is an Internet-facing load balancer. | ||
| 114 | |||
| 115 | You cannot specify a scheme for a Gateway Load Balancer. | ||
| 116 | |||
| 117 | Valid values are: C<"internet-facing">, C<"internal"> | ||
| 118 | |||
| 119 | =head2 SecurityGroups => ArrayRef[Str|Undef] | ||
| 120 | |||
| 121 | [Application Load Balancers] The IDs of the security groups for the | ||
| 122 | load balancer. | ||
| 123 | |||
| 124 | |||
| 125 | |||
| 126 | =head2 SubnetMappings => ArrayRef[L<Paws::ELBv2::SubnetMapping>] | ||
| 127 | |||
| 128 | The IDs of the public subnets. You can specify only one subnet per | ||
| 129 | Availability Zone. You must specify either subnets or subnet mappings. | ||
| 130 | |||
| 131 | [Application Load Balancers] You must specify subnets from at least two | ||
| 132 | Availability Zones. You cannot specify Elastic IP addresses for your | ||
| 133 | subnets. | ||
| 134 | |||
| 135 | [Application Load Balancers on Outposts] You must specify one Outpost | ||
| 136 | subnet. | ||
| 137 | |||
| 138 | [Application Load Balancers on Local Zones] You can specify subnets | ||
| 139 | from one or more Local Zones. | ||
| 140 | |||
| 141 | [Network Load Balancers] You can specify subnets from one or more | ||
| 142 | Availability Zones. You can specify one Elastic IP address per subnet | ||
| 143 | if you need static IP addresses for your internet-facing load balancer. | ||
| 144 | For internal load balancers, you can specify one private IP address per | ||
| 145 | subnet from the IPv4 range of the subnet. For internet-facing load | ||
| 146 | balancer, you can specify one IPv6 address per subnet. | ||
| 147 | |||
| 148 | [Gateway Load Balancers] You can specify subnets from one or more | ||
| 149 | Availability Zones. You cannot specify Elastic IP addresses for your | ||
| 150 | subnets. | ||
| 151 | |||
| 152 | |||
| 153 | |||
| 154 | =head2 Subnets => ArrayRef[Str|Undef] | ||
| 155 | |||
| 156 | The IDs of the public subnets. You can specify only one subnet per | ||
| 157 | Availability Zone. You must specify either subnets or subnet mappings. | ||
| 158 | |||
| 159 | [Application Load Balancers] You must specify subnets from at least two | ||
| 160 | Availability Zones. | ||
| 161 | |||
| 162 | [Application Load Balancers on Outposts] You must specify one Outpost | ||
| 163 | subnet. | ||
| 164 | |||
| 165 | [Application Load Balancers on Local Zones] You can specify subnets | ||
| 166 | from one or more Local Zones. | ||
| 167 | |||
| 168 | [Network Load Balancers] You can specify subnets from one or more | ||
| 169 | Availability Zones. | ||
| 170 | |||
| 171 | [Gateway Load Balancers] You can specify subnets from one or more | ||
| 172 | Availability Zones. | ||
| 173 | |||
| 174 | |||
| 175 | |||
| 176 | =head2 Tags => ArrayRef[L<Paws::ELBv2::Tag>] | ||
| 177 | |||
| 178 | The tags to assign to the load balancer. | ||
| 179 | |||
| 180 | |||
| 181 | |||
| 182 | =head2 Type => Str | ||
| 183 | |||
| 184 | The type of load balancer. The default is C<application>. | ||
| 185 | |||
| 186 | Valid values are: C<"application">, C<"network">, C<"gateway"> | ||
| 187 | |||
| 188 | |||
| 189 | =head1 SEE ALSO | ||
| 190 | |||
| 191 | This class forms part of L<Paws>, documenting arguments for method CreateLoadBalancer in L<Paws::ELBv2> | ||
| 192 | |||
| 193 | =head1 BUGS and CONTRIBUTIONS | ||
| 194 | |||
| 195 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 196 | |||
| 197 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 198 | |||
| 199 | =cut | ||
| 200 |