Skip to content

Get Resource Policy

paymentcryptographycontrolplane_get_resource_policy R Documentation

Returns the resource-based policy attached to an Amazon Web Services Payment Cryptography key

Description

Returns the resource-based policy attached to an Amazon Web Services Payment Cryptography key.

Cross-account use: This operation can't be used across different Amazon Web Services accounts.

Related operations:

  • put_resource_policy

  • delete_resource_policy

Usage

paymentcryptographycontrolplane_get_resource_policy(ResourceArn)

Arguments

ResourceArn

[required] The KeyARN of the key whose resource-based policy you want to retrieve.

Value

A list with the following syntax:

list(
  ResourceArn = "string",
  Policy = "string"
)

Request syntax

svc$get_resource_policy(
  ResourceArn = "string"
)