Skip to content

SSMClient.delete_resource_policy

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): Deletes a Systems Manager resource policy. A resource policy helps you to define the IAM entity (for example, an Amazon Web Services account) that can manage your Systems Manager resources. The following resources support Systems Manager resource policies. OpsItemGroup - The resource policy for OpsItemGroup enables Amazon Web Services accounts to view and interact with OpsCenter operational...

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from rboto_ssm.types import (
    DeleteResourcePolicyOutput,
    DeletionMode,
)

Signature

async def delete_resource_policy(
    *,
    resource_arn: str,
    policy_id: str,
    policy_hash: str,
    deletion_mode: DeletionMode | None = None,
) -> DeleteResourcePolicyOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
resource_arn Yes Amazon Resource Name (ARN) of the resource to which the policies are attached.
policy_id Yes The policy ID.
policy_hash Yes ID of the current policy version. The hash helps to prevent multiple calls from attempting to overwrite a policy.
deletion_mode No 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...

Output

DeleteResourcePolicyOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

No fields.

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

DeleteResourcePolicyOutput, DeletionMode

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_ssm.exceptions:

InternalServerError, MalformedResourcePolicyDocumentError, ResourceNotFoundError, ResourcePolicyConflictError, ResourcePolicyInvalidParameterError, ResourcePolicyNotFoundError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model