Skip to content

GetResourcePolicyRequest

Source code in docs_src/capo_secrets_manager/types/get_resource_policy_request.py
class GetResourcePolicyRequest(TypedDict, closed=True):
    secret_id: "capo_secrets_manager.types.secret_id_type.SecretIdType"
    """<p>The ARN or name of the secret to retrieve the attached resource-based policy for.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>"""
    policy_name: NotRequired[
        "capo_secrets_manager.types.resource_policy_name_type.ResourcePolicyNameType"
    ]
    """<p>The name of the resource policy to retrieve. If you don't specify this field, Secrets Manager uses <code>default</code>. If you specify a name other than <code>default</code> and no policy with that name exists, the operation returns a <code>ResourceNotFoundException</code>.</p>"""

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.