GetResourcePolicyRequest
¶
Source code in docs_src/capo_secrets_manager/types/get_resource_policy_request.py
policy_name
instance-attribute
¶
policy_name: NotRequired[ResourcePolicyNameType]
The name of the resource policy to retrieve. If you don't specify this field, Secrets Manager uses default. If you specify a name other than default and no policy with that name exists, the operation returns a ResourceNotFoundException.
secret_id
instance-attribute
¶
secret_id: SecretIdType
The ARN or name of the secret to retrieve the attached resource-based policy for.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.