View source: R/secrets_manager.R
aws_secrets_delete | R Documentation |
Delete a secret
aws_secrets_delete(id, ...)
id |
(character) The name or ARN of the secret. required |
... |
further named parameters passed on to |
(list) with fields:
ARN
Name
DeletionDate
try({
# Create a secret
secret <- random_string("secret-", size = 16)
aws_secrets_create(
name = secret,
secret = '{"username":"jill","password":"cow"}',
description = "The fox jumped over the cow"
)
# Delete a secret
aws_secrets_delete(id = secret, ForceDeleteWithoutRecovery = TRUE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.