Put Resource Policy
| paymentcryptographycontrolplane_put_resource_policy | R Documentation |
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:
-
get_resource_policy -
delete_resource_policy
Usage¶
paymentcryptographycontrolplane_put_resource_policy(ResourceArn, Policy)
Arguments¶
ResourceArn |
[required] The |
Policy |
[required] The resource-based policy to attach to the key, in JSON format. |
Value¶
A list with the following syntax:
list(
ResourceArn = "string",
Policy = "string"
)
Request syntax¶
svc$put_resource_policy(
ResourceArn = "string",
Policy = "string"
)