Skip to content

Commit

Permalink
docs(client-secrets-manager): Documentation updates for Secrets Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Jul 13, 2023
1 parent 537b4b3 commit f4742bc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyR
* const response = await client.send(command);
* /* response ==
* {
* "ARN": "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseMasterSecret-a1b2c3",
* "ARN": "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3",
* "Name": "MyTestDatabaseSecret"
* }
* *\/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export interface UpdateSecretCommandOutput extends UpdateSecretResponse, __Metad
* 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> and
* <code>kms:Decrypt</code> permissions on the key. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/security-encryption.html">
* 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-ecrypt 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>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
3 changes: 1 addition & 2 deletions clients/client-secrets-manager/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1821,8 +1821,7 @@ export interface UpdateSecretRequest {
/**
* <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>.
* 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>
* <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-ecrypt 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
Expand Down
4 changes: 2 additions & 2 deletions codegen/sdk-codegen/aws-models/secrets-manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -2615,7 +2615,7 @@
}
],
"traits": {
"smithy.api#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>\n <p>To change the rotation configuration of a secret, use <a>RotateSecret</a> instead.</p>\n <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>\n <p>We recommend you avoid calling <code>UpdateSecret</code> at a sustained rate of more than \n once every 10 minutes. When you call <code>UpdateSecret</code> to update the secret value, Secrets Manager creates a new version \n of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not \n remove versions created less than 24 hours ago. If you update the secret value more \n than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach \n the quota for secret versions.</p>\n <p>If you include <code>SecretString</code> or <code>SecretBinary</code> to create a new\n secret version, Secrets Manager automatically moves the staging label <code>AWSCURRENT</code> to the new\n version. Then it attaches the label <code>AWSPREVIOUS</code>\n to the version that <code>AWSCURRENT</code> was removed from.</p>\n <p>If you call this operation with a <code>ClientRequestToken</code> that matches an existing version's \n <code>VersionId</code>, the operation results in an error. You can't modify an existing \n version, you can only create a new version. To remove a version, remove all staging labels from it. See \n <a>UpdateSecretVersionStage</a>.</p>\n <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>\n <p>\n <b>Required permissions: </b>\n <code>secretsmanager:UpdateSecret</code>. \n For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\">\n IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication \n and access control in Secrets Manager</a>. \n If you use a customer managed key, you must also have <code>kms:GenerateDataKey</code> and \n <code>kms:Decrypt</code> permissions on the key. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/security-encryption.html\">\n Secret encryption and decryption</a>.</p>"
"smithy.api#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>\n <p>To change the rotation configuration of a secret, use <a>RotateSecret</a> instead.</p>\n <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>\n <p>We recommend you avoid calling <code>UpdateSecret</code> at a sustained rate of more than \n once every 10 minutes. When you call <code>UpdateSecret</code> to update the secret value, Secrets Manager creates a new version \n of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not \n remove versions created less than 24 hours ago. If you update the secret value more \n than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach \n the quota for secret versions.</p>\n <p>If you include <code>SecretString</code> or <code>SecretBinary</code> to create a new\n secret version, Secrets Manager automatically moves the staging label <code>AWSCURRENT</code> to the new\n version. Then it attaches the label <code>AWSPREVIOUS</code>\n to the version that <code>AWSCURRENT</code> was removed from.</p>\n <p>If you call this operation with a <code>ClientRequestToken</code> that matches an existing version's \n <code>VersionId</code>, the operation results in an error. You can't modify an existing \n version, you can only create a new version. To remove a version, remove all staging labels from it. See \n <a>UpdateSecretVersionStage</a>.</p>\n <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>\n <p>\n <b>Required permissions: </b>\n <code>secretsmanager:UpdateSecret</code>. \n For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions\">\n IAM policy actions for Secrets Manager</a> and <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html\">Authentication \n and access control in Secrets Manager</a>. \n If you use a customer managed key, you must also have <code>kms:GenerateDataKey</code>, <code>kms:Encrypt</code>, and \n <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-ecrypt existing secret versions with the new key. For more information, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/security-encryption.html\">\n Secret encryption and decryption</a>.</p>"
}
},
"com.amazonaws.secretsmanager#UpdateSecretRequest": {
Expand Down Expand Up @@ -2644,7 +2644,7 @@
"KmsKeyId": {
"target": "com.amazonaws.secretsmanager#KmsKeyIdType",
"traits": {
"smithy.api#documentation": "<p>The ARN, key ID, or alias of the KMS key that Secrets Manager \n uses to encrypt new secret versions as well as any existing versions with the staging labels \n <code>AWSCURRENT</code>, <code>AWSPENDING</code>, or <code>AWSPREVIOUS</code>. \n 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>\n <p>A key alias is always prefixed by <code>alias/</code>, for example <code>alias/aws/secretsmanager</code>.\n For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html\">About aliases</a>.</p>\n <p>If you set this to an empty string, Secrets Manager uses the Amazon Web Services managed key \n <code>aws/secretsmanager</code>. If this key doesn't already exist in your account, then Secrets Manager \n creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access \n to use <code>aws/secretsmanager</code>. Creating <code>aws/secretsmanager</code> can result in a one-time \n significant delay in returning the result. </p>\n <important>\n <p>You can only use the Amazon Web Services managed key <code>aws/secretsmanager</code> if you call this\n operation using credentials from the same Amazon Web Services account that owns the secret. If the secret is in\n a different account, then you must use a customer managed key and provide the ARN of that KMS key in\n this field. The user making the call must have permissions to both the secret and the KMS key in\n their respective accounts.</p>\n </important>"
"smithy.api#documentation": "<p>The ARN, key ID, or alias of the KMS key that Secrets Manager \n uses to encrypt new secret versions as well as any existing versions with the staging labels \n <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-ecrypt 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>\n <p>A key alias is always prefixed by <code>alias/</code>, for example <code>alias/aws/secretsmanager</code>.\n For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html\">About aliases</a>.</p>\n <p>If you set this to an empty string, Secrets Manager uses the Amazon Web Services managed key \n <code>aws/secretsmanager</code>. If this key doesn't already exist in your account, then Secrets Manager \n creates it for you automatically. All users and roles in the Amazon Web Services account automatically have access \n to use <code>aws/secretsmanager</code>. Creating <code>aws/secretsmanager</code> can result in a one-time \n significant delay in returning the result. </p>\n <important>\n <p>You can only use the Amazon Web Services managed key <code>aws/secretsmanager</code> if you call this\n operation using credentials from the same Amazon Web Services account that owns the secret. If the secret is in\n a different account, then you must use a customer managed key and provide the ARN of that KMS key in\n this field. The user making the call must have permissions to both the secret and the KMS key in\n their respective accounts.</p>\n </important>"
}
},
"SecretBinary": {
Expand Down

0 comments on commit f4742bc

Please sign in to comment.