Skip to content

Retrieves the resource policy document attached to a given resource

Description

Retrieves the resource policy document attached to a given resource.

Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.

Usage

cloudhsmv2_get_resource_policy(ResourceArn)

Arguments

  • ResourceArn

    Amazon Resource Name (ARN) of the resource to which a policy is attached.

Value

A list with the following syntax:

list(
  Policy = "string"
)

Request syntax

svc$get_resource_policy(
  ResourceArn = "string"
)