diff options
author | nevins-b <nbartolomeo@cashstar.com> | 2014-08-01 09:22:59 -0400 |
---|---|---|
committer | nevins-b <nbartolomeo@cashstar.com> | 2014-08-01 09:22:59 -0400 |
commit | d1d1e6aca29b1c32c4a35b423d7550881975646a (patch) | |
tree | 5df1a5b25f39ee6b568f8d28972c13f11ded223f /boto/ec2/elb | |
parent | 07d6424b22783adc2644e55fb0472cf7ceb454b0 (diff) | |
download | boto-d1d1e6aca29b1c32c4a35b423d7550881975646a.tar.gz |
adding ELB connection settings IdleTime attribute
Diffstat (limited to 'boto/ec2/elb')
-rw-r--r-- | boto/ec2/elb/attributes.py | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/boto/ec2/elb/attributes.py b/boto/ec2/elb/attributes.py index 05ca8f82..0212c8de 100644 --- a/boto/ec2/elb/attributes.py +++ b/boto/ec2/elb/attributes.py @@ -19,6 +19,24 @@ # # Created by Chris Huegle for TellApart, Inc. +class ConnectionSettingAttribute(object): + """ + Represents the ConnectionSetting segment of ELB Attributes. + """ + def __init__(self, connection=None): + self.idle_timeout = None + + def __repr__(self): + return 'ConnectionSettingAttribute(%s)' % ( + self.idle_timeout) + + def startElement(self, name, attrs, connection): + pass + + def endElement(self, name, value, connection): + if name == 'IdleTimeout': + self.idle_timeout = int(value) + class CrossZoneLoadBalancingAttribute(object): """ Represents the CrossZoneLoadBalancing segement of ELB Attributes. @@ -110,12 +128,14 @@ class LbAttributes(object): self.connection) self.access_log = AccessLogAttribute(self.connection) self.connection_draining = ConnectionDrainingAttribute(self.connection) + self.connecting_settings = ConnectionSettingAttribute(self.connection) def __repr__(self): - return 'LbAttributes(%s, %s, %s)' % ( + return 'LbAttributes(%s, %s, %s, %s)' % ( repr(self.cross_zone_load_balancing), repr(self.access_log), - repr(self.connection_draining)) + repr(self.connection_draining), + repr(self.connecting_settings)) def startElement(self, name, attrs, connection): if name == 'CrossZoneLoadBalancing': @@ -124,6 +144,8 @@ class LbAttributes(object): return self.access_log if name == 'ConnectionDraining': return self.connection_draining + if name == 'ConnectionSettings': + return self.connecting_settings def endElement(self, name, value, connection): pass |