Skip to content

Commit fbbd00f

Browse files
author
awstools
committed
docs(client-secrets-manager): Doc only update for Secrets Manager
1 parent 7a28cab commit fbbd00f

File tree

4 files changed

+51
-14
lines changed

4 files changed

+51
-14
lines changed

clients/client-secrets-manager/src/commands/GetRandomPasswordCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export interface GetRandomPasswordCommandOutput extends GetRandomPasswordRespons
3434
* @public
3535
* <p>Generates a random password. We recommend that you specify the
3636
* maximum length and include every character type that the system you are generating a password
37-
* for can support.</p>
37+
* for can support. By default, Secrets Manager uses uppercase and lowercase letters, numbers, and the following characters in passwords: <code>!\"#$%&'()*+,-./:;<=>?@[\\]^_`\{|\}~</code>
38+
* </p>
3839
* <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>
3940
* <p>
4041
* <b>Required permissions: </b>

clients/client-secrets-manager/src/commands/ReplicateSecretToRegionsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface ReplicateSecretToRegionsCommandOutput extends ReplicateSecretTo
3333
* <p>
3434
* <b>Required permissions: </b>
3535
* <code>secretsmanager:ReplicateSecretToRegions</code>.
36-
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
36+
* 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">
3737
* IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
3838
* and access control in Secrets Manager</a>. </p>
3939
* @example

clients/client-secrets-manager/src/models/models_0.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ export interface DescribeSecretResponse {
991991
/**
992992
* @public
993993
* <p>The last date and time that Secrets Manager rotated the secret.
994-
* If the secret isn't configured for rotation, Secrets Manager returns null.</p>
994+
* If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.</p>
995995
*/
996996
LastRotatedDate?: Date;
997997

@@ -1020,7 +1020,7 @@ export interface DescribeSecretResponse {
10201020

10211021
/**
10221022
* @public
1023-
* <p>The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation, Secrets Manager returns null.</p>
1023+
* <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>
10241024
*/
10251025
NextRotationDate?: Date;
10261026

@@ -1269,9 +1269,7 @@ export interface GetSecretValueResponse {
12691269
/**
12701270
* @public
12711271
* <p>The decrypted secret value, if the secret value was originally provided as
1272-
* binary data in the form of a byte array. The response parameter represents the binary data as
1273-
* a <a href="https://tools.ietf.org/html/rfc4648#section-4">base64-encoded</a>
1274-
* string.</p>
1272+
* 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>
12751273
* <p>If the secret was created by using the Secrets Manager console, or if the secret value was
12761274
* originally provided as a string, then this field is omitted. The secret value appears in
12771275
* <code>SecretString</code> instead.</p>
@@ -1441,7 +1439,7 @@ export interface SecretListEntry {
14411439

14421440
/**
14431441
* @public
1444-
* <p>The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation, Secrets Manager returns null.</p>
1442+
* <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>
14451443
*/
14461444
NextRotationDate?: Date;
14471445

codegen/sdk-codegen/aws-models/secrets-manager.json

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,44 @@
111111
],
112112
"traits": {
113113
"smithy.api#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>\n <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>\n <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>\n <p>\n <b>Required permissions: </b>\n <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 \n <code>aws/secretsmanager</code>, then you also need <code>kms:Decrypt</code> permissions for the keys.\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>. </p>",
114+
"smithy.api#examples": [
115+
{
116+
"title": "To retrieve the secret values for a group of secrets listed by name",
117+
"documentation": "The following example gets the values for three secrets.",
118+
"input": {
119+
"SecretIdList": ["MySecret1", "MySecret2", "MySecret3"]
120+
},
121+
"output": {
122+
"SecretValues": [
123+
{
124+
"ARN": "&region-arn;&asm-service-name;:us-west-2:&ExampleAccountId;:secret:MySecret1-a1b2c3",
125+
"CreatedDate": 1.700591229801e9,
126+
"Name": "MySecret1",
127+
"SecretString": "{\"username\":\"diego_ramirez\",\"password\":\"EXAMPLE-PASSWORD\",\"engine\":\"mysql\",\"host\":\"secretsmanagertutorial.cluster.us-west-2.rds.amazonaws.com\",\"port\":3306,\"dbClusterIdentifier\":\"secretsmanagertutorial\"}",
128+
"VersionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLEaaaaa",
129+
"VersionStages": ["AWSCURRENT"]
130+
},
131+
{
132+
"ARN": "&region-arn;&asm-service-name;:us-west-2:&ExampleAccountId;:secret:MySecret2-a1b2c3",
133+
"CreatedDate": 1.699911394105e9,
134+
"Name": "MySecret2",
135+
"SecretString": "{\"username\":\"akua_mansa\",\"password\":\"EXAMPLE-PASSWORD\"",
136+
"VersionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLEbbbbb",
137+
"VersionStages": ["AWSCURRENT"]
138+
},
139+
{
140+
"ARN": "&region-arn;&asm-service-name;:us-west-2:&ExampleAccountId;:secret:MySecret3-a1b2c3",
141+
"CreatedDate": 1.699911394105e9,
142+
"Name": "MySecret3",
143+
"SecretString": "{\"username\":\"jie_liu\",\"password\":\"EXAMPLE-PASSWORD\"",
144+
"VersionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLEccccc",
145+
"VersionStages": ["AWSCURRENT"]
146+
}
147+
],
148+
"Errors": []
149+
}
150+
}
151+
],
114152
"smithy.api#paginated": {
115153
"inputToken": "NextToken",
116154
"outputToken": "NextToken",
@@ -692,7 +730,7 @@
692730
"LastRotatedDate": {
693731
"target": "com.amazonaws.secretsmanager#LastRotatedDateType",
694732
"traits": {
695-
"smithy.api#documentation": "<p>The last date and time that Secrets Manager rotated the secret. \n If the secret isn't configured for rotation, Secrets Manager returns null.</p>"
733+
"smithy.api#documentation": "<p>The last date and time that Secrets Manager rotated the secret. \n If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.</p>"
696734
}
697735
},
698736
"LastChangedDate": {
@@ -716,7 +754,7 @@
716754
"NextRotationDate": {
717755
"target": "com.amazonaws.secretsmanager#NextRotationDateType",
718756
"traits": {
719-
"smithy.api#documentation": "<p>The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation, Secrets Manager returns null.</p>"
757+
"smithy.api#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>"
720758
}
721759
},
722760
"Tags": {
@@ -951,7 +989,7 @@
951989
}
952990
],
953991
"traits": {
954-
"smithy.api#documentation": "<p>Generates a random password. We recommend that you specify the\n maximum length and include every character type that the system you are generating a password\n for can support.</p>\n <p>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>\n <p>\n <b>Required permissions: </b>\n <code>secretsmanager:GetRandomPassword</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>. </p>",
992+
"smithy.api#documentation": "<p>Generates a random password. We recommend that you specify the\n maximum length and include every character type that the system you are generating a password\n for can support. By default, Secrets Manager uses uppercase and lowercase letters, numbers, and the following characters in passwords: <code>!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~</code>\n </p>\n <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>\n <p>\n <b>Required permissions: </b>\n <code>secretsmanager:GetRandomPassword</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>. </p>",
955993
"smithy.api#examples": [
956994
{
957995
"title": "To generate a random password",
@@ -1222,7 +1260,7 @@
12221260
"SecretBinary": {
12231261
"target": "com.amazonaws.secretsmanager#SecretBinaryType",
12241262
"traits": {
1225-
"smithy.api#documentation": "<p>The decrypted secret value, if the secret value was originally provided as\n binary data in the form of a byte array. The response parameter represents the binary data as\n a <a href=\"https://tools.ietf.org/html/rfc4648#section-4\">base64-encoded</a>\n string.</p>\n <p>If the secret was created by using the Secrets Manager console, or if the secret value was \n originally provided as a string, then this field is omitted. The secret value appears in \n <code>SecretString</code> instead.</p>"
1263+
"smithy.api#documentation": "<p>The decrypted secret value, if the secret value was originally provided as\n 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>\n <p>If the secret was created by using the Secrets Manager console, or if the secret value was \n originally provided as a string, then this field is omitted. The secret value appears in \n <code>SecretString</code> instead.</p>"
12261264
}
12271265
},
12281266
"SecretString": {
@@ -2055,7 +2093,7 @@
20552093
}
20562094
],
20572095
"traits": {
2058-
"smithy.api#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>\n <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>\n <p>\n <b>Required permissions: </b>\n <code>secretsmanager:ReplicateSecretToRegions</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>. </p>",
2096+
"smithy.api#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>\n <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>\n <p>\n <b>Required permissions: </b>\n <code>secretsmanager:ReplicateSecretToRegions</code>. \n 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\">\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>. </p>",
20592097
"smithy.api#examples": [
20602098
{
20612099
"title": "Example",
@@ -2568,7 +2606,7 @@
25682606
"NextRotationDate": {
25692607
"target": "com.amazonaws.secretsmanager#NextRotationDateType",
25702608
"traits": {
2571-
"smithy.api#documentation": "<p>The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation, Secrets Manager returns null.</p>"
2609+
"smithy.api#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>"
25722610
}
25732611
},
25742612
"Tags": {

0 commit comments

Comments
 (0)