File Coverage

blib/lib/Paws/ELB/CreateLoadBalancer.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::ELB::CreateLoadBalancer;
3 1     1   617 use Moose;
  1         4  
  1         12  
4             has AvailabilityZones => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5             has Listeners => (is => 'ro', isa => 'ArrayRef[Paws::ELB::Listener]', required => 1);
6             has LoadBalancerName => (is => 'ro', isa => 'Str', required => 1);
7             has Scheme => (is => 'ro', isa => 'Str');
8             has SecurityGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
9             has Subnets => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
10             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::ELB::Tag]');
11              
12 1     1   11503 use MooseX::ClassAttribute;
  1         4  
  1         16  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLoadBalancer');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELB::CreateAccessPointOutput');
16             class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateLoadBalancerResult');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::ELB::CreateLoadBalancer - Arguments for method CreateLoadBalancer on Paws::ELB
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method CreateLoadBalancer on the
28             Elastic Load Balancing service. Use the attributes of this class
29             as arguments to method CreateLoadBalancer.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLoadBalancer.
32              
33             As an example:
34              
35             $service_obj->CreateLoadBalancer(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 AvailabilityZones => ArrayRef[Str|Undef]
43              
44             One or more Availability Zones from the same region as the load
45             balancer.
46              
47             You must specify at least one Availability Zone.
48              
49             You can add more Availability Zones after you create the load balancer
50             using EnableAvailabilityZonesForLoadBalancer.
51              
52              
53              
54             =head2 B<REQUIRED> Listeners => ArrayRef[L<Paws::ELB::Listener>]
55              
56             The listeners.
57              
58             For more information, see Listeners for Your Classic Load Balancer in
59             the I<Classic Load Balancer Guide>.
60              
61              
62              
63             =head2 B<REQUIRED> LoadBalancerName => Str
64              
65             The name of the load balancer.
66              
67             This name must be unique within your set of load balancers for the
68             region, must have a maximum of 32 characters, must contain only
69             alphanumeric characters or hyphens, and cannot begin or end with a
70             hyphen.
71              
72              
73              
74             =head2 Scheme => Str
75              
76             The type of a load balancer. Valid only for load balancers in a VPC.
77              
78             By default, Elastic Load Balancing creates an Internet-facing load
79             balancer with a DNS name that resolves to public IP addresses. For more
80             information about Internet-facing and Internal load balancers, see Load
81             Balancer Scheme in the I<Elastic Load Balancing User Guide>.
82              
83             Specify C<internal> to create a load balancer with a DNS name that
84             resolves to private IP addresses.
85              
86              
87              
88             =head2 SecurityGroups => ArrayRef[Str|Undef]
89              
90             The IDs of the security groups to assign to the load balancer.
91              
92              
93              
94             =head2 Subnets => ArrayRef[Str|Undef]
95              
96             The IDs of the subnets in your VPC to attach to the load balancer.
97             Specify one subnet per Availability Zone specified in
98             C<AvailabilityZones>.
99              
100              
101              
102             =head2 Tags => ArrayRef[L<Paws::ELB::Tag>]
103              
104             A list of tags to assign to the load balancer.
105              
106             For more information about tagging your load balancer, see Tag Your
107             Classic Load Balancer in the I<Classic Load Balancer Guide>.
108              
109              
110              
111              
112             =head1 SEE ALSO
113              
114             This class forms part of L<Paws>, documenting arguments for method CreateLoadBalancer in L<Paws::ELB>
115              
116             =head1 BUGS and CONTRIBUTIONS
117              
118             The source code is located here: https://github.com/pplu/aws-sdk-perl
119              
120             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
121              
122             =cut
123