summaryrefslogtreecommitdiff
path: root/boto/cloudformation/stack.py
diff options
context:
space:
mode:
authorMitch Garnaat <mitch@garnaat.com>2012-05-15 18:59:46 -0700
committerMitch Garnaat <mitch@garnaat.com>2012-05-15 18:59:46 -0700
commit1aa1133e8502ea6c95e49ac34681569df5ace46b (patch)
treea25397b20d7d409131ccfbfce5d4dca23d7e52a4 /boto/cloudformation/stack.py
parent911f42b97fdccbc55e160ec323df0cad6fe64c6b (diff)
parent6588ea270bfc9e0bb4d17263b72ee8b5255545c5 (diff)
downloadboto-2.4.0.tar.gz
Merge branch 'release-2.4.0'2.4.0
Diffstat (limited to 'boto/cloudformation/stack.py')
-rw-r--r--boto/cloudformation/stack.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/boto/cloudformation/stack.py b/boto/cloudformation/stack.py
index 8b9e1157..f65dd5a7 100644
--- a/boto/cloudformation/stack.py
+++ b/boto/cloudformation/stack.py
@@ -11,6 +11,7 @@ class Stack:
self.notification_arns = []
self.outputs = []
self.parameters = []
+ self.capabilities = []
self.stack_id = None
self.stack_status = None
self.stack_name = None
@@ -24,6 +25,9 @@ class Stack:
elif name == "Outputs":
self.outputs = ResultSet([('member', Output)])
return self.outputs
+ elif name == "Capabilities":
+ self.capabilities = ResultSet([('member', Capability)])
+ return self.capabilities
else:
return None
@@ -165,6 +169,20 @@ class Output:
def __repr__(self):
return "Output:\"%s\"=\"%s\"" % (self.key, self.value)
+class Capability:
+ def __init__(self, connection=None):
+ self.connection = None
+ self.value = None
+
+ def startElement(self, name, attrs, connection):
+ return None
+
+ def endElement(self, name, value, connection):
+ self.value = value
+
+ def __repr__(self):
+ return "Capability:\"%s\"" % (self.value)
+
class StackResource:
def __init__(self, connection=None):
self.connection = connection