View source: R/kms_operations.R
kms_put_key_policy | R Documentation |
Attaches a key policy to the specified KMS key.
See https://www.paws-r-sdk.com/docs/kms_put_key_policy/ for full documentation.
kms_put_key_policy(
KeyId,
PolicyName = NULL,
Policy,
BypassPolicyLockoutSafetyCheck = NULL
)
KeyId |
[required] Sets the key policy on the specified KMS key. Specify the key ID or key ARN of the KMS key. For example:
To get the key ID and key ARN for a KMS key, use
|
PolicyName |
The name of the key policy. If no policy name is specified, the default
value is |
Policy |
[required] The key policy to attach to the KMS key. The key policy must meet the following criteria:
A key policy document can include only the following characters:
For information about key policies, see Key policies in KMS in the Key Management Service Developer Guide.For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the Identity and Access Management User Guide . |
BypassPolicyLockoutSafetyCheck |
Skips ("bypasses") the key policy lockout safety check. The default value is false. Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. For more information, see Default key policy in the Key Management Service Developer Guide. Use this parameter only when you intend to prevent the principal that is
making the request from making a subsequent
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.