Skip to content

SetStackPolicyInput

Source code in docs_src/capo_cloudformation/types/set_stack_policy_input.py
class SetStackPolicyInput(TypedDict, closed=True):
    stack_name: NotRequired["capo_cloudformation.types.stack_name.StackName"]
    """<p>The name or unique stack ID that you want to associate a policy with.</p>"""
    stack_policy_body: NotRequired[
        "capo_cloudformation.types.stack_policy_body.StackPolicyBody"
    ]
    """<p>Structure that contains the stack policy body. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html">Prevent updates to stack resources</a> in the <i>CloudFormation User Guide</i>. You can specify either the <code>StackPolicyBody</code> or the <code>StackPolicyURL</code> parameter, but not both.</p>"""
    stack_policy_url: NotRequired[
        "capo_cloudformation.types.stack_policy_url.StackPolicyURL"
    ]
    """<p>Location of a file that contains the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an Amazon S3 bucket in the same Amazon Web Services Region as the stack. The location for an Amazon S3 bucket must start with <code>https://</code>. URLs from S3 static websites are not supported.</p> <p>You can specify either the <code>StackPolicyBody</code> or the <code>StackPolicyURL</code> parameter, but not both.</p>"""

stack_name instance-attribute

stack_name: NotRequired[StackName]

The name or unique stack ID that you want to associate a policy with.

stack_policy_body instance-attribute

stack_policy_body: NotRequired[StackPolicyBody]

Structure that contains the stack policy body. For more information, see Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

stack_policy_url instance-attribute

stack_policy_url: NotRequired[StackPolicyURL]

Location of a file that contains the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an Amazon S3 bucket in the same Amazon Web Services Region as the stack. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported.

You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.