File Coverage

blib/lib/Paws/ELBv2/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::ELBv2::CreateLoadBalancer;
3 1     1   475 use Moose;
  1         2  
  1         7  
4             has IpAddressType => (is => 'ro', isa => 'Str');
5             has Name => (is => 'ro', isa => 'Str', required => 1);
6             has Scheme => (is => 'ro', isa => 'Str');
7             has SecurityGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
8             has Subnets => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
9             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::Tag]');
10              
11 1     1   6673 use MooseX::ClassAttribute;
  1         2  
  1         10  
12              
13             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLoadBalancer');
14             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::CreateLoadBalancerOutput');
15             class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateLoadBalancerResult');
16             1;
17              
18             ### main pod documentation begin ###
19              
20             =head1 NAME
21              
22             Paws::ELBv2::CreateLoadBalancer - Arguments for method CreateLoadBalancer on Paws::ELBv2
23              
24             =head1 DESCRIPTION
25              
26             This class represents the parameters used for calling the method CreateLoadBalancer on the
27             Elastic Load Balancing service. Use the attributes of this class
28             as arguments to method CreateLoadBalancer.
29              
30             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLoadBalancer.
31              
32             As an example:
33              
34             $service_obj->CreateLoadBalancer(Att1 => $value1, Att2 => $value2, ...);
35              
36             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.
37              
38             =head1 ATTRIBUTES
39              
40              
41             =head2 IpAddressType => Str
42              
43             The type of IP addresses used by the subnets for your load balancer.
44             The possible values are C<ipv4> (for IPv4 addresses) and C<dualstack>
45             (for IPv4 and IPv6 addresses). Internal load balancers must use
46             C<ipv4>.
47              
48             Valid values are: C<"ipv4">, C<"dualstack">
49              
50             =head2 B<REQUIRED> Name => Str
51              
52             The name of the load balancer.
53              
54             This name must be unique per region per account, can have a maximum of
55             32 characters, must contain only alphanumeric characters or hyphens,
56             and must not begin or end with a hyphen.
57              
58              
59              
60             =head2 Scheme => Str
61              
62             The nodes of an Internet-facing load balancer have public IP addresses.
63             The DNS name of an Internet-facing load balancer is publicly resolvable
64             to the public IP addresses of the nodes. Therefore, Internet-facing
65             load balancers can route requests from clients over the Internet.
66              
67             The nodes of an internal load balancer have only private IP addresses.
68             The DNS name of an internal load balancer is publicly resolvable to the
69             private IP addresses of the nodes. Therefore, internal load balancers
70             can only route requests from clients with access to the VPC for the
71             load balancer.
72              
73             The default is an Internet-facing load balancer.
74              
75             Valid values are: C<"internet-facing">, C<"internal">
76              
77             =head2 SecurityGroups => ArrayRef[Str|Undef]
78              
79             The IDs of the security groups to assign to the load balancer.
80              
81              
82              
83             =head2 B<REQUIRED> Subnets => ArrayRef[Str|Undef]
84              
85             The IDs of the subnets to attach to the load balancer. You can specify
86             only one subnet per Availability Zone. You must specify subnets from at
87             least two Availability Zones.
88              
89              
90              
91             =head2 Tags => ArrayRef[L<Paws::ELBv2::Tag>]
92              
93             One or more tags to assign to the load balancer.
94              
95              
96              
97              
98             =head1 SEE ALSO
99              
100             This class forms part of L<Paws>, documenting arguments for method CreateLoadBalancer in L<Paws::ELBv2>
101              
102             =head1 BUGS and CONTRIBUTIONS
103              
104             The source code is located here: https://github.com/pplu/aws-sdk-perl
105              
106             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
107              
108             =cut
109