Skip to content

DeleteResourcePolicyRequest

Source code in docs_src/capo_ssm/types/delete_resource_policy_request.py
class DeleteResourcePolicyRequest(TypedDict, closed=True):
    resource_arn: "capo_ssm.types.resource_arn_string.ResourceArnString"
    """<p>Amazon Resource Name (ARN) of the resource to which the policies are attached.</p>"""
    policy_id: "capo_ssm.types.policy_id.PolicyId"
    """<p>The policy ID.</p>"""
    policy_hash: "capo_ssm.types.policy_hash.PolicyHash"
    """<p>ID of the current policy version. The hash helps to prevent multiple calls from attempting to overwrite a policy.</p>"""
    deletion_mode: NotRequired["capo_ssm.types.deletion_mode.DeletionMode"]
    """<p>Specifies the intended outcome of the operation. Applies only to the <code>Document</code> resource type. The operation ignores this parameter for other resource types. Optional. Defaults to <code>RemoveSharing</code>.</p> <ul> <li> <p> <code>RemoveSharing</code> – Deletes the resource policy and removes sharing of the document.</p> </li> <li> <p> <code>RollbackMigration</code> – Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.</p> </li> </ul>"""

deletion_mode instance-attribute

deletion_mode: NotRequired[DeletionMode]

Specifies the intended outcome of the operation. Applies only to the Document resource type. The operation ignores this parameter for other resource types. Optional. Defaults to RemoveSharing.

  • RemoveSharing – Deletes the resource policy and removes sharing of the document.

  • RollbackMigration – Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.

policy_hash instance-attribute

policy_hash: PolicyHash

ID of the current policy version. The hash helps to prevent multiple calls from attempting to overwrite a policy.

policy_id instance-attribute

policy_id: PolicyId

The policy ID.

resource_arn instance-attribute

resource_arn: ResourceArnString

Amazon Resource Name (ARN) of the resource to which the policies are attached.