PutResourcePolicyRequest
¶
Source code in docs_src/capo_amp/types/put_resource_policy_request.py
client_token
instance-attribute
¶
client_token: NotRequired[IdempotencyToken]
A unique, case-sensitive identifier that you provide to ensure the request is safe to retry (idempotent).
policy_document
instance-attribute
¶
policy_document: str
The JSON policy document to use as the resource-based policy. This policy defines the permissions that other AWS accounts or services have to access your workspace.
revision_id
instance-attribute
¶
revision_id: NotRequired[str]
The revision ID of the policy to update. Use this parameter to ensure that you are updating the correct version of the policy. If you don't specify a revision ID, the policy is updated regardless of its current revision.
For the first PUT request on a workspace that doesn't have an existing resource policy, you can specify NO_POLICY as the revision ID.
workspace_id
instance-attribute
¶
workspace_id: WorkspaceId
The ID of the workspace to attach the resource-based policy to.