Update a secret
Arguments
- id
(character) The name or ARN of the secret. required
- secret
(character/raw) The text or raw data to encrypt and store in this new version of the secret. AWS recommends for text to use a JSON structure of key/value pairs for your secret value (see examples below). required
- ...
further named parameters passed on to
put_secret_value
https://www.paws-r-sdk.com/docs/secretsmanager_put_secret_value/
Details
Note that we autogenerate a random UUID to pass to the
ClientRequestToken
parameter of the paws
function used internally
Examples
if (FALSE) { # \dontrun{
# Create a secret
aws_secrets_create(
name = "TheSecret",
secret = '{"username":"jane","password":"cat"}',
description = "A string"
)
aws_secrets_get("TheSecret")
# Update the secret
aws_secrets_update(
id = "TheSecret",
secret = '{"username":"jane","password":"kitten"}'
)
aws_secrets_get("TheSecret")
} # }