{ "uuid": "6aec1159-ab42-4843-a36f-2125513ea20f", "lastMigration": 29, "name": "AWS Secrets Manager", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "41fe0801-b1a7-4672-8732-d692d410154f", "documentation": "

Disables automatic scheduled rotation and cancels the rotation of a secret if currently in progress.

To re-enable scheduled rotation, call RotateSecret with AutomaticallyRotateAfterDays set to a value greater than 0. This immediately rotates your secret and then enables the automatic schedule.

If you cancel a rotation while in progress, it can leave the VersionStage labels in an unexpected state. Depending on the step of the rotation in progress, you might need to remove the staging label AWSPENDING from the partially created version, specified by the VersionId response value. You should also evaluate the partially rotated new version to see if it should be deleted, which you can do by removing all staging labels from the new version VersionStage field.

To successfully start a rotation, the staging label AWSPENDING must be in one of the following states:

If the staging label AWSPENDING attached to a different version than the version with AWSCURRENT then the attempt to rotate fails.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.CancelRotateSecret", "responses": [ { "uuid": "1cb02dfe-5592-48f9-8c05-d2f12673483a", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Name\": \"Name\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "27a23c43-6497-427d-a5ff-95fcd265bb48", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "191a304a-6e30-4a23-80d4-46bc5621e5f7", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "848c1000-e619-4e79-bdbe-22a04d097dce", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "330154e9-1827-4945-95c6-fd527c433560", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "aab5736f-cc1d-4bb2-aa7c-2e09188abe4b", "documentation": "

Creates a new secret. A secret in Secrets Manager consists of both the protected secret data and the important information needed to manage the secret.

Secrets Manager stores the encrypted secret data in one of a collection of \"versions\" associated with the secret. Each version contains a copy of the encrypted secret data. Each version is associated with one or more \"staging labels\" that identify where the version is in the rotation cycle. The SecretVersionsToStages field of the secret contains the mapping of staging labels to the active versions of the secret. Versions without a staging label are considered deprecated and not included in the list.

You provide the secret data to be encrypted by putting text in either the SecretString parameter or binary data in the SecretBinary parameter, but not both. If you include SecretString or SecretBinary then Secrets Manager also creates an initial secret version and automatically attaches the staging label AWSCURRENT to the new version.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.CreateSecret", "responses": [ { "uuid": "41855089-7d82-4343-96d2-3e6659280432", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Name\": \"MyTestDatabaseSecret\",\n \"VersionId\": \"EXAMPLE1-90ab-cdef-fedc-ba987SECRET1\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c362802c-b6ae-41a5-b230-230e42bb7820", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "804abde3-3b39-423a-9cf5-7a86d9de8cef", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "f49ee5ce-2d77-4300-aa23-fdecc77a469f", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "LimitExceededException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2a08fbc3-45a6-4553-9ebb-53ffb6eb6053", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "EncryptionFailure", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "bdca191c-81de-4714-bcd6-bc5c21f1381d", "body": "\"\"", "latency": 0, "statusCode": 484, "label": "ResourceExistsException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6f0b1b13-4c26-431a-be2b-fe619fe83875", "body": "\"\"", "latency": 0, "statusCode": 485, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3039d03d-361f-422a-8783-7d2953c1dad6", "body": "\"\"", "latency": 0, "statusCode": 486, "label": "MalformedPolicyDocumentException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "837bbfcb-d7a5-45c7-a530-ba8db39940d9", "body": "\"\"", "latency": 0, "statusCode": 487, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "66fc0041-ecd5-41fa-90bb-ddb877f19890", "body": "\"\"", "latency": 0, "statusCode": 488, "label": "PreconditionNotMetException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9b108750-9bad-4013-ab09-391e3819a5f5", "documentation": "

Deletes the resource-based permission policy attached to the secret.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.DeleteResourcePolicy", "responses": [ { "uuid": "c91b210f-6c24-491b-b611-ae9a701a7a90", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseMasterSecret-a1b2c3\",\n \"Name\": \"MyTestDatabaseSecret\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3ce66894-0a6b-46ca-9425-db58f2acee57", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e133aeb4-dca9-4b4d-acc6-0ec0472e138b", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6125bec3-9b84-4651-b2f5-2f018103dba7", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "48e88656-af3c-4cb0-8e9a-1892c402ba48", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e9c4a36e-7b03-4e89-b749-6fc0b584f1ad", "documentation": "

Deletes an entire secret and all of the versions. You can optionally include a recovery window during which you can restore the secret. If you don't specify a recovery window value, the operation defaults to 30 days. Secrets Manager attaches a DeletionDate stamp to the secret that specifies the end of the recovery window. At the end of the recovery window, Secrets Manager deletes the secret permanently.

At any time before recovery window ends, you can use RestoreSecret to remove the DeletionDate and cancel the deletion of the secret.

You cannot access the encrypted secret information in any secret scheduled for deletion. If you need to access that information, you must cancel the deletion with RestoreSecret and then retrieve the information.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.DeleteSecret", "responses": [ { "uuid": "31bb88cb-85a5-4260-81f8-06566ddc4e1d", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"DeletionDate\": \"1524085349.095\",\n \"Name\": \"MyTestDatabaseSecret\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "33301673-d1c0-4fb4-91cf-acf9dcb1833c", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9c074c8f-3c1e-4f46-8668-3998c47b8ceb", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6911ddf4-b34a-469f-abb1-48f17582642e", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "c45b7d83-0486-4788-b8a0-ee876dc26334", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "65da5531-a52b-4b05-acf5-1190f95329d5", "documentation": "

Retrieves the details of a secret. It does not include the encrypted fields. Secrets Manager only returns fields populated with a value in the response.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.DescribeSecret", "responses": [ { "uuid": "24f02f78-5af0-4def-b603-9f866c07453c", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Description\": \"My test database secret\",\n \"KmsKeyId\": \"arn:aws:kms:us-west-2:123456789012:key/EXAMPLE1-90ab-cdef-fedc-ba987KMSKEY1\",\n \"LastAccessedDate\": \"1523923200\",\n \"LastChangedDate\": 1523477145.729,\n \"LastRotatedDate\": 1525747253.72,\n \"Name\": \"MyTestDatabaseSecret\",\n \"RotationEnabled\": true,\n \"RotationLambdaARN\": \"arn:aws:lambda:us-west-2:123456789012:function:MyTestRotationLambda\",\n \"RotationRules\": {\n \"AutomaticallyAfterDays\": 30\n },\n \"Tags\": [\n {\n \"Key\": \"SecondTag\",\n \"Value\": \"AnotherValue\"\n },\n {\n \"Key\": \"FirstTag\",\n \"Value\": \"SomeValue\"\n }\n ],\n \"VersionIdsToStages\": {\n \"EXAMPLE1-90ab-cdef-fedc-ba987EXAMPLE\": [\n \"AWSPREVIOUS\"\n ],\n \"EXAMPLE2-90ab-cdef-fedc-ba987EXAMPLE\": [\n \"AWSCURRENT\"\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "d331b510-808c-43a3-9c2a-dfce4c96dc6a", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "65bf005c-d6b9-4fb3-92e0-67cd035372f8", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3cc6a033-2739-4a50-8cd5-f990084c841b", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6b84eb4e-c43b-4aed-8c14-14b871599522", "documentation": "

Generates a random password of the specified complexity. This operation is intended for use in the Lambda rotation function. Per best practice, we recommend that you specify the maximum length and include every character type that the system you are generating a password for can support.

Minimum permissions

To run this command, you must have the following permissions:

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.GetRandomPassword", "responses": [ { "uuid": "3cc2c6e8-5ce2-4ad6-91ff-05b07dac8710", "body": "{\n \"RandomPassword\": \"N+Z43a,>vx7j O8^*<8i3\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a7ae1d6d-104e-4a1a-bffe-73740affafd6", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "c03a15de-3bf8-4a1d-ad77-01fa794a1e10", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "f3b0a234-e6d8-4939-bab8-cd0215138943", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "61a1904a-82f5-4b44-9adc-0aad7e0ebf1d", "documentation": "

Retrieves the JSON text of the resource-based policy document attached to the specified secret. The JSON request string input and response output displays formatted code with white space and line breaks for better readability. Submit your input as a single line JSON string.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.GetResourcePolicy", "responses": [ { "uuid": "a3a65142-aa7a-4c4c-b2ea-345cf1e4944a", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Name\": \"MyTestDatabaseSecret\",\n \"ResourcePolicy\": \"{\\n\\\"Version\\\":\\\"2012-10-17\\\",\\n\\\"Statement\\\":[{\\n\\\"Effect\\\":\\\"Allow\\\",\\n\\\"Principal\\\":{\\n\\\"AWS\\\":\\\"arn:aws:iam::123456789012:root\\\"\\n},\\n\\\"Action\\\":\\\"secretsmanager:GetSecretValue\\\",\\n\\\"Resource\\\":\\\"*\\\"\\n}]\\n}\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f4ec3873-57f4-43f2-8cee-6475ff481f6f", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8368f670-0a32-4158-8bd5-a9bea4b09fbf", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "451ce333-4513-44b1-9eaa-2aa35f769a8b", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d6a229d1-ce1e-4228-a732-99a938f65c1c", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9d6dc5b5-54c2-4661-868f-207a1b8299a2", "documentation": "

Retrieves the contents of the encrypted fields SecretString or SecretBinary from the specified version of a secret, whichever contains content.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.GetSecretValue", "responses": [ { "uuid": "d840b80a-da86-4405-bc6b-f1a35f8921ae", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"CreatedDate\": 1523477145.713,\n \"Name\": \"MyTestDatabaseSecret\",\n \"SecretString\": \"{\\n \\\"username\\\":\\\"david\\\",\\n \\\"password\\\":\\\"BnQw&XDWgaEeT9XGTT29\\\"\\n}\\n\",\n \"VersionId\": \"EXAMPLE1-90ab-cdef-fedc-ba987SECRET1\",\n \"VersionStages\": [\n \"AWSPREVIOUS\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "1371625d-3cda-4fe6-a204-1e379c7d7877", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8a6b04f8-424c-4f52-9925-474a0903e82c", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "63cb3d38-89d3-4cde-93bb-f389398c02b4", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "db88b2dd-70ad-4c58-a534-f420dd91e82c", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "DecryptionFailure", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "498721b3-2aa3-496a-adee-4cde338015a6", "body": "\"\"", "latency": 0, "statusCode": 484, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9c707e1b-3876-4d12-bbf3-d59ca8eaae91", "documentation": "

Lists all of the versions attached to the specified secret. The output does not include the SecretString or SecretBinary fields. By default, the list includes only versions that have at least one staging label in VersionStage attached.

Always check the NextToken response parameter when calling any of the List* operations. These operations can occasionally return an empty or shorter than expected list of results even when there more results become available. When this happens, the NextToken response parameter contains a value to pass to the next call to the same API to request the next part of the list.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.ListSecretVersionIds", "responses": [ { "uuid": "7157b56a-931e-4167-a814-f77430ad3aca", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Name\": \"MyTestDatabaseSecret\",\n \"Versions\": [\n {\n \"CreatedDate\": 1523477145.713,\n \"VersionId\": \"EXAMPLE1-90ab-cdef-fedc-ba987EXAMPLE\",\n \"VersionStages\": [\n \"AWSPREVIOUS\"\n ]\n },\n {\n \"CreatedDate\": 1523486221.391,\n \"VersionId\": \"EXAMPLE2-90ab-cdef-fedc-ba987EXAMPLE\",\n \"VersionStages\": [\n \"AWSCURRENT\"\n ]\n },\n {\n \"CreatedDate\": 1511974462.36,\n \"VersionId\": \"EXAMPLE3-90ab-cdef-fedc-ba987EXAMPLE;\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "608181eb-59ee-47bd-8061-8d2c758d031e", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "InvalidNextTokenException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "1aa102f4-c99c-410b-ad2a-ca9407d3d70a", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "de4cecc5-30d9-4347-aa2d-3a1af5513083", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b65a910b-8f12-47e6-849f-47b86276e1f6", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7fffe94d-e14d-4186-be90-9da6bf9bd62b", "documentation": "

Lists all of the secrets that are stored by Secrets Manager in the Amazon Web Services account. To list the versions currently stored for a specific secret, use ListSecretVersionIds. The encrypted fields SecretString and SecretBinary are not included in the output. To get that information, call the GetSecretValue operation.

Always check the NextToken response parameter when calling any of the List* operations. These operations can occasionally return an empty or shorter than expected list of results even when there more results become available. When this happens, the NextToken response parameter contains a value to pass to the next call to the same API to request the next part of the list.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.ListSecrets", "responses": [ { "uuid": "de0e9c77-ca33-4e4c-aac1-1ac0bd29a3cb", "body": "{\n \"SecretList\": [\n {\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Description\": \"My test database secret\",\n \"LastChangedDate\": 1523477145.729,\n \"Name\": \"MyTestDatabaseSecret\",\n \"SecretVersionsToStages\": {\n \"EXAMPLE1-90ab-cdef-fedc-ba987EXAMPLE\": [\n \"AWSCURRENT\"\n ]\n }\n },\n {\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret1-d4e5f6\",\n \"Description\": \"Another secret created for a different database\",\n \"LastChangedDate\": 1523482025.685,\n \"Name\": \"MyTestDatabaseSecret1\",\n \"SecretVersionsToStages\": {\n \"EXAMPLE2-90ab-cdef-fedc-ba987EXAMPLE\": [\n \"AWSCURRENT\"\n ]\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "0ce99952-4b06-4286-8c67-754e07474fb4", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "fcaea17d-6f30-4c07-b06d-50128219b062", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidNextTokenException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "98750e77-4da2-49ec-b221-2ddaf8d09fcc", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2771c971-7510-4107-a22a-6067bf5a665a", "documentation": "

Attaches the contents of the specified resource-based permission policy to a secret. A resource-based policy is optional. Alternatively, you can use IAM identity-based policies that specify the secret's Amazon Resource Name (ARN) in the policy statement's Resources element. You can also use a combination of both identity-based and resource-based policies. The affected users and roles receive the permissions that are permitted by all of the relevant policies. For more information, see Using Resource-Based Policies for Amazon Web Services Secrets Manager. For the complete description of the Amazon Web Services policy syntax and grammar, see IAM JSON Policy Reference in the IAM User Guide.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.PutResourcePolicy", "responses": [ { "uuid": "5a6016ee-e90a-4c42-a8b3-4d934c97e171", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Name\": \"MyTestDatabaseSecret\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "d14a435c-ebf6-4d60-a937-3c5bc559678b", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "MalformedPolicyDocumentException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "33b87839-5c03-404a-8d47-ff7c24f23de1", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "52e71494-0803-4f32-b9e0-627ac941c97a", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ff3507ef-de6c-44e3-85bf-3364688229c0", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0327e19c-1c5a-473e-829d-a649fe7cc7ae", "body": "\"\"", "latency": 0, "statusCode": 484, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5d72446a-e561-4e9b-8a20-52634e6e1cca", "body": "\"\"", "latency": 0, "statusCode": 485, "label": "PublicPolicyException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "a4260a23-3a76-4de0-869b-1c4883a81993", "documentation": "

Stores a new encrypted secret value in the specified secret. To do this, the operation creates a new version and attaches it to the secret. The version can contain a new SecretString value or a new SecretBinary value. You can also specify the staging labels that are initially attached to the new version.

The Secrets Manager console uses only the SecretString field. To add binary data to a secret with the SecretBinary field you must use the Amazon Web Services CLI or one of the Amazon Web Services SDKs.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.PutSecretValue", "responses": [ { "uuid": "2e520851-9ff4-4f9e-811c-68496ad85c60", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Name\": \"MyTestDatabaseSecret\",\n \"VersionId\": \"EXAMPLE2-90ab-cdef-fedc-ba987EXAMPLE\",\n \"VersionStages\": [\n \"AWSCURRENT\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "0a208beb-b311-46e0-91c5-7eff79e6a6c3", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e613c402-3a42-41ac-b4b7-73075848fe2e", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "1d827f98-a264-468f-b15d-9b2832b15929", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "LimitExceededException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "59ebfd90-d200-426d-9e5b-4c948fe5d7cd", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "EncryptionFailure", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "02070474-878e-416c-b090-27db54defc2b", "body": "\"\"", "latency": 0, "statusCode": 484, "label": "ResourceExistsException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "1bfeed5e-0b41-4bb2-9030-d33706a133dc", "body": "\"\"", "latency": 0, "statusCode": 485, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "4af9bd73-c9b9-4077-886a-daea4659d33d", "body": "\"\"", "latency": 0, "statusCode": 486, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "bfe04cff-5cb1-4982-8fe2-fbca0d22a596", "documentation": "Remove regions from replication.", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.RemoveRegionsFromReplication", "responses": [ { "uuid": "fc393c38-a18a-470a-a756-9321a6030719", "body": "{\n \"ARN\": \"\",\n \"ReplicationStatus\": [\n {\n \"Region\": \"\",\n \"KmsKeyId\": \"\",\n \"Status\": \"\",\n \"StatusMessage\": \"\",\n \"LastAccessedDate\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "eb3b94a6-e446-4253-a507-16c1e50dc7ed", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a8a9649c-4c0f-45a2-9761-1f3ecac61291", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ba253148-edf6-4869-95d4-90590f37186e", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "84746026-e695-4227-854b-34d65de5952a", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9f58d471-8a02-47d2-884a-5c27dd6825f6", "documentation": "Converts an existing secret to a multi-Region secret and begins replication the secret to a list of new regions. ", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.ReplicateSecretToRegions", "responses": [ { "uuid": "9fea8604-a4e7-42c1-a1e7-9693c593a960", "body": "{\n \"ARN\": \"\",\n \"ReplicationStatus\": [\n {\n \"Region\": \"\",\n \"KmsKeyId\": \"\",\n \"Status\": \"\",\n \"StatusMessage\": \"\",\n \"LastAccessedDate\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "5846a84f-26e3-4013-9a19-7aeb5c059717", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "fca9ab41-8ce5-43f6-909b-a1128a251ecd", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b8d990d8-4612-41c1-8568-71e6eeccc237", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e9e1ec9d-8a9e-4ae5-9991-76afb32eb6b6", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "19747784-6c49-4c59-9f60-617c075dea58", "documentation": "

Cancels the scheduled deletion of a secret by removing the DeletedDate time stamp. This makes the secret accessible to query once again.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.RestoreSecret", "responses": [ { "uuid": "ee6e2f05-0492-4517-8dfb-942cd6114513", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Name\": \"MyTestDatabaseSecret\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3ddb0150-1804-4563-82f1-48a50acdbf9a", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "fc579628-780a-4aa1-a48b-8d2b570361cb", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e4a22bf4-de2e-4865-864f-46be749b2321", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "88e9d0ea-ac64-4aac-a2ce-9252f70a73aa", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0791c084-8754-48be-a638-56549735b782", "documentation": "

Configures and starts the asynchronous process of rotating this secret. If you include the configuration parameters, the operation sets those values for the secret and then immediately starts a rotation. If you do not include the configuration parameters, the operation starts a rotation with the values already stored in the secret. After the rotation completes, the protected service and its clients all use the new version of the secret.

This required configuration information includes the ARN of an Amazon Web Services Lambda function and optionally, the time between scheduled rotations. The Lambda rotation function creates a new version of the secret and creates or updates the credentials on the protected service to match. After testing the new credentials, the function marks the new secret with the staging label AWSCURRENT so that your clients all immediately begin to use the new version. For more information about rotating secrets and how to configure a Lambda function to rotate the secrets for your protected service, see Rotating Secrets in Amazon Web Services Secrets Manager in the Amazon Web Services Secrets Manager User Guide.

Secrets Manager schedules the next rotation when the previous one completes. Secrets Manager schedules the date by adding the rotation interval (number of days) to the actual date of the last rotation. The service chooses the hour within that 24-hour date window randomly. The minute is also chosen somewhat randomly, but weighted towards the top of the hour and influenced by a variety of factors that help distribute load.

The rotation function must end with the versions of the secret in one of two states:

If the AWSPENDING staging label is present but not attached to the same version as AWSCURRENT then any later invocation of RotateSecret assumes that a previous rotation request is still in progress and returns an error.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.RotateSecret", "responses": [ { "uuid": "ba71c96e-8cda-4107-ad29-4ad98dde87ac", "body": "{\n \"SecretARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"SecretName\": \"MyTestDatabaseSecret\",\n \"SecretVersionId\": \"EXAMPLE2-90ab-cdef-fedc-ba987SECRET2\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e53a1335-7578-49c2-9529-cc5dfd75503f", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9efda372-be46-40a9-90f3-a86969228d77", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d9e4d4aa-1059-47cd-80dc-4f7a16e09dbb", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "1536909f-8efd-4252-be36-3debafb20553", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "49001aef-f576-454a-a0cd-c7eb274c65ad", "documentation": "Removes the secret from replication and promotes the secret to a regional secret in the replica Region.", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.StopReplicationToReplica", "responses": [ { "uuid": "e7542ac3-cd01-4989-b44e-8d802a9d9ca6", "body": "{\n \"ARN\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ef2111fe-2aa3-4aa5-bc3d-cb1014fbb6f7", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "7ffa3387-eacf-428a-a003-5a38e7735a07", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b4f2a941-18cb-4934-9d89-7d5c42d2a4ea", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d9d95f5a-439f-4823-8dc0-d8323c9ba1d6", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9b3c3cf6-8c48-471c-923e-5501dacce5e6", "documentation": "

Attaches one or more tags, each consisting of a key name and a value, to the specified secret. Tags are part of the secret's overall metadata, and are not associated with any specific version of the secret. This operation only appends tags to the existing list of tags. To remove tags, you must use UntagResource.

The following basic restrictions apply to tags:

If you use tags as part of your security strategy, then adding or removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.TagResource", "responses": [ { "uuid": "0a7f50d3-7ec6-4fbf-9c9c-2495ef30eb78", "body": "", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "8c461349-0cb9-4beb-ae0d-07915534b65a", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d0147e31-44d4-4d0b-a917-02b97dfd37e0", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0014184a-5153-4f79-be69-1b20b22a17b0", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3cd892a3-3fdd-44f0-a7a9-6db1dc23669a", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "47b05ff1-7211-48eb-85e4-eca613be9f69", "documentation": "

Removes one or more tags from the specified secret.

This operation is idempotent. If a requested tag is not attached to the secret, no error is returned and the secret metadata is unchanged.

If you use tags as part of your security strategy, then removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.UntagResource", "responses": [ { "uuid": "20749013-5156-4f25-a94e-f71d457944d0", "body": "", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "36af1246-d3f3-46ac-ad8a-356a8b609c58", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "56680ef5-b513-4f72-8b5e-42c3cb69616b", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "7dc6e015-0b0e-44b6-9d6d-146c87eab2a5", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "88411e14-e5da-4cec-a52b-7c2635503cdf", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "92f08cd7-2380-46cd-8003-5b944944bff4", "documentation": "

Modifies many of the details of the specified secret. If you include a ClientRequestToken and either SecretString or SecretBinary then it also creates a new version attached to the secret.

To modify the rotation configuration of a secret, use RotateSecret instead.

The Secrets Manager console uses only the SecretString parameter and therefore limits you to encrypting and storing only a text string. To encrypt and store binary data as part of the version of a secret, you must use either the Amazon Web Services CLI or one of the Amazon Web Services SDKs.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.UpdateSecret", "responses": [ { "uuid": "b2dc1b07-b6a8-41f9-9e13-0365e08af951", "body": "{\n \"ARN\": \"aws:arn:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Name\": \"MyTestDatabaseSecret\",\n \"VersionId\": \"EXAMPLE1-90ab-cdef-fedc-ba987EXAMPLE\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ea129038-331d-4d8f-aa47-3ae25cda5ad9", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d4bad24b-86c2-44ce-b355-577980995ec3", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6bf0e49e-cd3b-4bb7-b5c4-3131bbee3da7", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "LimitExceededException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "f5e7c4fc-3836-4c0a-9a0f-a3cbfb91d91e", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "EncryptionFailure", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "26635707-349c-4def-9229-eff27eb1c756", "body": "\"\"", "latency": 0, "statusCode": 484, "label": "ResourceExistsException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5f88d601-f0a3-4c12-b05b-54b79d95e1a4", "body": "\"\"", "latency": 0, "statusCode": 485, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3c2c8c70-216f-4f16-a4ba-35d3166ab44a", "body": "\"\"", "latency": 0, "statusCode": 486, "label": "MalformedPolicyDocumentException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "57b2eea3-d07d-4e70-bfe4-6c41d15650d0", "body": "\"\"", "latency": 0, "statusCode": 487, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9d697f65-4920-49a2-8294-7258a170dbff", "body": "\"\"", "latency": 0, "statusCode": 488, "label": "PreconditionNotMetException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "3512984d-c036-4d90-90a1-5185b70eed21", "documentation": "

Modifies the staging labels attached to a version of a secret. Staging labels are used to track a version as it progresses through the secret rotation process. You can attach a staging label to only one version of a secret at a time. If a staging label to be added is already attached to another version, then it is moved--removed from the other version first and then attached to this one. For more information about staging labels, see Staging Labels in the Amazon Web Services Secrets Manager User Guide.

The staging labels that you specify in the VersionStage parameter are added to the existing list of staging labels--they don't replace it.

You can move the AWSCURRENT staging label to this version by including it in this call.

Whenever you move AWSCURRENT, Secrets Manager automatically moves the label AWSPREVIOUS to the version that AWSCURRENT was removed from.

If this action results in the last label being removed from a version, then the version is considered to be 'deprecated' and can be deleted by Secrets Manager.

Minimum permissions

To run this command, you must have the following permissions:

Related operations

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.UpdateSecretVersionStage", "responses": [ { "uuid": "dc8bacfb-0fb3-438f-a699-5ba1ad53e7a5", "body": "{\n \"ARN\": \"arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3\",\n \"Name\": \"MyTestDatabaseSecret\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f9329e1c-c54f-49fe-ae04-aa22f268b85e", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2236219b-7355-43cc-af86-b037fe2ee3dd", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "96aa7d36-6401-4a1e-a4b3-db74a65abdfc", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5ce4b824-e44f-4f77-a10b-cbadfdacfb79", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "LimitExceededException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "f298ad9d-083c-43c7-8638-05e044272e7d", "body": "\"\"", "latency": 0, "statusCode": 484, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "81b4427c-822e-430b-ab80-1836722f89fa", "documentation": "

Validates that the resource policy does not grant a wide range of IAM principals access to your secret. The JSON request string input and response output displays formatted code with white space and line breaks for better readability. Submit your input as a single line JSON string. A resource-based policy is optional for secrets.

The API performs three checks when validating the secret:

Minimum Permissions

You must have the permissions required to access the following APIs:

", "method": "post", "endpoint": "#X-Amz-Target=secretsmanager.ValidateResourcePolicy", "responses": [ { "uuid": "39979fd9-b5d1-4684-aa91-0c70ab927f41", "body": "{\n \"PolicyValidationPassed\": true,\n \"ValidationErrors\": []\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "746cc5d1-6219-4eb9-8f74-dd13ded97561", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "MalformedPolicyDocumentException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "c5b0bc0b-f9f7-468e-873a-f55b5b040005", "body": "\"\"", "latency": 0, "statusCode": 481, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2c392bf8-11d1-460b-811a-45d6cab7a136", "body": "\"\"", "latency": 0, "statusCode": 482, "label": "InvalidParameterException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "13927325-5844-4cd2-b8ce-3f86d2e0177a", "body": "\"\"", "latency": 0, "statusCode": 483, "label": "InternalServiceError", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "be278073-2ab1-4491-aa27-386f95e6eb3a", "body": "\"\"", "latency": 0, "statusCode": 484, "label": "InvalidRequestException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "41fe0801-b1a7-4672-8732-d692d410154f" }, { "type": "route", "uuid": "aab5736f-cc1d-4bb2-aa7c-2e09188abe4b" }, { "type": "route", "uuid": "9b108750-9bad-4013-ab09-391e3819a5f5" }, { "type": "route", "uuid": "e9c4a36e-7b03-4e89-b749-6fc0b584f1ad" }, { "type": "route", "uuid": "65da5531-a52b-4b05-acf5-1190f95329d5" }, { "type": "route", "uuid": "6b84eb4e-c43b-4aed-8c14-14b871599522" }, { "type": "route", "uuid": "61a1904a-82f5-4b44-9adc-0aad7e0ebf1d" }, { "type": "route", "uuid": "9d6dc5b5-54c2-4661-868f-207a1b8299a2" }, { "type": "route", "uuid": "9c707e1b-3876-4d12-bbf3-d59ca8eaae91" }, { "type": "route", "uuid": "7fffe94d-e14d-4186-be90-9da6bf9bd62b" }, { "type": "route", "uuid": "2771c971-7510-4107-a22a-6067bf5a665a" }, { "type": "route", "uuid": "a4260a23-3a76-4de0-869b-1c4883a81993" }, { "type": "route", "uuid": "bfe04cff-5cb1-4982-8fe2-fbca0d22a596" }, { "type": "route", "uuid": "9f58d471-8a02-47d2-884a-5c27dd6825f6" }, { "type": "route", "uuid": "19747784-6c49-4c59-9f60-617c075dea58" }, { "type": "route", "uuid": "0791c084-8754-48be-a638-56549735b782" }, { "type": "route", "uuid": "49001aef-f576-454a-a0cd-c7eb274c65ad" }, { "type": "route", "uuid": "9b3c3cf6-8c48-471c-923e-5501dacce5e6" }, { "type": "route", "uuid": "47b05ff1-7211-48eb-85e4-eca613be9f69" }, { "type": "route", "uuid": "92f08cd7-2380-46cd-8003-5b944944bff4" }, { "type": "route", "uuid": "3512984d-c036-4d90-90a1-5185b70eed21" }, { "type": "route", "uuid": "81b4427c-822e-430b-ab80-1836722f89fa" } ] }