blib/lib/Paws/ELBv2/SetSubnets.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ELBv2::SetSubnets;
3 use Moose;
4 has IpAddressType => (is => 'ro', isa => 'Str');
5 has LoadBalancerArn => (is => 'ro', isa => 'Str', required => 1);
6 has SubnetMappings => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::SubnetMapping]');
7 has Subnets => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'SetSubnets');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::SetSubnetsOutput');
13 class_has _result_key => (isa => 'Str', is => 'ro', default => 'SetSubnetsResult');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::ELBv2::SetSubnets - Arguments for method SetSubnets on L<Paws::ELBv2>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method SetSubnets on the
25 L<Elastic Load Balancing|Paws::ELBv2> service. Use the attributes of this class
26 as arguments to method SetSubnets.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SetSubnets.
29  
30 =head1 SYNOPSIS
31  
32 my $elasticloadbalancing = Paws->service('ELBv2');
33 # To enable Availability Zones for a load balancer
34 # This example enables the Availability Zones for the specified subnets for the
35 # specified load balancer.
36 my $SetSubnetsOutput = $elasticloadbalancing->SetSubnets(
37 'LoadBalancerArn' =>
38 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
39 'Subnets' => [ 'subnet-8360a9e7', 'subnet-b7d581c0' ]
40 );
41  
42 # Results:
43 my $AvailabilityZones = $SetSubnetsOutput->AvailabilityZones;
44  
45 # Returns a L<Paws::ELBv2::SetSubnetsOutput> object.
46  
47 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.
48 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/SetSubnets>
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 IpAddressType => Str
54  
55 [Network Load Balancers] The type of IP addresses used by the subnets
56 for your load balancer. The possible values are C<ipv4> (for IPv4
57 addresses) and C<dualstack> (for IPv4 and IPv6 addresses). You
58 canE<rsquo>t specify C<dualstack> for a load balancer with a UDP or
59 TCP_UDP listener. Internal load balancers must use C<ipv4>.
60  
61 Valid values are: C<"ipv4">, C<"dualstack">
62  
63 =head2 B<REQUIRED> LoadBalancerArn => Str
64  
65 The Amazon Resource Name (ARN) of the load balancer.
66  
67  
68  
69 =head2 SubnetMappings => ArrayRef[L<Paws::ELBv2::SubnetMapping>]
70  
71 The IDs of the public subnets. You can specify only one subnet per
72 Availability Zone. You must specify either subnets or subnet mappings.
73  
74 [Application Load Balancers] You must specify subnets from at least two
75 Availability Zones. You cannot specify Elastic IP addresses for your
76 subnets.
77  
78 [Application Load Balancers on Outposts] You must specify one Outpost
79 subnet.
80  
81 [Application Load Balancers on Local Zones] You can specify subnets
82 from one or more Local Zones.
83  
84 [Network Load Balancers] You can specify subnets from one or more
85 Availability Zones. You can specify one Elastic IP address per subnet
86 if you need static IP addresses for your internet-facing load balancer.
87 For internal load balancers, you can specify one private IP address per
88 subnet from the IPv4 range of the subnet. For internet-facing load
89 balancer, you can specify one IPv6 address per subnet.
90  
91  
92  
93 =head2 Subnets => ArrayRef[Str|Undef]
94  
95 The IDs of the public subnets. You can specify only one subnet per
96 Availability Zone. You must specify either subnets or subnet mappings.
97  
98 [Application Load Balancers] You must specify subnets from at least two
99 Availability Zones.
100  
101 [Application Load Balancers on Outposts] You must specify one Outpost
102 subnet.
103  
104 [Application Load Balancers on Local Zones] You can specify subnets
105 from one or more Local Zones.
106  
107 [Network Load Balancers] You can specify subnets from one or more
108 Availability Zones.
109  
110  
111  
112  
113 =head1 SEE ALSO
114  
115 This class forms part of L<Paws>, documenting arguments for method SetSubnets in L<Paws::ELBv2>
116  
117 =head1 BUGS and CONTRIBUTIONS
118  
119 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
120  
121 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
122  
123 =cut
124