summaryrefslogtreecommitdiff
path: root/boto/ec2/instance.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/ec2/instance.py')
-rw-r--r--boto/ec2/instance.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/boto/ec2/instance.py b/boto/ec2/instance.py
index 30311e05..5be701f0 100644
--- a/boto/ec2/instance.py
+++ b/boto/ec2/instance.py
@@ -188,6 +188,8 @@ class Instance(TaggedEC2Object):
:ivar product_codes: A list of product codes associated with this instance.
:ivar ami_launch_index: This instances position within it's launch group.
:ivar monitored: A boolean indicating whether monitoring is enabled or not.
+ :ivar monitoring_state: A string value that contains the actual value
+ of the monitoring element returned by EC2.
:ivar spot_instance_request_id: The ID of the spot instance request
if this is a spot instance.
:ivar subnet_id: The VPC Subnet ID, if running in VPC.
@@ -223,6 +225,7 @@ class Instance(TaggedEC2Object):
self.product_codes = ProductCodes()
self.ami_launch_index = None
self.monitored = False
+ self.monitoring_state = None
self.spot_instance_request_id = None
self.subnet_id = None
self.vpc_id = None
@@ -361,6 +364,7 @@ class Instance(TaggedEC2Object):
self.ramdisk = value
elif name == 'state':
if self._in_monitoring_element:
+ self.monitoring_state = value
if value == 'enabled':
self.monitored = True
self._in_monitoring_element = False