« blib/lib/Paws/ELB/LoadBalancerDescription.pm
↑ Summary
blib/lib/Paws/ELB/PolicyAttributeDescription.pm »
| 1 | |||
| 2 | package Paws::ELB::ModifyLoadBalancerAttributes; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has LoadBalancerAttributes => (is => 'ro', isa => 'Paws::ELB::LoadBalancerAttributes', required => 1); | |
| 5 | 1 | has LoadBalancerName => (is => 'ro', isa => 'Str', required => 1); | |
| 6 | |||
| 7 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyLoadBalancerAttributes'); | |
| 10 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELB::ModifyLoadBalancerAttributesOutput'); | |
| 11 | 1 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'ModifyLoadBalancerAttributesResult'); | |
| 12 | 1 | 1; | |
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::ELB::ModifyLoadBalancerAttributes - Arguments for method ModifyLoadBalancerAttributes on L<Paws::ELB> | ||
| 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::ELB> 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('ELB'); | ||
| 31 | # To enable cross-zone load balancing | ||
| 32 | # This example enables cross-zone load balancing for the specified load | ||
| 33 | # balancer. | ||
| 34 | my $ModifyLoadBalancerAttributesOutput = | ||
| 35 | $elasticloadbalancing->ModifyLoadBalancerAttributes( | ||
| 36 | 'LoadBalancerAttributes' => { | ||
| 37 | 'CrossZoneLoadBalancing' => { | ||
| 38 | 'Enabled' => 1 | ||
| 39 | } | ||
| 40 | }, | ||
| 41 | 'LoadBalancerName' => 'my-load-balancer' | ||
| 42 | ); | ||
| 43 | |||
| 44 | # Results: | ||
| 45 | my $LoadBalancerAttributes = | ||
| 46 | $ModifyLoadBalancerAttributesOutput->LoadBalancerAttributes; | ||
| 47 | my $LoadBalancerName = | ||
| 48 | $ModifyLoadBalancerAttributesOutput->LoadBalancerName; | ||
| 49 | |||
| 50 | # Returns a L<Paws::ELB::ModifyLoadBalancerAttributesOutput> object. | ||
| 51 | # To enable connection draining | ||
| 52 | # This example enables connection draining for the specified load balancer. | ||
| 53 | my $ModifyLoadBalancerAttributesOutput = | ||
| 54 | $elasticloadbalancing->ModifyLoadBalancerAttributes( | ||
| 55 | 'LoadBalancerAttributes' => { | ||
| 56 | 'ConnectionDraining' => { | ||
| 57 | 'Enabled' => 1, | ||
| 58 | 'Timeout' => 300 | ||
| 59 | } | ||
| 60 | }, | ||
| 61 | 'LoadBalancerName' => 'my-load-balancer' | ||
| 62 | ); | ||
| 63 | |||
| 64 | # Results: | ||
| 65 | my $LoadBalancerAttributes = | ||
| 66 | $ModifyLoadBalancerAttributesOutput->LoadBalancerAttributes; | ||
| 67 | my $LoadBalancerName = | ||
| 68 | $ModifyLoadBalancerAttributesOutput->LoadBalancerName; | ||
| 69 | |||
| 70 | # Returns a L<Paws::ELB::ModifyLoadBalancerAttributesOutput> object. | ||
| 71 | |||
| 72 | 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. | ||
| 73 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/ModifyLoadBalancerAttributes> | ||
| 74 | |||
| 75 | =head1 ATTRIBUTES | ||
| 76 | |||
| 77 | |||
| 78 | =head2 B<REQUIRED> LoadBalancerAttributes => L<Paws::ELB::LoadBalancerAttributes> | ||
| 79 | |||
| 80 | The attributes for the load balancer. | ||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | =head2 B<REQUIRED> LoadBalancerName => Str | ||
| 85 | |||
| 86 | The name of the load balancer. | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head1 SEE ALSO | ||
| 92 | |||
| 93 | This class forms part of L<Paws>, documenting arguments for method ModifyLoadBalancerAttributes in L<Paws::ELB> | ||
| 94 | |||
| 95 | =head1 BUGS and CONTRIBUTIONS | ||
| 96 | |||
| 97 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 98 | |||
| 99 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 100 | |||
| 101 | =cut | ||
| 102 | |||