Skip to content

PutResourcePolicyRequest

Source code in docs_src/capo_cloudhsm_v2/types/put_resource_policy_request.py
class PutResourcePolicyRequest(TypedDict, closed=True):
    resource_arn: NotRequired["capo_cloudhsm_v2.types.cloud_hsm_arn.CloudHsmArn"]
    """<p>Amazon Resource Name (ARN) of the resource to which you want to attach a policy. </p>"""
    policy: NotRequired["capo_cloudhsm_v2.types.resource_policy.ResourcePolicy"]
    """<p>The policy you want to associate with a resource. </p> <p>For an example policy, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/sharing.html"> Working with shared backups</a> in the CloudHSM User Guide</p>"""

policy instance-attribute

policy: NotRequired[ResourcePolicy]

The policy you want to associate with a resource.

For an example policy, see Working with shared backups in the CloudHSM User Guide

resource_arn instance-attribute

resource_arn: NotRequired[CloudHsmArn]

Amazon Resource Name (ARN) of the resource to which you want to attach a policy.