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