{
  "version":"2.0",
  "metadata":{
    "apiVersion":"2017-10-17",
    "endpointPrefix":"secretsmanager",
    "jsonVersion":"1.1",
    "protocol":"json",
    "protocols":["json"],
    "serviceFullName":"AWS Secrets Manager",
    "serviceId":"Secrets Manager",
    "signatureVersion":"v4",
    "signingName":"secretsmanager",
    "targetPrefix":"secretsmanager",
    "uid":"secretsmanager-2017-10-17",
    "auth":["aws.auth#sigv4"]
  },
  "operations":{
    "BatchGetSecretValue":{
      "name":"BatchGetSecretValue",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"BatchGetSecretValueRequest"},
      "output":{"shape":"BatchGetSecretValueResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InvalidRequestException"},
        {"shape":"DecryptionFailure"},
        {"shape":"InternalServiceError"},
        {"shape":"InvalidNextTokenException"}
      ],
      "documentation":"<p>Retrieves the contents of the encrypted fields <code>SecretString</code> or <code>SecretBinary</code> for up to 20 secrets. To retrieve a single secret, call <a>GetSecretValue</a>. </p> <p>To choose which secrets to retrieve, you can specify a list of secrets by name or ARN, or you can use filters. If Secrets Manager encounters errors such as <code>AccessDeniedException</code> while attempting to retrieve any of the secrets, you can see the errors in <code>Errors</code> in the response.</p> <p>Secrets Manager generates CloudTrail <code>GetSecretValue</code> log entries for each secret you request when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:BatchGetSecretValue</code>, and you must have <code>secretsmanager:GetSecretValue</code> for each secret. If you use filters, you must also have <code>secretsmanager:ListSecrets</code>. If the secrets are encrypted using customer-managed keys instead of the Amazon Web Services managed key <code>aws/secretsmanager</code>, then you also need <code>kms:Decrypt</code> permissions for the keys. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "CancelRotateSecret":{
      "name":"CancelRotateSecret",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"CancelRotateSecretRequest"},
      "output":{"shape":"CancelRotateSecretResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InternalServiceError"},
        {"shape":"InvalidRequestException"}
      ],
      "documentation":"<p>Turns off automatic rotation, and if a rotation is currently in progress, cancels the rotation.</p> <p>If you cancel a rotation in progress, it can leave the <code>VersionStage</code> labels in an unexpected state. You might need to remove the staging label <code>AWSPENDING</code> from the partially created version. You also need to determine whether to roll back to the previous version of the secret by moving the staging label <code>AWSCURRENT</code> to the version that has <code>AWSPENDING</code>. To determine which version has a specific staging label, call <a>ListSecretVersionIds</a>. Then use <a>UpdateSecretVersionStage</a> to change staging labels. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html\">How rotation works</a>.</p> <p>To turn on automatic rotation again, call <a>RotateSecret</a>.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:CancelRotateSecret</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "CreateSecret":{
      "name":"CreateSecret",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"CreateSecretRequest"},
      "output":{"shape":"CreateSecretResponse"},
      "errors":[
        {"shape":"InvalidParameterException"},
        {"shape":"InvalidRequestException"},
        {"shape":"LimitExceededException"},
        {"shape":"EncryptionFailure"},
        {"shape":"ResourceExistsException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"MalformedPolicyDocumentException"},
        {"shape":"InternalServiceError"},
        {"shape":"PreconditionNotMetException"},
        {"shape":"DecryptionFailure"}
      ],
      "documentation":"<p>Creates a new secret. A <i>secret</i> can be a password, a set of credentials such as a user name and password, an OAuth token, or other secret information that you store in an encrypted form in Secrets Manager. The secret also includes the connection information to access a database or other service, which Secrets Manager doesn't encrypt. A secret in Secrets Manager consists of both the protected secret data and the important information needed to manage the secret.</p> <p>For secrets that use <i>managed rotation</i>, you need to create the secret through the managing service. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/service-linked-secrets.html\">Secrets Manager secrets managed by other Amazon Web Services services</a>. </p> <p>For information about creating a secret in the console, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html\">Create a secret</a>.</p> <p>To create a secret, you can provide the secret value to be encrypted in either the <code>SecretString</code> parameter or the <code>SecretBinary</code> parameter, but not both. If you include <code>SecretString</code> or <code>SecretBinary</code> then Secrets Manager creates an initial secret version and automatically attaches the staging label <code>AWSCURRENT</code> to it.</p> <p>For database credentials you want to rotate, for Secrets Manager to be able to rotate the secret, you must make sure the JSON you store in the <code>SecretString</code> matches the <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_secret_json_structure.html\">JSON structure of a database secret</a>.</p> <p>If you don't specify an KMS encryption key, Secrets Manager uses the Amazon Web Services managed key <code>aws/secretsmanager</code>. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use <code>aws/secretsmanager</code>. Creating <code>aws/secretsmanager</code> can result in a one-time significant delay in returning the result.</p> <p>If the secret is in a different Amazon Web Services account from the credentials calling the API, then you can't use <code>aws/secretsmanager</code> to encrypt the secret, and you must create and use a customer managed KMS key. </p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters except <code>SecretBinary</code> or <code>SecretString</code> because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:CreateSecret</code>. If you include tags in the secret, you also need <code>secretsmanager:TagResource</code>. To add replica Regions, you must also have <code>secretsmanager:ReplicateSecretToRegions</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p> <p>To encrypt the secret with a KMS key other than <code>aws/secretsmanager</code>, you need <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permission to the key. </p> <important> <p>When you enter commands in a command shell, there is a risk of the command history being accessed or utilities having access to your command parameters. This is a concern if the command includes the value of a secret. Learn how to <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html\">Mitigate the risks of using command-line tools to store Secrets Manager secrets</a>.</p> </important>"
    },
    "DeleteResourcePolicy":{
      "name":"DeleteResourcePolicy",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"DeleteResourcePolicyRequest"},
      "output":{"shape":"DeleteResourcePolicyResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServiceError"},
        {"shape":"InvalidRequestException"},
        {"shape":"InvalidParameterException"}
      ],
      "documentation":"<p>Deletes the resource-based permission policy attached to the secret. To attach a policy to a secret, use <a>PutResourcePolicy</a>.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:DeleteResourcePolicy</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "DeleteSecret":{
      "name":"DeleteSecret",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"DeleteSecretRequest"},
      "output":{"shape":"DeleteSecretResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InvalidRequestException"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>Deletes a secret and all of its versions. You can specify a recovery window during which you can restore the secret. The minimum recovery window is 7 days. The default recovery window is 30 days. Secrets Manager attaches a <code>DeletionDate</code> stamp to the secret that specifies the end of the recovery window. At the end of the recovery window, Secrets Manager deletes the secret permanently.</p> <p>You can't delete a primary secret that is replicated to other Regions. You must first delete the replicas using <a>RemoveRegionsFromReplication</a>, and then delete the primary secret. When you delete a replica, it is deleted immediately.</p> <p>You can't directly delete a version of a secret. Instead, you remove all staging labels from the version using <a>UpdateSecretVersionStage</a>. This marks the version as deprecated, and then Secrets Manager can automatically delete the version in the background.</p> <p>To determine whether an application still uses a secret, you can create an Amazon CloudWatch alarm to alert you to any attempts to access a secret during the recovery window. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring_cloudwatch_deleted-secrets.html\"> Monitor secrets scheduled for deletion</a>.</p> <p>Secrets Manager performs the permanent secret deletion at the end of the waiting period as a background task with low priority. There is no guarantee of a specific time after the recovery window for the permanent delete to occur.</p> <p>At any time before recovery window ends, you can use <a>RestoreSecret</a> to remove the <code>DeletionDate</code> and cancel the deletion of the secret.</p> <p>When a secret is scheduled for deletion, you cannot retrieve the secret value. You must first cancel the deletion with <a>RestoreSecret</a> and then you can retrieve the secret.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:DeleteSecret</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "DescribeSecret":{
      "name":"DescribeSecret",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"DescribeSecretRequest"},
      "output":{"shape":"DescribeSecretResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServiceError"},
        {"shape":"InvalidParameterException"}
      ],
      "documentation":"<p>Retrieves the details of a secret. It does not include the encrypted secret value. Secrets Manager only returns fields that have a value in the response. </p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:DescribeSecret</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "GetRandomPassword":{
      "name":"GetRandomPassword",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"GetRandomPasswordRequest"},
      "output":{"shape":"GetRandomPasswordResponse"},
      "errors":[
        {"shape":"InvalidParameterException"},
        {"shape":"InvalidRequestException"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>Generates a random password. We recommend that you specify the maximum length and include every character type that the system you are generating a password for can support. By default, Secrets Manager uses uppercase and lowercase letters, numbers, and the following characters in passwords: <code>!\\\"#$%&amp;'()*+,-./:;&lt;=&gt;?@[\\\\]^_`{|}~</code> </p> <p>Secrets Manager generates a CloudTrail log entry when you call this action.</p> <p> <b>Required permissions: </b> <code>secretsmanager:GetRandomPassword</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "GetResourcePolicy":{
      "name":"GetResourcePolicy",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"GetResourcePolicyRequest"},
      "output":{"shape":"GetResourcePolicyResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServiceError"},
        {"shape":"InvalidRequestException"},
        {"shape":"InvalidParameterException"}
      ],
      "documentation":"<p>Retrieves the JSON text of the resource-based policy document attached to the secret. For more information about permissions policies attached to a secret, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-policies.html\">Permissions policies attached to a secret</a>.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:GetResourcePolicy</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "GetSecretValue":{
      "name":"GetSecretValue",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"GetSecretValueRequest"},
      "output":{"shape":"GetSecretValueResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InvalidRequestException"},
        {"shape":"DecryptionFailure"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>Retrieves the contents of the encrypted fields <code>SecretString</code> or <code>SecretBinary</code> from the specified version of a secret, whichever contains content.</p> <p>To retrieve the values for a group of secrets, call <a>BatchGetSecretValue</a>.</p> <p>We recommend that you cache your secret values by using client-side caching. Caching secrets improves speed and reduces your costs. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets.html\">Cache secrets for your applications</a>.</p> <p>To retrieve the previous version of a secret, use <code>VersionStage</code> and specify AWSPREVIOUS. To revert to the previous version of a secret, call <a href=\"https://docs.aws.amazon.com/cli/latest/reference/secretsmanager/update-secret-version-stage.html\">UpdateSecretVersionStage</a>.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:GetSecretValue</code>. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key <code>aws/secretsmanager</code>, then you also need <code>kms:Decrypt</code> permissions for that key. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "ListSecretVersionIds":{
      "name":"ListSecretVersionIds",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"ListSecretVersionIdsRequest"},
      "output":{"shape":"ListSecretVersionIdsResponse"},
      "errors":[
        {"shape":"InvalidNextTokenException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServiceError"},
        {"shape":"InvalidParameterException"}
      ],
      "documentation":"<p>Lists the versions of a secret. Secrets Manager uses staging labels to indicate the different versions of a secret. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version\"> Secrets Manager concepts: Versions</a>.</p> <p>To list the secrets in the account, use <a>ListSecrets</a>.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:ListSecretVersionIds</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "ListSecrets":{
      "name":"ListSecrets",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"ListSecretsRequest"},
      "output":{"shape":"ListSecretsResponse"},
      "errors":[
        {"shape":"InvalidParameterException"},
        {"shape":"InvalidRequestException"},
        {"shape":"InvalidNextTokenException"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>Lists the secrets that are stored by Secrets Manager in the Amazon Web Services account, not including secrets that are marked for deletion. To see secrets marked for deletion, use the Secrets Manager console.</p> <p>All Secrets Manager operations are eventually consistent. ListSecrets might not reflect changes from the last five minutes. You can get more recent information for a specific secret by calling <a>DescribeSecret</a>.</p> <p>To list the versions of a secret, use <a>ListSecretVersionIds</a>.</p> <p>To retrieve the values for the secrets, call <a>BatchGetSecretValue</a> or <a>GetSecretValue</a>.</p> <p>For information about finding secrets in the console, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_search-secret.html\">Find secrets in Secrets Manager</a>.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:ListSecrets</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "PutResourcePolicy":{
      "name":"PutResourcePolicy",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"PutResourcePolicyRequest"},
      "output":{"shape":"PutResourcePolicyResponse"},
      "errors":[
        {"shape":"MalformedPolicyDocumentException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InternalServiceError"},
        {"shape":"InvalidRequestException"},
        {"shape":"PublicPolicyException"}
      ],
      "documentation":"<p>Attaches a resource-based permission policy to a secret. A resource-based policy is optional. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control for Secrets Manager</a> </p> <p>For information about attaching a policy in the console, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-based-policies.html\">Attach a permissions policy to a secret</a>.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:PutResourcePolicy</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "PutSecretValue":{
      "name":"PutSecretValue",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"PutSecretValueRequest"},
      "output":{"shape":"PutSecretValueResponse"},
      "errors":[
        {"shape":"InvalidParameterException"},
        {"shape":"InvalidRequestException"},
        {"shape":"LimitExceededException"},
        {"shape":"EncryptionFailure"},
        {"shape":"ResourceExistsException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServiceError"},
        {"shape":"DecryptionFailure"}
      ],
      "documentation":"<p>Creates a new version of your secret by creating a new encrypted value and attaching it to the secret. version can contain a new <code>SecretString</code> value or a new <code>SecretBinary</code> value. </p> <p>Do not call <code>PutSecretValue</code> at a sustained rate of more than once every 10 minutes. When you update the secret value, Secrets Manager creates a new version of the secret. Secrets Manager keeps 100 of the most recent versions, but it keeps <i>all</i> secret versions created in the last 24 hours. If you call <code>PutSecretValue</code> more than once every 10 minutes, you will create more versions than Secrets Manager removes, and you will reach the quota for secret versions.</p> <p>You can specify the staging labels to attach to the new version in <code>VersionStages</code>. If you don't include <code>VersionStages</code>, then Secrets Manager automatically moves the staging label <code>AWSCURRENT</code> to this version. If this operation creates the first version for the secret, then Secrets Manager automatically attaches the staging label <code>AWSCURRENT</code> to it. If this operation moves the staging label <code>AWSCURRENT</code> from another version to this version, then Secrets Manager also automatically moves the staging label <code>AWSPREVIOUS</code> to the version that <code>AWSCURRENT</code> was removed from.</p> <p>This operation is idempotent. If you call this operation with a <code>ClientRequestToken</code> that matches an existing version's VersionId, and you specify the same secret data, the operation succeeds but does nothing. However, if the secret data is different, then the operation fails because you can't modify an existing version; you can only create new ones.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters except <code>SecretBinary</code>, <code>SecretString</code>, or <code>RotationToken</code> because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:PutSecretValue</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p> <important> <p>When you enter commands in a command shell, there is a risk of the command history being accessed or utilities having access to your command parameters. This is a concern if the command includes the value of a secret. Learn how to <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html\">Mitigate the risks of using command-line tools to store Secrets Manager secrets</a>.</p> </important>"
    },
    "RemoveRegionsFromReplication":{
      "name":"RemoveRegionsFromReplication",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"RemoveRegionsFromReplicationRequest"},
      "output":{"shape":"RemoveRegionsFromReplicationResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidRequestException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>For a secret that is replicated to other Regions, deletes the secret replicas from the Regions you specify.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:RemoveRegionsFromReplication</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "ReplicateSecretToRegions":{
      "name":"ReplicateSecretToRegions",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"ReplicateSecretToRegionsRequest"},
      "output":{"shape":"ReplicateSecretToRegionsResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidRequestException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>Replicates the secret to a new Regions. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/create-manage-multi-region-secrets.html\">Multi-Region secrets</a>.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:ReplicateSecretToRegions</code>. If the primary secret is encrypted with a KMS key other than <code>aws/secretsmanager</code>, you also need <code>kms:Decrypt</code> permission to the key. To encrypt the replicated secret with a KMS key other than <code>aws/secretsmanager</code>, you need <code>kms:GenerateDataKey</code> and <code>kms:Encrypt</code> to the key. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "RestoreSecret":{
      "name":"RestoreSecret",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"RestoreSecretRequest"},
      "output":{"shape":"RestoreSecretResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InvalidRequestException"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>Cancels the scheduled deletion of a secret by removing the <code>DeletedDate</code> time stamp. You can access a secret again after it has been restored.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:RestoreSecret</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "RotateSecret":{
      "name":"RotateSecret",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"RotateSecretRequest"},
      "output":{"shape":"RotateSecretResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InternalServiceError"},
        {"shape":"InvalidRequestException"}
      ],
      "documentation":"<p>Configures and starts the asynchronous process of rotating the secret. For information about rotation, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html\">Rotate secrets</a> in the <i>Secrets Manager User Guide</i>. If you include the configuration parameters, the operation sets the values for the secret and then immediately starts a rotation. If you don't include the configuration parameters, the operation starts a rotation with the values already stored in the secret. </p> <p>When rotation is successful, the <code>AWSPENDING</code> staging label might be attached to the same version as the <code>AWSCURRENT</code> version, or it might not be attached to any version. If the <code>AWSPENDING</code> staging label is present but not attached to the same version as <code>AWSCURRENT</code>, then any later invocation of <code>RotateSecret</code> assumes that a previous rotation request is still in progress and returns an error. When rotation is unsuccessful, the <code>AWSPENDING</code> staging label might be attached to an empty secret version. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot_rotation.html\">Troubleshoot rotation</a> in the <i>Secrets Manager User Guide</i>.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:RotateSecret</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. You also need <code>lambda:InvokeFunction</code> permissions on the rotation function. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-required-permissions-function.html\"> Permissions for rotation</a>.</p>"
    },
    "StopReplicationToReplica":{
      "name":"StopReplicationToReplica",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"StopReplicationToReplicaRequest"},
      "output":{"shape":"StopReplicationToReplicaResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidRequestException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>Removes the link between the replica secret and the primary secret and promotes the replica to a primary secret in the replica Region.</p> <p>You must call this operation from the Region in which you want to promote the replica to a primary secret.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:StopReplicationToReplica</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "TagResource":{
      "name":"TagResource",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"TagResourceRequest"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidRequestException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>Attaches tags to a secret. Tags consist of a key name and a value. Tags are part of the secret's metadata. They are not associated with specific versions of the secret. This operation appends tags to the existing list of tags.</p> <p>For tag quotas and naming restrictions, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/arg.html#taged-reference-quotas\">Service quotas for Tagging</a> in the <i>Amazon Web Services General Reference guide</i>.</p> <important> <p>If you use tags as part of your security strategy, then adding or removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.</p> </important> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:TagResource</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "UntagResource":{
      "name":"UntagResource",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"UntagResourceRequest"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidRequestException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>Removes specific tags from a secret.</p> <p>This operation is idempotent. If a requested tag is not attached to the secret, no error is returned and the secret metadata is unchanged.</p> <important> <p>If you use tags as part of your security strategy, then removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.</p> </important> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:UntagResource</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "UpdateSecret":{
      "name":"UpdateSecret",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"UpdateSecretRequest"},
      "output":{"shape":"UpdateSecretResponse"},
      "errors":[
        {"shape":"InvalidParameterException"},
        {"shape":"InvalidRequestException"},
        {"shape":"LimitExceededException"},
        {"shape":"EncryptionFailure"},
        {"shape":"ResourceExistsException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"MalformedPolicyDocumentException"},
        {"shape":"InternalServiceError"},
        {"shape":"PreconditionNotMetException"},
        {"shape":"DecryptionFailure"}
      ],
      "documentation":"<p>Modifies the details of a secret, including metadata and the secret value. To change the secret value, you can also use <a>PutSecretValue</a>.</p> <p>To change the rotation configuration of a secret, use <a>RotateSecret</a> instead.</p> <p>To change a secret so that it is managed by another service, you need to recreate the secret in that service. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/service-linked-secrets.html\">Secrets Manager secrets managed by other Amazon Web Services services</a>.</p> <p>We recommend you avoid calling <code>UpdateSecret</code> at a sustained rate of more than once every 10 minutes. When you call <code>UpdateSecret</code> to update the secret value, Secrets Manager creates a new version of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not remove versions created less than 24 hours ago. If you update the secret value more than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach the quota for secret versions.</p> <p>If you include <code>SecretString</code> or <code>SecretBinary</code> to create a new secret version, Secrets Manager automatically moves the staging label <code>AWSCURRENT</code> to the new version. Then it attaches the label <code>AWSPREVIOUS</code> to the version that <code>AWSCURRENT</code> was removed from.</p> <p>If you call this operation with a <code>ClientRequestToken</code> that matches an existing version's <code>VersionId</code>, the operation results in an error. You can't modify an existing version, you can only create a new version. To remove a version, remove all staging labels from it. See <a>UpdateSecretVersionStage</a>.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters except <code>SecretBinary</code> or <code>SecretString</code> because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:UpdateSecret</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. If you use a customer managed key, you must also have <code>kms:GenerateDataKey</code>, <code>kms:Encrypt</code>, and <code>kms:Decrypt</code> permissions on the key. If you change the KMS key and you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-encrypt existing secret versions with the new key. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/security-encryption.html\"> Secret encryption and decryption</a>.</p> <important> <p>When you enter commands in a command shell, there is a risk of the command history being accessed or utilities having access to your command parameters. This is a concern if the command includes the value of a secret. Learn how to <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html\">Mitigate the risks of using command-line tools to store Secrets Manager secrets</a>.</p> </important>"
    },
    "UpdateSecretVersionStage":{
      "name":"UpdateSecretVersionStage",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"UpdateSecretVersionStageRequest"},
      "output":{"shape":"UpdateSecretVersionStageResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InvalidRequestException"},
        {"shape":"LimitExceededException"},
        {"shape":"InternalServiceError"}
      ],
      "documentation":"<p>Modifies the staging labels attached to a version of a secret. Secrets Manager uses staging labels to track a version as it progresses through the secret rotation process. Each staging label can be attached to only one version at a time. To add a staging label to a version when it is already attached to another version, Secrets Manager first removes it from the other version first and then attaches it to this one. For more information about versions and staging labels, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version\">Concepts: Version</a>. </p> <p>The staging labels that you specify in the <code>VersionStage</code> parameter are added to the existing list of staging labels for the version. </p> <p>You can move the <code>AWSCURRENT</code> staging label to this version by including it in this call.</p> <note> <p>Whenever you move <code>AWSCURRENT</code>, Secrets Manager automatically moves the label <code>AWSPREVIOUS</code> to the version that <code>AWSCURRENT</code> was removed from.</p> </note> <p>If this action results in the last label being removed from a version, then the version is considered to be 'deprecated' and can be deleted by Secrets Manager.</p> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:UpdateSecretVersionStage</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    },
    "ValidateResourcePolicy":{
      "name":"ValidateResourcePolicy",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"ValidateResourcePolicyRequest"},
      "output":{"shape":"ValidateResourcePolicyResponse"},
      "errors":[
        {"shape":"MalformedPolicyDocumentException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InvalidParameterException"},
        {"shape":"InternalServiceError"},
        {"shape":"InvalidRequestException"}
      ],
      "documentation":"<p>Validates that a resource policy does not grant a wide range of principals access to your secret. A resource-based policy is optional for secrets.</p> <p>The API performs three checks when validating the policy:</p> <ul> <li> <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 allow broad access to your secret, for example policies that use a wildcard for the principal.</p> </li> <li> <p>Checks for correct syntax in a policy.</p> </li> <li> <p>Verifies the policy does not lock out a caller.</p> </li> </ul> <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html\">Logging Secrets Manager events with CloudTrail</a>.</p> <p> <b>Required permissions: </b> <code>secretsmanager:ValidateResourcePolicy</code> and <code>secretsmanager:PutResourcePolicy</code>. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\"> IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control in Secrets Manager</a>. </p>"
    }
  },
  "shapes":{
    "APIErrorListType":{
      "type":"list",
      "member":{"shape":"APIErrorType"}
    },
    "APIErrorType":{
      "type":"structure",
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret.</p>"
        },
        "ErrorCode":{
          "shape":"ErrorCode",
          "documentation":"<p>The error Secrets Manager encountered while retrieving an individual secret as part of <a>BatchGetSecretValue</a>, for example <code>ResourceNotFoundException</code>,<code>InvalidParameterException</code>, <code>InvalidRequestException</code>, <code>DecryptionFailure</code>, or <code>AccessDeniedException</code>.</p>"
        },
        "Message":{
          "shape":"ErrorMessage",
          "documentation":"<p>A message describing the error.</p>"
        }
      },
      "documentation":"<p>The error Secrets Manager encountered while retrieving an individual secret as part of <a>BatchGetSecretValue</a>.</p>"
    },
    "AddReplicaRegionListType":{
      "type":"list",
      "member":{"shape":"ReplicaRegionType"},
      "min":1
    },
    "AutomaticallyRotateAfterDaysType":{
      "type":"long",
      "max":1000,
      "min":1
    },
    "BatchGetSecretValueRequest":{
      "type":"structure",
      "members":{
        "SecretIdList":{
          "shape":"SecretIdListType",
          "documentation":"<p>The ARN or names of the secrets to retrieve. You must include <code>Filters</code> or <code>SecretIdList</code>, but not both.</p>"
        },
        "Filters":{
          "shape":"FiltersListType",
          "documentation":"<p>The filters to choose which secrets to retrieve. You must include <code>Filters</code> or <code>SecretIdList</code>, but not both.</p>"
        },
        "MaxResults":{
          "shape":"MaxResultsBatchType",
          "documentation":"<p>The number of results to include in the response.</p> <p>If there are more results available, in the response, Secrets Manager includes <code>NextToken</code>. To get the next results, call <code>BatchGetSecretValue</code> again with the value from <code>NextToken</code>. To use this parameter, you must also use the <code>Filters</code> parameter.</p>",
          "box":true
        },
        "NextToken":{
          "shape":"NextTokenType",
          "documentation":"<p>A token that indicates where the output should continue from, if a previous call did not show all results. To get the next results, call <code>BatchGetSecretValue</code> again with this value.</p>"
        }
      }
    },
    "BatchGetSecretValueResponse":{
      "type":"structure",
      "members":{
        "SecretValues":{
          "shape":"SecretValuesType",
          "documentation":"<p>A list of secret values.</p>"
        },
        "NextToken":{
          "shape":"NextTokenType",
          "documentation":"<p>Secrets Manager includes this value if there's more output available than what is included in the current response. This can occur even when the response includes no values at all, such as when you ask for a filtered view of a long list. To get the next results, call <code>BatchGetSecretValue</code> again with this value.</p>"
        },
        "Errors":{
          "shape":"APIErrorListType",
          "documentation":"<p>A list of errors Secrets Manager encountered while attempting to retrieve individual secrets.</p>"
        }
      }
    },
    "BooleanType":{"type":"boolean"},
    "CancelRotateSecretRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        }
      }
    },
    "CancelRotateSecretResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The name of the secret.</p>"
        },
        "VersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>The unique identifier of the version of the secret created during the rotation. This version might not be complete, and should be evaluated for possible deletion. We recommend that you remove the <code>VersionStage</code> value <code>AWSPENDING</code> from this version so that Secrets Manager can delete it. Failing to clean up a cancelled rotation can block you from starting future rotations.</p>"
        }
      }
    },
    "ClientRequestTokenType":{
      "type":"string",
      "max":64,
      "min":32
    },
    "CreateSecretRequest":{
      "type":"structure",
      "required":["Name"],
      "members":{
        "Name":{
          "shape":"NameType",
          "documentation":"<p>The name of the new secret.</p> <p>The secret name can contain ASCII letters, numbers, and the following characters: /_+=.@-</p> <p>Do not end your secret name with a hyphen followed by six characters. If you do so, you risk confusion and unexpected results when searching for a secret by partial ARN. Secrets Manager automatically adds a hyphen and six random characters after the secret name at the end of the ARN.</p>"
        },
        "ClientRequestToken":{
          "shape":"ClientRequestTokenType",
          "documentation":"<p>If you include <code>SecretString</code> or <code>SecretBinary</code>, then Secrets Manager creates an initial version for the secret, and this parameter specifies the unique identifier for the new version. </p> <note> <p>If you use the Amazon Web Services CLI or one of the Amazon Web Services SDKs to call this operation, then you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it as the value for this parameter in the request. </p> </note> <p>If you generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a <code>ClientRequestToken</code> and include it in the request.</p> <p>This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental creation of duplicate versions if there are failures and retries during a rotation. We recommend that you generate a <a href=\"https://wikipedia.org/wiki/Universally_unique_identifier\">UUID-type</a> value to ensure uniqueness of your versions within the specified secret. </p> <ul> <li> <p>If the <code>ClientRequestToken</code> value isn't already associated with a version of the secret then a new version of the secret is created. </p> </li> <li> <p>If a version with this value already exists and the version <code>SecretString</code> and <code>SecretBinary</code> values are the same as those in the request, then the request is ignored.</p> </li> <li> <p>If a version with this value already exists and that version's <code>SecretString</code> and <code>SecretBinary</code> values are different from those in the request, then the request fails because you cannot modify an existing version. Instead, use <a>PutSecretValue</a> to create a new version.</p> </li> </ul> <p>This value becomes the <code>VersionId</code> of the new version.</p>",
          "idempotencyToken":true
        },
        "Description":{
          "shape":"DescriptionType",
          "documentation":"<p>The description of the secret.</p>"
        },
        "KmsKeyId":{
          "shape":"KmsKeyIdType",
          "documentation":"<p>The ARN, key ID, or alias of the KMS key that Secrets Manager uses to encrypt the secret value in the secret. An alias is always prefixed by <code>alias/</code>, for example <code>alias/aws/secretsmanager</code>. For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html\">About aliases</a>.</p> <p>To use a KMS key in a different account, use the key ARN or the alias ARN.</p> <p>If you don't specify this value, then Secrets Manager uses the key <code>aws/secretsmanager</code>. If that key doesn't yet exist, then Secrets Manager creates it for you automatically the first time it encrypts the secret value.</p> <p>If the secret is in a different Amazon Web Services account from the credentials calling the API, then you can't use <code>aws/secretsmanager</code> to encrypt the secret, and you must create and use a customer managed KMS key. </p>"
        },
        "SecretBinary":{
          "shape":"SecretBinaryType",
          "documentation":"<p>The binary data to encrypt and store in the new version of the secret. We recommend that you store your binary data in a file and then pass the contents of the file as a parameter.</p> <p>Either <code>SecretString</code> or <code>SecretBinary</code> must have a value, but not both.</p> <p>This parameter is not available in the Secrets Manager console.</p> <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>"
        },
        "SecretString":{
          "shape":"SecretStringType",
          "documentation":"<p>The text data to encrypt and store in this new version of the secret. We recommend you use a JSON structure of key/value pairs for your secret value.</p> <p>Either <code>SecretString</code> or <code>SecretBinary</code> must have a value, but not both.</p> <p>If you create a secret by using the Secrets Manager console then Secrets Manager puts the protected secret text in only the <code>SecretString</code> parameter. The Secrets Manager console stores the information as a JSON structure of key/value pairs that a Lambda rotation function can parse.</p> <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>"
        },
        "Tags":{
          "shape":"TagListType",
          "documentation":"<p>A list of tags to attach to the secret. Each tag is a key and value pair of strings in a JSON text string, for example:</p> <p> <code>[{\"Key\":\"CostCenter\",\"Value\":\"12345\"},{\"Key\":\"environment\",\"Value\":\"production\"}]</code> </p> <p>Secrets Manager tag key names are case sensitive. A tag with the key \"ABC\" is a different tag from one with key \"abc\".</p> <p>If you check tags in permissions policies as part of your security strategy, then adding or removing a tag can change permissions. If the completion of this operation would result in you losing your permissions for this secret, then Secrets Manager blocks the operation and returns an <code>Access Denied</code> error. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html#tag-secrets-abac\">Control access to secrets using tags</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html#auth-and-access_tags2\">Limit access to identities with tags that match secrets' tags</a>.</p> <p>For information about how to 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>. If your command-line tool or SDK requires quotation marks around the parameter, you should use single quotes to avoid confusion with the double quotes required in the JSON text.</p> <p>For tag quotas and naming restrictions, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/arg.html#taged-reference-quotas\">Service quotas for Tagging</a> in the <i>Amazon Web Services General Reference guide</i>.</p>"
        },
        "AddReplicaRegions":{
          "shape":"AddReplicaRegionListType",
          "documentation":"<p>A list of Regions and KMS keys to replicate secrets.</p>"
        },
        "ForceOverwriteReplicaSecret":{
          "shape":"BooleanType",
          "documentation":"<p>Specifies whether to overwrite a secret with the same name in the destination Region. By default, secrets aren't overwritten.</p>"
        },
        "Type":{
          "shape":"MedeaTypeType",
          "documentation":"<p>The exact string that identifies the partner that holds the external secret. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/managed-external-secrets.html\">Using Secrets Manager managed external secrets</a>.</p>"
        }
      }
    },
    "CreateSecretResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the new secret. The ARN includes the name of the secret followed by six random characters. This ensures that if you create a new secret with the same name as a deleted secret, then users with access to the old secret don't get access to the new secret because the ARNs are different.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The name of the new secret.</p>"
        },
        "VersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>The unique identifier associated with the version of the new secret.</p>"
        },
        "ReplicationStatus":{
          "shape":"ReplicationStatusListType",
          "documentation":"<p>A list of the replicas of this secret and their status:</p> <ul> <li> <p> <code>Failed</code>, which indicates that the replica was not created.</p> </li> <li> <p> <code>InProgress</code>, which indicates that Secrets Manager is in the process of creating the replica.</p> </li> <li> <p> <code>InSync</code>, which indicates that the replica was created.</p> </li> </ul>"
        }
      }
    },
    "CreatedDateType":{"type":"timestamp"},
    "DecryptionFailure":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>Secrets Manager can't decrypt the protected secret text using the provided KMS key. </p>",
      "exception":true
    },
    "DeleteResourcePolicyRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret to delete the attached resource-based policy for.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        }
      }
    },
    "DeleteResourcePolicyResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret that the resource-based policy was deleted for.</p>"
        },
        "Name":{
          "shape":"NameType",
          "documentation":"<p>The name of the secret that the resource-based policy was deleted for.</p>"
        }
      }
    },
    "DeleteSecretRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret to delete.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        },
        "RecoveryWindowInDays":{
          "shape":"RecoveryWindowInDaysType",
          "documentation":"<p>The number of days from 7 to 30 that Secrets Manager waits before permanently deleting the secret. You can't use both this parameter and <code>ForceDeleteWithoutRecovery</code> in the same call. If you don't use either, then by default Secrets Manager uses a 30 day recovery window.</p>",
          "box":true
        },
        "ForceDeleteWithoutRecovery":{
          "shape":"BooleanType",
          "documentation":"<p>Specifies whether to delete the secret without any recovery window. You can't use both this parameter and <code>RecoveryWindowInDays</code> in the same call. If you don't use either, then by default Secrets Manager uses a 30 day recovery window.</p> <p>Secrets Manager performs the actual deletion with an asynchronous background process, so there might be a short delay before the secret is permanently deleted. If you delete a secret and then immediately create a secret with the same name, use appropriate back off and retry logic.</p> <p>If you forcibly delete an already deleted or nonexistent secret, the operation does not return <code>ResourceNotFoundException</code>.</p> <important> <p>Use this parameter with caution. This parameter causes the operation to skip the normal recovery window before the permanent deletion that Secrets Manager would normally impose with the <code>RecoveryWindowInDays</code> parameter. If you delete a secret with the <code>ForceDeleteWithoutRecovery</code> parameter, then you have no opportunity to recover the secret. You lose the secret permanently.</p> </important>",
          "box":true
        }
      }
    },
    "DeleteSecretResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The name of the secret.</p>"
        },
        "DeletionDate":{
          "shape":"DeletionDateType",
          "documentation":"<p>The date and time after which this secret Secrets Manager can permanently delete this secret, and it can no longer be restored. This value is the date and time of the delete request plus the number of days in <code>RecoveryWindowInDays</code>.</p>",
          "box":true
        }
      }
    },
    "DeletedDateType":{"type":"timestamp"},
    "DeletionDateType":{"type":"timestamp"},
    "DescribeSecretRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret. </p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        }
      }
    },
    "DescribeSecretResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The name of the secret.</p>"
        },
        "Type":{
          "shape":"MedeaTypeType",
          "documentation":"<p>The exact string that identifies the partner that holds the external secret. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/managed-external-secrets.html\">Using Secrets Manager managed external secrets</a>.</p>"
        },
        "Description":{
          "shape":"DescriptionType",
          "documentation":"<p>The description of the secret.</p>"
        },
        "KmsKeyId":{
          "shape":"KmsKeyIdType",
          "documentation":"<p>The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the secret is encrypted with the Amazon Web Services managed key <code>aws/secretsmanager</code>, this field is omitted. Secrets created using the console use an KMS key ID.</p>"
        },
        "RotationEnabled":{
          "shape":"RotationEnabledType",
          "documentation":"<p>Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured for rotation, Secrets Manager returns null.</p> <p>To turn on rotation, use <a>RotateSecret</a>. To turn off rotation, use <a>CancelRotateSecret</a>.</p>",
          "box":true
        },
        "RotationLambdaARN":{
          "shape":"RotationLambdaARNType",
          "documentation":"<p>The ARN of the Lambda function that Secrets Manager invokes to rotate the secret. </p>"
        },
        "RotationRules":{
          "shape":"RotationRulesType",
          "documentation":"<p>The rotation schedule and Lambda function for this secret. If the secret previously had rotation turned on, but it is now turned off, this field shows the previous rotation schedule and rotation function. If the secret never had rotation turned on, this field is omitted.</p>"
        },
        "ExternalSecretRotationMetadata":{
          "shape":"ExternalSecretRotationMetadataType",
          "documentation":"<p>The metadata needed to successfully rotate a managed external secret. A list of key value pairs in JSON format specified by the partner. For more information about the required information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-partners.html\">Managed external secrets partners</a>.</p>"
        },
        "ExternalSecretRotationRoleArn":{
          "shape":"RoleARNType",
          "documentation":"<p>The Amazon Resource Name (ARN) of the role that allows Secrets Manager to rotate a secret held by a third-party partner. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-security.html\">Security and permissions</a>.</p>"
        },
        "LastRotatedDate":{
          "shape":"LastRotatedDateType",
          "documentation":"<p>The last date and time that Secrets Manager rotated the secret. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.</p>",
          "box":true
        },
        "LastChangedDate":{
          "shape":"LastChangedDateType",
          "documentation":"<p>The last date and time that this secret was modified in any way.</p>",
          "box":true
        },
        "LastAccessedDate":{
          "shape":"LastAccessedDateType",
          "documentation":"<p>The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.</p>",
          "box":true
        },
        "DeletedDate":{
          "shape":"DeletedDateType",
          "documentation":"<p>The date the secret is scheduled for deletion. If it is not scheduled for deletion, this field is omitted. When you delete a secret, Secrets Manager requires a recovery window of at least 7 days before deleting the secret. Some time after the deleted date, Secrets Manager deletes the secret, including all of its versions.</p> <p>If a secret is scheduled for deletion, then its details, including the encrypted secret value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use <a>RestoreSecret</a>.</p>",
          "box":true
        },
        "NextRotationDate":{
          "shape":"NextRotationDateType",
          "documentation":"<p>The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null. If rotation fails, Secrets Manager retries the entire rotation process multiple times. If rotation is unsuccessful, this date may be in the past.</p> <p>This date represents the latest date that rotation will occur, but it is not an approximate rotation date. In some cases, for example if you turn off automatic rotation and then turn it back on, the next rotation may occur much sooner than this date.</p>"
        },
        "Tags":{
          "shape":"TagListType",
          "documentation":"<p>The list of tags attached to the secret. To add tags to a secret, use <a>TagResource</a>. To remove tags, use <a>UntagResource</a>.</p>"
        },
        "VersionIdsToStages":{
          "shape":"SecretVersionsToStagesMapType",
          "documentation":"<p>A list of the versions of the secret that have staging labels attached. Versions that don't have staging labels are considered deprecated and Secrets Manager can delete them.</p> <p>Secrets Manager uses staging labels to indicate the status of a secret version during rotation. The three staging labels for rotation are: </p> <ul> <li> <p> <code>AWSCURRENT</code>, which indicates the current version of the secret.</p> </li> <li> <p> <code>AWSPENDING</code>, which indicates the version of the secret that contains new secret information that will become the next current version when rotation finishes.</p> <p>During rotation, Secrets Manager creates an <code>AWSPENDING</code> version ID before creating the new secret version. To check if a secret version exists, call <a>GetSecretValue</a>.</p> </li> <li> <p> <code>AWSPREVIOUS</code>, which indicates the previous current version of the secret. You can use this as the <i>last known good</i> version.</p> </li> </ul> <p>For more information about rotation and staging labels, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html\">How rotation works</a>.</p>"
        },
        "OwningService":{
          "shape":"OwningServiceType",
          "documentation":"<p>The ID of the service that created this secret. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/service-linked-secrets.html\">Secrets managed by other Amazon Web Services services</a>.</p>"
        },
        "CreatedDate":{
          "shape":"TimestampType",
          "documentation":"<p>The date the secret was created.</p>",
          "box":true
        },
        "PrimaryRegion":{
          "shape":"RegionType",
          "documentation":"<p>The Region the secret is in. If a secret is replicated to other Regions, the replicas are listed in <code>ReplicationStatus</code>. </p>"
        },
        "ReplicationStatus":{
          "shape":"ReplicationStatusListType",
          "documentation":"<p>A list of the replicas of this secret and their status: </p> <ul> <li> <p> <code>Failed</code>, which indicates that the replica was not created.</p> </li> <li> <p> <code>InProgress</code>, which indicates that Secrets Manager is in the process of creating the replica.</p> </li> <li> <p> <code>InSync</code>, which indicates that the replica was created.</p> </li> </ul>"
        }
      }
    },
    "DescriptionType":{
      "type":"string",
      "max":2048
    },
    "DurationType":{
      "type":"string",
      "max":3,
      "min":2,
      "pattern":"[0-9]+h"
    },
    "EncryptionFailure":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>Secrets Manager can't encrypt the protected secret text using the provided KMS key. Check that the KMS key is available, enabled, and not in an invalid state. For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html\">Key state: Effect on your KMS key</a>.</p>",
      "exception":true
    },
    "ErrorCode":{"type":"string"},
    "ErrorMessage":{"type":"string"},
    "ExcludeCharactersType":{
      "type":"string",
      "max":4096,
      "min":0
    },
    "ExcludeLowercaseType":{"type":"boolean"},
    "ExcludeNumbersType":{"type":"boolean"},
    "ExcludePunctuationType":{"type":"boolean"},
    "ExcludeUppercaseType":{"type":"boolean"},
    "ExternalSecretRotationMetadataItem":{
      "type":"structure",
      "members":{
        "Key":{
          "shape":"ExternalSecretRotationMetadataItemKeyType",
          "documentation":"<p>The key that identifies the item.</p>"
        },
        "Value":{
          "shape":"ExternalSecretRotationMetadataItemValueType",
          "documentation":"<p>The value of the specified item.</p>"
        }
      },
      "documentation":"<p>The metadata needed to successfully rotate a managed external secret. A list of key value pairs in JSON format specified by the partner. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-partners.html\">Managed external secret partners</a>.</p>"
    },
    "ExternalSecretRotationMetadataItemKeyType":{
      "type":"string",
      "max":256,
      "min":1
    },
    "ExternalSecretRotationMetadataItemValueType":{
      "type":"string",
      "max":2048,
      "min":1
    },
    "ExternalSecretRotationMetadataType":{
      "type":"list",
      "member":{"shape":"ExternalSecretRotationMetadataItem"}
    },
    "Filter":{
      "type":"structure",
      "members":{
        "Key":{
          "shape":"FilterNameStringType",
          "documentation":"<p>The following are keys you can use:</p> <ul> <li> <p> <b>description</b>: Prefix match, not case-sensitive.</p> </li> <li> <p> <b>name</b>: Prefix match, case-sensitive.</p> </li> <li> <p> <b>tag-key</b>: Prefix match, case-sensitive.</p> </li> <li> <p> <b>tag-value</b>: Prefix match, case-sensitive.</p> </li> <li> <p> <b>primary-region</b>: Prefix match, case-sensitive.</p> </li> <li> <p> <b>owning-service</b>: Prefix match, case-sensitive.</p> </li> <li> <p> <b>all</b>: Breaks the filter value string into words and then searches all attributes for matches. Not case-sensitive.</p> </li> </ul>"
        },
        "Values":{
          "shape":"FilterValuesStringList",
          "documentation":"<p>The keyword to filter for.</p> <p>You can prefix your search value with an exclamation mark (<code>!</code>) in order to perform negation filters. </p>"
        }
      },
      "documentation":"<p>Allows you to add filters when you use the search function in Secrets Manager. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_search-secret.html\">Find secrets in Secrets Manager</a>.</p>"
    },
    "FilterNameStringType":{
      "type":"string",
      "enum":[
        "description",
        "name",
        "tag-key",
        "tag-value",
        "primary-region",
        "owning-service",
        "all"
      ]
    },
    "FilterValueStringType":{
      "type":"string",
      "max":512,
      "pattern":"^\\!?[a-zA-Z0-9 :_@\\/\\+\\=\\.\\-\\!]*$"
    },
    "FilterValuesStringList":{
      "type":"list",
      "member":{"shape":"FilterValueStringType"},
      "max":10,
      "min":1
    },
    "FiltersListType":{
      "type":"list",
      "member":{"shape":"Filter"},
      "max":10
    },
    "GetRandomPasswordRequest":{
      "type":"structure",
      "members":{
        "PasswordLength":{
          "shape":"PasswordLengthType",
          "documentation":"<p>The length of the password. If you don't include this parameter, the default length is 32 characters.</p>",
          "box":true
        },
        "ExcludeCharacters":{
          "shape":"ExcludeCharactersType",
          "documentation":"<p>A string of the characters that you don't want in the password.</p>"
        },
        "ExcludeNumbers":{
          "shape":"ExcludeNumbersType",
          "documentation":"<p>Specifies whether to exclude numbers from the password. If you don't include this switch, the password can contain numbers.</p>",
          "box":true
        },
        "ExcludePunctuation":{
          "shape":"ExcludePunctuationType",
          "documentation":"<p>Specifies whether to exclude the following punctuation characters from the password: <code>! \" # $ % &amp; ' ( ) * + , - . / : ; &lt; = &gt; ? @ [ \\ ] ^ _ ` { | } ~</code>. If you don't include this switch, the password can contain punctuation.</p>",
          "box":true
        },
        "ExcludeUppercase":{
          "shape":"ExcludeUppercaseType",
          "documentation":"<p>Specifies whether to exclude uppercase letters from the password. If you don't include this switch, the password can contain uppercase letters.</p>",
          "box":true
        },
        "ExcludeLowercase":{
          "shape":"ExcludeLowercaseType",
          "documentation":"<p>Specifies whether to exclude lowercase letters from the password. If you don't include this switch, the password can contain lowercase letters.</p>",
          "box":true
        },
        "IncludeSpace":{
          "shape":"IncludeSpaceType",
          "documentation":"<p>Specifies whether to include the space character. If you include this switch, the password can contain space characters.</p>",
          "box":true
        },
        "RequireEachIncludedType":{
          "shape":"RequireEachIncludedTypeType",
          "documentation":"<p>Specifies whether to include at least one upper and lowercase letter, one number, and one punctuation. If you don't include this switch, the password contains at least one of every character type.</p>",
          "box":true
        }
      }
    },
    "GetRandomPasswordResponse":{
      "type":"structure",
      "members":{
        "RandomPassword":{
          "shape":"RandomPasswordType",
          "documentation":"<p>A string with the password.</p>"
        }
      }
    },
    "GetResourcePolicyRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret to retrieve the attached resource-based policy for.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        }
      }
    },
    "GetResourcePolicyResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret that the resource-based policy was retrieved for.</p>"
        },
        "Name":{
          "shape":"NameType",
          "documentation":"<p>The name of the secret that the resource-based policy was retrieved for.</p>"
        },
        "ResourcePolicy":{
          "shape":"NonEmptyResourcePolicyType",
          "documentation":"<p>A JSON-formatted string that contains the permissions policy attached to the secret. For more information about permissions policies, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication and access control for Secrets Manager</a>.</p>"
        }
      }
    },
    "GetSecretValueRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret to retrieve. To retrieve a secret from another account, you must use an ARN.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        },
        "VersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>The unique identifier of the version of the secret to retrieve. If you include both this parameter and <code>VersionStage</code>, the two parameters must refer to the same secret version. If you don't specify either a <code>VersionStage</code> or <code>VersionId</code>, then Secrets Manager returns the <code>AWSCURRENT</code> version.</p> <p>This value is typically a <a href=\"https://wikipedia.org/wiki/Universally_unique_identifier\">UUID-type</a> value with 32 hexadecimal digits.</p>"
        },
        "VersionStage":{
          "shape":"SecretVersionStageType",
          "documentation":"<p>The staging label of the version of the secret to retrieve. </p> <p>Secrets Manager uses staging labels to keep track of different versions during the rotation process. If you include both this parameter and <code>VersionId</code>, the two parameters must refer to the same secret version. If you don't specify either a <code>VersionStage</code> or <code>VersionId</code>, Secrets Manager returns the <code>AWSCURRENT</code> version.</p>"
        }
      }
    },
    "GetSecretValueResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The friendly name of the secret.</p>"
        },
        "VersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>The unique identifier of this version of the secret.</p>"
        },
        "SecretBinary":{
          "shape":"SecretBinaryType",
          "documentation":"<p>The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte array. When you retrieve a <code>SecretBinary</code> using the HTTP API, the Python SDK, or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not encoded.</p> <p>If the secret was created by using the Secrets Manager console, or if the secret value was originally provided as a string, then this field is omitted. The secret value appears in <code>SecretString</code> instead.</p> <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>"
        },
        "SecretString":{
          "shape":"SecretStringType",
          "documentation":"<p>The decrypted secret value, if the secret value was originally provided as a string or through the Secrets Manager console.</p> <p>If this secret was created by using the console, then Secrets Manager stores the information as a JSON structure of key/value pairs. </p> <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>"
        },
        "VersionStages":{
          "shape":"SecretVersionStagesType",
          "documentation":"<p>A list of all of the staging labels currently attached to this version of the secret.</p>"
        },
        "CreatedDate":{
          "shape":"CreatedDateType",
          "documentation":"<p>The date and time that this version of the secret was created. If you don't specify which version in <code>VersionId</code> or <code>VersionStage</code>, then Secrets Manager uses the <code>AWSCURRENT</code> version.</p>",
          "box":true
        }
      }
    },
    "IncludeSpaceType":{"type":"boolean"},
    "InternalServiceError":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>An error occurred on the server side.</p>",
      "exception":true,
      "fault":true
    },
    "InvalidNextTokenException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The <code>NextToken</code> value is invalid.</p>",
      "exception":true
    },
    "InvalidParameterException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The parameter name or value is invalid.</p>",
      "exception":true
    },
    "InvalidRequestException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>A parameter value is not valid for the current state of the resource.</p> <p>Possible causes:</p> <ul> <li> <p>The secret is scheduled for deletion.</p> </li> <li> <p>You tried to enable rotation on a secret that doesn't already have a Lambda function ARN configured and you didn't include such an ARN as a parameter in this call. </p> </li> <li> <p>The secret is managed by another service, and you must use that service to update it. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/service-linked-secrets.html\">Secrets managed by other Amazon Web Services services</a>.</p> </li> </ul>",
      "exception":true
    },
    "KmsKeyIdListType":{
      "type":"list",
      "member":{"shape":"KmsKeyIdType"}
    },
    "KmsKeyIdType":{
      "type":"string",
      "max":2048,
      "min":0
    },
    "LastAccessedDateType":{"type":"timestamp"},
    "LastChangedDateType":{"type":"timestamp"},
    "LastRotatedDateType":{"type":"timestamp"},
    "LimitExceededException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The request failed because it would exceed one of the Secrets Manager quotas.</p>",
      "exception":true
    },
    "ListSecretVersionIdsRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret whose versions you want to list.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        },
        "MaxResults":{
          "shape":"MaxResultsType",
          "documentation":"<p>The number of results to include in the response.</p> <p>If there are more results available, in the response, Secrets Manager includes <code>NextToken</code>. To get the next results, call <code>ListSecretVersionIds</code> again with the value from <code>NextToken</code>. </p>",
          "box":true
        },
        "NextToken":{
          "shape":"NextTokenType",
          "documentation":"<p>A token that indicates where the output should continue from, if a previous call did not show all results. To get the next results, call <code>ListSecretVersionIds</code> again with this value.</p>"
        },
        "IncludeDeprecated":{
          "shape":"BooleanType",
          "documentation":"<p>Specifies whether to include versions of secrets that don't have any staging labels attached to them. Versions without staging labels are considered deprecated and are subject to deletion by Secrets Manager. By default, versions without staging labels aren't included.</p>",
          "box":true
        }
      }
    },
    "ListSecretVersionIdsResponse":{
      "type":"structure",
      "members":{
        "Versions":{
          "shape":"SecretVersionsListType",
          "documentation":"<p>A list of the versions of the secret.</p>"
        },
        "NextToken":{
          "shape":"NextTokenType",
          "documentation":"<p>Secrets Manager includes this value if there's more output available than what is included in the current response. This can occur even when the response includes no values at all, such as when you ask for a filtered view of a long list. To get the next results, call <code>ListSecretVersionIds</code> again with this value. </p>"
        },
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The name of the secret.</p>"
        }
      }
    },
    "ListSecretsRequest":{
      "type":"structure",
      "members":{
        "IncludePlannedDeletion":{
          "shape":"BooleanType",
          "documentation":"<p>Specifies whether to include secrets scheduled for deletion. By default, secrets scheduled for deletion aren't included.</p>",
          "box":true
        },
        "MaxResults":{
          "shape":"MaxResultsType",
          "documentation":"<p>The number of results to include in the response.</p> <p>If there are more results available, in the response, Secrets Manager includes <code>NextToken</code>. To get the next results, call <code>ListSecrets</code> again with the value from <code>NextToken</code>.</p>",
          "box":true
        },
        "NextToken":{
          "shape":"NextTokenType",
          "documentation":"<p>A token that indicates where the output should continue from, if a previous call did not show all results. To get the next results, call <code>ListSecrets</code> again with this value.</p>"
        },
        "Filters":{
          "shape":"FiltersListType",
          "documentation":"<p>The filters to apply to the list of secrets.</p>"
        },
        "SortOrder":{
          "shape":"SortOrderType",
          "documentation":"<p>Secrets are listed by <code>CreatedDate</code>. </p>"
        },
        "SortBy":{
          "shape":"SortByType",
          "documentation":"<p>If not specified, secrets are listed by <code>CreatedDate</code>.</p>"
        }
      }
    },
    "ListSecretsResponse":{
      "type":"structure",
      "members":{
        "SecretList":{
          "shape":"SecretListType",
          "documentation":"<p>A list of the secrets in the account.</p>"
        },
        "NextToken":{
          "shape":"NextTokenType",
          "documentation":"<p>Secrets Manager includes this value if there's more output available than what is included in the current response. This can occur even when the response includes no values at all, such as when you ask for a filtered view of a long list. To get the next results, call <code>ListSecrets</code> again with this value.</p>"
        }
      }
    },
    "MalformedPolicyDocumentException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The resource policy has syntax errors.</p>",
      "exception":true
    },
    "MaxResultsBatchType":{
      "type":"integer",
      "box":true,
      "max":20,
      "min":1
    },
    "MaxResultsType":{
      "type":"integer",
      "max":100,
      "min":1
    },
    "MedeaTypeType":{
      "type":"string",
      "max":256,
      "min":0
    },
    "NameType":{
      "type":"string",
      "max":512,
      "min":1
    },
    "NextRotationDateType":{"type":"timestamp"},
    "NextTokenType":{
      "type":"string",
      "max":4096,
      "min":1
    },
    "NonEmptyResourcePolicyType":{
      "type":"string",
      "max":20480,
      "min":1
    },
    "OwningServiceType":{
      "type":"string",
      "max":128,
      "min":1
    },
    "PasswordLengthType":{
      "type":"long",
      "max":4096,
      "min":1
    },
    "PreconditionNotMetException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The request failed because you did not complete all the prerequisite steps.</p>",
      "exception":true
    },
    "PublicPolicyException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The <code>BlockPublicPolicy</code> parameter is set to true, and the resource policy did not prevent broad access to the secret.</p>",
      "exception":true
    },
    "PutResourcePolicyRequest":{
      "type":"structure",
      "required":[
        "SecretId",
        "ResourcePolicy"
      ],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret to attach the resource-based policy.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        },
        "ResourcePolicy":{
          "shape":"NonEmptyResourcePolicyType",
          "documentation":"<p>A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html\">Permissions policy examples</a>.</p>"
        },
        "BlockPublicPolicy":{
          "shape":"BooleanType",
          "documentation":"<p>Specifies whether to block resource-based policies that allow broad access to the secret, for example those that use a wildcard for the principal. By default, public policies aren't blocked.</p> <important> <p>Resource policy validation and the BlockPublicPolicy parameter help protect your resources by preventing public access from being granted through the resource policies that are directly attached to your secrets. In addition to using these features, carefully inspect the following policies to confirm that they do not grant public access:</p> <ul> <li> <p>Identity-based policies attached to associated Amazon Web Services principals (for example, IAM roles)</p> </li> <li> <p>Resource-based policies attached to associated Amazon Web Services resources (for example, Key Management Service (KMS) keys)</p> </li> </ul> <p>To review permissions to your secrets, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/determine-acccess_examine-iam-policies.html\">Determine who has permissions to your secrets</a>.</p> </important>",
          "box":true
        }
      }
    },
    "PutResourcePolicyResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret.</p>"
        },
        "Name":{
          "shape":"NameType",
          "documentation":"<p>The name of the secret.</p>"
        }
      }
    },
    "PutSecretValueRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret to add a new version to.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p> <p>If the secret doesn't already exist, use <code>CreateSecret</code> instead.</p>"
        },
        "ClientRequestToken":{
          "shape":"ClientRequestTokenType",
          "documentation":"<p>A unique identifier for the new version of the secret. </p> <note> <p>If you use the Amazon Web Services CLI or one of the Amazon Web Services SDKs to call this operation, then you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it as the value for this parameter in the request. </p> </note> <p>If you generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a <code>ClientRequestToken</code> and include it in the request.</p> <p>This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental creation of duplicate versions if there are failures and retries during a rotation. We recommend that you generate a <a href=\"https://wikipedia.org/wiki/Universally_unique_identifier\">UUID-type</a> value to ensure uniqueness of your versions within the specified secret. </p> <ul> <li> <p>If the <code>ClientRequestToken</code> value isn't already associated with a version of the secret then a new version of the secret is created. </p> </li> <li> <p>If a version with this value already exists and that version's <code>SecretString</code> or <code>SecretBinary</code> values are the same as those in the request then the request is ignored. The operation is idempotent. </p> </li> <li> <p>If a version with this value already exists and the version of the <code>SecretString</code> and <code>SecretBinary</code> values are different from those in the request, then the request fails because you can't modify a secret version. You can only create new versions to store new secret values.</p> </li> </ul> <p>This value becomes the <code>VersionId</code> of the new version.</p>",
          "idempotencyToken":true
        },
        "SecretBinary":{
          "shape":"SecretBinaryType",
          "documentation":"<p>The binary data to encrypt and store in the new version of the secret. To use this parameter in the command-line tools, we recommend that you store your binary data in a file and then pass the contents of the file as a parameter. </p> <p>You must include <code>SecretBinary</code> or <code>SecretString</code>, but not both.</p> <p>You can't access this value from the Secrets Manager console.</p> <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>"
        },
        "SecretString":{
          "shape":"SecretStringType",
          "documentation":"<p>The text to encrypt and store in the new version of the secret. </p> <p>You must include <code>SecretBinary</code> or <code>SecretString</code>, but not both.</p> <p>We recommend you create the secret string as JSON key/value pairs, as shown in the example.</p> <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>"
        },
        "VersionStages":{
          "shape":"SecretVersionStagesType",
          "documentation":"<p>A list of staging labels to attach to this version of the secret. Secrets Manager uses staging labels to track versions of a secret through the rotation process.</p> <p>If you specify a staging label that's already associated with a different version of the same secret, then Secrets Manager removes the label from the other version and attaches it to this version. If you specify <code>AWSCURRENT</code>, and it is already attached to another version, then Secrets Manager also moves the staging label <code>AWSPREVIOUS</code> to the version that <code>AWSCURRENT</code> was removed from.</p> <p>If you don't include <code>VersionStages</code>, then Secrets Manager automatically moves the staging label <code>AWSCURRENT</code> to this version.</p>"
        },
        "RotationToken":{
          "shape":"RotationTokenType",
          "documentation":"<p>A unique identifier that indicates the source of the request. Required for secret rotations using an IAM assumed role or cross-account rotation, in which you rotate a secret in one account by using a Lambda rotation function in another account. In both cases, the rotation function assumes an IAM role to call Secrets Manager, and then Secrets Manager validates the identity using the token. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html\">How rotation works</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_lambda\">Rotation by Lambda functions</a>.</p> <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>"
        }
      }
    },
    "PutSecretValueResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The name of the secret.</p>"
        },
        "VersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>The unique identifier of the version of the secret.</p>"
        },
        "VersionStages":{
          "shape":"SecretVersionStagesType",
          "documentation":"<p>The list of staging labels that are currently attached to this version of the secret. Secrets Manager uses staging labels to track a version as it progresses through the secret rotation process.</p>"
        }
      }
    },
    "RandomPasswordType":{
      "type":"string",
      "max":4096,
      "min":0,
      "sensitive":true
    },
    "RecoveryWindowInDaysType":{"type":"long"},
    "RegionType":{
      "type":"string",
      "max":128,
      "min":1,
      "pattern":"^([a-z]+-)+\\d+$"
    },
    "RemoveRegionsFromReplicationRequest":{
      "type":"structure",
      "required":[
        "SecretId",
        "RemoveReplicaRegions"
      ],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret.</p>"
        },
        "RemoveReplicaRegions":{
          "shape":"RemoveReplicaRegionListType",
          "documentation":"<p>The Regions of the replicas to remove.</p>"
        }
      }
    },
    "RemoveRegionsFromReplicationResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the primary secret.</p>"
        },
        "ReplicationStatus":{
          "shape":"ReplicationStatusListType",
          "documentation":"<p>The status of replicas for this secret after you remove Regions.</p>"
        }
      }
    },
    "RemoveReplicaRegionListType":{
      "type":"list",
      "member":{"shape":"RegionType"},
      "min":1
    },
    "ReplicaRegionType":{
      "type":"structure",
      "members":{
        "Region":{
          "shape":"RegionType",
          "documentation":"<p>A Region code. For a list of Region codes, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints\">Name and code of Regions</a>.</p>"
        },
        "KmsKeyId":{
          "shape":"KmsKeyIdType",
          "documentation":"<p>The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets Manager uses <code>aws/secretsmanager</code>.</p>"
        }
      },
      "documentation":"<p>A custom type that specifies a <code>Region</code> and the <code>KmsKeyId</code> for a replica secret.</p>"
    },
    "ReplicateSecretToRegionsRequest":{
      "type":"structure",
      "required":[
        "SecretId",
        "AddReplicaRegions"
      ],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret to replicate.</p>"
        },
        "AddReplicaRegions":{
          "shape":"AddReplicaRegionListType",
          "documentation":"<p>A list of Regions in which to replicate the secret.</p>"
        },
        "ForceOverwriteReplicaSecret":{
          "shape":"BooleanType",
          "documentation":"<p>Specifies whether to overwrite a secret with the same name in the destination Region. By default, secrets aren't overwritten.</p>"
        }
      }
    },
    "ReplicateSecretToRegionsResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the primary secret.</p>"
        },
        "ReplicationStatus":{
          "shape":"ReplicationStatusListType",
          "documentation":"<p>The status of replication.</p>"
        }
      }
    },
    "ReplicationStatusListType":{
      "type":"list",
      "member":{"shape":"ReplicationStatusType"}
    },
    "ReplicationStatusType":{
      "type":"structure",
      "members":{
        "Region":{
          "shape":"RegionType",
          "documentation":"<p>The Region where replication occurs.</p>"
        },
        "KmsKeyId":{
          "shape":"KmsKeyIdType",
          "documentation":"<p>Can be an <code>ARN</code>, <code>Key ID</code>, or <code>Alias</code>. </p>"
        },
        "Status":{
          "shape":"StatusType",
          "documentation":"<p>The status can be <code>InProgress</code>, <code>Failed</code>, or <code>InSync</code>.</p>"
        },
        "StatusMessage":{
          "shape":"StatusMessageType",
          "documentation":"<p>Status message such as \"<i>Secret with this name already exists in this region</i>\".</p>"
        },
        "LastAccessedDate":{
          "shape":"LastAccessedDateType",
          "documentation":"<p>The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.</p>"
        }
      },
      "documentation":"<p>A replication object consisting of a <code>RegionReplicationStatus</code> object and includes a Region, KMSKeyId, status, and status message.</p>"
    },
    "RequireEachIncludedTypeType":{"type":"boolean"},
    "ResourceExistsException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>A resource with the ID you requested already exists.</p>",
      "exception":true
    },
    "ResourceNotFoundException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>Secrets Manager can't find the resource that you asked for.</p>",
      "exception":true
    },
    "RestoreSecretRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret to restore.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        }
      }
    },
    "RestoreSecretResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret that was restored.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The name of the secret that was restored.</p>"
        }
      }
    },
    "RoleARNType":{
      "type":"string",
      "max":2048,
      "min":20
    },
    "RotateSecretRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret to rotate.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        },
        "ClientRequestToken":{
          "shape":"ClientRequestTokenType",
          "documentation":"<p>A unique identifier for the new version of the secret. You only need to specify this value if you implement your own retry logic and you want to ensure that Secrets Manager doesn't attempt to create a secret version twice.</p> <note> <p>If you use the Amazon Web Services CLI or one of the Amazon Web Services SDKs to call this operation, then you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it as the value for this parameter in the request. </p> </note> <p>If you generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a <code>ClientRequestToken</code> and include it in the request.</p> <p>This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental creation of duplicate versions if there are failures and retries during a rotation. We recommend that you generate a <a href=\"https://wikipedia.org/wiki/Universally_unique_identifier\">UUID-type</a> value to ensure uniqueness of your versions within the specified secret. </p>",
          "idempotencyToken":true
        },
        "RotationLambdaARN":{
          "shape":"RotationLambdaARNType",
          "documentation":"<p>For secrets that use a Lambda rotation function to rotate, the ARN of the Lambda rotation function. </p> <p>For secrets that use <i>managed rotation</i>, omit this field. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_managed.html\">Managed rotation</a> in the <i>Secrets Manager User Guide</i>.</p>"
        },
        "RotationRules":{
          "shape":"RotationRulesType",
          "documentation":"<p>A structure that defines the rotation configuration for this secret.</p> <important> <p>When changing an existing rotation schedule and setting <code>RotateImmediately</code> to <code>false</code>:</p> <ul> <li> <p>If using <code>AutomaticallyAfterDays</code> or a <code>ScheduleExpression</code> with <code>rate()</code>, the previously scheduled rotation might still occur.</p> </li> <li> <p>To prevent unintended rotations, use a <code>ScheduleExpression</code> with <code>cron()</code> for granular control over rotation windows.</p> </li> </ul> </important>"
        },
        "ExternalSecretRotationMetadata":{
          "shape":"ExternalSecretRotationMetadataType",
          "documentation":"<p>The metadata needed to successfully rotate a managed external secret. A list of key value pairs in JSON format specified by the partner. For more information about the required information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/managed-external-secrets.html\">Using Secrets Manager managed external secrets</a> </p>"
        },
        "ExternalSecretRotationRoleArn":{
          "shape":"RoleARNType",
          "documentation":"<p>The Amazon Resource Name (ARN) of the role that allows Secrets Manager to rotate a secret held by a third-party partner. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-security.html\">Security and permissions</a>.</p>"
        },
        "RotateImmediately":{
          "shape":"BooleanType",
          "documentation":"<p>Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window. The rotation schedule is defined in <a>RotateSecretRequest$RotationRules</a>.</p> <p>The default for <code>RotateImmediately</code> is <code>true</code>. If you don't specify this value, Secrets Manager rotates the secret immediately.</p> <p>If you set <code>RotateImmediately</code> to <code>false</code>, Secrets Manager tests the rotation configuration by running the <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html\"> <code>testSecret</code> step</a> of the Lambda rotation function. This test creates an <code>AWSPENDING</code> version of the secret and then removes it.</p> <p>When changing an existing rotation schedule and setting <code>RotateImmediately</code> to <code>false</code>:</p> <ul> <li> <p>If using <code>AutomaticallyAfterDays</code> or a <code>ScheduleExpression</code> with <code>rate()</code>, the previously scheduled rotation might still occur.</p> </li> <li> <p>To prevent unintended rotations, use a <code>ScheduleExpression</code> with <code>cron()</code> for granular control over rotation windows.</p> </li> </ul> <p>Rotation is an asynchronous process. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html\">How rotation works</a>.</p>",
          "box":true
        }
      }
    },
    "RotateSecretResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The name of the secret.</p>"
        },
        "VersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>The ID of the new version of the secret.</p>",
          "box":true
        }
      }
    },
    "RotationEnabledType":{"type":"boolean"},
    "RotationLambdaARNType":{
      "type":"string",
      "max":2048,
      "min":0
    },
    "RotationRulesType":{
      "type":"structure",
      "members":{
        "AutomaticallyAfterDays":{
          "shape":"AutomaticallyRotateAfterDaysType",
          "documentation":"<p>The number of days between rotations of the secret. You can use this value to check that your secret meets your compliance guidelines for how often secrets must be rotated. If you use this field to set the rotation schedule, Secrets Manager calculates the next rotation date based on the previous rotation. Manually updating the secret value by calling <code>PutSecretValue</code> or <code>UpdateSecret</code> is considered a valid rotation.</p> <p>In <code>DescribeSecret</code> and <code>ListSecrets</code>, this value is calculated from the rotation schedule after every successful rotation. In <code>RotateSecret</code>, you can set the rotation schedule in <code>RotationRules</code> with <code>AutomaticallyAfterDays</code> or <code>ScheduleExpression</code>, but not both. To set a rotation schedule in hours, use <code>ScheduleExpression</code>.</p>",
          "box":true
        },
        "Duration":{
          "shape":"DurationType",
          "documentation":"<p>The length of the rotation window in hours, for example <code>3h</code> for a three hour window. Secrets Manager rotates your secret at any time during this window. The window must not extend into the next rotation window or the next UTC day. The window starts according to the <code>ScheduleExpression</code>. If you don't specify a <code>Duration</code>, for a <code>ScheduleExpression</code> in hours, the window automatically closes after one hour. For a <code>ScheduleExpression</code> in days, the window automatically closes at the end of the UTC day. For more information, including examples, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_schedule.html\">Schedule expressions in Secrets Manager rotation</a> in the <i>Secrets Manager Users Guide</i>.</p>"
        },
        "ScheduleExpression":{
          "shape":"ScheduleExpressionType",
          "documentation":"<p>A <code>cron()</code> or <code>rate()</code> expression that defines the schedule for rotating your secret. Secrets Manager rotation schedules use UTC time zone. Secrets Manager rotates your secret any time during a rotation window.</p> <p>Secrets Manager <code>rate()</code> expressions represent the interval in hours or days that you want to rotate your secret, for example <code>rate(12 hours)</code> or <code>rate(10 days)</code>. You can rotate a secret as often as every four hours. If you use a <code>rate()</code> expression, the rotation window starts at midnight. For a rate in hours, the default rotation window closes after one hour. For a rate in days, the default rotation window closes at the end of the day. You can set the <code>Duration</code> to change the rotation window. The rotation window must not extend into the next UTC day or into the next rotation window.</p> <p>You can use a <code>cron()</code> expression to create a rotation schedule that is more detailed than a rotation interval. For more information, including examples, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_schedule.html\">Schedule expressions in Secrets Manager rotation</a> in the <i>Secrets Manager Users Guide</i>. For a cron expression that represents a schedule in hours, the default rotation window closes after one hour. For a cron expression that represents a schedule in days, the default rotation window closes at the end of the day. You can set the <code>Duration</code> to change the rotation window. The rotation window must not extend into the next UTC day or into the next rotation window.</p>"
        }
      },
      "documentation":"<p>A structure that defines the rotation configuration for the secret.</p>"
    },
    "RotationTokenType":{
      "type":"string",
      "max":256,
      "min":36,
      "pattern":"^[a-zA-Z0-9\\-]+$",
      "sensitive":true
    },
    "ScheduleExpressionType":{
      "type":"string",
      "max":256,
      "min":1,
      "pattern":"[0-9A-Za-z\\(\\)#\\?\\*\\-\\/, ]+"
    },
    "SecretARNType":{
      "type":"string",
      "max":2048,
      "min":20
    },
    "SecretBinaryType":{
      "type":"blob",
      "max":65536,
      "min":1,
      "sensitive":true
    },
    "SecretIdListType":{
      "type":"list",
      "member":{"shape":"SecretIdType"},
      "max":20,
      "min":1
    },
    "SecretIdType":{
      "type":"string",
      "max":2048,
      "min":1
    },
    "SecretListEntry":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The Amazon Resource Name (ARN) of the secret.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The friendly name of the secret. </p>"
        },
        "Type":{
          "shape":"MedeaTypeType",
          "documentation":"<p>The exact string that identifies the third-party partner that holds the external secret. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-partners.html\">Managed external secret partners</a>.</p>"
        },
        "Description":{
          "shape":"DescriptionType",
          "documentation":"<p>The user-provided description of the secret.</p>"
        },
        "KmsKeyId":{
          "shape":"KmsKeyIdType",
          "documentation":"<p>The ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the secret is encrypted with the Amazon Web Services managed key <code>aws/secretsmanager</code>, this field is omitted.</p>"
        },
        "RotationEnabled":{
          "shape":"RotationEnabledType",
          "documentation":"<p>Indicates whether automatic, scheduled rotation is enabled for this secret.</p>",
          "box":true
        },
        "RotationLambdaARN":{
          "shape":"RotationLambdaARNType",
          "documentation":"<p>The ARN of an Amazon Web Services Lambda function invoked by Secrets Manager to rotate and expire the secret either automatically per the schedule or manually by a call to <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_RotateSecret.html\"> <code>RotateSecret</code> </a>.</p>"
        },
        "RotationRules":{
          "shape":"RotationRulesType",
          "documentation":"<p>A structure that defines the rotation configuration for the secret.</p>"
        },
        "ExternalSecretRotationMetadata":{
          "shape":"ExternalSecretRotationMetadataType",
          "documentation":"<p>The metadata needed to successfully rotate a managed external secret. A list of key value pairs in JSON format specified by the partner. For more information about the required information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-partners.html\">Managed external secrets partners</a>.</p>"
        },
        "ExternalSecretRotationRoleArn":{
          "shape":"RoleARNType",
          "documentation":"<p>The role that Secrets Manager assumes to call APIs required to perform the rotation. For more information about the required information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-partners.html\">Managed external secrets partners</a>.</p>"
        },
        "LastRotatedDate":{
          "shape":"LastRotatedDateType",
          "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>",
          "box":true
        },
        "LastChangedDate":{
          "shape":"LastChangedDateType",
          "documentation":"<p>The last date and time that this secret was modified in any way.</p>",
          "box":true
        },
        "LastAccessedDate":{
          "shape":"LastAccessedDateType",
          "documentation":"<p>The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.</p>",
          "box":true
        },
        "DeletedDate":{
          "shape":"DeletedDateType",
          "documentation":"<p>The date and time the deletion of the secret occurred. Not present on active secrets. The secret can be recovered until the number of days in the recovery window has passed, as specified in the <code>RecoveryWindowInDays</code> parameter of the <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html\"> <code>DeleteSecret</code> </a> operation.</p>"
        },
        "NextRotationDate":{
          "shape":"NextRotationDateType",
          "documentation":"<p>The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.</p>"
        },
        "Tags":{
          "shape":"TagListType",
          "documentation":"<p>The list of user-defined tags associated with the secret. To add tags to a secret, use <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_TagResource.html\"> <code>TagResource</code> </a>. To remove tags, use <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_UntagResource.html\"> <code>UntagResource</code> </a>.</p>"
        },
        "SecretVersionsToStages":{
          "shape":"SecretVersionsToStagesMapType",
          "documentation":"<p>A list of all of the currently assigned <code>SecretVersionStage</code> staging labels and the <code>SecretVersionId</code> attached to each one. Staging labels are used to keep track of the different versions during the rotation process.</p> <note> <p>A version that does not have any <code>SecretVersionStage</code> is considered deprecated and subject to deletion. Such versions are not included in this list.</p> </note>"
        },
        "OwningService":{
          "shape":"OwningServiceType",
          "documentation":"<p>Returns the name of the service that created the secret.</p>"
        },
        "CreatedDate":{
          "shape":"TimestampType",
          "documentation":"<p>The date and time when a secret was created.</p>",
          "box":true
        },
        "PrimaryRegion":{
          "shape":"RegionType",
          "documentation":"<p>The Region where Secrets Manager originated the secret.</p>"
        }
      },
      "documentation":"<p>A structure that contains the details about a secret. It does not include the encrypted <code>SecretString</code> and <code>SecretBinary</code> values. To get those values, use <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html\">GetSecretValue</a> .</p>"
    },
    "SecretListType":{
      "type":"list",
      "member":{"shape":"SecretListEntry"}
    },
    "SecretNameType":{
      "type":"string",
      "max":256,
      "min":1
    },
    "SecretStringType":{
      "type":"string",
      "max":65536,
      "min":1,
      "sensitive":true
    },
    "SecretValueEntry":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The Amazon Resource Name (ARN) of the secret.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The friendly name of the secret. </p>"
        },
        "VersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>The unique version identifier of this version of the secret.</p>"
        },
        "SecretBinary":{
          "shape":"SecretBinaryType",
          "documentation":"<p>The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte array. The parameter represents the binary data as a <a href=\"https://tools.ietf.org/html/rfc4648#section-4\">base64-encoded</a> string.</p>"
        },
        "SecretString":{
          "shape":"SecretStringType",
          "documentation":"<p>The decrypted secret value, if the secret value was originally provided as a string or through the Secrets Manager console.</p>"
        },
        "VersionStages":{
          "shape":"SecretVersionStagesType",
          "documentation":"<p>A list of all of the staging labels currently attached to this version of the secret.</p>"
        },
        "CreatedDate":{
          "shape":"CreatedDateType",
          "documentation":"<p>The date the secret was created.</p>",
          "box":true
        }
      },
      "documentation":"<p>A structure that contains the secret value and other details for a secret.</p>"
    },
    "SecretValuesType":{
      "type":"list",
      "member":{"shape":"SecretValueEntry"}
    },
    "SecretVersionIdType":{
      "type":"string",
      "max":64,
      "min":32
    },
    "SecretVersionStageType":{
      "type":"string",
      "max":256,
      "min":1
    },
    "SecretVersionStagesType":{
      "type":"list",
      "member":{"shape":"SecretVersionStageType"},
      "max":20,
      "min":1
    },
    "SecretVersionsListEntry":{
      "type":"structure",
      "members":{
        "VersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>The unique version identifier of this version of the secret.</p>"
        },
        "VersionStages":{
          "shape":"SecretVersionStagesType",
          "documentation":"<p>An array of staging labels that are currently associated with this version of the secret.</p>"
        },
        "LastAccessedDate":{
          "shape":"LastAccessedDateType",
          "documentation":"<p>The date that this version of the secret was last accessed. Note that the resolution of this field is at the date level and does not include the time.</p>",
          "box":true
        },
        "CreatedDate":{
          "shape":"CreatedDateType",
          "documentation":"<p>The date and time this version of the secret was created.</p>",
          "box":true
        },
        "KmsKeyIds":{
          "shape":"KmsKeyIdListType",
          "documentation":"<p>The KMS keys used to encrypt the secret version.</p>"
        }
      },
      "documentation":"<p>A structure that contains information about one version of a secret.</p>"
    },
    "SecretVersionsListType":{
      "type":"list",
      "member":{"shape":"SecretVersionsListEntry"}
    },
    "SecretVersionsToStagesMapType":{
      "type":"map",
      "key":{"shape":"SecretVersionIdType"},
      "value":{"shape":"SecretVersionStagesType"}
    },
    "SortByType":{
      "type":"string",
      "enum":[
        "created-date",
        "last-accessed-date",
        "last-changed-date",
        "name"
      ]
    },
    "SortOrderType":{
      "type":"string",
      "enum":[
        "asc",
        "desc"
      ]
    },
    "StatusMessageType":{
      "type":"string",
      "max":4096,
      "min":1
    },
    "StatusType":{
      "type":"string",
      "enum":[
        "InSync",
        "Failed",
        "InProgress"
      ]
    },
    "StopReplicationToReplicaRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The name of the secret or the replica ARN. The replica ARN is the same as the original primary secret ARN expect the Region is changed to the replica Region. </p>"
        }
      }
    },
    "StopReplicationToReplicaResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the promoted secret. The ARN is the same as the original primary secret except the Region is changed.</p>"
        }
      }
    },
    "Tag":{
      "type":"structure",
      "members":{
        "Key":{
          "shape":"TagKeyType",
          "documentation":"<p>The key identifier, or name, of the tag.</p>"
        },
        "Value":{
          "shape":"TagValueType",
          "documentation":"<p>The string value associated with the key of the tag.</p>"
        }
      },
      "documentation":"<p>A structure that contains information about a tag.</p>"
    },
    "TagKeyListType":{
      "type":"list",
      "member":{"shape":"TagKeyType"}
    },
    "TagKeyType":{
      "type":"string",
      "max":128,
      "min":1
    },
    "TagListType":{
      "type":"list",
      "member":{"shape":"Tag"}
    },
    "TagResourceRequest":{
      "type":"structure",
      "required":[
        "SecretId",
        "Tags"
      ],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The identifier for the secret to attach tags to. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        },
        "Tags":{
          "shape":"TagListType",
          "documentation":"<p>The tags to attach to the secret as a JSON text string argument. Each element in the list consists of a <code>Key</code> and a <code>Value</code>.</p> <p>For storing multiple values, we recommend that you use a JSON text string argument and specify key/value pairs. For more information, see <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters.html\">Specifying parameter values for the Amazon Web Services CLI</a> in the Amazon Web Services CLI User Guide.</p>"
        }
      }
    },
    "TagValueType":{
      "type":"string",
      "max":256,
      "min":0
    },
    "TimestampType":{"type":"timestamp"},
    "UntagResourceRequest":{
      "type":"structure",
      "required":[
        "SecretId",
        "TagKeys"
      ],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        },
        "TagKeys":{
          "shape":"TagKeyListType",
          "documentation":"<p>A list of tag key names to remove from the secret. You don't specify the value. Both the key and its associated value are removed.</p> <p>This parameter requires a JSON text string argument.</p> <p>For storing multiple values, we recommend that you use a JSON text string argument and specify key/value pairs. For more information, see <a href=\"https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters.html\">Specifying parameter values for the Amazon Web Services CLI</a> in the Amazon Web Services CLI User Guide.</p>"
        }
      }
    },
    "UpdateSecretRequest":{
      "type":"structure",
      "required":["SecretId"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        },
        "ClientRequestToken":{
          "shape":"ClientRequestTokenType",
          "documentation":"<p>If you include <code>SecretString</code> or <code>SecretBinary</code>, then Secrets Manager creates a new version for the secret, and this parameter specifies the unique identifier for the new version.</p> <note> <p>If you use the Amazon Web Services CLI or one of the Amazon Web Services SDKs to call this operation, then you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes it as the value for this parameter in the request. </p> </note> <p>If you generate a raw HTTP request to the Secrets Manager service endpoint, then you must generate a <code>ClientRequestToken</code> and include it in the request.</p> <p>This value helps ensure idempotency. Secrets Manager uses this value to prevent the accidental creation of duplicate versions if there are failures and retries during a rotation. We recommend that you generate a <a href=\"https://wikipedia.org/wiki/Universally_unique_identifier\">UUID-type</a> value to ensure uniqueness of your versions within the specified secret. </p>",
          "idempotencyToken":true
        },
        "Description":{
          "shape":"DescriptionType",
          "documentation":"<p>The description of the secret.</p>"
        },
        "KmsKeyId":{
          "shape":"KmsKeyIdType",
          "documentation":"<p>The ARN, key ID, or alias of the KMS key that Secrets Manager uses to encrypt new secret versions as well as any existing versions with the staging labels <code>AWSCURRENT</code>, <code>AWSPENDING</code>, or <code>AWSPREVIOUS</code>. If you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-encrypt existing secret versions with the new key. For more information about versions and staging labels, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version\">Concepts: Version</a>.</p> <p>A key alias is always prefixed by <code>alias/</code>, for example <code>alias/aws/secretsmanager</code>. For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html\">About aliases</a>.</p> <p>If you set this to an empty string, Secrets Manager uses the Amazon Web Services managed key <code>aws/secretsmanager</code>. If this key doesn't already exist in your account, then Secrets Manager creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access to use <code>aws/secretsmanager</code>. Creating <code>aws/secretsmanager</code> can result in a one-time significant delay in returning the result. </p> <important> <p>You can only use the Amazon Web Services managed key <code>aws/secretsmanager</code> if you call this operation using credentials from the same Amazon Web Services account that owns the secret. If the secret is in a different account, then you must use a customer managed key and provide the ARN of that KMS key in this field. The user making the call must have permissions to both the secret and the KMS key in their respective accounts.</p> </important>"
        },
        "SecretBinary":{
          "shape":"SecretBinaryType",
          "documentation":"<p>The binary data to encrypt and store in the new version of the secret. We recommend that you store your binary data in a file and then pass the contents of the file as a parameter. </p> <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both.</p> <p>You can't access this parameter in the Secrets Manager console.</p> <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>"
        },
        "SecretString":{
          "shape":"SecretStringType",
          "documentation":"<p>The text data to encrypt and store in the new version of the secret. We recommend you use a JSON structure of key/value pairs for your secret value. </p> <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have a value, but not both. </p> <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>"
        },
        "Type":{
          "shape":"MedeaTypeType",
          "documentation":"<p>The exact string that identifies the third-party partner that holds the external secret. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-partners.html\">Managed external secret partners</a>.</p>"
        }
      }
    },
    "UpdateSecretResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret that was updated.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The name of the secret that was updated.</p>"
        },
        "VersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>If Secrets Manager created a new version of the secret during this operation, then <code>VersionId</code> contains the unique identifier of the new version.</p>"
        }
      }
    },
    "UpdateSecretVersionStageRequest":{
      "type":"structure",
      "required":[
        "SecretId",
        "VersionStage"
      ],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or the name of the secret with the version and staging labelsto modify.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen\">Finding a secret from a partial ARN</a>.</p>"
        },
        "VersionStage":{
          "shape":"SecretVersionStageType",
          "documentation":"<p>The staging label to add to this version.</p>"
        },
        "RemoveFromVersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>The ID of the version that the staging label is to be removed from. If the staging label you are trying to attach to one version is already attached to a different version, then you must include this parameter and specify the version that the label is to be removed from. If the label is attached and you either do not specify this parameter, or the version ID does not match, then the operation fails.</p>",
          "box":true
        },
        "MoveToVersionId":{
          "shape":"SecretVersionIdType",
          "documentation":"<p>The ID of the version to add the staging label to. To remove a label from a version, then do not specify this parameter.</p> <p>If the staging label is already attached to a different version of the secret, then you must also specify the <code>RemoveFromVersionId</code> parameter. </p>",
          "box":true
        }
      }
    },
    "UpdateSecretVersionStageResponse":{
      "type":"structure",
      "members":{
        "ARN":{
          "shape":"SecretARNType",
          "documentation":"<p>The ARN of the secret that was updated.</p>"
        },
        "Name":{
          "shape":"SecretNameType",
          "documentation":"<p>The name of the secret that was updated.</p>"
        }
      }
    },
    "ValidateResourcePolicyRequest":{
      "type":"structure",
      "required":["ResourcePolicy"],
      "members":{
        "SecretId":{
          "shape":"SecretIdType",
          "documentation":"<p>The ARN or name of the secret with the resource-based policy you want to validate.</p>"
        },
        "ResourcePolicy":{
          "shape":"NonEmptyResourcePolicyType",
          "documentation":"<p>A JSON-formatted string that contains an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For example policies, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html\">Permissions policy examples</a>.</p>"
        }
      }
    },
    "ValidateResourcePolicyResponse":{
      "type":"structure",
      "members":{
        "PolicyValidationPassed":{
          "shape":"BooleanType",
          "documentation":"<p>True if your policy passes validation, otherwise false.</p>"
        },
        "ValidationErrors":{
          "shape":"ValidationErrorsType",
          "documentation":"<p>Validation errors if your policy didn't pass validation.</p>"
        }
      }
    },
    "ValidationErrorsEntry":{
      "type":"structure",
      "members":{
        "CheckName":{
          "shape":"NameType",
          "documentation":"<p>Checks the name of the policy.</p>"
        },
        "ErrorMessage":{
          "shape":"ErrorMessage",
          "documentation":"<p>Displays error messages if validation encounters problems during validation of the resource policy.</p>"
        }
      },
      "documentation":"<p>Displays errors that occurred during validation of the resource policy.</p>"
    },
    "ValidationErrorsType":{
      "type":"list",
      "member":{"shape":"ValidationErrorsEntry"}
    }
  },
  "documentation":"<fullname>Amazon Web Services Secrets Manager</fullname> <p>Amazon Web Services Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.</p> <p>This guide provides descriptions of the Secrets Manager API. For more information about using this service, see the <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/introduction.html\">Amazon Web Services Secrets Manager User Guide</a>.</p> <p> <b>API Version</b> </p> <p>This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.</p> <p>For a list of endpoints, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/asm_access.html#endpoints\">Amazon Web Services Secrets Manager endpoints</a>.</p> <p> <b>Support and Feedback for Amazon Web Services Secrets Manager</b> </p> <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\">Amazon Web Services Secrets Manager Discussion Forum</a>. For more information about the Amazon Web Services Discussion Forums, see <a href=\"http://forums.aws.amazon.com/help.jspa\">Forums Help</a>.</p> <p> <b>Logging API Requests</b> </p> <p>Amazon Web Services Secrets Manager supports Amazon Web Services CloudTrail, a service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket. By using information that's collected by Amazon Web Services CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the request, when it was made, and so on. For more about Amazon Web Services Secrets Manager and support for Amazon Web Services CloudTrail, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring.html#monitoring_cloudtrail\">Logging Amazon Web Services Secrets Manager Events with Amazon Web Services CloudTrail</a> in the <i>Amazon Web Services Secrets Manager User Guide</i>. 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\">Amazon Web Services CloudTrail User Guide</a>.</p>"
}
