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

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ELBv2::ModifyLoadBalancerAttributes;
3 use Moose;
4 has Attributes => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::LoadBalancerAttribute]', required => 1);
5 has LoadBalancerArn => (is => 'ro', isa => 'Str', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyLoadBalancerAttributes');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::ModifyLoadBalancerAttributesOutput');
11 class_has _result_key => (isa => 'Str', is => 'ro', default => 'ModifyLoadBalancerAttributesResult');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::ELBv2::ModifyLoadBalancerAttributes - Arguments for method ModifyLoadBalancerAttributes on L<Paws::ELBv2>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method ModifyLoadBalancerAttributes on the
23 L<Elastic Load Balancing|Paws::ELBv2> service. Use the attributes of this class
24 as arguments to method ModifyLoadBalancerAttributes.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyLoadBalancerAttributes.
27  
28 =head1 SYNOPSIS
29  
30 my $elasticloadbalancing = Paws->service('ELBv2');
31 # To enable deletion protection
32 # This example enables deletion protection for the specified load balancer.
33 my $ModifyLoadBalancerAttributesOutput =
34 $elasticloadbalancing->ModifyLoadBalancerAttributes(
35 'Attributes' => [
36  
37 {
38 'Key' => 'deletion_protection.enabled',
39 'Value' => 'true'
40 }
41 ],
42 'LoadBalancerArn' =>
43 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'
44 );
45  
46 # Results:
47 my $Attributes = $ModifyLoadBalancerAttributesOutput->Attributes;
48  
49 # Returns a L<Paws::ELBv2::ModifyLoadBalancerAttributesOutput> object.
50 # To change the idle timeout
51 # This example changes the idle timeout value for the specified load balancer.
52 my $ModifyLoadBalancerAttributesOutput =
53 $elasticloadbalancing->ModifyLoadBalancerAttributes(
54 'Attributes' => [
55  
56 {
57 'Key' => 'idle_timeout.timeout_seconds',
58 'Value' => 30
59 }
60 ],
61 'LoadBalancerArn' =>
62 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'
63 );
64  
65 # Results:
66 my $Attributes = $ModifyLoadBalancerAttributesOutput->Attributes;
67  
68 # Returns a L<Paws::ELBv2::ModifyLoadBalancerAttributesOutput> object.
69 # To enable access logs
70 # This example enables access logs for the specified load balancer. Note that
71 # the S3 bucket must exist in the same region as the load balancer and must have
72 # a policy attached that grants access to the Elastic Load Balancing service.
73 my $ModifyLoadBalancerAttributesOutput =
74 $elasticloadbalancing->ModifyLoadBalancerAttributes(
75 'Attributes' => [
76  
77 {
78 'Key' => 'access_logs.s3.enabled',
79 'Value' => 'true'
80 },
81  
82 {
83 'Key' => 'access_logs.s3.bucket',
84 'Value' => 'my-loadbalancer-logs'
85 },
86  
87 {
88 'Key' => 'access_logs.s3.prefix',
89 'Value' => 'myapp'
90 }
91 ],
92 'LoadBalancerArn' =>
93 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'
94 );
95  
96 # Results:
97 my $Attributes = $ModifyLoadBalancerAttributesOutput->Attributes;
98  
99 # Returns a L<Paws::ELBv2::ModifyLoadBalancerAttributesOutput> object.
100  
101 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.
102 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/ModifyLoadBalancerAttributes>
103  
104 =head1 ATTRIBUTES
105  
106  
107 =head2 B<REQUIRED> Attributes => ArrayRef[L<Paws::ELBv2::LoadBalancerAttribute>]
108  
109 The load balancer attributes.
110  
111  
112  
113 =head2 B<REQUIRED> LoadBalancerArn => Str
114  
115 The Amazon Resource Name (ARN) of the load balancer.
116  
117  
118  
119  
120 =head1 SEE ALSO
121  
122 This class forms part of L<Paws>, documenting arguments for method ModifyLoadBalancerAttributes in L<Paws::ELBv2>
123  
124 =head1 BUGS and CONTRIBUTIONS
125  
126 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
127  
128 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
129  
130 =cut
131