summaryrefslogtreecommitdiff
path: root/boto/ec2/volume.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/ec2/volume.py')
-rw-r--r--boto/ec2/volume.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/boto/ec2/volume.py b/boto/ec2/volume.py
index 95121fa8..c40062b3 100644
--- a/boto/ec2/volume.py
+++ b/boto/ec2/volume.py
@@ -44,6 +44,7 @@ class Volume(TaggedEC2Object):
:ivar type: The type of volume (standard or consistent-iops)
:ivar iops: If this volume is of type consistent-iops, this is
the number of IOPS provisioned (10-300).
+ :ivar encrypted: True if this volume is encrypted.
"""
def __init__(self, connection=None):
@@ -57,6 +58,7 @@ class Volume(TaggedEC2Object):
self.zone = None
self.type = None
self.iops = None
+ self.encrypted = None
def __repr__(self):
return 'Volume:%s' % self.id
@@ -92,6 +94,8 @@ class Volume(TaggedEC2Object):
self.type = value
elif name == 'iops':
self.iops = int(value)
+ elif name == 'encrypted':
+ self.encrypted = (value.lower() == 'true')
else:
setattr(self, name, value)