« blib/lib/VM/EC2/ELB/Attributes/ConnectionDraining.pm
↑ Summary
blib/lib/VM/EC2/ELB/Attributes/CrossZoneLoadBalancing.pm »
| 1 | package VM::EC2::ELB::Attributes::ConnectionSettings; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | VM::EC2::ELB:Attributes::ConnectionSettings - Object describing the | ||
| 6 | ConnectionSettings attribute of an Elastic Load Balancer. | ||
| 7 | |||
| 8 | =head1 SYNOPSIS | ||
| 9 | |||
| 10 | use VM::EC2; | ||
| 11 | |||
| 12 | my $ec2 = VM::EC2->new(...); | ||
| 13 | my $lb = $ec2->describe_load_balancer_attributes('my-lb'); | ||
| 14 | my $conn_settings = $lb->ConnectionSettings; | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | This object is returned as part of the DescribeLoadBalancerAttributes API call. | ||
| 19 | |||
| 20 | =head1 METHODS | ||
| 21 | |||
| 22 | The following object methods are supported: | ||
| 23 | |||
| 24 | IdleTimeout -- Specifies the time (in seconds) the connection is | ||
| 25 | allowed to be idle (no data has been sent over the | ||
| 26 | connection) before it is closed by the load balancer. | ||
| 27 | |||
| 28 | =head1 STRING OVERLOADING | ||
| 29 | |||
| 30 | When used in a string context, this object will interpolate the | ||
| 31 | instance state. | ||
| 32 | |||
| 33 | =head1 SEE ALSO | ||
| 34 | |||
| 35 | L<VM::EC2> | ||
| 36 | L<VM::EC2::Generic> | ||
| 37 | L<VM::EC2::ELB> | ||
| 38 | |||
| 39 | =head1 AUTHOR | ||
| 40 | |||
| 41 | Lance Kinley E<lt>lkinley@loyaltymethods.comE<gt>. | ||
| 42 | |||
| 43 | Copyright (c) 2014 Loyalty Methods, Inc. | ||
| 44 | |||
| 45 | This package and its accompanying libraries is free software; you can | ||
| 46 | redistribute it and/or modify it under the terms of the GPL (either | ||
| 47 | version 1, or at your option, any later version) or the Artistic | ||
| 48 | License 2.0. Refer to LICENSE for the full license text. In addition, | ||
| 49 | please see DISCLAIMER.txt for disclaimers of warranty. | ||
| 50 | |||
| 51 | =cut | ||
| 52 | |||
| 53 | use strict; | ||
| 54 | use base 'VM::EC2::Generic'; | ||
| 55 | |||
| 56 | use overload | ||
| 57 | '""' => sub { | ||
| 58 | my $self = shift; | ||
| 59 | return "Connection Settings:\n Idle Timeout=" . $self->IdleTimeout}, | ||
| 60 | fallback => 1; | ||
| 61 | |||
| 62 | sub valid_fields { | ||
| 63 | my $self = shift; | ||
| 64 | return qw(IdleTimeout); | ||
| 65 | } | ||
| 66 | |||
| 67 | 1; |