CmdID / aws / aws secretsmanager
aws secretsmanager cancel-rotate-secret
Turns off automatic rotation, and if a rotation is currently in progress, cancels the rotation. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To turn off automatic rotation for a secret
The following cancel-rotate-secret example turns off automatic rotation for a secret. To resume rotation, call rotate-secret.
aws secretsmanager cancel-rotate-secret --secret-id MyTestSecretIdentify--secret-idThe ARN or name of the secret.Its output
{
"ARN": "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestSecret-a1b2c3",
"Name": "MyTestSecret"
}For more information, see Rotate a secret in the Secrets Manager User Guide.
Options
--secret-idThe ARN or name of the secret.