Skip to content

GetResourcePolicyResponse

Source code in docs_src/capo_secrets_manager/types/get_resource_policy_response.py
class GetResourcePolicyResponse(TypedDict, closed=True):
    arn: NotRequired["capo_secrets_manager.types.secret_arn_type.SecretARNType"]
    """<p>The ARN of the secret that the resource-based policy was retrieved for.</p>"""
    name: NotRequired["capo_secrets_manager.types.name_type.NameType"]
    """<p>The name of the secret that the resource-based policy was retrieved for.</p>"""
    resource_policy: NotRequired[
        "capo_secrets_manager.types.non_empty_resource_policy_type.NonEmptyResourcePolicyType"
    ]
    """<p>A JSON-formatted string that contains the permissions policy attached to the secret. For more information about permissions policies, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication and access control for Secrets Manager</a>.</p>"""
    policy_name: NotRequired[
        "capo_secrets_manager.types.resource_policy_name_type.ResourcePolicyNameType"
    ]
    """<p>The name of the resource policy. If you didn't specify <code>PolicyName</code> in the request, this is <code>default</code>.</p>"""

arn instance-attribute

arn: NotRequired[SecretARNType]

The ARN of the secret that the resource-based policy was retrieved for.

name instance-attribute

name: NotRequired[NameType]

The name of the secret that the resource-based policy was retrieved for.

policy_name instance-attribute

policy_name: NotRequired[ResourcePolicyNameType]

The name of the resource policy. If you didn't specify PolicyName in the request, this is default.

resource_policy instance-attribute

resource_policy: NotRequired[NonEmptyResourcePolicyType]

A JSON-formatted string that contains the permissions policy attached to the secret. For more information about permissions policies, see Authentication and access control for Secrets Manager.