{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.secretsmanager#AddReplicaRegionListType": { "type": "list", "member": { "target": "com.amazonaws.secretsmanager#ReplicaRegionType" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.secretsmanager#AutomaticallyRotateAfterDaysType": { "type": "long", "traits": { "smithy.api#range": { "min": 1, "max": 1000 } } }, "com.amazonaws.secretsmanager#BooleanType": { "type": "boolean" }, "com.amazonaws.secretsmanager#CancelRotateSecret": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#CancelRotateSecretRequest" }, "output": { "target": "com.amazonaws.secretsmanager#CancelRotateSecretResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "
Disables automatic scheduled rotation and cancels the rotation of a secret if currently in\n progress.
\nTo re-enable scheduled rotation, call RotateSecret with\n AutomaticallyRotateAfterDays
set to a value greater than 0. This immediately\n rotates your secret and then enables the automatic schedule.
If you cancel a rotation while in progress, it can leave the VersionStage
\n labels in an unexpected state. Depending on the step of the rotation in progress, you might\n need to remove the staging label AWSPENDING
from the partially created version, specified\n by the VersionId
response value. You should also evaluate the partially rotated\n new version to see if it should be deleted, which you can do by removing all staging labels\n from the new version VersionStage
field.
To successfully start a rotation, the staging label AWSPENDING
must be in one of the\n following states:
Not attached to any version at all
\nAttached to the same version as the staging label AWSCURRENT
\n
If the staging label AWSPENDING
attached to a different version than the version with\n AWSCURRENT
then the attempt to rotate fails.
\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:CancelRotateSecret
\n\n Related operations\n
\nTo configure rotation for a secret or to manually trigger a rotation, use RotateSecret.
\nTo get the rotation configuration details for a secret, use DescribeSecret.
\nTo list all of the currently available secrets, use ListSecrets.
\nTo list all of the versions currently associated with a secret, use ListSecretVersionIds.
\nSpecifies the secret to cancel a rotation request. You can specify either the Amazon\n Resource Name (ARN) or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nThe ARN of the secret for which rotation was canceled.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#SecretNameType", "traits": { "smithy.api#documentation": "The friendly name of the secret for which rotation was canceled.
" } }, "VersionId": { "target": "com.amazonaws.secretsmanager#SecretVersionIdType", "traits": { "smithy.api#documentation": "The unique identifier of the version of the secret created during the rotation. This\n version might not be complete, and should be evaluated for possible deletion. At the very\n least, you should remove the VersionStage
value AWSPENDING
to enable this\n version to be deleted. Failing to clean up a cancelled rotation can block you from\n successfully starting future rotations.
Creates a new secret. A secret in Secrets Manager consists of both the protected secret data and the\n important information needed to manage the secret.
\nSecrets Manager stores the encrypted secret data in one of a collection of \"versions\"\n associated with the secret. Each version contains a copy of the encrypted secret data. Each\n version is associated with one or more \"staging labels\" that identify where the version is in\n the rotation cycle. The SecretVersionsToStages
field of the secret contains the\n mapping of staging labels to the active versions of the secret. Versions without a staging\n label are considered deprecated and not included in the list.
You provide the secret data to be encrypted by putting text in either the\n SecretString
parameter or binary data in the SecretBinary
\n parameter, but not both. If you include SecretString
or SecretBinary
\n then Secrets Manager also creates an initial secret version and automatically attaches the staging\n label AWSCURRENT
to the new version.
If you call an operation to encrypt or decrypt the SecretString
\n or SecretBinary
for a secret in the same account as the calling user and that \n secret doesn't specify a AWS KMS encryption key, Secrets Manager uses the account's default \n AWS managed customer master key (CMK) with the alias aws/secretsmanager
. If this key \n doesn't already exist in your account then Secrets Manager creates it for you automatically. All\n users and roles in the same AWS account automatically have access to use the default CMK. \n Note that if an Secrets Manager API call results in AWS creating the account's \n AWS-managed CMK, it can result in a one-time significant delay in returning the \n result.
If the secret resides in a different AWS account from the credentials calling an API that \n requires encryption or decryption of the secret value then you must create and use a custom \n AWS KMS CMK because you can't access the default CMK for the account using credentials \n from a different AWS account. Store the ARN of the CMK in the secret when you create the \n secret or when you update it by including it in the KMSKeyId
. If you call an \n API that must encrypt or decrypt SecretString
or SecretBinary
\n using credentials from a different account then the AWS KMS key policy must grant cross-account\n access to that other account's user or role for both the kms:GenerateDataKey and \n kms:Decrypt operations.
\n
\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:CreateSecret
\nkms:GenerateDataKey - needed only if you use a customer-managed AWS KMS key to encrypt\n the secret. You do not need this permission to use the account default AWS managed CMK\n for Secrets Manager.
\nkms:Decrypt - needed only if you use a customer-managed AWS KMS key to encrypt the\n secret. You do not need this permission to use the account default AWS managed CMK for\n Secrets Manager.
\nsecretsmanager:TagResource - needed only if you include the Tags
\n parameter.
\n Related operations\n
\nTo delete a secret, use DeleteSecret.
\nTo modify an existing secret, use UpdateSecret.
\nTo create a new version of a secret, use PutSecretValue.
\nTo retrieve the encrypted secure string and secure binary values, use GetSecretValue.
\nTo retrieve all other details for a secret, use DescribeSecret. This\n does not include the encrypted secure string and secure binary values.
\nTo retrieve the list of secret versions associated with the current secret, use DescribeSecret and examine the SecretVersionsToStages
response\n value.
Specifies the friendly name of the new secret.
\nThe secret name must be ASCII letters, digits, or the following characters :\n /_+=.@-
\nDo not end your secret name with a hyphen followed by six characters. If you do so, you\n risk confusion and unexpected results when searching for a secret by partial ARN. Secrets Manager\n automatically adds a hyphen and six random characters at the end of the ARN.
\n(Optional) If you include SecretString
or SecretBinary
, then an\n initial version is created as part of the secret, and this parameter specifies a unique\n identifier for the new version.
If you use the AWS CLI or one of the AWS SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it\n as the value for this parameter in the request. If you don't use the SDK and instead\n generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a\n ClientRequestToken
yourself for the new version and include the value in the\n request.
This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental\n creation of duplicate versions if there are failures and retries during a rotation. We\n recommend that you generate a UUID-type value to\n ensure uniqueness of your versions within the specified secret.
\nIf the ClientRequestToken
value isn't already associated with a version\n of the secret then a new version of the secret is created.
If a version with this value already exists and the version SecretString
\n and SecretBinary
values are the same as those in the request, then the\n request is ignored.
If a version with this value already exists and that version's\n SecretString
and SecretBinary
values are different from those\n in the request, then the request fails because you cannot modify an existing version.\n Instead, use PutSecretValue to create a new version.
This value becomes the VersionId
of the new version.
(Optional) Specifies a user-provided description of the secret.
" } }, "KmsKeyId": { "target": "com.amazonaws.secretsmanager#KmsKeyIdType", "traits": { "smithy.api#documentation": "(Optional) Specifies the ARN, Key ID, or alias of the AWS KMS customer master key (CMK) to\n be used to encrypt the SecretString
or SecretBinary
values in the\n versions stored in this secret.
You can specify any of the supported ways to identify a AWS KMS key ID. If you need to\n reference a CMK in a different account, you can use only the key ARN or the alias ARN.
\nIf you don't specify this value, then Secrets Manager defaults to using the AWS account's\n default CMK (the one named aws/secretsmanager
). If a AWS KMS CMK with that name doesn't yet\n exist, then Secrets Manager creates it for you automatically the first time it needs to encrypt a\n version's SecretString
or SecretBinary
fields.
You can use the account default CMK to encrypt and decrypt only if you call this\n operation using credentials from the same account that owns the secret. If the secret\n resides in a different account, then you must create a custom CMK and specify the ARN in\n this field.
\n(Optional) Specifies binary data that you want to encrypt and store in the new version of\n the secret. To use this parameter in the command-line tools, we recommend that you store your\n binary data in a file and then use the appropriate technique for your tool to pass the\n contents of the file as a parameter.
\nEither SecretString
or SecretBinary
must have a value, but not\n both. They cannot both be empty.
This parameter is not available using the Secrets Manager console. It can be accessed only by\n using the AWS CLI or one of the AWS SDKs.
" } }, "SecretString": { "target": "com.amazonaws.secretsmanager#SecretStringType", "traits": { "smithy.api#documentation": "(Optional) Specifies text data that you want to encrypt and store in this new version of\n the secret.
\nEither SecretString
or SecretBinary
must have a value, but not\n both. They cannot both be empty.
If you create a secret by using the Secrets Manager console then Secrets Manager puts the protected\n secret text in only the SecretString
parameter. The Secrets Manager console stores the\n information as a JSON structure of key/value pairs that the Lambda rotation function knows how\n to parse.
For storing multiple values, we recommend that you use a JSON text string argument and\n specify key/value pairs. For information on how to format a JSON parameter for the various\n command line tool environments, see Using JSON for\n Parameters in the AWS CLI User Guide. For example:
\n\n {\"username\":\"bob\",\"password\":\"abc123xyz456\"}
\n
If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text.
" } }, "Tags": { "target": "com.amazonaws.secretsmanager#TagListType", "traits": { "smithy.api#documentation": "(Optional) Specifies a list of user-defined tags that are attached to the secret. Each tag\n is a \"Key\" and \"Value\" pair of strings. This operation only appends tags to the existing list\n of tags. To remove tags, you must use UntagResource.
\nSecrets Manager tag key names are case sensitive. A tag with the key \"ABC\" is a different tag\n from one with key \"abc\".
\nIf you check tags in IAM policy Condition
elements as part of your\n security strategy, then adding or removing a tag can change permissions. If the\n successful completion of this operation would result in you losing your permissions for\n this secret, then this operation is blocked and returns an Access Denied
\n error.
This parameter requires a JSON text string argument. For information on how to format a\n JSON parameter for the various command line tool environments, see Using JSON for\n Parameters in the AWS CLI User Guide. For example:
\n\n [{\"Key\":\"CostCenter\",\"Value\":\"12345\"},{\"Key\":\"environment\",\"Value\":\"production\"}]
\n
If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text.
\nThe following basic restrictions apply to tags:
\nMaximum number of tags per secret—50
\nMaximum key length—127 Unicode characters in UTF-8
\nMaximum value length—255 Unicode characters in UTF-8
\nTag keys and values are case sensitive.
\nDo not use the aws:
prefix in your tag names or values because AWS reserves it\n for AWS use. You can't edit or delete tag names or values with this \n prefix. Tags with this prefix do not count against your tags per secret limit.
If you use your tagging schema across multiple services and resources,\n remember other services might have restrictions on allowed characters. Generally\n allowed characters: letters, spaces, and numbers representable in UTF-8, plus the\n following special characters: + - = . _ : / @.
\n(Optional) Add a list of regions to replicate secrets. Secrets Manager replicates the KMSKeyID objects to the list of regions specified in\n the parameter.
" } }, "ForceOverwriteReplicaSecret": { "target": "com.amazonaws.secretsmanager#BooleanType", "traits": { "smithy.api#documentation": "(Optional) If set, the replication overwrites a secret with the same name in the\n destination region.
" } } } }, "com.amazonaws.secretsmanager#CreateSecretResponse": { "type": "structure", "members": { "ARN": { "target": "com.amazonaws.secretsmanager#SecretARNType", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the secret that you just created.
\nSecrets Manager automatically adds several random characters to the name at the end of the ARN when\n you initially create a secret. This affects only the ARN and not the actual friendly name. \n This ensures that if you create a new secret with the same name as an old secret that you \n previously deleted, then users with access to the old secret don't \n automatically get access to the new secret because the ARNs are different.
\nThe friendly name of the secret that you just created.
" } }, "VersionId": { "target": "com.amazonaws.secretsmanager#SecretVersionIdType", "traits": { "smithy.api#documentation": "The unique identifier associated with the version of the secret you just created.
" } }, "ReplicationStatus": { "target": "com.amazonaws.secretsmanager#ReplicationStatusListType", "traits": { "smithy.api#documentation": "Describes a list of replication status objects as InProgress
, Failed
or InSync
.
Secrets Manager can't decrypt the protected secret text using the provided KMS key.
", "smithy.api#error": "client" } }, "com.amazonaws.secretsmanager#DeleteResourcePolicy": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#DeleteResourcePolicyRequest" }, "output": { "target": "com.amazonaws.secretsmanager#DeleteResourcePolicyResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Deletes the resource-based permission policy attached to the secret.
\n\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:DeleteResourcePolicy
\n\n Related operations\n
\nTo attach a resource policy to a secret, use PutResourcePolicy.
\nTo retrieve the current resource-based policy attached to a secret, use GetResourcePolicy.
\nTo list all of the currently available secrets, use ListSecrets.
\nSpecifies the secret that you want to delete the attached resource-based policy for. You\n can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nThe ARN of the secret that the resource-based policy was deleted for.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#NameType", "traits": { "smithy.api#documentation": "The friendly name of the secret that the resource-based policy was deleted for.
" } } } }, "com.amazonaws.secretsmanager#DeleteSecret": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#DeleteSecretRequest" }, "output": { "target": "com.amazonaws.secretsmanager#DeleteSecretResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Deletes an entire secret and all of the versions. You can optionally include a recovery\n window during which you can restore the secret. If you don't specify a recovery window value,\n the operation defaults to 30 days. Secrets Manager attaches a DeletionDate
stamp to\n the secret that specifies the end of the recovery window. At the end of the recovery window,\n Secrets Manager deletes the secret permanently.
At any time before recovery window ends, you can use RestoreSecret to\n remove the DeletionDate
and cancel the deletion of the secret.
You cannot access the encrypted secret information in any secret scheduled for deletion.\n If you need to access that information, you must cancel the deletion with RestoreSecret and then retrieve the information.
\nThere is no explicit operation to delete a version of a secret. Instead, remove all\n staging labels from the VersionStage
field of a version. That marks the\n version as deprecated and allows Secrets Manager to delete it as needed. Versions without any\n staging labels do not show up in ListSecretVersionIds unless you\n specify IncludeDeprecated
.
The permanent secret deletion at the end of the waiting period is performed as a\n background task with low priority. There is no guarantee of a specific time after the\n recovery window for the actual delete operation to occur.
\n\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:DeleteSecret
\n\n Related operations\n
\nTo create a secret, use CreateSecret.
\nTo cancel deletion of a version of a secret before the recovery window has expired,\n use RestoreSecret.
\nSpecifies the secret to delete. You can specify either the Amazon Resource Name (ARN) or\n the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\n(Optional) Specifies the number of days that Secrets Manager waits before Secrets Manager can delete the\n secret. You can't use both this parameter and the ForceDeleteWithoutRecovery
\n parameter in the same API call.
This value can range from 7 to 30 days with a default value of 30.
" } }, "ForceDeleteWithoutRecovery": { "target": "com.amazonaws.secretsmanager#BooleanType", "traits": { "smithy.api#box": {}, "smithy.api#documentation": "(Optional) Specifies that the secret is to be deleted without any recovery window. You\n can't use both this parameter and the RecoveryWindowInDays
parameter in the same\n API call.
An asynchronous background process performs the actual deletion, so there can be a short\n delay before the operation completes. If you write code to delete and then immediately\n recreate a secret with the same name, ensure that your code includes appropriate back off and\n retry logic.
\nUse this parameter with caution. This parameter causes the operation to skip the normal\n waiting period before the permanent deletion that AWS would normally impose with the\n RecoveryWindowInDays
parameter. If you delete a secret with the\n ForceDeleteWithouRecovery
parameter, then you have no opportunity to recover\n the secret. You lose the secret permanently.
If you use this parameter and include a previously deleted or nonexistent secret, the\n operation does not return the error ResourceNotFoundException
in order to\n correctly handle retries.
The ARN of the secret that is now scheduled for deletion.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#SecretNameType", "traits": { "smithy.api#documentation": "The friendly name of the secret currently scheduled for deletion.
" } }, "DeletionDate": { "target": "com.amazonaws.secretsmanager#DeletionDateType", "traits": { "smithy.api#documentation": "The date and time after which this secret can be deleted by Secrets Manager and can no longer be\n restored. This value is the date and time of the delete request plus the number of days\n specified in RecoveryWindowInDays
.
Retrieves the details of a secret. It does not include the encrypted fields. Secrets\n Manager only returns fields populated with a value in the response.
\n\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:DescribeSecret
\n\n Related operations\n
\nTo create a secret, use CreateSecret.
\nTo modify a secret, use UpdateSecret.
\nTo retrieve the encrypted secret information in a version of the secret, use GetSecretValue.
\nTo list all of the secrets in the AWS account, use ListSecrets.
\nThe identifier of the secret whose details you want to retrieve. You can specify either\n the Amazon Resource Name (ARN) or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nThe ARN of the secret.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#SecretNameType", "traits": { "smithy.api#documentation": "The user-provided friendly name of the secret.
" } }, "Description": { "target": "com.amazonaws.secretsmanager#DescriptionType", "traits": { "smithy.api#documentation": "The user-provided description of the secret.
" } }, "KmsKeyId": { "target": "com.amazonaws.secretsmanager#KmsKeyIdType", "traits": { "smithy.api#documentation": "The ARN or alias of the AWS KMS customer master key (CMK) that's used to encrypt the\n SecretString
or SecretBinary
fields in each version of the secret.\n If you don't provide a key, then Secrets Manager defaults to encrypting the secret fields with the\n default AWS KMS CMK (the one named awssecretsmanager
) for this account.
Specifies whether automatic rotation is enabled for this secret.
\nTo enable rotation, use RotateSecret with\n AutomaticallyRotateAfterDays
set to a value greater than 0. To disable\n rotation, use CancelRotateSecret.
The ARN of a Lambda function that's invoked by Secrets Manager to rotate the\n secret either automatically per the schedule or manually by a call to\n RotateSecret
.
A structure with the rotation configuration for this secret.
" } }, "LastRotatedDate": { "target": "com.amazonaws.secretsmanager#LastRotatedDateType", "traits": { "smithy.api#documentation": "The last date and time that the rotation process for this secret was invoked.
\nThe most recent date and time that the Secrets Manager rotation process successfully\n completed. If the secret doesn't rotate, Secrets Manager returns a null value.
" } }, "LastChangedDate": { "target": "com.amazonaws.secretsmanager#LastChangedDateType", "traits": { "smithy.api#documentation": "The last date and time that this secret was modified in any way.
" } }, "LastAccessedDate": { "target": "com.amazonaws.secretsmanager#LastAccessedDateType", "traits": { "smithy.api#documentation": "The last date that this secret was accessed. This value is truncated to midnight of the\n date and therefore shows only the date, not the time.
" } }, "DeletedDate": { "target": "com.amazonaws.secretsmanager#DeletedDateType", "traits": { "smithy.api#documentation": "This value exists if the secret is scheduled for deletion. Some time after the specified\n date and time, Secrets Manager deletes the secret and all of its versions.
\nIf a secret is scheduled for deletion, then its details, including the encrypted secret\n information, is not accessible. To cancel a scheduled deletion and restore access, use RestoreSecret.
" } }, "Tags": { "target": "com.amazonaws.secretsmanager#TagListType", "traits": { "smithy.api#documentation": "The list of user-defined tags that are associated with the secret. To add tags to a\n secret, use TagResource. To remove tags, use UntagResource.
" } }, "VersionIdsToStages": { "target": "com.amazonaws.secretsmanager#SecretVersionsToStagesMapType", "traits": { "smithy.api#documentation": "A list of all of the currently assigned VersionStage
staging labels and the\n VersionId
that each is attached to. Staging labels are used to keep track of\n the different versions during the rotation process.
A version that does not have any staging labels attached is considered deprecated and\n subject to deletion. Such versions are not included in this list.
\nReturns the name of the service that created this secret.
" } }, "CreatedDate": { "target": "com.amazonaws.secretsmanager#TimestampType", "traits": { "smithy.api#documentation": "The date you created the secret.
" } }, "PrimaryRegion": { "target": "com.amazonaws.secretsmanager#RegionType", "traits": { "smithy.api#documentation": "Specifies the primary region for secret replication.
" } }, "ReplicationStatus": { "target": "com.amazonaws.secretsmanager#ReplicationStatusListType", "traits": { "smithy.api#documentation": "Describes a list of replication status objects as InProgress
, Failed
or InSync
.P
\n
Secrets Manager can't encrypt the protected secret text using the provided KMS key. Check that the\n customer master key (CMK) is available, enabled, and not in an invalid state. For more\n information, see How Key State Affects Use of a\n Customer Master Key.
", "smithy.api#error": "client" } }, "com.amazonaws.secretsmanager#ErrorMessage": { "type": "string" }, "com.amazonaws.secretsmanager#ExcludeCharactersType": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 4096 } } }, "com.amazonaws.secretsmanager#ExcludeLowercaseType": { "type": "boolean" }, "com.amazonaws.secretsmanager#ExcludeNumbersType": { "type": "boolean" }, "com.amazonaws.secretsmanager#ExcludePunctuationType": { "type": "boolean" }, "com.amazonaws.secretsmanager#ExcludeUppercaseType": { "type": "boolean" }, "com.amazonaws.secretsmanager#Filter": { "type": "structure", "members": { "Key": { "target": "com.amazonaws.secretsmanager#FilterNameStringType", "traits": { "smithy.api#documentation": "Filters your list of secrets by a specific key.
" } }, "Values": { "target": "com.amazonaws.secretsmanager#FilterValuesStringList", "traits": { "smithy.api#documentation": "Filters your list of secrets by a specific value.
\nYou can prefix your search value with an exclamation mark (!
) in order to perform negation filters.
Allows you to add filters when you use the search function in Secrets Manager.
" } }, "com.amazonaws.secretsmanager#FilterNameStringType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "description", "name": "description" }, { "value": "name", "name": "name" }, { "value": "tag-key", "name": "tag_key" }, { "value": "tag-value", "name": "tag_value" }, { "value": "primary-region", "name": "primary_region" }, { "value": "all", "name": "all" } ] } }, "com.amazonaws.secretsmanager#FilterValueStringType": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 512 }, "smithy.api#pattern": "^\\!?[a-zA-Z0-9 :_@\\/\\+\\=\\.\\-]*$" } }, "com.amazonaws.secretsmanager#FilterValuesStringList": { "type": "list", "member": { "target": "com.amazonaws.secretsmanager#FilterValueStringType" }, "traits": { "smithy.api#length": { "min": 1, "max": 10 } } }, "com.amazonaws.secretsmanager#FiltersListType": { "type": "list", "member": { "target": "com.amazonaws.secretsmanager#Filter" }, "traits": { "smithy.api#length": { "min": 0, "max": 10 } } }, "com.amazonaws.secretsmanager#GetRandomPassword": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#GetRandomPasswordRequest" }, "output": { "target": "com.amazonaws.secretsmanager#GetRandomPasswordResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" } ], "traits": { "smithy.api#documentation": "Generates a random password of the specified complexity. This operation is intended for\n use in the Lambda rotation function. Per best practice, we recommend that you specify the\n maximum length and include every character type that the system you are generating a password\n for can support.
\n\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:GetRandomPassword
\nThe desired length of the generated password. The default value if you do not include this\n parameter is 32 characters.
" } }, "ExcludeCharacters": { "target": "com.amazonaws.secretsmanager#ExcludeCharactersType", "traits": { "smithy.api#documentation": "A string that includes characters that should not be included in the generated password.\n The default is that all characters from the included sets can be used.
" } }, "ExcludeNumbers": { "target": "com.amazonaws.secretsmanager#ExcludeNumbersType", "traits": { "smithy.api#box": {}, "smithy.api#documentation": "Specifies that the generated password should not include digits. The default if you do not\n include this switch parameter is that digits can be included.
" } }, "ExcludePunctuation": { "target": "com.amazonaws.secretsmanager#ExcludePunctuationType", "traits": { "smithy.api#box": {}, "smithy.api#documentation": "Specifies that the generated password should not include punctuation characters. The\n default if you do not include this switch parameter is that punctuation characters can be\n included.
\nThe following are the punctuation characters that can be included in\n the generated password if you don't explicitly exclude them with\n ExcludeCharacters
or ExcludePunctuation
:
\n ! \" # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \\ ] ^ _ ` { | }\n ~
\n
Specifies that the generated password should not include uppercase letters. The default if\n you do not include this switch parameter is that uppercase letters can be included.
" } }, "ExcludeLowercase": { "target": "com.amazonaws.secretsmanager#ExcludeLowercaseType", "traits": { "smithy.api#box": {}, "smithy.api#documentation": "Specifies that the generated password should not include lowercase letters. The default if\n you do not include this switch parameter is that lowercase letters can be included.
" } }, "IncludeSpace": { "target": "com.amazonaws.secretsmanager#IncludeSpaceType", "traits": { "smithy.api#box": {}, "smithy.api#documentation": "Specifies that the generated password can include the space character. The default if you\n do not include this switch parameter is that the space character is not included.
" } }, "RequireEachIncludedType": { "target": "com.amazonaws.secretsmanager#RequireEachIncludedTypeType", "traits": { "smithy.api#box": {}, "smithy.api#documentation": "A boolean value that specifies whether the generated password must include at least one of\n every allowed character type. The default value is True
and the operation\n requires at least one of every character type.
A string with the generated password.
" } } } }, "com.amazonaws.secretsmanager#GetResourcePolicy": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#GetResourcePolicyRequest" }, "output": { "target": "com.amazonaws.secretsmanager#GetResourcePolicyResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Retrieves the JSON text of the resource-based policy document attached to the specified\n secret. The JSON request string input and response output displays formatted code\n with white space and line breaks for better readability. Submit your input as a single line \n JSON string.
\n\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:GetResourcePolicy
\n\n Related operations\n
\nTo attach a resource policy to a secret, use PutResourcePolicy.
\nTo delete the resource-based policy attached to a secret, use DeleteResourcePolicy.
\nTo list all of the currently available secrets, use ListSecrets.
\nSpecifies the secret that you want to retrieve the attached resource-based policy for. You\n can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nThe ARN of the secret that the resource-based policy was retrieved for.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#NameType", "traits": { "smithy.api#documentation": "The friendly name of the secret that the resource-based policy was retrieved for.
" } }, "ResourcePolicy": { "target": "com.amazonaws.secretsmanager#NonEmptyResourcePolicyType", "traits": { "smithy.api#documentation": "A JSON-formatted string that describes the permissions that are associated with the\n attached secret. These permissions are combined with any permissions that are associated with\n the user or role that attempts to access this secret. The combined permissions specify who can\n access the secret and what actions they can perform. For more information, see Authentication and Access Control for\n AWS Secrets Manager in the AWS Secrets Manager User Guide.
" } } } }, "com.amazonaws.secretsmanager#GetSecretValue": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#GetSecretValueRequest" }, "output": { "target": "com.amazonaws.secretsmanager#GetSecretValueResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#DecryptionFailure" }, { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Retrieves the contents of the encrypted fields SecretString
or\n SecretBinary
from the specified version of a secret, whichever contains\n content.
\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:GetSecretValue
\nkms:Decrypt - required only if you use a customer-managed AWS KMS key to encrypt the\n secret. You do not need this permission to use the account's default AWS managed CMK for\n Secrets Manager.
\n\n Related operations\n
\nTo create a new version of the secret with different encrypted information, use PutSecretValue.
\nTo retrieve the non-encrypted details for the secret, use DescribeSecret.
\nSpecifies the secret containing the version that you want to retrieve. You can specify\n either the Amazon Resource Name (ARN) or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nSpecifies the unique identifier of the version of the secret that you want to retrieve. If\n you specify both this parameter and VersionStage
, the two parameters must refer\n to the same secret version. If you don't specify either a VersionStage
or\n VersionId
then the default is to perform the operation on the version with the\n VersionStage
value of AWSCURRENT
.
This value is typically a UUID-type value with\n 32 hexadecimal digits.
" } }, "VersionStage": { "target": "com.amazonaws.secretsmanager#SecretVersionStageType", "traits": { "smithy.api#documentation": "Specifies the secret version that you want to retrieve by the staging label attached to\n the version.
\nStaging labels are used to keep track of different versions during the rotation process.\n If you specify both this parameter and VersionId
, the two parameters must refer\n to the same secret version . If you don't specify either a VersionStage
or\n VersionId
, then the default is to perform the operation on the version with the\n VersionStage
value of AWSCURRENT
.
The ARN of the secret.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#SecretNameType", "traits": { "smithy.api#documentation": "The friendly name of the secret.
" } }, "VersionId": { "target": "com.amazonaws.secretsmanager#SecretVersionIdType", "traits": { "smithy.api#documentation": "The unique identifier of this version of the secret.
" } }, "SecretBinary": { "target": "com.amazonaws.secretsmanager#SecretBinaryType", "traits": { "smithy.api#documentation": "The decrypted part of the protected secret information that was originally provided as\n binary data in the form of a byte array. The response parameter represents the binary data as\n a base64-encoded\n string.
\nThis parameter is not used if the secret is created by the Secrets Manager console.
\nIf you store custom information in this field of the secret, then you must code your\n Lambda rotation function to parse and interpret whatever you store in the\n SecretString
or SecretBinary
fields.
The decrypted part of the protected secret information that was originally provided as a\n string.
\nIf you create this secret by using the Secrets Manager console then only the\n SecretString
parameter contains data. Secrets Manager stores the information as a\n JSON structure of key/value pairs that the Lambda rotation function knows how to parse.
If you store custom information in the secret by using the CreateSecret,\n UpdateSecret, or PutSecretValue API operations instead\n of the Secrets Manager console, or by using the Other secret type in\n the console, then you must code your Lambda rotation function to parse and interpret those\n values.
" } }, "VersionStages": { "target": "com.amazonaws.secretsmanager#SecretVersionStagesType", "traits": { "smithy.api#documentation": "A list of all of the staging labels currently attached to this version of the\n secret.
" } }, "CreatedDate": { "target": "com.amazonaws.secretsmanager#CreatedDateType", "traits": { "smithy.api#documentation": "The date and time that this version of the secret was created.
" } } } }, "com.amazonaws.secretsmanager#IncludeSpaceType": { "type": "boolean" }, "com.amazonaws.secretsmanager#InternalServiceError": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.secretsmanager#ErrorMessage" } }, "traits": { "smithy.api#documentation": "An error occurred on the server side.
", "smithy.api#error": "server" } }, "com.amazonaws.secretsmanager#InvalidNextTokenException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.secretsmanager#ErrorMessage" } }, "traits": { "smithy.api#documentation": "You provided an invalid NextToken
value.
You provided an invalid value for a parameter.
", "smithy.api#error": "client" } }, "com.amazonaws.secretsmanager#InvalidRequestException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.secretsmanager#ErrorMessage" } }, "traits": { "smithy.api#documentation": "You provided a parameter value that is not valid for the current state of the\n resource.
\nPossible causes:
\nYou tried to perform the operation on a secret that's currently marked deleted.
\nYou tried to enable rotation on a secret that doesn't already have a Lambda function\n ARN configured and you didn't include such an ARN as a parameter in this call.
\nThe request failed because it would exceed one of the Secrets Manager internal limits.
", "smithy.api#error": "client" } }, "com.amazonaws.secretsmanager#ListSecretVersionIds": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#ListSecretVersionIdsRequest" }, "output": { "target": "com.amazonaws.secretsmanager#ListSecretVersionIdsResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidNextTokenException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Lists all of the versions attached to the specified secret. The output does not include\n the SecretString
or SecretBinary
fields. By default, the list\n includes only versions that have at least one staging label in VersionStage
\n attached.
Always check the NextToken
response parameter \n when calling any of the List*
operations. These operations can occasionally return \n an empty or shorter than expected list of results even when there more results become available. \n When this happens, the NextToken
response parameter contains a value to pass to the \n next call to the same API to request the next part of the list.
\n Minimum\n permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:ListSecretVersionIds
\n\n Related operations\n
\nTo list the secrets in an account, use ListSecrets.
\nThe identifier for the secret containing the versions you want to list. You can specify\n either the Amazon Resource Name (ARN) or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\n(Optional) Limits the number of results you want to include in \n the response. If you don't include this parameter, it defaults to a value that's \n specific to the operation. If additional items exist beyond the maximum you specify, the \n NextToken
response element is present and has a value (isn't null). Include\n that value as the NextToken
request parameter in the next call to the operation to \n get the next part of the results. Note that Secrets Manager might return fewer results than the maximum \n even when there are more results available. You should check NextToken
after every \n operation to ensure that you receive all of the results.
(Optional) Use this parameter in a request if you receive a \n NextToken
response in a previous request indicating there's more\n output available. In a subsequent call, set it to the value of the previous call \n NextToken
response to indicate where the output should continue from.
(Optional) Specifies that you want the results to include versions that do not have any\n staging labels attached to them. Such versions are considered deprecated and are subject to\n deletion by Secrets Manager as needed.
" } } } }, "com.amazonaws.secretsmanager#ListSecretVersionIdsResponse": { "type": "structure", "members": { "Versions": { "target": "com.amazonaws.secretsmanager#SecretVersionsListType", "traits": { "smithy.api#documentation": "The list of the currently available versions of the specified secret.
" } }, "NextToken": { "target": "com.amazonaws.secretsmanager#NextTokenType", "traits": { "smithy.api#documentation": "If present in the response, this value indicates that \n there's more output available than included in the current response. This can \n occur even when the response includes no values at all, such as when you ask for a filtered view \n of a very long list. Use this value in the NextToken
request parameter in a \n subsequent call to the operation to continue processing and get the next part of the output. You \n should repeat this until the NextToken
response element comes back empty (as \n null
).
The Amazon Resource Name (ARN) for the secret.
\nSecrets Manager automatically adds several random characters to the name at the end of the ARN when\n you initially create a secret. This affects only the ARN and not the actual friendly name. \n This ensures that if you create a new secret with the same name as an old secret that you \n previously deleted, then users with access to the old secret don't \n automatically get access to the new secret because the ARNs are different.
\nThe friendly name of the secret.
" } } } }, "com.amazonaws.secretsmanager#ListSecrets": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#ListSecretsRequest" }, "output": { "target": "com.amazonaws.secretsmanager#ListSecretsResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidNextTokenException" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" } ], "traits": { "smithy.api#documentation": "Lists all of the secrets that are stored by Secrets Manager in the AWS account. To list the\n versions currently stored for a specific secret, use ListSecretVersionIds.\n The encrypted fields SecretString
and SecretBinary
are not included\n in the output. To get that information, call the GetSecretValue\n operation.
Always check the NextToken
response parameter \n when calling any of the List*
operations. These operations can occasionally return \n an empty or shorter than expected list of results even when there more results become available. \n When this happens, the NextToken
response parameter contains a value to pass to the \n next call to the same API to request the next part of the list.
\n Minimum\n permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:ListSecrets
\n\n Related operations\n
\nTo list the versions attached to a secret, use ListSecretVersionIds.
\n(Optional) Limits the number of results you want to include in \n the response. If you don't include this parameter, it defaults to a value that's \n specific to the operation. If additional items exist beyond the maximum you specify, the \n NextToken
response element is present and has a value (isn't null). Include\n that value as the NextToken
request parameter in the next call to the operation to \n get the next part of the results. Note that Secrets Manager might return fewer results than the maximum \n even when there are more results available. You should check NextToken
after every \n operation to ensure that you receive all of the results.
(Optional) Use this parameter in a request if you receive a \n NextToken
response in a previous request indicating there's more\n output available. In a subsequent call, set it to the value of the previous call \n NextToken
response to indicate where the output should continue from.
Lists the secret request filters.
" } }, "SortOrder": { "target": "com.amazonaws.secretsmanager#SortOrderType", "traits": { "smithy.api#documentation": "Lists secrets in the requested order.
" } } } }, "com.amazonaws.secretsmanager#ListSecretsResponse": { "type": "structure", "members": { "SecretList": { "target": "com.amazonaws.secretsmanager#SecretListType", "traits": { "smithy.api#documentation": "A list of the secrets in the account.
" } }, "NextToken": { "target": "com.amazonaws.secretsmanager#NextTokenType", "traits": { "smithy.api#documentation": "If present in the response, this value indicates that \n there's more output available than included in the current response. This can \n occur even when the response includes no values at all, such as when you ask for a filtered view \n of a very long list. Use this value in the NextToken
request parameter in a \n subsequent call to the operation to continue processing and get the next part of the output. You \n should repeat this until the NextToken
response element comes back empty (as \n null
).
You provided a resource-based policy with syntax errors.
", "smithy.api#error": "client" } }, "com.amazonaws.secretsmanager#MaxResultsType": { "type": "integer", "traits": { "smithy.api#range": { "min": 1, "max": 100 } } }, "com.amazonaws.secretsmanager#NameType": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 512 } } }, "com.amazonaws.secretsmanager#NextTokenType": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 4096 } } }, "com.amazonaws.secretsmanager#NonEmptyResourcePolicyType": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 20480 } } }, "com.amazonaws.secretsmanager#OwningServiceType": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 } } }, "com.amazonaws.secretsmanager#PasswordLengthType": { "type": "long", "traits": { "smithy.api#range": { "min": 1, "max": 4096 } } }, "com.amazonaws.secretsmanager#PreconditionNotMetException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.secretsmanager#ErrorMessage" } }, "traits": { "smithy.api#documentation": "The request failed because you did not complete all the prerequisite steps.
", "smithy.api#error": "client" } }, "com.amazonaws.secretsmanager#PublicPolicyException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.secretsmanager#ErrorMessage" } }, "traits": { "smithy.api#documentation": "The BlockPublicPolicy parameter is set to true and the resource policy did not prevent broad access to the secret.
", "smithy.api#error": "client" } }, "com.amazonaws.secretsmanager#PutResourcePolicy": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#PutResourcePolicyRequest" }, "output": { "target": "com.amazonaws.secretsmanager#PutResourcePolicyResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#MalformedPolicyDocumentException" }, { "target": "com.amazonaws.secretsmanager#PublicPolicyException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Attaches the contents of the specified resource-based permission policy to a secret. A\n resource-based policy is optional. Alternatively, you can use IAM identity-based policies\n that specify the secret's Amazon Resource Name (ARN) in the policy statement's\n Resources
element. You can also use a combination of both identity-based and\n resource-based policies. The affected users and roles receive the permissions that are\n permitted by all of the relevant policies. For more information, see Using Resource-Based\n Policies for AWS Secrets Manager. For the complete description of the AWS policy syntax and\n grammar, see IAM JSON\n Policy Reference in the IAM User Guide.
\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:PutResourcePolicy
\n\n Related operations\n
\nTo retrieve the resource policy attached to a secret, use GetResourcePolicy.
\nTo delete the resource-based policy attached to a secret, use DeleteResourcePolicy.
\nTo list all of the currently available secrets, use ListSecrets.
\nSpecifies the secret that you want to attach the resource-based policy. You can specify\n either the ARN or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nA JSON-formatted string constructed according to the grammar and syntax for an AWS\n resource-based policy. The policy in the string identifies who can access or manage this\n secret and its versions. For information on how to format a JSON parameter for the various\n command line tool environments, see Using\n JSON for Parameters in the AWS CLI User Guide.
", "smithy.api#required": {} } }, "BlockPublicPolicy": { "target": "com.amazonaws.secretsmanager#BooleanType", "traits": { "smithy.api#box": {}, "smithy.api#documentation": "(Optional) If you set the parameter, BlockPublicPolicy
to true, then you\n block resource-based policies that allow broad access to the secret.
The ARN of the secret retrieved by the resource-based policy.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#NameType", "traits": { "smithy.api#documentation": "The friendly name of the secret retrieved by the resource-based policy.
" } } } }, "com.amazonaws.secretsmanager#PutSecretValue": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#PutSecretValueRequest" }, "output": { "target": "com.amazonaws.secretsmanager#PutSecretValueResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#EncryptionFailure" }, { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#LimitExceededException" }, { "target": "com.amazonaws.secretsmanager#ResourceExistsException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Stores a new encrypted secret value in the specified secret. To do this, the operation\n creates a new version and attaches it to the secret. The version can contain a new\n SecretString
value or a new SecretBinary
value. You can also\n 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\n secret with the SecretBinary
field you must use the AWS CLI or one of the\n AWS SDKs.
If this operation creates the first version for the secret then Secrets Manager\n automatically attaches the staging label AWSCURRENT
to the new version.
If you do not specify a value for VersionStages then Secrets Manager automatically\n moves the staging label AWSCURRENT
to this new version.
If this operation moves the staging label AWSCURRENT
from another version to this\n version, then Secrets Manager also automatically moves the staging label AWSPREVIOUS
to\n the version that AWSCURRENT
was removed from.
This operation is idempotent. If a version with a VersionId
with the same\n value as the ClientRequestToken
parameter already exists and you specify the\n same secret data, the operation succeeds but does nothing. However, if the secret data is\n different, then the operation fails because you cannot modify an existing version; you can\n only create new ones.
If you call an operation to encrypt or decrypt the SecretString
\n or SecretBinary
for a secret in the same account as the calling user and that \n secret doesn't specify a AWS KMS encryption key, Secrets Manager uses the account's default \n AWS managed customer master key (CMK) with the alias aws/secretsmanager
. If this key \n doesn't already exist in your account then Secrets Manager creates it for you automatically. All\n users and roles in the same AWS account automatically have access to use the default CMK. \n Note that if an Secrets Manager API call results in AWS creating the account's \n AWS-managed CMK, it can result in a one-time significant delay in returning the \n result.
If the secret resides in a different AWS account from the credentials calling an API that \n requires encryption or decryption of the secret value then you must create and use a custom \n AWS KMS CMK because you can't access the default CMK for the account using credentials \n from a different AWS account. Store the ARN of the CMK in the secret when you create the \n secret or when you update it by including it in the KMSKeyId
. If you call an \n API that must encrypt or decrypt SecretString
or SecretBinary
\n using credentials from a different account then the AWS KMS key policy must grant cross-account\n access to that other account's user or role for both the kms:GenerateDataKey and \n kms:Decrypt operations.
\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:PutSecretValue
\nkms:GenerateDataKey - needed only if you use a customer-managed AWS KMS key to encrypt\n the secret. You do not need this permission to use the account's default AWS managed CMK\n for Secrets Manager.
\n\n Related operations\n
\nTo retrieve the encrypted value you store in the version of a secret, use GetSecretValue.
\nTo create a secret, use CreateSecret.
\nTo get the details for a secret, use DescribeSecret.
\nTo list the versions attached to a secret, use ListSecretVersionIds.
\nSpecifies the secret to which you want to add a new version. You can specify either the\n Amazon Resource Name (ARN) or the friendly name of the secret. The secret must already\n exist.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\n(Optional) Specifies a unique identifier for the new version of the secret.
\nIf you use the AWS CLI or one of the AWS SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that\n in the request. If you don't use the SDK and instead generate a raw HTTP request to the\n Secrets Manager service endpoint, then you must generate a ClientRequestToken
yourself\n for new versions and include that value in the request.
This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental\n creation of duplicate versions if there are failures and retries during the Lambda rotation\n function's processing. We recommend that you generate a UUID-type value to\n ensure uniqueness within the specified secret.
\nIf the ClientRequestToken
value isn't already associated with a version\n of the secret then a new version of the secret is created.
If a version with this value already exists and that version's\n SecretString
or SecretBinary
values are the same as those in\n the request then the request is ignored (the operation is idempotent).
If a version with this value already exists and the version of the\n SecretString
and SecretBinary
values are different from those\n in the request then the request fails because you cannot modify an existing secret\n version. You can only create new versions to store new secret values.
This value becomes the VersionId
of the new version.
(Optional) Specifies binary data that you want to encrypt and store in the new version of\n the secret. To use this parameter in the command-line tools, we recommend that you store your\n binary data in a file and then use the appropriate technique for your tool to pass the\n contents of the file as a parameter. Either SecretBinary
or\n SecretString
must have a value, but not both. They cannot both be empty.
This parameter is not accessible if the secret using the Secrets Manager console.
\n " } }, "SecretString": { "target": "com.amazonaws.secretsmanager#SecretStringType", "traits": { "smithy.api#documentation": "(Optional) Specifies text data that you want to encrypt and store in this new version of\n the secret. Either SecretString
or SecretBinary
must have a value,\n but not both. They cannot both be empty.
If you create this secret by using the Secrets Manager console then Secrets Manager puts the\n protected secret text in only the SecretString
parameter. The Secrets Manager console\n stores the information as a JSON structure of key/value pairs that the default Lambda rotation\n function knows how to parse.
For storing multiple values, we recommend that you use a JSON text string argument and\n specify key/value pairs. For information on how to format a JSON parameter for the various\n command line tool environments, see Using JSON for\n Parameters in the AWS CLI User Guide.
\nFor example:
\n\n [{\"username\":\"bob\"},{\"password\":\"abc123xyz456\"}]
\n
If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text.
" } }, "VersionStages": { "target": "com.amazonaws.secretsmanager#SecretVersionStagesType", "traits": { "smithy.api#documentation": "(Optional) Specifies a list of staging labels that are attached to this version of the\n secret. These staging labels are used to track the versions through the rotation process by\n the Lambda rotation function.
\nA staging label must be unique to a single version of the secret. If you specify a staging\n label that's already associated with a different version of the same secret then that staging\n label is automatically removed from the other version and attached to this version.
\nIf you do not specify a value for VersionStages
then Secrets Manager automatically\n moves the staging label AWSCURRENT
to this new version.
The Amazon Resource Name (ARN) for the secret for which you just created a version.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#SecretNameType", "traits": { "smithy.api#documentation": "The friendly name of the secret for which you just created or updated a version.
" } }, "VersionId": { "target": "com.amazonaws.secretsmanager#SecretVersionIdType", "traits": { "smithy.api#documentation": "The unique identifier of the version of the secret you just created or updated.
" } }, "VersionStages": { "target": "com.amazonaws.secretsmanager#SecretVersionStagesType", "traits": { "smithy.api#documentation": "The list of staging labels that are currently attached to this version of the secret.\n Staging labels are used to track a version as it progresses through the secret rotation\n process.
" } } } }, "com.amazonaws.secretsmanager#RandomPasswordType": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 4096 }, "smithy.api#sensitive": {} } }, "com.amazonaws.secretsmanager#RecoveryWindowInDaysType": { "type": "long" }, "com.amazonaws.secretsmanager#RegionType": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^([a-z]+-)+\\d+$" } }, "com.amazonaws.secretsmanager#RemoveRegionsFromReplication": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#RemoveRegionsFromReplicationRequest" }, "output": { "target": "com.amazonaws.secretsmanager#RemoveRegionsFromReplicationResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Remove regions from replication.
" } }, "com.amazonaws.secretsmanager#RemoveRegionsFromReplicationRequest": { "type": "structure", "members": { "SecretId": { "target": "com.amazonaws.secretsmanager#SecretIdType", "traits": { "smithy.api#documentation": "Remove a secret by SecretId
from replica Regions.
Remove replication from specific Regions.
", "smithy.api#required": {} } } } }, "com.amazonaws.secretsmanager#RemoveRegionsFromReplicationResponse": { "type": "structure", "members": { "ARN": { "target": "com.amazonaws.secretsmanager#SecretARNType", "traits": { "smithy.api#documentation": "The secret ARN
removed from replication regions.
Describes the remaining replication status after you remove regions from the replication list.
" } } } }, "com.amazonaws.secretsmanager#RemoveReplicaRegionListType": { "type": "list", "member": { "target": "com.amazonaws.secretsmanager#RegionType" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.secretsmanager#ReplicaRegionType": { "type": "structure", "members": { "Region": { "target": "com.amazonaws.secretsmanager#RegionType", "traits": { "smithy.api#documentation": "Describes a single instance of Region objects.
" } }, "KmsKeyId": { "target": "com.amazonaws.secretsmanager#KmsKeyIdType", "traits": { "smithy.api#documentation": "Can be an ARN
, Key ID
, or Alias
.
(Optional) Custom type consisting of a Region
(required) and the KmsKeyId
which can be an ARN
, Key ID
, or Alias
.
Converts an existing secret to a multi-Region secret and begins replication the secret to a\n list of new regions.
" } }, "com.amazonaws.secretsmanager#ReplicateSecretToRegionsRequest": { "type": "structure", "members": { "SecretId": { "target": "com.amazonaws.secretsmanager#SecretIdType", "traits": { "smithy.api#documentation": "Use the Secret Id
to replicate a secret to regions.
Add Regions to replicate the secret.
", "smithy.api#required": {} } }, "ForceOverwriteReplicaSecret": { "target": "com.amazonaws.secretsmanager#BooleanType", "traits": { "smithy.api#documentation": "(Optional) If set, Secrets Manager replication overwrites a secret with the same name in the\n destination region.
" } } } }, "com.amazonaws.secretsmanager#ReplicateSecretToRegionsResponse": { "type": "structure", "members": { "ARN": { "target": "com.amazonaws.secretsmanager#SecretARNType", "traits": { "smithy.api#documentation": "Replicate a secret based on the ReplicaRegionType
> consisting of a\n Region(required) and a KMSKeyId (optional) which can be the ARN, KeyID, or Alias.
Describes the secret replication status as PENDING
, SUCCESS
or FAIL
.
The Region where replication occurs.
" } }, "KmsKeyId": { "target": "com.amazonaws.secretsmanager#KmsKeyIdType", "traits": { "smithy.api#documentation": "Can be an ARN
, Key ID
, or Alias
.
The status can be InProgress
, Failed
, or InSync
.
Status message such as \"Secret with this name already exists in this\n region\".
" } }, "LastAccessedDate": { "target": "com.amazonaws.secretsmanager#LastAccessedDateType", "traits": { "smithy.api#documentation": "The date that you last accessed the secret in the Region.
" } } }, "traits": { "smithy.api#documentation": "A replication object consisting of a RegionReplicationStatus
object and includes a Region, KMSKeyId, status, and status message.
A resource with the ID you requested already exists.
", "smithy.api#error": "client" } }, "com.amazonaws.secretsmanager#ResourceNotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.secretsmanager#ErrorMessage" } }, "traits": { "smithy.api#documentation": "We can't find the resource that you asked for.
", "smithy.api#error": "client" } }, "com.amazonaws.secretsmanager#RestoreSecret": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#RestoreSecretRequest" }, "output": { "target": "com.amazonaws.secretsmanager#RestoreSecretResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Cancels the scheduled deletion of a secret by removing the DeletedDate
time\n stamp. This makes the secret accessible to query once again.
\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:RestoreSecret
\n\n Related operations\n
\nTo delete a secret, use DeleteSecret.
\nSpecifies the secret that you want to restore from a previously scheduled deletion. You\n can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nThe ARN of the secret that was restored.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#SecretNameType", "traits": { "smithy.api#documentation": "The friendly name of the secret that was restored.
" } } } }, "com.amazonaws.secretsmanager#RotateSecret": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#RotateSecretRequest" }, "output": { "target": "com.amazonaws.secretsmanager#RotateSecretResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Configures and starts the asynchronous process of rotating this secret. If you include the\n configuration parameters, the operation sets those values for the secret and then immediately\n starts a rotation. If you do not include the configuration parameters, the operation starts a\n rotation with the values already stored in the secret. After the rotation completes, the\n protected service and its clients all use the new version of the secret.
\nThis required configuration information includes the ARN of an AWS Lambda function and\n the time between scheduled rotations. The Lambda rotation function creates a new version of\n the secret and creates or updates the credentials on the protected service to match. After\n testing the new credentials, the function marks the new secret with the staging label\n AWSCURRENT
so that your clients all immediately begin to use the new version. For more\n information about rotating secrets and how to configure a Lambda function to rotate the\n secrets for your protected service, see Rotating Secrets in AWS Secrets Manager in the\n AWS Secrets Manager User Guide.
Secrets Manager schedules the next rotation when the previous \n one completes. Secrets Manager schedules the date by adding the rotation interval (number of days) to the \n actual date of the last rotation. The service chooses the hour within that 24-hour date window \n randomly. The minute is also chosen somewhat randomly, but weighted towards the top of the hour \n and influenced by a variety of factors that help distribute load.
\nThe\n rotation function must end with the versions of the secret in one of two states:
\nThe AWSPENDING
and AWSCURRENT
staging labels are attached to the same version of\n the secret, or
The AWSPENDING
staging label is not attached to any version of the secret.
If the AWSPENDING
staging label is present but not attached to the same version as\n AWSCURRENT
then any later invocation of RotateSecret
assumes that a previous\n rotation request is still in progress and returns an error.
\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:RotateSecret
\nlambda:InvokeFunction (on the function specified in the secret's metadata)
\n\n Related operations\n
\nTo list the secrets in your account, use ListSecrets.
\nTo get the details for a version of a secret, use DescribeSecret.
\nTo create a new version of a secret, use CreateSecret.
\nTo attach staging labels to or remove staging labels from a version of a secret, use\n UpdateSecretVersionStage.
\nSpecifies the secret that you want to rotate. You can specify either the Amazon Resource\n Name (ARN) or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\n(Optional) Specifies a unique identifier for the new version of the secret that helps\n ensure idempotency.
\nIf you use the AWS CLI or one of the AWS SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that\n in the request for this parameter. If you don't use the SDK and instead generate a raw HTTP\n request to the Secrets Manager service endpoint, then you must generate a\n ClientRequestToken
yourself for new versions and include that value in the\n request.
You only need to specify your own value if you implement your own retry logic and want to\n ensure that a given secret is not created twice. We recommend that you generate a UUID-type value to\n ensure uniqueness within the specified secret.
\nSecrets Manager uses this value to prevent the accidental creation of duplicate versions if\n there are failures and retries during the function's processing. This value becomes the\n VersionId
of the new version.
(Optional) Specifies the ARN of the Lambda function that can rotate the secret.
" } }, "RotationRules": { "target": "com.amazonaws.secretsmanager#RotationRulesType", "traits": { "smithy.api#documentation": "A structure that defines the rotation configuration for this secret.
" } } } }, "com.amazonaws.secretsmanager#RotateSecretResponse": { "type": "structure", "members": { "ARN": { "target": "com.amazonaws.secretsmanager#SecretARNType", "traits": { "smithy.api#documentation": "The ARN of the secret.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#SecretNameType", "traits": { "smithy.api#documentation": "The friendly name of the secret.
" } }, "VersionId": { "target": "com.amazonaws.secretsmanager#SecretVersionIdType", "traits": { "smithy.api#documentation": "The ID of the new version of the secret created by the rotation started by this\n request.
" } } } }, "com.amazonaws.secretsmanager#RotationEnabledType": { "type": "boolean" }, "com.amazonaws.secretsmanager#RotationLambdaARNType": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 2048 } } }, "com.amazonaws.secretsmanager#RotationRulesType": { "type": "structure", "members": { "AutomaticallyAfterDays": { "target": "com.amazonaws.secretsmanager#AutomaticallyRotateAfterDaysType", "traits": { "smithy.api#box": {}, "smithy.api#documentation": "Specifies the number of days between automatic scheduled rotations of the secret.
\nSecrets Manager schedules the next rotation when the previous \n one is complete. Secrets Manager schedules the date by adding the rotation interval (number of days) to the \n actual date of the last rotation. The service chooses the hour within that 24-hour date window \n randomly. The minute is also chosen somewhat randomly, but weighted towards the top of the hour \n and influenced by a variety of factors that help distribute load.
" } } }, "traits": { "smithy.api#documentation": "A structure that defines the rotation configuration for the secret.
" } }, "com.amazonaws.secretsmanager#SecretARNType": { "type": "string", "traits": { "smithy.api#length": { "min": 20, "max": 2048 } } }, "com.amazonaws.secretsmanager#SecretBinaryType": { "type": "blob", "traits": { "smithy.api#length": { "min": 0, "max": 65536 }, "smithy.api#sensitive": {} } }, "com.amazonaws.secretsmanager#SecretIdType": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 2048 } } }, "com.amazonaws.secretsmanager#SecretListEntry": { "type": "structure", "members": { "ARN": { "target": "com.amazonaws.secretsmanager#SecretARNType", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the secret.
\nFor more information about ARNs in Secrets Manager, see Policy Resources in the\n AWS Secrets Manager User Guide.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#SecretNameType", "traits": { "smithy.api#documentation": "The friendly name of the secret. You can use forward slashes in the name to represent a\n path hierarchy. For example, /prod/databases/dbserver1
could represent the secret\n for a server named dbserver1
in the folder databases
in the folder\n prod
.
The user-provided description of the secret.
" } }, "KmsKeyId": { "target": "com.amazonaws.secretsmanager#KmsKeyIdType", "traits": { "smithy.api#documentation": "The ARN or alias of the AWS KMS customer master key (CMK) used to encrypt the\n SecretString
and SecretBinary
fields in each version of the\n secret. If you don't provide a key, then Secrets Manager defaults to encrypting the secret fields with\n the default KMS CMK, the key named awssecretsmanager
, for this account.
Indicates whether automatic, scheduled rotation is enabled for this secret.
" } }, "RotationLambdaARN": { "target": "com.amazonaws.secretsmanager#RotationLambdaARNType", "traits": { "smithy.api#documentation": "The ARN of an AWS Lambda function invoked by Secrets Manager to rotate and expire the\n secret either automatically per the schedule or manually by a call to RotateSecret.
" } }, "RotationRules": { "target": "com.amazonaws.secretsmanager#RotationRulesType", "traits": { "smithy.api#documentation": "A structure that defines the rotation configuration for the secret.
" } }, "LastRotatedDate": { "target": "com.amazonaws.secretsmanager#LastRotatedDateType", "traits": { "smithy.api#documentation": "The most recent date and time that the Secrets Manager rotation process was successfully completed. This value is null if the secret hasn't ever rotated.
" } }, "LastChangedDate": { "target": "com.amazonaws.secretsmanager#LastChangedDateType", "traits": { "smithy.api#documentation": "The last date and time that this secret was modified in any way.
" } }, "LastAccessedDate": { "target": "com.amazonaws.secretsmanager#LastAccessedDateType", "traits": { "smithy.api#documentation": "The last date that this secret was accessed. This value is truncated to midnight of the\n date and therefore shows only the date, not the time.
" } }, "DeletedDate": { "target": "com.amazonaws.secretsmanager#DeletedDateType", "traits": { "smithy.api#documentation": "The date and time the deletion of the secret occurred. Not present on active secrets. The\n secret can be recovered until the number of days in the recovery window has passed, as\n specified in the RecoveryWindowInDays
parameter of the DeleteSecret operation.
The list of user-defined tags associated with the secret. To add tags to a\n secret, use TagResource. To remove tags, use UntagResource.
" } }, "SecretVersionsToStages": { "target": "com.amazonaws.secretsmanager#SecretVersionsToStagesMapType", "traits": { "smithy.api#documentation": "A list of all of the currently assigned SecretVersionStage
staging labels and\n the SecretVersionId
attached to each one. Staging labels are used to keep\n track of the different versions during the rotation process.
A version that does not have any SecretVersionStage
is considered\n deprecated and subject to deletion. Such versions are not included in this list.
Returns the name of the service that created the secret.
" } }, "CreatedDate": { "target": "com.amazonaws.secretsmanager#TimestampType", "traits": { "smithy.api#documentation": "The date and time when a secret was created.
" } }, "PrimaryRegion": { "target": "com.amazonaws.secretsmanager#RegionType", "traits": { "smithy.api#documentation": "The Region where Secrets Manager originated the secret.
" } } }, "traits": { "smithy.api#documentation": "A structure that contains the details about a secret. It does not include the encrypted\n SecretString
and SecretBinary
values. To get those values, use the\n GetSecretValue operation.
The unique version identifier of this version of the secret.
" } }, "VersionStages": { "target": "com.amazonaws.secretsmanager#SecretVersionStagesType", "traits": { "smithy.api#documentation": "An array of staging labels that are currently associated with this version of the\n secret.
" } }, "LastAccessedDate": { "target": "com.amazonaws.secretsmanager#LastAccessedDateType", "traits": { "smithy.api#documentation": "The date that this version of the secret was last accessed. Note that the resolution of\n this field is at the date level and does not include the time.
" } }, "CreatedDate": { "target": "com.amazonaws.secretsmanager#CreatedDateType", "traits": { "smithy.api#documentation": "The date and time this version of the secret was created.
" } } }, "traits": { "smithy.api#documentation": "A structure that contains information about one version of a secret.
" } }, "com.amazonaws.secretsmanager#SecretVersionsListType": { "type": "list", "member": { "target": "com.amazonaws.secretsmanager#SecretVersionsListEntry" } }, "com.amazonaws.secretsmanager#SecretVersionsToStagesMapType": { "type": "map", "key": { "target": "com.amazonaws.secretsmanager#SecretVersionIdType" }, "value": { "target": "com.amazonaws.secretsmanager#SecretVersionStagesType" } }, "com.amazonaws.secretsmanager#SortOrderType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "asc", "name": "asc" }, { "value": "desc", "name": "desc" } ] } }, "com.amazonaws.secretsmanager#StatusMessageType": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 4096 } } }, "com.amazonaws.secretsmanager#StatusType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "InSync", "name": "InSync" }, { "value": "Failed", "name": "Failed" }, { "value": "InProgress", "name": "InProgress" } ] } }, "com.amazonaws.secretsmanager#StopReplicationToReplica": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#StopReplicationToReplicaRequest" }, "output": { "target": "com.amazonaws.secretsmanager#StopReplicationToReplicaResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Removes the secret from replication and promotes the secret to a regional secret in the replica Region.
" } }, "com.amazonaws.secretsmanager#StopReplicationToReplicaRequest": { "type": "structure", "members": { "SecretId": { "target": "com.amazonaws.secretsmanager#SecretIdType", "traits": { "smithy.api#documentation": "Response to StopReplicationToReplica
of a secret, based on the SecretId
.
Response StopReplicationToReplica
of a secret, based on the ARN,
.
The key identifier, or name, of the tag.
" } }, "Value": { "target": "com.amazonaws.secretsmanager#TagValueType", "traits": { "smithy.api#documentation": "The string value associated with the key of the tag.
" } } }, "traits": { "smithy.api#documentation": "A structure that contains information about a tag.
" } }, "com.amazonaws.secretsmanager#TagKeyListType": { "type": "list", "member": { "target": "com.amazonaws.secretsmanager#TagKeyType" } }, "com.amazonaws.secretsmanager#TagKeyType": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 } } }, "com.amazonaws.secretsmanager#TagListType": { "type": "list", "member": { "target": "com.amazonaws.secretsmanager#Tag" } }, "com.amazonaws.secretsmanager#TagResource": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#TagResourceRequest" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Attaches one or more tags, each consisting of a key name and a value, to the specified\n secret. Tags are part of the secret's overall metadata, and are not associated with any\n specific version of the secret. This operation only appends tags to the existing list of tags.\n To remove tags, you must use UntagResource.
\nThe following basic restrictions apply to tags:
\nMaximum number of tags per secret—50
\nMaximum key length—127 Unicode characters in UTF-8
\nMaximum value length—255 Unicode characters in UTF-8
\nTag keys and values are case sensitive.
\nDo not use the aws:
prefix in your tag names or values because AWS reserves it\n for AWS use. You can't edit or delete tag names or values with this \n prefix. Tags with this prefix do not count against your tags per secret limit.
If you use your tagging schema across multiple services and resources,\n remember other services might have restrictions on allowed characters. Generally\n allowed characters: letters, spaces, and numbers representable in UTF-8, plus the\n following special characters: + - = . _ : / @.
\nIf you use tags as part of your security strategy, then adding or removing a tag can\n change permissions. If successfully completing this operation would result in you losing\n your permissions for this secret, then the operation is blocked and returns an Access Denied\n error.
\n\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:TagResource
\n\n Related operations\n
\nTo remove one or more tags from the collection attached to a secret, use UntagResource.
\nTo view the list of tags attached to a secret, use DescribeSecret.
\nThe identifier for the secret that you want to attach tags to. You can specify either the\n Amazon Resource Name (ARN) or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nThe tags to attach to the secret. Each element in the list consists of a Key
\n and a Value
.
This parameter to the API requires a JSON text string argument. For information on how to\n format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide. For the\n AWS CLI, you can also use the syntax: --Tags Key=\"Key1\",Value=\"Value1\"\n Key=\"Key2\",Value=\"Value2\"[,…]
\n
Removes one or more tags from the specified secret.
\nThis operation is idempotent. If a requested tag is not attached to the secret, no error\n is returned and the secret metadata is unchanged.
\nIf you use tags as part of your security strategy, then removing a tag can change\n permissions. If successfully completing this operation would result in you losing your\n permissions for this secret, then the operation is blocked and returns an Access Denied\n error.
\n\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:UntagResource
\n\n Related operations\n
\nTo add one or more tags to the collection attached to a secret, use TagResource.
\nTo view the list of tags attached to a secret, use DescribeSecret.
\nThe identifier for the secret that you want to remove tags from. You can specify either\n the Amazon Resource Name (ARN) or the friendly name of the secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nA list of tag key names to remove from the secret. You don't specify the value. Both the\n key and its associated value are removed.
\nThis parameter to the API requires a JSON text string argument. For information on how to\n format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the AWS CLI User Guide.
", "smithy.api#required": {} } } } }, "com.amazonaws.secretsmanager#UpdateSecret": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#UpdateSecretRequest" }, "output": { "target": "com.amazonaws.secretsmanager#UpdateSecretResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#EncryptionFailure" }, { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#LimitExceededException" }, { "target": "com.amazonaws.secretsmanager#MalformedPolicyDocumentException" }, { "target": "com.amazonaws.secretsmanager#PreconditionNotMetException" }, { "target": "com.amazonaws.secretsmanager#ResourceExistsException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Modifies many of the details of the specified secret. If you include a\n ClientRequestToken
and either\n SecretString
or SecretBinary
then it also creates a new version\n attached to the secret.
To modify the rotation configuration of a secret, use RotateSecret\n instead.
\nThe Secrets Manager console uses only the SecretString
parameter and therefore limits\n you to encrypting and storing only a text string. To encrypt and store binary data as part\n of the version of a secret, you must use either the AWS CLI or one of the AWS\n SDKs.
If a version with a VersionId
with the same value as the\n ClientRequestToken
parameter already exists, the operation results in an\n error. You cannot modify an existing version, you can only create a new version.
If you include SecretString
or SecretBinary
to create a new\n secret version, Secrets Manager automatically attaches the staging label AWSCURRENT
to the new\n version.
If you call an operation to encrypt or decrypt the SecretString
\n or SecretBinary
for a secret in the same account as the calling user and that \n secret doesn't specify a AWS KMS encryption key, Secrets Manager uses the account's default \n AWS managed customer master key (CMK) with the alias aws/secretsmanager
. If this key \n doesn't already exist in your account then Secrets Manager creates it for you automatically. All\n users and roles in the same AWS account automatically have access to use the default CMK. \n Note that if an Secrets Manager API call results in AWS creating the account's \n AWS-managed CMK, it can result in a one-time significant delay in returning the \n result.
If the secret resides in a different AWS account from the credentials calling an API that \n requires encryption or decryption of the secret value then you must create and use a custom \n AWS KMS CMK because you can't access the default CMK for the account using credentials \n from a different AWS account. Store the ARN of the CMK in the secret when you create the \n secret or when you update it by including it in the KMSKeyId
. If you call an \n API that must encrypt or decrypt SecretString
or SecretBinary
\n using credentials from a different account then the AWS KMS key policy must grant cross-account\n access to that other account's user or role for both the kms:GenerateDataKey and \n kms:Decrypt operations.
\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:UpdateSecret
\nkms:GenerateDataKey - needed only if you use a custom AWS KMS key to encrypt the secret.\n You do not need this permission to use the account's AWS managed CMK for\n Secrets Manager.
\nkms:Decrypt - needed only if you use a custom AWS KMS key to encrypt the secret. You do\n not need this permission to use the account's AWS managed CMK for Secrets Manager.
\n\n Related operations\n
\nTo create a new secret, use CreateSecret.
\nTo add only a new version to an existing secret, use PutSecretValue.
\nTo get the details for a secret, use DescribeSecret.
\nTo list the versions contained in a secret, use ListSecretVersionIds.
\nSpecifies the secret that you want to modify or to which you want to add a new version.\n You can specify either the Amazon Resource Name (ARN) or the friendly name of the\n secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\n(Optional) If you want to add a new version to the secret, this parameter specifies a\n unique identifier for the new version that helps ensure idempotency.
\nIf you use the AWS CLI or one of the AWS SDK to call this operation, then you can\n leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that\n in the request. If you don't use the SDK and instead generate a raw HTTP request to the Secrets Manager\n service endpoint, then you must generate a ClientRequestToken
yourself for new\n versions and include that value in the request.
You typically only need to interact with this value if you implement your own retry logic\n and want to ensure that a given secret is not created twice. We recommend that you generate a\n UUID-type\n value to ensure uniqueness within the specified secret.
\nSecrets Manager uses this value to prevent the accidental creation of duplicate versions if\n there are failures and retries during the Lambda rotation function's processing.
\nIf the ClientRequestToken
value isn't already associated with a version\n of the secret then a new version of the secret is created.
If a version with this value already exists and that version's\n SecretString
and SecretBinary
values are the same as those in\n the request then the request is ignored (the operation is idempotent).
If a version with this value already exists and that version's\n SecretString
and SecretBinary
values are different from the\n request then an error occurs because you cannot modify an existing secret value.
This value becomes the VersionId
of the new version.
(Optional) Specifies an updated user-provided description of the secret.
" } }, "KmsKeyId": { "target": "com.amazonaws.secretsmanager#KmsKeyIdType", "traits": { "smithy.api#documentation": "(Optional) Specifies an updated ARN or alias of the AWS KMS customer master key (CMK) to be\n used to encrypt the protected text in new versions of this secret.
\nYou can only use the account's default CMK to encrypt and decrypt if you call this\n operation using credentials from the same account that owns the secret. If the secret is in\n a different account, then you must create a custom CMK and provide the ARN of that CMK in\n this field. The user making the call must have permissions to both the secret and the CMK in\n their respective accounts.
\n(Optional) Specifies updated binary data that you want to encrypt and store in the new\n version of the secret. To use this parameter in the command-line tools, we recommend that you\n store your binary data in a file and then use the appropriate technique for your tool to pass\n the contents of the file as a parameter. Either SecretBinary
or\n SecretString
must have a value, but not both. They cannot both be empty.
This parameter is not accessible using the Secrets Manager console.
" } }, "SecretString": { "target": "com.amazonaws.secretsmanager#SecretStringType", "traits": { "smithy.api#documentation": "(Optional) Specifies updated text data that you want to encrypt and store in this new\n version of the secret. Either SecretBinary
or SecretString
must have\n a value, but not both. They cannot both be empty.
If you create this secret by using the Secrets Manager console then Secrets Manager puts the\n protected secret text in only the SecretString
parameter. The Secrets Manager console\n stores the information as a JSON structure of key/value pairs that the default Lambda rotation\n function knows how to parse.
For storing multiple values, we recommend that you use a JSON text string argument and\n specify key/value pairs. For information on how to format a JSON parameter for the various\n command line tool environments, see Using JSON for\n Parameters in the AWS CLI User Guide. For example:
\n\n [{\"username\":\"bob\"},{\"password\":\"abc123xyz456\"}]
\n
If your command-line tool or SDK requires quotation marks around the parameter, you should\n use single quotes to avoid confusion with the double quotes required in the JSON text. You can\n also 'escape' the double quote character in the embedded JSON text by prefacing each with a\n backslash. For example, the following string is surrounded by double-quotes. All of the\n embedded double quotes are escaped:
\n\n \"[{\\\"username\\\":\\\"bob\\\"},{\\\"password\\\":\\\"abc123xyz456\\\"}]\"
\n
The ARN of the secret that was updated.
\nSecrets Manager automatically adds several random characters to the name at the end of the ARN when\n you initially create a secret. This affects only the ARN and not the actual friendly name. \n This ensures that if you create a new secret with the same name as an old secret that you \n previously deleted, then users with access to the old secret don't \n automatically get access to the new secret because the ARNs are different.
\nThe friendly name of the secret that was updated.
" } }, "VersionId": { "target": "com.amazonaws.secretsmanager#SecretVersionIdType", "traits": { "smithy.api#documentation": "If a new version of the secret was created by this operation, then VersionId
\n contains the unique identifier of the new version.
Modifies the staging labels attached to a version of a secret. Staging labels are used to\n track a version as it progresses through the secret rotation process. You can attach a staging\n label to only one version of a secret at a time. If a staging label to be added is already\n attached to another version, then it is moved--removed from the other version first and\n then attached to this one. For more information about staging labels, see Staging\n Labels in the AWS Secrets Manager User Guide.
\nThe staging labels that you specify in the VersionStage
parameter are added\n 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\n call.
Whenever you move AWSCURRENT
, Secrets Manager automatically moves the label AWSPREVIOUS
\n 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\n considered to be 'deprecated' and can be deleted by Secrets Manager.
\n\n Minimum permissions\n
\nTo run this command, you must have the following permissions:
\nsecretsmanager:UpdateSecretVersionStage
\n\n Related operations\n
\nTo get the list of staging labels that are currently associated with a version of a\n secret, use \n DescribeSecret\n
and examine the\n SecretVersionsToStages
response value.
Specifies the secret with the version with the list of staging labels you want to modify.\n You can specify either the Amazon Resource Name (ARN) or the friendly name of the\n secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nThe staging label to add to this version.
", "smithy.api#required": {} } }, "RemoveFromVersionId": { "target": "com.amazonaws.secretsmanager#SecretVersionIdType", "traits": { "smithy.api#documentation": "Specifies the secret version ID of the version that the staging label is to be removed\n from. If the staging label you are trying to attach to one version is already attached to a\n different version, then you must include this parameter and specify the version that the label\n is to be removed from. If the label is attached and you either do not specify this parameter,\n or the version ID does not match, then the operation fails.
" } }, "MoveToVersionId": { "target": "com.amazonaws.secretsmanager#SecretVersionIdType", "traits": { "smithy.api#documentation": "(Optional) The secret version ID that you want to add the staging label. If you want to\n remove a label from a version, then do not specify this parameter.
\nIf the staging label is already attached to a different version of the secret, then you\n must also specify the RemoveFromVersionId
parameter.
The ARN of the secret with the modified staging label.
" } }, "Name": { "target": "com.amazonaws.secretsmanager#SecretNameType", "traits": { "smithy.api#documentation": "The friendly name of the secret with the modified staging label.
" } } } }, "com.amazonaws.secretsmanager#ValidateResourcePolicy": { "type": "operation", "input": { "target": "com.amazonaws.secretsmanager#ValidateResourcePolicyRequest" }, "output": { "target": "com.amazonaws.secretsmanager#ValidateResourcePolicyResponse" }, "errors": [ { "target": "com.amazonaws.secretsmanager#InternalServiceError" }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" }, { "target": "com.amazonaws.secretsmanager#InvalidRequestException" }, { "target": "com.amazonaws.secretsmanager#MalformedPolicyDocumentException" }, { "target": "com.amazonaws.secretsmanager#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Validates that the resource policy does not grant a wide range of IAM principals access to\n your secret. The JSON request string input and response output displays formatted code\n with white space and line breaks for better readability. Submit your input as a single line \n JSON string. A resource-based policy is optional for secrets.
\nThe API performs three checks when validating the secret:
\nSends a call to Zelkova, an automated reasoning engine, to ensure your Resource Policy does not\n allow broad access to your secret.
\nChecks for correct syntax in a policy.
\nVerifies the policy does not lock out a caller.
\n\n Minimum Permissions\n
\nYou must have the permissions required to access the following APIs:
\n\n secretsmanager:PutResourcePolicy
\n
\n secretsmanager:ValidateResourcePolicy
\n
(Optional) The identifier of the secret with the resource-based policy you want to\n validate. You can specify either the Amazon Resource Name (ARN) or the friendly name of the\n secret.
\nIf you specify an ARN, we generally recommend that you specify a complete ARN. You can \n specify a partial ARN too—for example, if you don’t include the final hyphen and six random \n characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN \n match can work as long as it uniquely matches only one secret. However, if your secret has a \n name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six \n characters to the ARN) and you try to use that as a partial ARN, then those characters cause \n Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you don’t create secret names ending \n with a hyphen followed by six characters.
\nIf you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you must not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a ResourceNotFoundException or an AccessDeniedException error, depending on your permissions.
\nA JSON-formatted string constructed according to the grammar and syntax for an AWS\n resource-based policy. The policy in the string identifies who can access or manage this\n secret and its versions. For information on how to format a JSON parameter for the various\n command line tool environments, see Using\n JSON for Parameters in the AWS CLI User Guide.publi
", "smithy.api#required": {} } } } }, "com.amazonaws.secretsmanager#ValidateResourcePolicyResponse": { "type": "structure", "members": { "PolicyValidationPassed": { "target": "com.amazonaws.secretsmanager#BooleanType", "traits": { "smithy.api#documentation": "Returns a message stating that your Reource Policy passed validation.
" } }, "ValidationErrors": { "target": "com.amazonaws.secretsmanager#ValidationErrorsType", "traits": { "smithy.api#documentation": "Returns an error message if your policy doesn't pass validatation.
" } } } }, "com.amazonaws.secretsmanager#ValidationErrorsEntry": { "type": "structure", "members": { "CheckName": { "target": "com.amazonaws.secretsmanager#NameType", "traits": { "smithy.api#documentation": "Checks the name of the policy.
" } }, "ErrorMessage": { "target": "com.amazonaws.secretsmanager#ErrorMessage", "traits": { "smithy.api#documentation": "Displays error messages if validation encounters problems during validation of the resource policy.
" } } }, "traits": { "smithy.api#documentation": "Displays errors that occurred during validation of the resource policy.
" } }, "com.amazonaws.secretsmanager#ValidationErrorsType": { "type": "list", "member": { "target": "com.amazonaws.secretsmanager#ValidationErrorsEntry" } }, "com.amazonaws.secretsmanager#secretsmanager": { "type": "service", "version": "2017-10-17", "operations": [ { "target": "com.amazonaws.secretsmanager#CancelRotateSecret" }, { "target": "com.amazonaws.secretsmanager#CreateSecret" }, { "target": "com.amazonaws.secretsmanager#DeleteResourcePolicy" }, { "target": "com.amazonaws.secretsmanager#DeleteSecret" }, { "target": "com.amazonaws.secretsmanager#DescribeSecret" }, { "target": "com.amazonaws.secretsmanager#GetRandomPassword" }, { "target": "com.amazonaws.secretsmanager#GetResourcePolicy" }, { "target": "com.amazonaws.secretsmanager#GetSecretValue" }, { "target": "com.amazonaws.secretsmanager#ListSecrets" }, { "target": "com.amazonaws.secretsmanager#ListSecretVersionIds" }, { "target": "com.amazonaws.secretsmanager#PutResourcePolicy" }, { "target": "com.amazonaws.secretsmanager#PutSecretValue" }, { "target": "com.amazonaws.secretsmanager#RemoveRegionsFromReplication" }, { "target": "com.amazonaws.secretsmanager#ReplicateSecretToRegions" }, { "target": "com.amazonaws.secretsmanager#RestoreSecret" }, { "target": "com.amazonaws.secretsmanager#RotateSecret" }, { "target": "com.amazonaws.secretsmanager#StopReplicationToReplica" }, { "target": "com.amazonaws.secretsmanager#TagResource" }, { "target": "com.amazonaws.secretsmanager#UntagResource" }, { "target": "com.amazonaws.secretsmanager#UpdateSecret" }, { "target": "com.amazonaws.secretsmanager#UpdateSecretVersionStage" }, { "target": "com.amazonaws.secretsmanager#ValidateResourcePolicy" } ], "traits": { "aws.api#service": { "sdkId": "Secrets Manager", "arnNamespace": "secretsmanager", "cloudFormationName": "SecretsManager", "cloudTrailEventSource": "secretsmanager.amazonaws.com", "endpointPrefix": "secretsmanager" }, "aws.auth#sigv4": { "name": "secretsmanager" }, "aws.protocols#awsJson1_1": {}, "smithy.api#documentation": "AWS Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.
\n\nThis guide provides descriptions of the Secrets Manager API. For more information about using this\n service, see the AWS Secrets Manager User Guide.
\n\n\n API Version\n
\n\nThis version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.
\nAs an alternative to using the API, you can use one of the AWS SDKs, which consist of\n libraries and sample code for various programming languages and platforms such as Java,\n Ruby, .NET, iOS, and Android. The SDKs provide a convenient way to create programmatic\n access to AWS Secrets Manager. For example, the SDKs provide cryptographically signing requests,\n managing errors, and retrying requests automatically. For more information about the AWS\n SDKs, including downloading and installing them, see Tools for Amazon Web Services.
\nWe recommend you use the AWS SDKs to make programmatic API calls to Secrets Manager. However, you\n also can use the Secrets Manager HTTP Query API to make direct calls to the Secrets Manager web service. To learn\n more about the Secrets Manager HTTP Query API, see Making Query Requests in the\n AWS Secrets Manager User Guide.
\nSecrets Manager API supports GET and POST requests for all actions, and doesn't require you to use\n GET for some actions and POST for others. However, GET requests are subject to the limitation\n size of a URL. Therefore, for operations that require larger sizes, use a POST request.
\n\n \n\n \n \n \n\n\n Support and Feedback for AWS Secrets Manager\n
\n\nWe welcome your feedback. Send your comments to awssecretsmanager-feedback@amazon.com, or post your feedback and questions in the AWS Secrets Manager Discussion Forum. For more\n information about the AWS Discussion Forums, see Forums\n Help.
\n\n\n How examples are presented\n
\n\nThe JSON that AWS Secrets Manager expects as your request parameters and the service returns as a\n response to HTTP query requests contain single, long strings without line breaks or white\n space formatting. The JSON shown in the examples displays the code formatted with both line\n breaks and white space to improve readability. When example input parameters can also cause\n long strings extending beyond the screen, you can insert line breaks to enhance readability.\n You should always submit the input as a single JSON text string.
\n\n\n\n Logging API Requests\n
\nAWS Secrets Manager supports AWS CloudTrail, a service that records AWS API calls for your AWS\n account and delivers log files to an Amazon S3 bucket. By using information that's collected\n by AWS CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the\n request, when it was made, and so on. For more about AWS Secrets Manager and support for AWS\n CloudTrail, see Logging\n AWS Secrets Manager Events with AWS CloudTrail in the AWS Secrets Manager User Guide.\n To learn more about CloudTrail, including enabling it and find your log files, see the AWS CloudTrail User Guide.
", "smithy.api#title": "AWS Secrets Manager" } } } }