Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(960)

Unified Diff: third_party/boto/boto/cloudformation/stack.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/boto/boto/cloudformation/stack.py
===================================================================
--- third_party/boto/boto/cloudformation/stack.py (revision 33376)
+++ third_party/boto/boto/cloudformation/stack.py (working copy)
@@ -107,7 +107,36 @@
def get_template(self):
return self.connection.get_template(stack_name_or_id=self.stack_id)
+ def get_policy(self):
+ """
+ Returns the stack policy for this stack. If it has no policy
+ then, a null value is returned.
+ """
+ return self.connection.get_stack_policy(self.stack_id)
+ def set_policy(self, stack_policy_body=None, stack_policy_url=None):
+ """
+ Sets a stack policy for this stack.
+
+ :type stack_policy_body: string
+ :param stack_policy_body: Structure containing the stack policy body.
+ (For more information, go to ` Prevent Updates to Stack Resources`_
+ in the AWS CloudFormation User Guide.)
+ You must pass `StackPolicyBody` or `StackPolicyURL`. If both are
+ passed, only `StackPolicyBody` is used.
+
+ :type stack_policy_url: string
+ :param stack_policy_url: Location of a file containing the stack
+ policy. The URL must point to a policy (max size: 16KB) located in
+ an S3 bucket in the same region as the stack. You must pass
+ `StackPolicyBody` or `StackPolicyURL`. If both are passed, only
+ `StackPolicyBody` is used.
+ """
+ return self.connection.set_stack_policy(self.stack_id,
+ stack_policy_body=stack_policy_body,
+ stack_policy_url=stack_policy_url)
+
+
class StackSummary(object):
def __init__(self, connection=None):
self.connection = connection
« no previous file with comments | « third_party/boto/boto/cloudformation/connection.py ('k') | third_party/boto/boto/cloudformation/template.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698