You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/client-secrets-manager/src/SecretsManager.ts
+25-16Lines changed: 25 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -154,15 +154,16 @@ export class SecretsManager extends SecretsManagerClient {
154
154
/**
155
155
* <p>Turns off automatic rotation, and if a rotation is currently in
156
156
* 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>
157
166
* <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>
166
167
* <p>
167
168
* <b>Required permissions: </b>
168
169
* <code>secretsmanager:CancelRotateSecret</code>.
@@ -304,14 +305,23 @@ export class SecretsManager extends SecretsManagerClient {
304
305
* The default recovery window is 30 days. Secrets Manager attaches a <code>DeletionDate</code> stamp to
305
306
* the secret that specifies the end of the recovery window. At the end of the recovery window,
306
307
* 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>
308
318
* <p>Secrets Manager performs the permanent secret deletion at the end of the waiting period as a
309
319
* background task with low priority. There is no guarantee of a specific time after the
310
320
* recovery window for the permanent delete to occur.</p>
311
321
* <p>At any time before recovery window ends, you can use <a>RestoreSecret</a> to
312
322
* 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>
315
325
* <p>
316
326
* <b>Required permissions: </b>
317
327
* <code>secretsmanager:DeleteSecret</code>.
@@ -517,8 +527,7 @@ export class SecretsManager extends SecretsManagerClient {
517
527
* <p>To list the versions of a secret, use <a>ListSecretVersionIds</a>.</p>
518
528
* <p>To get the secret value from <code>SecretString</code> or <code>SecretBinary</code>,
519
529
* 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>
522
531
* <p>
523
532
* <b>Required permissions: </b>
524
533
* <code>secretsmanager:ListSecrets</code>.
@@ -550,10 +559,10 @@ export class SecretsManager extends SecretsManagerClient {
550
559
}
551
560
552
561
/**
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>
554
565
* <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>,
* The default recovery window is 30 days. Secrets Manager attaches a <code>DeletionDate</code> stamp to
29
29
* the secret that specifies the end of the recovery window. At the end of the recovery window,
30
30
* 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>
32
41
* <p>Secrets Manager performs the permanent secret deletion at the end of the waiting period as a
33
42
* background task with low priority. There is no guarantee of a specific time after the
34
43
* recovery window for the permanent delete to occur.</p>
35
44
* <p>At any time before recovery window ends, you can use <a>RestoreSecret</a> to
36
45
* 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>
* <p>To list the versions of a secret, use <a>ListSecretVersionIds</a>.</p>
29
29
* <p>To get the secret value from <code>SecretString</code> or <code>SecretBinary</code>,
30
30
* 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>
0 commit comments