Skip to content

PutResourcePolicyRequest

Source code in docs_src/capo_ssm/types/put_resource_policy_request.py
class PutResourcePolicyRequest(TypedDict, closed=True):
    resource_arn: "capo_ssm.types.resource_arn_string.ResourceArnString"
    """<p>Amazon Resource Name (ARN) of the resource to which you want to attach a policy.</p>"""
    policy: "capo_ssm.types.policy.Policy"
    """<p>A policy you want to associate with a resource.</p>"""
    policy_id: NotRequired["capo_ssm.types.policy_id.PolicyId"]
    """<p>The policy ID.</p>"""
    policy_hash: NotRequired["capo_ssm.types.policy_hash.PolicyHash"]
    """<p>ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy. You must provide this hash when updating or deleting a policy.</p>"""

policy instance-attribute

policy: Policy

A policy you want to associate with a resource.

policy_hash instance-attribute

policy_hash: NotRequired[PolicyHash]

ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy. You must provide this hash when updating or deleting a policy.

policy_id instance-attribute

policy_id: NotRequired[PolicyId]

The policy ID.

resource_arn instance-attribute

resource_arn: ResourceArnString

Amazon Resource Name (ARN) of the resource to which you want to attach a policy.