Skip to content

Commit f9c6096

Browse files
author
awstools
committed
docs(client-secrets-manager): Doc only update for Secrets Manager that fixes several customer-reported issues.
1 parent afd213b commit f9c6096

File tree

6 files changed

+54
-36
lines changed

6 files changed

+54
-36
lines changed

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

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,16 @@ export class SecretsManager extends SecretsManagerClient {
154154
/**
155155
* <p>Turns off automatic rotation, and if a rotation is currently in
156156
* progress, cancels the rotation.</p>
157+
* <p>If you cancel a rotation in progress, it can leave the <code>VersionStage</code>
158+
* labels in an unexpected state. You might
159+
* need to remove the staging label <code>AWSPENDING</code> from the partially created version.
160+
* You also need to determine whether to roll back to the previous version of the secret
161+
* by moving the staging label <code>AWSCURRENT</code> to the version that has <code>AWSPENDING</code>.
162+
* To determine
163+
* which version has a specific staging label, call <a>ListSecretVersionIds</a>. Then use
164+
* <a>UpdateSecretVersionStage</a> to change staging labels.
165+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html">How rotation works</a>.</p>
157166
* <p>To turn on automatic rotation again, call <a>RotateSecret</a>.</p>
158-
* <note>
159-
* <p>If you cancel a rotation in progress, it can leave the <code>VersionStage</code>
160-
* labels in an unexpected state. Depending on the step of the rotation in progress, you might
161-
* need to remove the staging label <code>AWSPENDING</code> from the partially created version, specified
162-
* by the <code>VersionId</code> response value. We recommend you also evaluate the partially rotated
163-
* new version to see if it should be deleted. You can delete a version by removing all staging labels
164-
* from it.</p>
165-
* </note>
166167
* <p>
167168
* <b>Required permissions: </b>
168169
* <code>secretsmanager:CancelRotateSecret</code>.
@@ -304,14 +305,23 @@ export class SecretsManager extends SecretsManagerClient {
304305
* The default recovery window is 30 days. Secrets Manager attaches a <code>DeletionDate</code> stamp to
305306
* the secret that specifies the end of the recovery window. At the end of the recovery window,
306307
* Secrets Manager deletes the secret permanently.</p>
307-
* <p>For information about deleting a secret in the console, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_delete-secret.html">https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_delete-secret.html</a>. </p>
308+
* <p>You can't delete a primary secret that is replicated to other Regions. You must first delete the
309+
* replicas using <a>RemoveRegionsFromReplication</a>, and then delete the primary secret.
310+
* When you delete a replica, it is deleted immediately.</p>
311+
* <p>You can't directly delete a version of a secret. Instead, you remove all staging labels
312+
* from the version using <a>UpdateSecretVersionStage</a>. This marks the version as deprecated,
313+
* and then Secrets Manager can automatically delete the version in the background.</p>
314+
* <p>To determine whether an application still uses a secret, you can create an Amazon CloudWatch alarm
315+
* to alert you to any attempts to access a secret during the recovery window. For more information,
316+
* see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring_cloudwatch_deleted-secrets.html">
317+
* Monitor secrets scheduled for deletion</a>.</p>
308318
* <p>Secrets Manager performs the permanent secret deletion at the end of the waiting period as a
309319
* background task with low priority. There is no guarantee of a specific time after the
310320
* recovery window for the permanent delete to occur.</p>
311321
* <p>At any time before recovery window ends, you can use <a>RestoreSecret</a> to
312322
* remove the <code>DeletionDate</code> and cancel the deletion of the secret.</p>
313-
* <p>In a secret scheduled for deletion, you cannot access the encrypted secret value.
314-
* To access that information, first cancel the deletion with <a>RestoreSecret</a> and then retrieve the information.</p>
323+
* <p>When a secret is scheduled for deletion, you cannot retrieve the secret value.
324+
* You must first cancel the deletion with <a>RestoreSecret</a> and then you can retrieve the secret.</p>
315325
* <p>
316326
* <b>Required permissions: </b>
317327
* <code>secretsmanager:DeleteSecret</code>.
@@ -517,8 +527,7 @@ export class SecretsManager extends SecretsManagerClient {
517527
* <p>To list the versions of a secret, use <a>ListSecretVersionIds</a>.</p>
518528
* <p>To get the secret value from <code>SecretString</code> or <code>SecretBinary</code>,
519529
* call <a>GetSecretValue</a>.</p>
520-
* <p>For information about finding secrets in the console, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_search-secret.html">Enhanced search capabilities
521-
* for secrets in Secrets Manager</a>.</p>
530+
* <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>
522531
* <p>
523532
* <b>Required permissions: </b>
524533
* <code>secretsmanager:ListSecrets</code>.
@@ -550,10 +559,10 @@ export class SecretsManager extends SecretsManagerClient {
550559
}
551560

552561
/**
553-
* <p>Lists the versions for a secret. </p>
562+
* <p>Lists the versions of a secret. Secrets Manager uses staging labels to indicate the different versions
563+
* of a secret. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version">
564+
* Secrets Manager concepts: Versions</a>.</p>
554565
* <p>To list the secrets in the account, use <a>ListSecrets</a>.</p>
555-
* <p>To get the secret value from <code>SecretString</code> or <code>SecretBinary</code>,
556-
* call <a>GetSecretValue</a>.</p>
557566
* <p>
558567
* <b>Required permissions: </b>
559568
* <code>secretsmanager:ListSecretVersionIds</code>.

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ export interface CancelRotateSecretCommandOutput extends CancelRotateSecretRespo
2525
/**
2626
* <p>Turns off automatic rotation, and if a rotation is currently in
2727
* progress, cancels the rotation.</p>
28+
* <p>If you cancel a rotation in progress, it can leave the <code>VersionStage</code>
29+
* labels in an unexpected state. You might
30+
* need to remove the staging label <code>AWSPENDING</code> from the partially created version.
31+
* You also need to determine whether to roll back to the previous version of the secret
32+
* by moving the staging label <code>AWSCURRENT</code> to the version that has <code>AWSPENDING</code>.
33+
* To determine
34+
* which version has a specific staging label, call <a>ListSecretVersionIds</a>. Then use
35+
* <a>UpdateSecretVersionStage</a> to change staging labels.
36+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html">How rotation works</a>.</p>
2837
* <p>To turn on automatic rotation again, call <a>RotateSecret</a>.</p>
29-
* <note>
30-
* <p>If you cancel a rotation in progress, it can leave the <code>VersionStage</code>
31-
* labels in an unexpected state. Depending on the step of the rotation in progress, you might
32-
* need to remove the staging label <code>AWSPENDING</code> from the partially created version, specified
33-
* by the <code>VersionId</code> response value. We recommend you also evaluate the partially rotated
34-
* new version to see if it should be deleted. You can delete a version by removing all staging labels
35-
* from it.</p>
36-
* </note>
3738
* <p>
3839
* <b>Required permissions: </b>
3940
* <code>secretsmanager:CancelRotateSecret</code>.

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,23 @@ export interface DeleteSecretCommandOutput extends DeleteSecretResponse, __Metad
2828
* The default recovery window is 30 days. Secrets Manager attaches a <code>DeletionDate</code> stamp to
2929
* the secret that specifies the end of the recovery window. At the end of the recovery window,
3030
* Secrets Manager deletes the secret permanently.</p>
31-
* <p>For information about deleting a secret in the console, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_delete-secret.html">https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_delete-secret.html</a>. </p>
31+
* <p>You can't delete a primary secret that is replicated to other Regions. You must first delete the
32+
* replicas using <a>RemoveRegionsFromReplication</a>, and then delete the primary secret.
33+
* When you delete a replica, it is deleted immediately.</p>
34+
* <p>You can't directly delete a version of a secret. Instead, you remove all staging labels
35+
* from the version using <a>UpdateSecretVersionStage</a>. This marks the version as deprecated,
36+
* and then Secrets Manager can automatically delete the version in the background.</p>
37+
* <p>To determine whether an application still uses a secret, you can create an Amazon CloudWatch alarm
38+
* to alert you to any attempts to access a secret during the recovery window. For more information,
39+
* see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring_cloudwatch_deleted-secrets.html">
40+
* Monitor secrets scheduled for deletion</a>.</p>
3241
* <p>Secrets Manager performs the permanent secret deletion at the end of the waiting period as a
3342
* background task with low priority. There is no guarantee of a specific time after the
3443
* recovery window for the permanent delete to occur.</p>
3544
* <p>At any time before recovery window ends, you can use <a>RestoreSecret</a> to
3645
* remove the <code>DeletionDate</code> and cancel the deletion of the secret.</p>
37-
* <p>In a secret scheduled for deletion, you cannot access the encrypted secret value.
38-
* To access that information, first cancel the deletion with <a>RestoreSecret</a> and then retrieve the information.</p>
46+
* <p>When a secret is scheduled for deletion, you cannot retrieve the secret value.
47+
* You must first cancel the deletion with <a>RestoreSecret</a> and then you can retrieve the secret.</p>
3948
* <p>
4049
* <b>Required permissions: </b>
4150
* <code>secretsmanager:DeleteSecret</code>.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ export interface ListSecretVersionIdsCommandInput extends ListSecretVersionIdsRe
2323
export interface ListSecretVersionIdsCommandOutput extends ListSecretVersionIdsResponse, __MetadataBearer {}
2424

2525
/**
26-
* <p>Lists the versions for a secret. </p>
26+
* <p>Lists the versions of a secret. Secrets Manager uses staging labels to indicate the different versions
27+
* of a secret. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version">
28+
* Secrets Manager concepts: Versions</a>.</p>
2729
* <p>To list the secrets in the account, use <a>ListSecrets</a>.</p>
28-
* <p>To get the secret value from <code>SecretString</code> or <code>SecretBinary</code>,
29-
* call <a>GetSecretValue</a>.</p>
3030
* <p>
3131
* <b>Required permissions: </b>
3232
* <code>secretsmanager:ListSecretVersionIds</code>.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export interface ListSecretsCommandOutput extends ListSecretsResponse, __Metadat
2828
* <p>To list the versions of a secret, use <a>ListSecretVersionIds</a>.</p>
2929
* <p>To get the secret value from <code>SecretString</code> or <code>SecretBinary</code>,
3030
* call <a>GetSecretValue</a>.</p>
31-
* <p>For information about finding secrets in the console, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_search-secret.html">Enhanced search capabilities
32-
* for secrets in Secrets Manager</a>.</p>
31+
* <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>
3332
* <p>
3433
* <b>Required permissions: </b>
3534
* <code>secretsmanager:ListSecrets</code>.

0 commit comments

Comments
 (0)