Skip to content

Commit 5e1ced7

Browse files
author
awstools
committed
docs(client-secrets-manager): Documentation updates for Secrets Manager
1 parent 75fac5e commit 5e1ced7

25 files changed

+154
-120
lines changed

clients/client-secrets-manager/src/SecretsManager.ts

Lines changed: 48 additions & 34 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface CancelRotateSecretCommandOutput extends CancelRotateSecretRespo
3636
* <p>
3737
* <b>Required permissions: </b>
3838
* <code>secretsmanager:CancelRotateSecret</code>.
39-
* For more information, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions">
39+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
4040
* IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
4141
* and access control in Secrets Manager</a>. </p>
4242
* @example

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ export interface CreateSecretCommandInput extends CreateSecretRequest {}
2222
export interface CreateSecretCommandOutput extends CreateSecretResponse, __MetadataBearer {}
2323

2424
/**
25-
* <p>Creates a new secret. A <i>secret</i> is a set of credentials, such as a
26-
* user name and password, that you store in an encrypted form in Secrets Manager. The secret also
25+
* <p>Creates a new secret. A <i>secret</i> can be a password, a set of
26+
* credentials such as a user name and password, an OAuth token, or other secret information
27+
* that you store in an encrypted form in Secrets Manager. The secret also
2728
* includes the connection information to access a database or other service, which Secrets Manager
2829
* doesn't encrypt. A secret in Secrets Manager consists of both the protected secret data and the
2930
* important information needed to manage the secret.</p>
@@ -33,6 +34,9 @@ export interface CreateSecretCommandOutput extends CreateSecretResponse, __Metad
3334
* If you include <code>SecretString</code> or <code>SecretBinary</code>
3435
* then Secrets Manager creates an initial secret version and automatically attaches the staging
3536
* label <code>AWSCURRENT</code> to it.</p>
37+
* <p>For database credentials you want to rotate, for Secrets Manager to be able to rotate the secret,
38+
* 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
39+
* a database secret</a>.</p>
3640
* <p>If you don't specify an KMS encryption key, Secrets Manager uses the Amazon Web Services managed key
3741
* <code>aws/secretsmanager</code>. If this key
3842
* doesn't already exist in your account, then Secrets Manager creates it for you automatically. All
@@ -44,10 +48,12 @@ export interface CreateSecretCommandOutput extends CreateSecretResponse, __Metad
4448
* and use a customer managed KMS key. </p>
4549
* <p>
4650
* <b>Required permissions: </b>
47-
* <code>secretsmanager:CreateSecret</code>.
48-
* For more information, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions">
51+
* <code>secretsmanager:CreateSecret</code>. If you
52+
* include tags in the secret, you also need <code>secretsmanager:TagResource</code>.
53+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
4954
* IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
5055
* and access control in Secrets Manager</a>. </p>
56+
* <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>
5157
* @example
5258
* Use a bare-bones client and the command you need to make an API call.
5359
* ```javascript

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyR
2727
* <p>
2828
* <b>Required permissions: </b>
2929
* <code>secretsmanager:DeleteResourcePolicy</code>.
30-
* For more information, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions">
30+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
3131
* IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
3232
* and access control in Secrets Manager</a>. </p>
3333
* @example

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface DeleteSecretCommandOutput extends DeleteSecretResponse, __Metad
3838
* <p>
3939
* <b>Required permissions: </b>
4040
* <code>secretsmanager:DeleteSecret</code>.
41-
* For more information, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions">
41+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
4242
* IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
4343
* and access control in Secrets Manager</a>. </p>
4444
* @example

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface DescribeSecretCommandOutput extends DescribeSecretResponse, __M
2727
* <p>
2828
* <b>Required permissions: </b>
2929
* <code>secretsmanager:DescribeSecret</code>.
30-
* For more information, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions">
30+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
3131
* IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
3232
* and access control in Secrets Manager</a>. </p>
3333
* @example

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface GetRandomPasswordCommandOutput extends GetRandomPasswordRespons
2828
* <p>
2929
* <b>Required permissions: </b>
3030
* <code>secretsmanager:GetRandomPassword</code>.
31-
* For more information, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions">
31+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
3232
* IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
3333
* and access control in Secrets Manager</a>. </p>
3434
* @example

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface GetResourcePolicyCommandOutput extends GetResourcePolicyRespons
2929
* <p>
3030
* <b>Required permissions: </b>
3131
* <code>secretsmanager:GetResourcePolicy</code>.
32-
* For more information, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions">
32+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
3333
* IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
3434
* and access control in Secrets Manager</a>. </p>
3535
* @example

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface GetSecretValueCommandOutput extends GetSecretValueResponse, __M
3434
* <code>secretsmanager:GetSecretValue</code>.
3535
* If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key
3636
* <code>aws/secretsmanager</code>, then you also need <code>kms:Decrypt</code> permissions for that key.
37-
* For more information, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions">
37+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
3838
* IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
3939
* and access control in Secrets Manager</a>. </p>
4040
* @example

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface ListSecretVersionIdsCommandOutput extends ListSecretVersionIdsR
2929
* <p>
3030
* <b>Required permissions: </b>
3131
* <code>secretsmanager:ListSecretVersionIds</code>.
32-
* For more information, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecretsmanager.html#awssecretsmanager-actions-as-permissions">
32+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
3333
* IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
3434
* and access control in Secrets Manager</a>. </p>
3535
* @example

0 commit comments

Comments
 (0)