Attaches or replaces a resource-based policy on an Amazon Web Services Payment Cryptography key¶
Description¶
Attaches or replaces a resource-based policy on an Amazon Web Services Payment Cryptography key. A resource-based policy can grant cross-account access to your key.
If the policy would grant public access, the request fails with a PublicPolicyException.
To remove a resource-based policy from a key, use delete_resource_policy.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
Usage¶
Arguments¶
-
ResourceArn[required] The
KeyARNof the key to attach the resource-based policy to. -
Policy[required] The resource-based policy to attach to the key, in JSON format.
Value¶
A list with the following syntax: