aws-sdk-for-zig/codegen/models/secretsmanager.2017-10-17.json

2684 lines
212 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"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": "<p>Disables automatic scheduled rotation and cancels the rotation of a secret if currently in\n progress.</p>\n <p>To re-enable scheduled rotation, call <a>RotateSecret</a> with\n <code>AutomaticallyRotateAfterDays</code> set to a value greater than 0. This immediately\n rotates your secret and then enables the automatic schedule.</p>\n <note>\n <p>If you cancel a rotation while in progress, it can leave the <code>VersionStage</code>\n labels in an unexpected state. Depending on the step of the rotation in progress, you might\n need to remove the staging label <code>AWSPENDING</code> from the partially created version, specified\n by the <code>VersionId</code> 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 <code>VersionStage</code> field.</p>\n </note>\n <p>To successfully start a rotation, the staging label <code>AWSPENDING</code> must be in one of the\n following states:</p>\n <ul>\n <li>\n <p>Not attached to any version at all</p>\n </li>\n <li>\n <p>Attached to the same version as the staging label <code>AWSCURRENT</code>\n </p>\n </li>\n </ul>\n <p>If the staging label <code>AWSPENDING</code> attached to a different version than the version with\n <code>AWSCURRENT</code> then the attempt to rotate fails.</p>\n\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:CancelRotateSecret</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To configure rotation for a secret or to manually trigger a rotation, use <a>RotateSecret</a>.</p>\n </li>\n <li>\n <p>To get the rotation configuration details for a secret, use <a>DescribeSecret</a>.</p>\n </li>\n <li>\n <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>\n </li>\n <li>\n <p>To list all of the versions currently associated with a secret, use <a>ListSecretVersionIds</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#CancelRotateSecretRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies the secret to cancel a rotation request. You can specify either the Amazon\n Resource Name (ARN) or the friendly name of the secret.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.secretsmanager#CancelRotateSecretResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret for which rotation was canceled.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret for which rotation was canceled.</p>"
}
},
"VersionId": {
"target": "com.amazonaws.secretsmanager#SecretVersionIdType",
"traits": {
"smithy.api#documentation": "<p>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 <code>VersionStage</code> value <code>AWSPENDING</code> to enable this\n version to be deleted. Failing to clean up a cancelled rotation can block you from\n successfully starting future rotations.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#ClientRequestTokenType": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 32,
"max": 64
}
}
},
"com.amazonaws.secretsmanager#CreateSecret": {
"type": "operation",
"input": {
"target": "com.amazonaws.secretsmanager#CreateSecretRequest"
},
"output": {
"target": "com.amazonaws.secretsmanager#CreateSecretResponse"
},
"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": "<p>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.</p>\n <p>Secrets 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 <code>SecretVersionsToStages</code> 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.</p>\n <p>You provide the secret data to be encrypted by putting text in either the\n <code>SecretString</code> parameter or binary data in the <code>SecretBinary</code>\n parameter, but not both. If you include <code>SecretString</code> or <code>SecretBinary</code>\n then Secrets Manager also creates an initial secret version and automatically attaches the staging\n label <code>AWSCURRENT</code> to the new version.</p> \n <note>\n <ul>\n <li>\n <p>If you call an operation to encrypt or decrypt the <code>SecretString</code> \n or <code>SecretBinary</code> 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 <code>aws/secretsmanager</code>. 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.</p>\n </li>\n <li>\n <p>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 <code>KMSKeyId</code>. If you call an \n API that must encrypt or decrypt <code>SecretString</code> or <code>SecretBinary</code> \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.</p>\n </li>\n </ul>\n </note> \n <p> </p>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:CreateSecret</p>\n </li>\n <li>\n <p>kms: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.</p>\n </li>\n <li>\n <p>kms: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.</p>\n </li>\n <li>\n <p>secretsmanager:TagResource - needed only if you include the <code>Tags</code>\n parameter. </p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To delete a secret, use <a>DeleteSecret</a>.</p>\n </li>\n <li>\n <p>To modify an existing secret, use <a>UpdateSecret</a>.</p>\n </li>\n <li>\n <p>To create a new version of a secret, use <a>PutSecretValue</a>.</p>\n </li>\n <li>\n <p>To retrieve the encrypted secure string and secure binary values, use <a>GetSecretValue</a>.</p>\n </li>\n <li>\n <p>To retrieve all other details for a secret, use <a>DescribeSecret</a>. This\n does not include the encrypted secure string and secure binary values.</p>\n </li>\n <li>\n <p>To retrieve the list of secret versions associated with the current secret, use <a>DescribeSecret</a> and examine the <code>SecretVersionsToStages</code> response\n value.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#CreateSecretRequest": {
"type": "structure",
"members": {
"Name": {
"target": "com.amazonaws.secretsmanager#NameType",
"traits": {
"smithy.api#documentation": "<p>Specifies the friendly name of the new secret.</p>\n <p>The secret name must be ASCII letters, digits, or the following characters :\n /_+=.@-</p>\n <note>\n <p>Do 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.</p>\n </note>",
"smithy.api#required": {}
}
},
"ClientRequestToken": {
"target": "com.amazonaws.secretsmanager#ClientRequestTokenType",
"traits": {
"smithy.api#documentation": "<p>(Optional) If you include <code>SecretString</code> or <code>SecretBinary</code>, then an\n initial version is created as part of the secret, and this parameter specifies a unique\n identifier for the new version. </p>\n <note>\n <p>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 <code>ClientRequestToken</code> yourself for the new version and include the value in the\n request.</p>\n </note>\n <p>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 <a href=\"https://wikipedia.org/wiki/Universally_unique_identifier\">UUID-type</a> value to\n ensure uniqueness of your versions within the specified secret. </p>\n <ul>\n <li>\n <p>If the <code>ClientRequestToken</code> value isn't already associated with a version\n of the secret then a new version of the secret is created. </p>\n </li>\n <li>\n <p>If a version with this value already exists and the version <code>SecretString</code>\n and <code>SecretBinary</code> values are the same as those in the request, then the\n request is ignored.</p>\n </li>\n <li>\n <p>If a version with this value already exists and that version's\n <code>SecretString</code> and <code>SecretBinary</code> values are different from those\n in the request, then the request fails because you cannot modify an existing version.\n Instead, use <a>PutSecretValue</a> to create a new version.</p>\n </li>\n </ul>\n <p>This value becomes the <code>VersionId</code> of the new version.</p>",
"smithy.api#idempotencyToken": {}
}
},
"Description": {
"target": "com.amazonaws.secretsmanager#DescriptionType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Specifies a user-provided description of the secret.</p>"
}
},
"KmsKeyId": {
"target": "com.amazonaws.secretsmanager#KmsKeyIdType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Specifies the ARN, Key ID, or alias of the AWS KMS customer master key (CMK) to\n be used to encrypt the <code>SecretString</code> or <code>SecretBinary</code> values in the\n versions stored in this secret.</p>\n <p>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.</p>\n <p>If you don't specify this value, then Secrets Manager defaults to using the AWS account's\n default CMK (the one named <code>aws/secretsmanager</code>). 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 <code>SecretString</code> or <code>SecretBinary</code> fields.</p>\n <important>\n <p>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. </p>\n </important>"
}
},
"SecretBinary": {
"target": "com.amazonaws.secretsmanager#SecretBinaryType",
"traits": {
"smithy.api#documentation": "<p>(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.</p>\n <p>Either <code>SecretString</code> or <code>SecretBinary</code> must have a value, but not\n both. They cannot both be empty.</p>\n <p>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.</p>"
}
},
"SecretString": {
"target": "com.amazonaws.secretsmanager#SecretStringType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Specifies text data that you want to encrypt and store in this new version of\n the secret.</p>\n <p>Either <code>SecretString</code> or <code>SecretBinary</code> must have a value, but not\n both. They cannot both be empty.</p>\n <p>If you create a secret by using the Secrets Manager console then Secrets Manager puts the protected\n secret text in only the <code>SecretString</code> 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.</p>\n <p>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 <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json\">Using JSON for\n Parameters</a> in the <i>AWS CLI User Guide</i>. For example:</p>\n <p>\n <code>{\"username\":\"bob\",\"password\":\"abc123xyz456\"}</code>\n </p>\n <p>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. </p>"
}
},
"Tags": {
"target": "com.amazonaws.secretsmanager#TagListType",
"traits": {
"smithy.api#documentation": "<p>(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 <a>UntagResource</a>.</p>\n <important>\n <ul>\n <li>\n <p>Secrets Manager tag key names are case sensitive. A tag with the key \"ABC\" is a different tag\n from one with key \"abc\".</p>\n </li>\n <li>\n <p>If you check tags in IAM policy <code>Condition</code> 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 <code>Access Denied</code>\n error.</p>\n </li>\n </ul>\n </important>\n <p>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 <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json\">Using JSON for\n Parameters</a> in the <i>AWS CLI User Guide</i>. For example:</p>\n <p>\n <code>[{\"Key\":\"CostCenter\",\"Value\":\"12345\"},{\"Key\":\"environment\",\"Value\":\"production\"}]</code>\n </p>\n <p>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. </p>\n <p>The following basic restrictions apply to tags:</p>\n <ul>\n <li>\n <p>Maximum number of tags per secret—50</p>\n </li>\n <li>\n <p>Maximum key length—127 Unicode characters in UTF-8</p>\n </li>\n <li>\n <p>Maximum value length—255 Unicode characters in UTF-8</p>\n </li>\n <li>\n <p>Tag keys and values are case sensitive.</p>\n </li>\n <li>\n <p>Do not use the <code>aws:</code> 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.</p>\n </li>\n <li>\n <p>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: + - = . _ : / @.</p>\n </li>\n </ul>"
}
},
"AddReplicaRegions": {
"target": "com.amazonaws.secretsmanager#AddReplicaRegionListType",
"traits": {
"smithy.api#documentation": "<p>(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.</p>"
}
},
"ForceOverwriteReplicaSecret": {
"target": "com.amazonaws.secretsmanager#BooleanType",
"traits": {
"smithy.api#documentation": "<p>(Optional) If set, the replication overwrites a secret with the same name in the\n destination region.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#CreateSecretResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the secret that you just created.</p>\n <note>\n <p>Secrets 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 <i>don't</i> \n automatically get access to the new secret because the ARNs are different.</p>\n </note>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret that you just created.</p>"
}
},
"VersionId": {
"target": "com.amazonaws.secretsmanager#SecretVersionIdType",
"traits": {
"smithy.api#documentation": "<p>The unique identifier associated with the version of the secret you just created.</p>"
}
},
"ReplicationStatus": {
"target": "com.amazonaws.secretsmanager#ReplicationStatusListType",
"traits": {
"smithy.api#documentation": "<p>Describes a list of replication status objects as <code>InProgress</code>, <code>Failed</code> or <code>InSync</code>.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#CreatedDateType": {
"type": "timestamp"
},
"com.amazonaws.secretsmanager#DecryptionFailure": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>Secrets Manager can't decrypt the protected secret text using the provided KMS key. </p>",
"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": "<p>Deletes the resource-based permission policy attached to the secret.</p>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:DeleteResourcePolicy</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To attach a resource policy to a secret, use <a>PutResourcePolicy</a>.</p>\n </li>\n <li>\n <p>To retrieve the current resource-based policy attached to a secret, use <a>GetResourcePolicy</a>.</p>\n </li>\n <li>\n <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#DeleteResourcePolicyRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies 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.</p>\n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.secretsmanager#DeleteResourcePolicyResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret that the resource-based policy was deleted for.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#NameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret that the resource-based policy was deleted for.</p>"
}
}
}
},
"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": "<p>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 <code>DeletionDate</code> 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.</p>\n <p>At any time before recovery window ends, you can use <a>RestoreSecret</a> to\n remove the <code>DeletionDate</code> and cancel the deletion of the secret.</p>\n <p>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 <a>RestoreSecret</a> and then retrieve the information.</p>\n <note>\n <ul>\n <li>\n <p>There is no explicit operation to delete a version of a secret. Instead, remove all\n staging labels from the <code>VersionStage</code> 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 <a>ListSecretVersionIds</a> unless you\n specify <code>IncludeDeprecated</code>.</p>\n </li>\n <li>\n <p>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.</p>\n </li>\n </ul>\n </note>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:DeleteSecret</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To create a secret, use <a>CreateSecret</a>.</p>\n </li>\n <li>\n <p>To cancel deletion of a version of a secret before the recovery window has expired,\n use <a>RestoreSecret</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#DeleteSecretRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies the secret to delete. You can specify either the Amazon Resource Name (ARN) or\n the friendly name of the secret.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
},
"RecoveryWindowInDays": {
"target": "com.amazonaws.secretsmanager#RecoveryWindowInDaysType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>(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 <code>ForceDeleteWithoutRecovery</code>\n parameter in the same API call.</p>\n <p>This value can range from 7 to 30 days with a default value of 30.</p>"
}
},
"ForceDeleteWithoutRecovery": {
"target": "com.amazonaws.secretsmanager#BooleanType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>(Optional) Specifies that the secret is to be deleted without any recovery window. You\n can't use both this parameter and the <code>RecoveryWindowInDays</code> parameter in the same\n API call.</p>\n <p>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.</p>\n <important>\n <p>Use 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 <code>RecoveryWindowInDays</code> parameter. If you delete a secret with the\n <code>ForceDeleteWithouRecovery</code> parameter, then you have no opportunity to recover\n the secret. You lose the secret permanently.</p>\n </important>\n <important>\n <p>If you use this parameter and include a previously deleted or nonexistent secret, the\n operation does not return the error <code>ResourceNotFoundException</code> in order to\n correctly handle retries.</p>\n </important>"
}
}
}
},
"com.amazonaws.secretsmanager#DeleteSecretResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret that is now scheduled for deletion.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret currently scheduled for deletion.</p>"
}
},
"DeletionDate": {
"target": "com.amazonaws.secretsmanager#DeletionDateType",
"traits": {
"smithy.api#documentation": "<p>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 <code>RecoveryWindowInDays</code>.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#DeletedDateType": {
"type": "timestamp"
},
"com.amazonaws.secretsmanager#DeletionDateType": {
"type": "timestamp"
},
"com.amazonaws.secretsmanager#DescribeSecret": {
"type": "operation",
"input": {
"target": "com.amazonaws.secretsmanager#DescribeSecretRequest"
},
"output": {
"target": "com.amazonaws.secretsmanager#DescribeSecretResponse"
},
"errors": [
{
"target": "com.amazonaws.secretsmanager#InternalServiceError"
},
{
"target": "com.amazonaws.secretsmanager#ResourceNotFoundException"
}
],
"traits": {
"smithy.api#documentation": "<p>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. </p>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:DescribeSecret</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To create a secret, use <a>CreateSecret</a>.</p>\n </li>\n <li>\n <p>To modify a secret, use <a>UpdateSecret</a>.</p>\n </li>\n <li>\n <p>To retrieve the encrypted secret information in a version of the secret, use <a>GetSecretValue</a>.</p>\n </li>\n <li>\n <p>To list all of the secrets in the AWS account, use <a>ListSecrets</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#DescribeSecretRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>The 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.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.secretsmanager#DescribeSecretResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The user-provided friendly name of the secret.</p>"
}
},
"Description": {
"target": "com.amazonaws.secretsmanager#DescriptionType",
"traits": {
"smithy.api#documentation": "<p>The user-provided description of the secret.</p>"
}
},
"KmsKeyId": {
"target": "com.amazonaws.secretsmanager#KmsKeyIdType",
"traits": {
"smithy.api#documentation": "<p>The ARN or alias of the AWS KMS customer master key (CMK) that's used to encrypt the\n <code>SecretString</code> or <code>SecretBinary</code> 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 <code>awssecretsmanager</code>) for this account.</p>"
}
},
"RotationEnabled": {
"target": "com.amazonaws.secretsmanager#RotationEnabledType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>Specifies whether automatic rotation is enabled for this secret.</p>\n <p>To enable rotation, use <a>RotateSecret</a> with\n <code>AutomaticallyRotateAfterDays</code> set to a value greater than 0. To disable\n rotation, use <a>CancelRotateSecret</a>.</p>"
}
},
"RotationLambdaARN": {
"target": "com.amazonaws.secretsmanager#RotationLambdaARNType",
"traits": {
"smithy.api#documentation": "<p>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 <code>RotateSecret</code>.</p>"
}
},
"RotationRules": {
"target": "com.amazonaws.secretsmanager#RotationRulesType",
"traits": {
"smithy.api#documentation": "<p>A structure with the rotation configuration for this secret.</p>"
}
},
"LastRotatedDate": {
"target": "com.amazonaws.secretsmanager#LastRotatedDateType",
"traits": {
"smithy.api#documentation": "<p>The last date and time that the rotation process for this secret was invoked.</p>\n <p>The 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.</p>"
}
},
"LastChangedDate": {
"target": "com.amazonaws.secretsmanager#LastChangedDateType",
"traits": {
"smithy.api#documentation": "<p>The last date and time that this secret was modified in any way.</p>"
}
},
"LastAccessedDate": {
"target": "com.amazonaws.secretsmanager#LastAccessedDateType",
"traits": {
"smithy.api#documentation": "<p>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.</p>"
}
},
"DeletedDate": {
"target": "com.amazonaws.secretsmanager#DeletedDateType",
"traits": {
"smithy.api#documentation": "<p>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.</p>\n <p>If 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 <a>RestoreSecret</a>.</p>"
}
},
"Tags": {
"target": "com.amazonaws.secretsmanager#TagListType",
"traits": {
"smithy.api#documentation": "<p>The list of user-defined tags that are associated with the secret. To add tags to a\n secret, use <a>TagResource</a>. To remove tags, use <a>UntagResource</a>.</p>"
}
},
"VersionIdsToStages": {
"target": "com.amazonaws.secretsmanager#SecretVersionsToStagesMapType",
"traits": {
"smithy.api#documentation": "<p>A list of all of the currently assigned <code>VersionStage</code> staging labels and the\n <code>VersionId</code> that each is attached to. Staging labels are used to keep track of\n the different versions during the rotation process.</p>\n <note>\n <p>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.</p>\n </note>"
}
},
"OwningService": {
"target": "com.amazonaws.secretsmanager#OwningServiceType",
"traits": {
"smithy.api#documentation": "<p>Returns the name of the service that created this secret.</p>"
}
},
"CreatedDate": {
"target": "com.amazonaws.secretsmanager#TimestampType",
"traits": {
"smithy.api#documentation": "<p>The date you created the secret.</p>"
}
},
"PrimaryRegion": {
"target": "com.amazonaws.secretsmanager#RegionType",
"traits": {
"smithy.api#documentation": "<p>Specifies the primary region for secret replication. </p>"
}
},
"ReplicationStatus": {
"target": "com.amazonaws.secretsmanager#ReplicationStatusListType",
"traits": {
"smithy.api#documentation": "<p>Describes a list of replication status objects as <code>InProgress</code>, <code>Failed</code> or <code>InSync</code>.<code>P</code>\n </p>"
}
}
}
},
"com.amazonaws.secretsmanager#DescriptionType": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 2048
}
}
},
"com.amazonaws.secretsmanager#EncryptionFailure": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>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 <a href=\"http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html\">How Key State Affects Use of a\n Customer Master Key</a>.</p>",
"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": "<p>Filters your list of secrets by a specific key.</p>"
}
},
"Values": {
"target": "com.amazonaws.secretsmanager#FilterValuesStringList",
"traits": {
"smithy.api#documentation": "<p>Filters your list of secrets by a specific value.</p>\n <p>You can prefix your search value with an exclamation mark (<code>!</code>) in order to perform negation filters. </p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Allows you to add filters when you use the search function in Secrets Manager.</p>"
}
},
"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": "<p>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.</p>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:GetRandomPassword</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#GetRandomPasswordRequest": {
"type": "structure",
"members": {
"PasswordLength": {
"target": "com.amazonaws.secretsmanager#PasswordLengthType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>The desired length of the generated password. The default value if you do not include this\n parameter is 32 characters.</p>"
}
},
"ExcludeCharacters": {
"target": "com.amazonaws.secretsmanager#ExcludeCharactersType",
"traits": {
"smithy.api#documentation": "<p>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.</p>"
}
},
"ExcludeNumbers": {
"target": "com.amazonaws.secretsmanager#ExcludeNumbersType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>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.</p>"
}
},
"ExcludePunctuation": {
"target": "com.amazonaws.secretsmanager#ExcludePunctuationType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>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.</p>\n <p>The following are the punctuation characters that <i>can</i> be included in\n the generated password if you don't explicitly exclude them with\n <code>ExcludeCharacters</code> or <code>ExcludePunctuation</code>:</p>\n <p>\n <code>! \" # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \\ ] ^ _ ` { | }\n ~</code>\n </p>"
}
},
"ExcludeUppercase": {
"target": "com.amazonaws.secretsmanager#ExcludeUppercaseType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>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.</p>"
}
},
"ExcludeLowercase": {
"target": "com.amazonaws.secretsmanager#ExcludeLowercaseType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>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.</p>"
}
},
"IncludeSpace": {
"target": "com.amazonaws.secretsmanager#IncludeSpaceType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>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.</p>"
}
},
"RequireEachIncludedType": {
"target": "com.amazonaws.secretsmanager#RequireEachIncludedTypeType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>A boolean value that specifies whether the generated password must include at least one of\n every allowed character type. The default value is <code>True</code> and the operation\n requires at least one of every character type.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#GetRandomPasswordResponse": {
"type": "structure",
"members": {
"RandomPassword": {
"target": "com.amazonaws.secretsmanager#RandomPasswordType",
"traits": {
"smithy.api#documentation": "<p>A string with the generated password.</p>"
}
}
}
},
"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": "<p>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.</p>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:GetResourcePolicy</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To attach a resource policy to a secret, use <a>PutResourcePolicy</a>.</p>\n </li>\n <li>\n <p>To delete the resource-based policy attached to a secret, use <a>DeleteResourcePolicy</a>.</p>\n </li>\n <li>\n <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#GetResourcePolicyRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies 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.</p>\n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.secretsmanager#GetResourcePolicyResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret that the resource-based policy was retrieved for.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#NameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret that the resource-based policy was retrieved for.</p>"
}
},
"ResourcePolicy": {
"target": "com.amazonaws.secretsmanager#NonEmptyResourcePolicyType",
"traits": {
"smithy.api#documentation": "<p>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 <a href=\"http://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and Access Control for\n AWS Secrets Manager</a> in the <i>AWS Secrets Manager User Guide</i>.</p>"
}
}
}
},
"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": "<p>Retrieves the contents of the encrypted fields <code>SecretString</code> or\n <code>SecretBinary</code> from the specified version of a secret, whichever contains\n content.</p>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:GetSecretValue</p>\n </li>\n <li>\n <p>kms: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.</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To create a new version of the secret with different encrypted information, use <a>PutSecretValue</a>.</p>\n </li>\n <li>\n <p>To retrieve the non-encrypted details for the secret, use <a>DescribeSecret</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#GetSecretValueRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies 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.</p>\n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
},
"VersionId": {
"target": "com.amazonaws.secretsmanager#SecretVersionIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies the unique identifier of the version of the secret that you want to retrieve. If\n you specify both this parameter and <code>VersionStage</code>, the two parameters must refer\n to the same secret version. If you don't specify either a <code>VersionStage</code> or\n <code>VersionId</code> then the default is to perform the operation on the version with the\n <code>VersionStage</code> value of <code>AWSCURRENT</code>.</p>\n <p>This value is typically a <a href=\"https://wikipedia.org/wiki/Universally_unique_identifier\">UUID-type</a> value with\n 32 hexadecimal digits.</p>"
}
},
"VersionStage": {
"target": "com.amazonaws.secretsmanager#SecretVersionStageType",
"traits": {
"smithy.api#documentation": "<p>Specifies the secret version that you want to retrieve by the staging label attached to\n the version.</p>\n <p>Staging labels are used to keep track of different versions during the rotation process.\n If you specify both this parameter and <code>VersionId</code>, the two parameters must refer\n to the same secret version . If you don't specify either a <code>VersionStage</code> or\n <code>VersionId</code>, then the default is to perform the operation on the version with the\n <code>VersionStage</code> value of <code>AWSCURRENT</code>.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#GetSecretValueResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret.</p>"
}
},
"VersionId": {
"target": "com.amazonaws.secretsmanager#SecretVersionIdType",
"traits": {
"smithy.api#documentation": "<p>The unique identifier of this version of the secret.</p>"
}
},
"SecretBinary": {
"target": "com.amazonaws.secretsmanager#SecretBinaryType",
"traits": {
"smithy.api#documentation": "<p>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 <a href=\"https://tools.ietf.org/html/rfc4648#section-4\">base64-encoded</a>\n string.</p>\n <p>This parameter is not used if the secret is created by the Secrets Manager console.</p>\n <p>If 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 <code>SecretString</code> or <code>SecretBinary</code> fields.</p>"
}
},
"SecretString": {
"target": "com.amazonaws.secretsmanager#SecretStringType",
"traits": {
"smithy.api#documentation": "<p>The decrypted part of the protected secret information that was originally provided as a\n string.</p>\n <p>If you create this secret by using the Secrets Manager console then only the\n <code>SecretString</code> 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.</p>\n <p>If you store custom information in the secret by using the <a>CreateSecret</a>,\n <a>UpdateSecret</a>, or <a>PutSecretValue</a> API operations instead\n of the Secrets Manager console, or by using the <b>Other secret type</b> in\n the console, then you must code your Lambda rotation function to parse and interpret those\n values.</p>"
}
},
"VersionStages": {
"target": "com.amazonaws.secretsmanager#SecretVersionStagesType",
"traits": {
"smithy.api#documentation": "<p>A list of all of the staging labels currently attached to this version of the\n secret.</p>"
}
},
"CreatedDate": {
"target": "com.amazonaws.secretsmanager#CreatedDateType",
"traits": {
"smithy.api#documentation": "<p>The date and time that this version of the secret was created.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#IncludeSpaceType": {
"type": "boolean"
},
"com.amazonaws.secretsmanager#InternalServiceError": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>An error occurred on the server side.</p>",
"smithy.api#error": "server"
}
},
"com.amazonaws.secretsmanager#InvalidNextTokenException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>You provided an invalid <code>NextToken</code> value.</p>",
"smithy.api#error": "client"
}
},
"com.amazonaws.secretsmanager#InvalidParameterException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>You provided an invalid value for a parameter.</p>",
"smithy.api#error": "client"
}
},
"com.amazonaws.secretsmanager#InvalidRequestException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>You provided a parameter value that is not valid for the current state of the\n resource.</p>\n <p>Possible causes:</p>\n <ul>\n <li>\n <p>You tried to perform the operation on a secret that's currently marked deleted.</p>\n </li>\n <li>\n <p>You 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. </p>\n </li>\n </ul>",
"smithy.api#error": "client"
}
},
"com.amazonaws.secretsmanager#KmsKeyIdType": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 2048
}
}
},
"com.amazonaws.secretsmanager#LastAccessedDateType": {
"type": "timestamp"
},
"com.amazonaws.secretsmanager#LastChangedDateType": {
"type": "timestamp"
},
"com.amazonaws.secretsmanager#LastRotatedDateType": {
"type": "timestamp"
},
"com.amazonaws.secretsmanager#LimitExceededException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>The request failed because it would exceed one of the Secrets Manager internal limits.</p>",
"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": "<p>Lists all of the versions attached to the specified secret. The output does not include\n the <code>SecretString</code> or <code>SecretBinary</code> fields. By default, the list\n includes only versions that have at least one staging label in <code>VersionStage</code>\n attached.</p> \n <note>\n <p>Always check the <code>NextToken</code> response parameter \n when calling any of the <code>List*</code> 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 <code>NextToken</code> response parameter contains a value to pass to the \n next call to the same API to request the next part of the list.</p>\n </note> \n <p>\n <b>Minimum\n permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:ListSecretVersionIds</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To list the secrets in an account, use <a>ListSecrets</a>.</p>\n </li>\n </ul>",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
"pageSize": "MaxResults"
}
}
},
"com.amazonaws.secretsmanager#ListSecretVersionIdsRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>The 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.</p>\n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
},
"MaxResults": {
"target": "com.amazonaws.secretsmanager#MaxResultsType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>(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 <code>NextToken</code> response element is present and has a value (isn't null). Include\n that value as the <code>NextToken</code> 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 <code>NextToken</code> after every \n operation to ensure that you receive all of the results.</p>"
}
},
"NextToken": {
"target": "com.amazonaws.secretsmanager#NextTokenType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Use this parameter in a request if you receive a \n <code>NextToken</code> 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 <code>NextToken</code> response to indicate where the output should continue from.</p>"
}
},
"IncludeDeprecated": {
"target": "com.amazonaws.secretsmanager#BooleanType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>(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.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#ListSecretVersionIdsResponse": {
"type": "structure",
"members": {
"Versions": {
"target": "com.amazonaws.secretsmanager#SecretVersionsListType",
"traits": {
"smithy.api#documentation": "<p>The list of the currently available versions of the specified secret.</p>"
}
},
"NextToken": {
"target": "com.amazonaws.secretsmanager#NextTokenType",
"traits": {
"smithy.api#documentation": "<p>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 <code>NextToken</code> 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 <code>NextToken</code> response element comes back empty (as \n <code>null</code>).</p>"
}
},
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) for the secret.</p> \n <note>\n <p>Secrets 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 <i>don't</i> \n automatically get access to the new secret because the ARNs are different.</p>\n </note>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret.</p>"
}
}
}
},
"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": "<p>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 <a>ListSecretVersionIds</a>.\n The encrypted fields <code>SecretString</code> and <code>SecretBinary</code> are not included\n in the output. To get that information, call the <a>GetSecretValue</a>\n operation.</p> \n <note>\n <p>Always check the <code>NextToken</code> response parameter \n when calling any of the <code>List*</code> 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 <code>NextToken</code> response parameter contains a value to pass to the \n next call to the same API to request the next part of the list.</p>\n </note> \n <p>\n <b>Minimum\n permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:ListSecrets</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To list the versions attached to a secret, use <a>ListSecretVersionIds</a>.</p>\n </li>\n </ul>",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
"pageSize": "MaxResults"
}
}
},
"com.amazonaws.secretsmanager#ListSecretsRequest": {
"type": "structure",
"members": {
"MaxResults": {
"target": "com.amazonaws.secretsmanager#MaxResultsType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>(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 <code>NextToken</code> response element is present and has a value (isn't null). Include\n that value as the <code>NextToken</code> 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 <code>NextToken</code> after every \n operation to ensure that you receive all of the results.</p>"
}
},
"NextToken": {
"target": "com.amazonaws.secretsmanager#NextTokenType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Use this parameter in a request if you receive a \n <code>NextToken</code> 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 <code>NextToken</code> response to indicate where the output should continue from.</p>"
}
},
"Filters": {
"target": "com.amazonaws.secretsmanager#FiltersListType",
"traits": {
"smithy.api#documentation": "<p>Lists the secret request filters.</p>"
}
},
"SortOrder": {
"target": "com.amazonaws.secretsmanager#SortOrderType",
"traits": {
"smithy.api#documentation": "<p>Lists secrets in the requested order. </p>"
}
}
}
},
"com.amazonaws.secretsmanager#ListSecretsResponse": {
"type": "structure",
"members": {
"SecretList": {
"target": "com.amazonaws.secretsmanager#SecretListType",
"traits": {
"smithy.api#documentation": "<p>A list of the secrets in the account.</p>"
}
},
"NextToken": {
"target": "com.amazonaws.secretsmanager#NextTokenType",
"traits": {
"smithy.api#documentation": "<p>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 <code>NextToken</code> 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 <code>NextToken</code> response element comes back empty (as \n <code>null</code>).</p>"
}
}
}
},
"com.amazonaws.secretsmanager#MalformedPolicyDocumentException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>You provided a resource-based policy with syntax errors.</p>",
"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": "<p>The request failed because you did not complete all the prerequisite steps.</p>",
"smithy.api#error": "client"
}
},
"com.amazonaws.secretsmanager#PublicPolicyException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>The BlockPublicPolicy parameter is set to true and the resource policy did not prevent broad access to the secret.</p>",
"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": "<p>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 <code>Resources</code> 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 <a href=\"http://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-based-policies.html\">Using Resource-Based\n Policies for AWS Secrets Manager</a>. For the complete description of the AWS policy syntax and\n grammar, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html\">IAM JSON\n Policy Reference</a> in the <i>IAM User Guide</i>.</p>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:PutResourcePolicy</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To retrieve the resource policy attached to a secret, use <a>GetResourcePolicy</a>.</p>\n </li>\n <li>\n <p>To delete the resource-based policy attached to a secret, use <a>DeleteResourcePolicy</a>.</p>\n </li>\n <li>\n <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#PutResourcePolicyRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies 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.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
},
"ResourcePolicy": {
"target": "com.amazonaws.secretsmanager#NonEmptyResourcePolicyType",
"traits": {
"smithy.api#documentation": "<p>A 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 <a href=\"http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json\">Using\n JSON for Parameters</a> in the <i>AWS CLI User Guide</i>.</p>",
"smithy.api#required": {}
}
},
"BlockPublicPolicy": {
"target": "com.amazonaws.secretsmanager#BooleanType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>(Optional) If you set the parameter, <code>BlockPublicPolicy</code> to true, then you\n block resource-based policies that allow broad access to the secret.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#PutResourcePolicyResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret retrieved by the resource-based policy.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#NameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret retrieved by the resource-based policy.</p>"
}
}
}
},
"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": "<p>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 <code>SecretString</code> value or a new <code>SecretBinary</code> value. You can also\n specify the staging labels that are initially attached to the new version.</p>\n <note>\n <p>The Secrets Manager console uses only the <code>SecretString</code> field. To add binary data to a\n secret with the <code>SecretBinary</code> field you must use the AWS CLI or one of the\n AWS SDKs.</p>\n </note>\n <ul>\n <li>\n <p>If this operation creates the first version for the secret then Secrets Manager\n automatically attaches the staging label <code>AWSCURRENT</code> to the new version.</p>\n </li>\n <li>\n <p>If you do not specify a value for VersionStages then Secrets Manager automatically\n moves the staging label <code>AWSCURRENT</code> to this new version.</p>\n </li>\n <li>\n <p>If this operation moves the staging label <code>AWSCURRENT</code> from another version to this\n version, then Secrets Manager also automatically moves the staging label <code>AWSPREVIOUS</code> to\n the version that <code>AWSCURRENT</code> was removed from.</p>\n </li>\n <li>\n <p>This operation is idempotent. If a version with a <code>VersionId</code> with the same\n value as the <code>ClientRequestToken</code> 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.</p>\n </li>\n </ul> \n <note>\n <ul>\n <li>\n <p>If you call an operation to encrypt or decrypt the <code>SecretString</code> \n or <code>SecretBinary</code> 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 <code>aws/secretsmanager</code>. 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.</p>\n </li>\n <li>\n <p>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 <code>KMSKeyId</code>. If you call an \n API that must encrypt or decrypt <code>SecretString</code> or <code>SecretBinary</code> \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.</p>\n </li>\n </ul>\n </note> \n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:PutSecretValue</p>\n </li>\n <li>\n <p>kms: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.</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To retrieve the encrypted value you store in the version of a secret, use <a>GetSecretValue</a>.</p>\n </li>\n <li>\n <p>To create a secret, use <a>CreateSecret</a>.</p>\n </li>\n <li>\n <p>To get the details for a secret, use <a>DescribeSecret</a>.</p>\n </li>\n <li>\n <p>To list the versions attached to a secret, use <a>ListSecretVersionIds</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#PutSecretValueRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies 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.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
},
"ClientRequestToken": {
"target": "com.amazonaws.secretsmanager#ClientRequestTokenType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Specifies a unique identifier for the new version of the secret. </p>\n <note>\n <p>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 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 <code>ClientRequestToken</code> yourself\n for new versions and include that value in the request. </p>\n </note>\n <p>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 <a href=\"https://wikipedia.org/wiki/Universally_unique_identifier\">UUID-type</a> value to\n ensure uniqueness within the specified secret. </p>\n <ul>\n <li>\n <p>If the <code>ClientRequestToken</code> value isn't already associated with a version\n of the secret then a new version of the secret is created. </p>\n </li>\n <li>\n <p>If a version with this value already exists and that version's\n <code>SecretString</code> or <code>SecretBinary</code> values are the same as those in\n the request then the request is ignored (the operation is idempotent). </p>\n </li>\n <li>\n <p>If a version with this value already exists and the version of the\n <code>SecretString</code> and <code>SecretBinary</code> 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.</p>\n </li>\n </ul>\n <p>This value becomes the <code>VersionId</code> of the new version.</p>",
"smithy.api#idempotencyToken": {}
}
},
"SecretBinary": {
"target": "com.amazonaws.secretsmanager#SecretBinaryType",
"traits": {
"smithy.api#documentation": "<p>(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 <code>SecretBinary</code> or\n <code>SecretString</code> must have a value, but not both. They cannot both be empty.</p>\n \n <p>This parameter is not accessible if the secret using the Secrets Manager console.</p>\n <p></p>"
}
},
"SecretString": {
"target": "com.amazonaws.secretsmanager#SecretStringType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Specifies text data that you want to encrypt and store in this new version of\n the secret. Either <code>SecretString</code> or <code>SecretBinary</code> must have a value,\n but not both. They cannot both be empty.</p>\n \n <p>If you create this secret by using the Secrets Manager console then Secrets Manager puts the\n protected secret text in only the <code>SecretString</code> 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.</p>\n <p>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 <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json\">Using JSON for\n Parameters</a> in the <i>AWS CLI User Guide</i>.</p>\n <p> For example:</p>\n <p>\n <code>[{\"username\":\"bob\"},{\"password\":\"abc123xyz456\"}]</code>\n </p>\n <p>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.</p>"
}
},
"VersionStages": {
"target": "com.amazonaws.secretsmanager#SecretVersionStagesType",
"traits": {
"smithy.api#documentation": "<p>(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.</p>\n <p>A 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.</p>\n <p>If you do not specify a value for <code>VersionStages</code> then Secrets Manager automatically\n moves the staging label <code>AWSCURRENT</code> to this new version.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#PutSecretValueResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) for the secret for which you just created a version.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret for which you just created or updated a version.</p>"
}
},
"VersionId": {
"target": "com.amazonaws.secretsmanager#SecretVersionIdType",
"traits": {
"smithy.api#documentation": "<p>The unique identifier of the version of the secret you just created or updated.</p>"
}
},
"VersionStages": {
"target": "com.amazonaws.secretsmanager#SecretVersionStagesType",
"traits": {
"smithy.api#documentation": "<p>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.</p>"
}
}
}
},
"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": "<p>Remove regions from replication.</p>"
}
},
"com.amazonaws.secretsmanager#RemoveRegionsFromReplicationRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Remove a secret by <code>SecretId</code> from replica Regions.</p>",
"smithy.api#required": {}
}
},
"RemoveReplicaRegions": {
"target": "com.amazonaws.secretsmanager#RemoveReplicaRegionListType",
"traits": {
"smithy.api#documentation": "<p>Remove replication from specific Regions.</p>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.secretsmanager#RemoveRegionsFromReplicationResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The secret <code>ARN</code> removed from replication regions.</p>"
}
},
"ReplicationStatus": {
"target": "com.amazonaws.secretsmanager#ReplicationStatusListType",
"traits": {
"smithy.api#documentation": "<p>Describes the remaining replication status after you remove regions from the replication list.</p>"
}
}
}
},
"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": "<p>Describes a single instance of Region objects.</p>"
}
},
"KmsKeyId": {
"target": "com.amazonaws.secretsmanager#KmsKeyIdType",
"traits": {
"smithy.api#documentation": "<p>Can be an <code>ARN</code>, <code>Key ID</code>, or <code>Alias</code>. </p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>(Optional) Custom type consisting of a <code>Region</code> (required) and the <code>KmsKeyId</code> which can be an <code>ARN</code>, <code>Key ID</code>, or <code>Alias</code>.</p>"
}
},
"com.amazonaws.secretsmanager#ReplicateSecretToRegions": {
"type": "operation",
"input": {
"target": "com.amazonaws.secretsmanager#ReplicateSecretToRegionsRequest"
},
"output": {
"target": "com.amazonaws.secretsmanager#ReplicateSecretToRegionsResponse"
},
"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": "<p>Converts an existing secret to a multi-Region secret and begins replication the secret to a\n list of new regions. </p>"
}
},
"com.amazonaws.secretsmanager#ReplicateSecretToRegionsRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Use the <code>Secret Id</code> to replicate a secret to regions.</p>",
"smithy.api#required": {}
}
},
"AddReplicaRegions": {
"target": "com.amazonaws.secretsmanager#AddReplicaRegionListType",
"traits": {
"smithy.api#documentation": "<p>Add Regions to replicate the secret.</p>",
"smithy.api#required": {}
}
},
"ForceOverwriteReplicaSecret": {
"target": "com.amazonaws.secretsmanager#BooleanType",
"traits": {
"smithy.api#documentation": "<p>(Optional) If set, Secrets Manager replication overwrites a secret with the same name in the\n destination region.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#ReplicateSecretToRegionsResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>Replicate a secret based on the <code>ReplicaRegionType</code>> consisting of a\n Region(required) and a KMSKeyId (optional) which can be the ARN, KeyID, or Alias. </p>"
}
},
"ReplicationStatus": {
"target": "com.amazonaws.secretsmanager#ReplicationStatusListType",
"traits": {
"smithy.api#documentation": "<p>Describes the secret replication status as <code>PENDING</code>, <code>SUCCESS</code> or <code>FAIL</code>.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#ReplicationStatusListType": {
"type": "list",
"member": {
"target": "com.amazonaws.secretsmanager#ReplicationStatusType"
}
},
"com.amazonaws.secretsmanager#ReplicationStatusType": {
"type": "structure",
"members": {
"Region": {
"target": "com.amazonaws.secretsmanager#RegionType",
"traits": {
"smithy.api#documentation": "<p>The Region where replication occurs.</p>"
}
},
"KmsKeyId": {
"target": "com.amazonaws.secretsmanager#KmsKeyIdType",
"traits": {
"smithy.api#documentation": "<p>Can be an <code>ARN</code>, <code>Key ID</code>, or <code>Alias</code>. </p>"
}
},
"Status": {
"target": "com.amazonaws.secretsmanager#StatusType",
"traits": {
"smithy.api#documentation": "<p>The status can be <code>InProgress</code>, <code>Failed</code>, or <code>InSync</code>.</p>"
}
},
"StatusMessage": {
"target": "com.amazonaws.secretsmanager#StatusMessageType",
"traits": {
"smithy.api#documentation": "<p>Status message such as \"<i>Secret with this name already exists in this\n region</i>\".</p>"
}
},
"LastAccessedDate": {
"target": "com.amazonaws.secretsmanager#LastAccessedDateType",
"traits": {
"smithy.api#documentation": "<p>The date that you last accessed the secret in the Region. </p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>A replication object consisting of a <code>RegionReplicationStatus</code> object and includes a Region, KMSKeyId, status, and status message.</p>"
}
},
"com.amazonaws.secretsmanager#RequireEachIncludedTypeType": {
"type": "boolean"
},
"com.amazonaws.secretsmanager#ResourceExistsException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>A resource with the ID you requested already exists.</p>",
"smithy.api#error": "client"
}
},
"com.amazonaws.secretsmanager#ResourceNotFoundException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.secretsmanager#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>We can't find the resource that you asked for.</p>",
"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": "<p>Cancels the scheduled deletion of a secret by removing the <code>DeletedDate</code> time\n stamp. This makes the secret accessible to query once again.</p>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:RestoreSecret</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To delete a secret, use <a>DeleteSecret</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#RestoreSecretRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies 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.</p>\n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.secretsmanager#RestoreSecretResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret that was restored.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret that was restored.</p>"
}
}
}
},
"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": "<p>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. </p>\n <p>This 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 <code>AWSCURRENT</code> 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 <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html\">Rotating Secrets in AWS Secrets Manager</a> in the\n <i>AWS Secrets Manager User Guide</i>.</p> \n <p>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.</p> \n <p>The\n rotation function must end with the versions of the secret in one of two states:</p>\n <ul>\n <li>\n <p>The <code>AWSPENDING</code> and <code>AWSCURRENT</code> staging labels are attached to the same version of\n the secret, or</p>\n </li>\n <li>\n <p>The <code>AWSPENDING</code> staging label is not attached to any version of the secret.</p>\n </li>\n </ul>\n <p>If the <code>AWSPENDING</code> staging label is present but not attached to the same version as\n <code>AWSCURRENT</code> then any later invocation of <code>RotateSecret</code> assumes that a previous\n rotation request is still in progress and returns an error.</p>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:RotateSecret</p>\n </li>\n <li>\n <p>lambda:InvokeFunction (on the function specified in the secret's metadata)</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To list the secrets in your account, use <a>ListSecrets</a>.</p>\n </li>\n <li>\n <p>To get the details for a version of a secret, use <a>DescribeSecret</a>.</p>\n </li>\n <li>\n <p>To create a new version of a secret, use <a>CreateSecret</a>.</p>\n </li>\n <li>\n <p>To attach staging labels to or remove staging labels from a version of a secret, use\n <a>UpdateSecretVersionStage</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#RotateSecretRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies the secret that you want to rotate. You can specify either the Amazon Resource\n Name (ARN) or the friendly name of the secret.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
},
"ClientRequestToken": {
"target": "com.amazonaws.secretsmanager#ClientRequestTokenType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Specifies a unique identifier for the new version of the secret that helps\n ensure idempotency. </p>\n <p>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 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 <code>ClientRequestToken</code> yourself for new versions and include that value in the\n request.</p>\n <p>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 <a href=\"https://wikipedia.org/wiki/Universally_unique_identifier\">UUID-type</a> value to\n ensure uniqueness within the specified secret. </p>\n <p>Secrets 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 <code>VersionId</code> of the new version.</p>",
"smithy.api#idempotencyToken": {}
}
},
"RotationLambdaARN": {
"target": "com.amazonaws.secretsmanager#RotationLambdaARNType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Specifies the ARN of the Lambda function that can rotate the secret.</p>"
}
},
"RotationRules": {
"target": "com.amazonaws.secretsmanager#RotationRulesType",
"traits": {
"smithy.api#documentation": "<p>A structure that defines the rotation configuration for this secret.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#RotateSecretResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret.</p>"
}
},
"VersionId": {
"target": "com.amazonaws.secretsmanager#SecretVersionIdType",
"traits": {
"smithy.api#documentation": "<p>The ID of the new version of the secret created by the rotation started by this\n request.</p>"
}
}
}
},
"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": "<p>Specifies the number of days between automatic scheduled rotations of the secret.</p>\n <p>Secrets 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.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>A structure that defines the rotation configuration for the secret.</p>"
}
},
"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": "<p>The Amazon Resource Name (ARN) of the secret.</p>\n <p>For more information about ARNs in Secrets Manager, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#iam-resources\">Policy Resources</a> in the\n <i>AWS Secrets Manager User Guide</i>.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret. You can use forward slashes in the name to represent a\n path hierarchy. For example, <code>/prod/databases/dbserver1</code> could represent the secret\n for a server named <code>dbserver1</code> in the folder <code>databases</code> in the folder\n <code>prod</code>. </p>"
}
},
"Description": {
"target": "com.amazonaws.secretsmanager#DescriptionType",
"traits": {
"smithy.api#documentation": "<p>The user-provided description of the secret.</p>"
}
},
"KmsKeyId": {
"target": "com.amazonaws.secretsmanager#KmsKeyIdType",
"traits": {
"smithy.api#documentation": "<p>The ARN or alias of the AWS KMS customer master key (CMK) used to encrypt the\n <code>SecretString</code> and <code>SecretBinary</code> 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 <code>awssecretsmanager</code>, for this account.</p>"
}
},
"RotationEnabled": {
"target": "com.amazonaws.secretsmanager#RotationEnabledType",
"traits": {
"smithy.api#box": {},
"smithy.api#documentation": "<p>Indicates whether automatic, scheduled rotation is enabled for this secret.</p>"
}
},
"RotationLambdaARN": {
"target": "com.amazonaws.secretsmanager#RotationLambdaARNType",
"traits": {
"smithy.api#documentation": "<p>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 <a>RotateSecret</a>.</p>"
}
},
"RotationRules": {
"target": "com.amazonaws.secretsmanager#RotationRulesType",
"traits": {
"smithy.api#documentation": "<p>A structure that defines the rotation configuration for the secret.</p>"
}
},
"LastRotatedDate": {
"target": "com.amazonaws.secretsmanager#LastRotatedDateType",
"traits": {
"smithy.api#documentation": "<p>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.</p>"
}
},
"LastChangedDate": {
"target": "com.amazonaws.secretsmanager#LastChangedDateType",
"traits": {
"smithy.api#documentation": "<p>The last date and time that this secret was modified in any way.</p>"
}
},
"LastAccessedDate": {
"target": "com.amazonaws.secretsmanager#LastAccessedDateType",
"traits": {
"smithy.api#documentation": "<p>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.</p>"
}
},
"DeletedDate": {
"target": "com.amazonaws.secretsmanager#DeletedDateType",
"traits": {
"smithy.api#documentation": "<p>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 <code>RecoveryWindowInDays</code> parameter of the <a>DeleteSecret</a> operation.</p>"
}
},
"Tags": {
"target": "com.amazonaws.secretsmanager#TagListType",
"traits": {
"smithy.api#documentation": "<p>The list of user-defined tags associated with the secret. To add tags to a\n secret, use <a>TagResource</a>. To remove tags, use <a>UntagResource</a>.</p>"
}
},
"SecretVersionsToStages": {
"target": "com.amazonaws.secretsmanager#SecretVersionsToStagesMapType",
"traits": {
"smithy.api#documentation": "<p>A list of all of the currently assigned <code>SecretVersionStage</code> staging labels and\n the <code>SecretVersionId</code> attached to each one. Staging labels are used to keep\n track of the different versions during the rotation process.</p>\n <note>\n <p>A version that does not have any <code>SecretVersionStage</code> is considered\n deprecated and subject to deletion. Such versions are not included in this list.</p>\n </note>"
}
},
"OwningService": {
"target": "com.amazonaws.secretsmanager#OwningServiceType",
"traits": {
"smithy.api#documentation": "<p>Returns the name of the service that created the secret.</p>"
}
},
"CreatedDate": {
"target": "com.amazonaws.secretsmanager#TimestampType",
"traits": {
"smithy.api#documentation": "<p>The date and time when a secret was created.</p>"
}
},
"PrimaryRegion": {
"target": "com.amazonaws.secretsmanager#RegionType",
"traits": {
"smithy.api#documentation": "<p>The Region where Secrets Manager originated the secret.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>A structure that contains the details about a secret. It does not include the encrypted\n <code>SecretString</code> and <code>SecretBinary</code> values. To get those values, use the\n <a>GetSecretValue</a> operation.</p>"
}
},
"com.amazonaws.secretsmanager#SecretListType": {
"type": "list",
"member": {
"target": "com.amazonaws.secretsmanager#SecretListEntry"
}
},
"com.amazonaws.secretsmanager#SecretNameType": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 256
}
}
},
"com.amazonaws.secretsmanager#SecretStringType": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 65536
},
"smithy.api#sensitive": {}
}
},
"com.amazonaws.secretsmanager#SecretVersionIdType": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 32,
"max": 64
}
}
},
"com.amazonaws.secretsmanager#SecretVersionStageType": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 256
}
}
},
"com.amazonaws.secretsmanager#SecretVersionStagesType": {
"type": "list",
"member": {
"target": "com.amazonaws.secretsmanager#SecretVersionStageType"
},
"traits": {
"smithy.api#length": {
"min": 1,
"max": 20
}
}
},
"com.amazonaws.secretsmanager#SecretVersionsListEntry": {
"type": "structure",
"members": {
"VersionId": {
"target": "com.amazonaws.secretsmanager#SecretVersionIdType",
"traits": {
"smithy.api#documentation": "<p>The unique version identifier of this version of the secret.</p>"
}
},
"VersionStages": {
"target": "com.amazonaws.secretsmanager#SecretVersionStagesType",
"traits": {
"smithy.api#documentation": "<p>An array of staging labels that are currently associated with this version of the\n secret.</p>"
}
},
"LastAccessedDate": {
"target": "com.amazonaws.secretsmanager#LastAccessedDateType",
"traits": {
"smithy.api#documentation": "<p>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.</p>"
}
},
"CreatedDate": {
"target": "com.amazonaws.secretsmanager#CreatedDateType",
"traits": {
"smithy.api#documentation": "<p>The date and time this version of the secret was created.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>A structure that contains information about one version of a secret.</p>"
}
},
"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": "<p>Removes the secret from replication and promotes the secret to a regional secret in the replica Region.</p>"
}
},
"com.amazonaws.secretsmanager#StopReplicationToReplicaRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Response to <code>StopReplicationToReplica</code> of a secret, based on the <code>SecretId</code>.</p>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.secretsmanager#StopReplicationToReplicaResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>Response <code>StopReplicationToReplica</code> of a secret, based on the <code>ARN,</code>.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#Tag": {
"type": "structure",
"members": {
"Key": {
"target": "com.amazonaws.secretsmanager#TagKeyType",
"traits": {
"smithy.api#documentation": "<p>The key identifier, or name, of the tag.</p>"
}
},
"Value": {
"target": "com.amazonaws.secretsmanager#TagValueType",
"traits": {
"smithy.api#documentation": "<p>The string value associated with the key of the tag.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>A structure that contains information about a tag.</p>"
}
},
"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": "<p>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 <a>UntagResource</a>.</p> \n <p>The following basic restrictions apply to tags:</p>\n <ul>\n <li>\n <p>Maximum number of tags per secret—50</p>\n </li>\n <li>\n <p>Maximum key length—127 Unicode characters in UTF-8</p>\n </li>\n <li>\n <p>Maximum value length—255 Unicode characters in UTF-8</p>\n </li>\n <li>\n <p>Tag keys and values are case sensitive.</p>\n </li>\n <li>\n <p>Do not use the <code>aws:</code> 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.</p>\n </li>\n <li>\n <p>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: + - = . _ : / @.</p>\n </li>\n </ul>\n <important>\n <p>If 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.</p>\n </important>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:TagResource</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To remove one or more tags from the collection attached to a secret, use <a>UntagResource</a>.</p>\n </li>\n <li>\n <p>To view the list of tags attached to a secret, use <a>DescribeSecret</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#TagResourceRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>The 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.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
},
"Tags": {
"target": "com.amazonaws.secretsmanager#TagListType",
"traits": {
"smithy.api#documentation": "<p>The tags to attach to the secret. Each element in the list consists of a <code>Key</code>\n and a <code>Value</code>.</p>\n <p>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 <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json\">Using JSON for Parameters</a> in the <i>AWS CLI User Guide</i>. For the\n AWS CLI, you can also use the syntax: <code>--Tags Key=\"Key1\",Value=\"Value1\"\n Key=\"Key2\",Value=\"Value2\"[,…]</code>\n </p>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.secretsmanager#TagValueType": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 256
}
}
},
"com.amazonaws.secretsmanager#TimestampType": {
"type": "timestamp"
},
"com.amazonaws.secretsmanager#UntagResource": {
"type": "operation",
"input": {
"target": "com.amazonaws.secretsmanager#UntagResourceRequest"
},
"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": "<p>Removes one or more tags from the specified secret.</p>\n <p>This operation is idempotent. If a requested tag is not attached to the secret, no error\n is returned and the secret metadata is unchanged.</p>\n <important>\n <p>If 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.</p>\n </important>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:UntagResource</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To add one or more tags to the collection attached to a secret, use <a>TagResource</a>.</p>\n </li>\n <li>\n <p>To view the list of tags attached to a secret, use <a>DescribeSecret</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#UntagResourceRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>The 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.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
},
"TagKeys": {
"target": "com.amazonaws.secretsmanager#TagKeyListType",
"traits": {
"smithy.api#documentation": "<p>A 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.</p>\n <p>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 <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json\">Using JSON for Parameters</a> in the <i>AWS CLI User Guide</i>.</p>",
"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": "<p>Modifies many of the details of the specified secret. If you include a\n <code>ClientRequestToken</code> and <i>either</i>\n <code>SecretString</code> or <code>SecretBinary</code> then it also creates a new version\n attached to the secret.</p>\n <p>To modify the rotation configuration of a secret, use <a>RotateSecret</a>\n instead.</p>\n <note>\n <p>The Secrets Manager console uses only the <code>SecretString</code> 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.</p>\n </note>\n <ul>\n <li>\n <p>If a version with a <code>VersionId</code> with the same value as the\n <code>ClientRequestToken</code> parameter already exists, the operation results in an\n error. You cannot modify an existing version, you can only create a new version.</p>\n </li>\n <li>\n <p>If you include <code>SecretString</code> or <code>SecretBinary</code> to create a new\n secret version, Secrets Manager automatically attaches the staging label <code>AWSCURRENT</code> to the new\n version. </p>\n </li>\n </ul> \n <note>\n <ul>\n <li>\n <p>If you call an operation to encrypt or decrypt the <code>SecretString</code> \n or <code>SecretBinary</code> 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 <code>aws/secretsmanager</code>. 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.</p>\n </li>\n <li>\n <p>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 <code>KMSKeyId</code>. If you call an \n API that must encrypt or decrypt <code>SecretString</code> or <code>SecretBinary</code> \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.</p>\n </li>\n </ul>\n </note> \n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:UpdateSecret</p>\n </li>\n <li>\n <p>kms: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.</p>\n </li>\n <li>\n <p>kms: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.</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To create a new secret, use <a>CreateSecret</a>.</p>\n </li>\n <li>\n <p>To add only a new version to an existing secret, use <a>PutSecretValue</a>.</p>\n </li>\n <li>\n <p>To get the details for a secret, use <a>DescribeSecret</a>.</p>\n </li>\n <li>\n <p>To list the versions contained in a secret, use <a>ListSecretVersionIds</a>.</p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#UpdateSecretRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>Specifies 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.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
},
"ClientRequestToken": {
"target": "com.amazonaws.secretsmanager#ClientRequestTokenType",
"traits": {
"smithy.api#documentation": "<p>(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. </p>\n <p>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 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 <code>ClientRequestToken</code> yourself for new\n versions and include that value in the request.</p>\n <p>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 <a href=\"https://wikipedia.org/wiki/Universally_unique_identifier\">UUID-type</a>\n value to ensure uniqueness within the specified secret. </p>\n <p>Secrets 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.</p>\n <ul>\n <li>\n <p>If the <code>ClientRequestToken</code> value isn't already associated with a version\n of the secret then a new version of the secret is created. </p>\n </li>\n <li>\n <p>If a version with this value already exists and that version's\n <code>SecretString</code> and <code>SecretBinary</code> values are the same as those in\n the request then the request is ignored (the operation is idempotent). </p>\n </li>\n <li>\n <p>If a version with this value already exists and that version's\n <code>SecretString</code> and <code>SecretBinary</code> values are different from the\n request then an error occurs because you cannot modify an existing secret value.</p>\n </li>\n </ul>\n <p>This value becomes the <code>VersionId</code> of the new version.</p>",
"smithy.api#idempotencyToken": {}
}
},
"Description": {
"target": "com.amazonaws.secretsmanager#DescriptionType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Specifies an updated user-provided description of the secret.</p>"
}
},
"KmsKeyId": {
"target": "com.amazonaws.secretsmanager#KmsKeyIdType",
"traits": {
"smithy.api#documentation": "<p>(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.</p>\n <important>\n <p>You 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.</p>\n </important>"
}
},
"SecretBinary": {
"target": "com.amazonaws.secretsmanager#SecretBinaryType",
"traits": {
"smithy.api#documentation": "<p>(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 <code>SecretBinary</code> or\n <code>SecretString</code> must have a value, but not both. They cannot both be empty.</p>\n <p>This parameter is not accessible using the Secrets Manager console.</p>"
}
},
"SecretString": {
"target": "com.amazonaws.secretsmanager#SecretStringType",
"traits": {
"smithy.api#documentation": "<p>(Optional) Specifies updated text data that you want to encrypt and store in this new\n version of the secret. Either <code>SecretBinary</code> or <code>SecretString</code> must have\n a value, but not both. They cannot both be empty.</p>\n <p>If you create this secret by using the Secrets Manager console then Secrets Manager puts the\n protected secret text in only the <code>SecretString</code> 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.</p>\n <p>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 <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json\">Using JSON for\n Parameters</a> in the <i>AWS CLI User Guide</i>. For example:</p>\n <p>\n <code>[{\"username\":\"bob\"},{\"password\":\"abc123xyz456\"}]</code>\n </p>\n <p>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:</p>\n <p>\n <code>\"[{\\\"username\\\":\\\"bob\\\"},{\\\"password\\\":\\\"abc123xyz456\\\"}]\"</code>\n </p>"
}
}
}
},
"com.amazonaws.secretsmanager#UpdateSecretResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret that was updated.</p> \n <note>\n <p>Secrets 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 <i>don't</i> \n automatically get access to the new secret because the ARNs are different.</p>\n </note>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret that was updated.</p>"
}
},
"VersionId": {
"target": "com.amazonaws.secretsmanager#SecretVersionIdType",
"traits": {
"smithy.api#documentation": "<p>If a new version of the secret was created by this operation, then <code>VersionId</code>\n contains the unique identifier of the new version.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#UpdateSecretVersionStage": {
"type": "operation",
"input": {
"target": "com.amazonaws.secretsmanager#UpdateSecretVersionStageRequest"
},
"output": {
"target": "com.amazonaws.secretsmanager#UpdateSecretVersionStageResponse"
},
"errors": [
{
"target": "com.amazonaws.secretsmanager#InternalServiceError"
},
{
"target": "com.amazonaws.secretsmanager#InvalidParameterException"
},
{
"target": "com.amazonaws.secretsmanager#InvalidRequestException"
},
{
"target": "com.amazonaws.secretsmanager#LimitExceededException"
},
{
"target": "com.amazonaws.secretsmanager#ResourceNotFoundException"
}
],
"traits": {
"smithy.api#documentation": "<p>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 <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/terms-concepts.html#term_staging-label\">Staging\n Labels</a> in the <i>AWS Secrets Manager User Guide</i>. </p>\n <p>The staging labels that you specify in the <code>VersionStage</code> parameter are added\n to the existing list of staging labels--they don't replace it.</p>\n <p>You can move the <code>AWSCURRENT</code> staging label to this version by including it in this\n call.</p>\n <note>\n <p>Whenever you move <code>AWSCURRENT</code>, Secrets Manager automatically moves the label <code>AWSPREVIOUS</code>\n to the version that <code>AWSCURRENT</code> was removed from.</p>\n </note>\n <p>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.</p>\n <p>\n <b>Minimum permissions</b>\n </p>\n <p>To run this command, you must have the following permissions:</p>\n <ul>\n <li>\n <p>secretsmanager:UpdateSecretVersionStage</p>\n </li>\n </ul>\n <p>\n <b>Related operations</b>\n </p>\n <ul>\n <li>\n <p>To get the list of staging labels that are currently associated with a version of a\n secret, use <code>\n <a>DescribeSecret</a>\n </code> and examine the\n <code>SecretVersionsToStages</code> response value. </p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#UpdateSecretVersionStageRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p>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.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>",
"smithy.api#required": {}
}
},
"VersionStage": {
"target": "com.amazonaws.secretsmanager#SecretVersionStageType",
"traits": {
"smithy.api#documentation": "<p>The staging label to add to this version.</p>",
"smithy.api#required": {}
}
},
"RemoveFromVersionId": {
"target": "com.amazonaws.secretsmanager#SecretVersionIdType",
"traits": {
"smithy.api#documentation": "<p>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.</p>"
}
},
"MoveToVersionId": {
"target": "com.amazonaws.secretsmanager#SecretVersionIdType",
"traits": {
"smithy.api#documentation": "<p>(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.</p>\n <p>If the staging label is already attached to a different version of the secret, then you\n must also specify the <code>RemoveFromVersionId</code> parameter. </p>"
}
}
}
},
"com.amazonaws.secretsmanager#UpdateSecretVersionStageResponse": {
"type": "structure",
"members": {
"ARN": {
"target": "com.amazonaws.secretsmanager#SecretARNType",
"traits": {
"smithy.api#documentation": "<p>The ARN of the secret with the modified staging label.</p>"
}
},
"Name": {
"target": "com.amazonaws.secretsmanager#SecretNameType",
"traits": {
"smithy.api#documentation": "<p>The friendly name of the secret with the modified staging label.</p>"
}
}
}
},
"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": "<p>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.</p>\n <p>The API performs three checks when validating the secret:</p>\n <ul>\n <li>\n <p>Sends a call to <a href=\"https://aws.amazon.com/blogs/security/protect-sensitive-data-in-the-cloud-with-automated-reasoning-zelkova/\">Zelkova</a>, an automated reasoning engine, to ensure your Resource Policy does not\n allow broad access to your secret.</p>\n </li>\n <li>\n <p>Checks for correct syntax in a policy.</p>\n </li>\n <li>\n <p>Verifies the policy does not lock out a caller.</p>\n </li>\n </ul>\n\n\n <p>\n <b>Minimum Permissions</b>\n </p>\n <p>You must have the permissions required to access the following APIs:</p>\n <ul>\n <li>\n <p>\n <code>secretsmanager:PutResourcePolicy</code>\n </p>\n </li>\n <li>\n <p>\n <code>secretsmanager:ValidateResourcePolicy</code>\n </p>\n </li>\n </ul>"
}
},
"com.amazonaws.secretsmanager#ValidateResourcePolicyRequest": {
"type": "structure",
"members": {
"SecretId": {
"target": "com.amazonaws.secretsmanager#SecretIdType",
"traits": {
"smithy.api#documentation": "<p> (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.</p> \n <note>\n <p>If 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 dont 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 youre specifying a complete ARN. This confusion can cause unexpected \n results. To avoid this situation, we recommend that you dont create secret names ending \n with a hyphen followed by six characters.</p>\n <p>If you specify an incomplete ARN without the random suffix, and instead provide the \n 'friendly name', you <i>must</i> not include the random suffix. If you do include the random suffix added by Secrets Manager, \n you receive either a <i>ResourceNotFoundException</i> or an <i>AccessDeniedException</i> error, depending on your permissions.</p>\n </note>"
}
},
"ResourcePolicy": {
"target": "com.amazonaws.secretsmanager#NonEmptyResourcePolicyType",
"traits": {
"smithy.api#documentation": "<p>A 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 <a href=\"http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json\">Using\n JSON for Parameters</a> in the <i>AWS CLI User Guide</i>.publi</p>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.secretsmanager#ValidateResourcePolicyResponse": {
"type": "structure",
"members": {
"PolicyValidationPassed": {
"target": "com.amazonaws.secretsmanager#BooleanType",
"traits": {
"smithy.api#documentation": "<p>Returns a message stating that your Reource Policy passed validation. </p>"
}
},
"ValidationErrors": {
"target": "com.amazonaws.secretsmanager#ValidationErrorsType",
"traits": {
"smithy.api#documentation": "<p>Returns an error message if your policy doesn't pass validatation.</p>"
}
}
}
},
"com.amazonaws.secretsmanager#ValidationErrorsEntry": {
"type": "structure",
"members": {
"CheckName": {
"target": "com.amazonaws.secretsmanager#NameType",
"traits": {
"smithy.api#documentation": "<p>Checks the name of the policy.</p>"
}
},
"ErrorMessage": {
"target": "com.amazonaws.secretsmanager#ErrorMessage",
"traits": {
"smithy.api#documentation": "<p>Displays error messages if validation encounters problems during validation of the resource policy.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Displays errors that occurred during validation of the resource policy.</p>"
}
},
"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": "<fullname>AWS Secrets Manager API Reference</fullname>\n <p>AWS Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.</p>\n\n <p>This guide provides descriptions of the Secrets Manager API. For more information about using this\n service, see the <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/introduction.html\">AWS Secrets Manager User Guide</a>.</p>\n\n <p>\n <b>API Version</b>\n </p>\n\n <p>This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.</p>\n <note>\n <p>As 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 <a href=\"http://aws.amazon.com/tools/\">Tools for Amazon Web Services</a>.</p>\n </note>\n <p>We 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 <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/query-requests.html\">Making Query Requests</a> in the\n <i>AWS Secrets Manager User Guide</i>. </p>\n <p>Secrets 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.</p>\n\n \n\n \n \n \n\n <p>\n <b>Support and Feedback for AWS Secrets Manager</b>\n </p>\n\n <p>We welcome your feedback. Send your comments to <a href=\"mailto:awssecretsmanager-feedback@amazon.com\">awssecretsmanager-feedback@amazon.com</a>, or post your feedback and questions in the <a href=\"http://forums.aws.amazon.com/forum.jspa?forumID=296\">AWS Secrets Manager Discussion Forum</a>. For more\n information about the AWS Discussion Forums, see <a href=\"http://forums.aws.amazon.com/help.jspa\">Forums\n Help</a>.</p>\n\n <p>\n <b>How examples are presented</b>\n </p>\n\n <p>The 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.</p>\n\n\n <p>\n <b>Logging API Requests</b>\n </p>\n <p>AWS 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 <a href=\"http://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring.html#monitoring_cloudtrail\">Logging\n AWS Secrets Manager Events with AWS CloudTrail</a> in the <i>AWS Secrets Manager User Guide</i>.\n To learn more about CloudTrail, including enabling it and find your log files, see the <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html\">AWS CloudTrail User Guide</a>.</p>",
"smithy.api#title": "AWS Secrets Manager"
}
}
}
}