@aws-sdk/client-secrets-manager 3.238.0 → 3.245.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +7 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +7 -0
- package/dist-types/SecretsManager.d.ts +21 -9
- package/dist-types/SecretsManagerClient.d.ts +0 -2
- package/dist-types/commands/CreateSecretCommand.d.ts +0 -3
- package/dist-types/commands/RotateSecretCommand.d.ts +21 -3
- package/dist-types/commands/UpdateSecretCommand.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +6 -3
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -18,8 +18,6 @@ service, see the <a href="https://docs.aws.amazon.com/secretsmanager/latest/user
|
|
|
18
18
|
<b>API Version</b>
|
|
19
19
|
</p>
|
|
20
20
|
<p>This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.</p>
|
|
21
|
-
<p>For a list of endpoints, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/asm_access.html#endpoints">Amazon Web Services Secrets Manager
|
|
22
|
-
endpoints</a>.</p>
|
|
23
21
|
<p>
|
|
24
22
|
<b>Support and Feedback for Amazon Web Services Secrets Manager</b>
|
|
25
23
|
</p>
|
|
@@ -155,6 +155,7 @@ var FilterNameStringType;
|
|
|
155
155
|
FilterNameStringType["all"] = "all";
|
|
156
156
|
FilterNameStringType["description"] = "description";
|
|
157
157
|
FilterNameStringType["name"] = "name";
|
|
158
|
+
FilterNameStringType["owning_service"] = "owning-service";
|
|
158
159
|
FilterNameStringType["primary_region"] = "primary-region";
|
|
159
160
|
FilterNameStringType["tag_key"] = "tag-key";
|
|
160
161
|
FilterNameStringType["tag_value"] = "tag-value";
|
|
@@ -1421,6 +1421,7 @@ const serializeAws_json1_1GetSecretValueRequest = (input, context) => {
|
|
|
1421
1421
|
const serializeAws_json1_1ListSecretsRequest = (input, context) => {
|
|
1422
1422
|
return {
|
|
1423
1423
|
...(input.Filters != null && { Filters: serializeAws_json1_1FiltersListType(input.Filters, context) }),
|
|
1424
|
+
...(input.IncludePlannedDeletion != null && { IncludePlannedDeletion: input.IncludePlannedDeletion }),
|
|
1424
1425
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1425
1426
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1426
1427
|
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
@@ -1633,6 +1634,9 @@ const deserializeAws_json1_1DescribeSecretResponse = (output, context) => {
|
|
|
1633
1634
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRotatedDate)))
|
|
1634
1635
|
: undefined,
|
|
1635
1636
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1637
|
+
NextRotationDate: output.NextRotationDate != null
|
|
1638
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NextRotationDate)))
|
|
1639
|
+
: undefined,
|
|
1636
1640
|
OwningService: (0, smithy_client_1.expectString)(output.OwningService),
|
|
1637
1641
|
PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
|
|
1638
1642
|
ReplicationStatus: output.ReplicationStatus != null
|
|
@@ -1849,6 +1853,9 @@ const deserializeAws_json1_1SecretListEntry = (output, context) => {
|
|
|
1849
1853
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRotatedDate)))
|
|
1850
1854
|
: undefined,
|
|
1851
1855
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1856
|
+
NextRotationDate: output.NextRotationDate != null
|
|
1857
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NextRotationDate)))
|
|
1858
|
+
: undefined,
|
|
1852
1859
|
OwningService: (0, smithy_client_1.expectString)(output.OwningService),
|
|
1853
1860
|
PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
|
|
1854
1861
|
RotationEnabled: (0, smithy_client_1.expectBoolean)(output.RotationEnabled),
|
|
@@ -141,6 +141,7 @@ export var FilterNameStringType;
|
|
|
141
141
|
FilterNameStringType["all"] = "all";
|
|
142
142
|
FilterNameStringType["description"] = "description";
|
|
143
143
|
FilterNameStringType["name"] = "name";
|
|
144
|
+
FilterNameStringType["owning_service"] = "owning-service";
|
|
144
145
|
FilterNameStringType["primary_region"] = "primary-region";
|
|
145
146
|
FilterNameStringType["tag_key"] = "tag-key";
|
|
146
147
|
FilterNameStringType["tag_value"] = "tag-value";
|
|
@@ -1374,6 +1374,7 @@ const serializeAws_json1_1GetSecretValueRequest = (input, context) => {
|
|
|
1374
1374
|
const serializeAws_json1_1ListSecretsRequest = (input, context) => {
|
|
1375
1375
|
return {
|
|
1376
1376
|
...(input.Filters != null && { Filters: serializeAws_json1_1FiltersListType(input.Filters, context) }),
|
|
1377
|
+
...(input.IncludePlannedDeletion != null && { IncludePlannedDeletion: input.IncludePlannedDeletion }),
|
|
1377
1378
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1378
1379
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1379
1380
|
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
@@ -1586,6 +1587,9 @@ const deserializeAws_json1_1DescribeSecretResponse = (output, context) => {
|
|
|
1586
1587
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastRotatedDate)))
|
|
1587
1588
|
: undefined,
|
|
1588
1589
|
Name: __expectString(output.Name),
|
|
1590
|
+
NextRotationDate: output.NextRotationDate != null
|
|
1591
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NextRotationDate)))
|
|
1592
|
+
: undefined,
|
|
1589
1593
|
OwningService: __expectString(output.OwningService),
|
|
1590
1594
|
PrimaryRegion: __expectString(output.PrimaryRegion),
|
|
1591
1595
|
ReplicationStatus: output.ReplicationStatus != null
|
|
@@ -1802,6 +1806,9 @@ const deserializeAws_json1_1SecretListEntry = (output, context) => {
|
|
|
1802
1806
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastRotatedDate)))
|
|
1803
1807
|
: undefined,
|
|
1804
1808
|
Name: __expectString(output.Name),
|
|
1809
|
+
NextRotationDate: output.NextRotationDate != null
|
|
1810
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NextRotationDate)))
|
|
1811
|
+
: undefined,
|
|
1805
1812
|
OwningService: __expectString(output.OwningService),
|
|
1806
1813
|
PrimaryRegion: __expectString(output.PrimaryRegion),
|
|
1807
1814
|
RotationEnabled: __expectBoolean(output.RotationEnabled),
|
|
@@ -31,8 +31,6 @@ import { SecretsManagerClient } from "./SecretsManagerClient";
|
|
|
31
31
|
* <b>API Version</b>
|
|
32
32
|
* </p>
|
|
33
33
|
* <p>This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.</p>
|
|
34
|
-
* <p>For a list of endpoints, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/asm_access.html#endpoints">Amazon Web Services Secrets Manager
|
|
35
|
-
* endpoints</a>.</p>
|
|
36
34
|
* <p>
|
|
37
35
|
* <b>Support and Feedback for Amazon Web Services Secrets Manager</b>
|
|
38
36
|
* </p>
|
|
@@ -82,9 +80,6 @@ export declare class SecretsManager extends SecretsManagerClient {
|
|
|
82
80
|
* includes the connection information to access a database or other service, which Secrets Manager
|
|
83
81
|
* doesn't encrypt. A secret in Secrets Manager consists of both the protected secret data and the
|
|
84
82
|
* important information needed to manage the secret.</p>
|
|
85
|
-
* <p>For secrets that use <i>managed rotation</i>, you need to create the secret through the managing service. For more information, 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>.
|
|
86
|
-
*
|
|
87
|
-
* </p>
|
|
88
83
|
* <p>For information about creating a secret in the console, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html">Create a secret</a>.</p>
|
|
89
84
|
* <p>To create a secret, you can provide the secret value to be encrypted in either the
|
|
90
85
|
* <code>SecretString</code> parameter or the <code>SecretBinary</code> parameter, but not both.
|
|
@@ -358,13 +353,31 @@ export declare class SecretsManager extends SecretsManagerClient {
|
|
|
358
353
|
restoreSecret(args: RestoreSecretCommandInput, cb: (err: any, data?: RestoreSecretCommandOutput) => void): void;
|
|
359
354
|
restoreSecret(args: RestoreSecretCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreSecretCommandOutput) => void): void;
|
|
360
355
|
/**
|
|
361
|
-
* <p>Configures and starts the asynchronous process of rotating the secret. For information about rotation,
|
|
362
|
-
* see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html">Rotate secrets</a
|
|
356
|
+
* <p>Configures and starts the asynchronous process of rotating the secret. For more information about rotation,
|
|
357
|
+
* see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html">Rotate secrets</a>.</p>
|
|
358
|
+
* <p>If you include the
|
|
359
|
+
* configuration parameters, the operation sets the values for the secret and then immediately
|
|
360
|
+
* starts a rotation. If you don't include the configuration parameters, the operation starts a
|
|
361
|
+
* rotation with the values already stored in the secret. </p>
|
|
362
|
+
* <p>For database credentials you want to rotate, for Secrets Manager to be able to rotate the secret, you must
|
|
363
|
+
* make sure the secret value is in the
|
|
364
|
+
* <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_secret_json_structure.html"> JSON structure
|
|
365
|
+
* of a database secret</a>. In particular, if you want to use the <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets_strategies.html#rotating-secrets-two-users"> alternating users strategy</a>, your secret must contain the ARN of a superuser
|
|
366
|
+
* secret.</p>
|
|
367
|
+
* <p>To configure rotation, you also need the ARN of an Amazon Web Services Lambda function and the schedule
|
|
368
|
+
* for the rotation. The Lambda rotation function creates a new
|
|
369
|
+
* version of the secret and creates or updates the credentials on the database or service to
|
|
370
|
+
* match. After testing the new credentials, the function marks the new secret version with the staging
|
|
371
|
+
* label <code>AWSCURRENT</code>. Then anyone who retrieves the secret gets the new version. For more
|
|
372
|
+
* information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html">How rotation works</a>.</p>
|
|
373
|
+
* <p>You can create the Lambda rotation function based on the <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html">rotation function templates</a> that Secrets Manager provides. Choose
|
|
374
|
+
* a template that matches your <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets_strategies.html">Rotation strategy</a>.</p>
|
|
363
375
|
* <p>When rotation is successful, the <code>AWSPENDING</code> staging label might be attached
|
|
364
376
|
* to the same version as the <code>AWSCURRENT</code> version, or it might not be attached to any
|
|
365
377
|
* version. If the <code>AWSPENDING</code> staging label is present but not attached to the same
|
|
366
378
|
* version as <code>AWSCURRENT</code>, then any later invocation of <code>RotateSecret</code>
|
|
367
|
-
* assumes that a previous rotation request is still in progress and returns an error
|
|
379
|
+
* assumes that a previous rotation request is still in progress and returns an error.</p>
|
|
380
|
+
* <p>When rotation is unsuccessful, the <code>AWSPENDING</code> staging label might be attached to an empty secret version. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot_rotation.html">Troubleshoot rotation</a> in the <i>Secrets Manager User Guide</i>.</p>
|
|
368
381
|
* <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>
|
|
369
382
|
* <p>
|
|
370
383
|
* <b>Required permissions: </b>
|
|
@@ -462,7 +475,6 @@ export declare class SecretsManager extends SecretsManagerClient {
|
|
|
462
475
|
/**
|
|
463
476
|
* <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>
|
|
464
477
|
* <p>To change the rotation configuration of a secret, use <a>RotateSecret</a> instead.</p>
|
|
465
|
-
* <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>
|
|
466
478
|
* <p>We recommend you avoid calling <code>UpdateSecret</code> at a sustained rate of more than
|
|
467
479
|
* once every 10 minutes. When you call <code>UpdateSecret</code> to update the secret value, Secrets Manager creates a new version
|
|
468
480
|
* of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not
|
|
@@ -153,8 +153,6 @@ export interface SecretsManagerClientResolvedConfig extends SecretsManagerClient
|
|
|
153
153
|
* <b>API Version</b>
|
|
154
154
|
* </p>
|
|
155
155
|
* <p>This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.</p>
|
|
156
|
-
* <p>For a list of endpoints, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/asm_access.html#endpoints">Amazon Web Services Secrets Manager
|
|
157
|
-
* endpoints</a>.</p>
|
|
158
156
|
* <p>
|
|
159
157
|
* <b>Support and Feedback for Amazon Web Services Secrets Manager</b>
|
|
160
158
|
* </p>
|
|
@@ -14,9 +14,6 @@ export interface CreateSecretCommandOutput extends CreateSecretResponse, __Metad
|
|
|
14
14
|
* includes the connection information to access a database or other service, which Secrets Manager
|
|
15
15
|
* doesn't encrypt. A secret in Secrets Manager consists of both the protected secret data and the
|
|
16
16
|
* important information needed to manage the secret.</p>
|
|
17
|
-
* <p>For secrets that use <i>managed rotation</i>, you need to create the secret through the managing service. For more information, 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>.
|
|
18
|
-
*
|
|
19
|
-
* </p>
|
|
20
17
|
* <p>For information about creating a secret in the console, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html">Create a secret</a>.</p>
|
|
21
18
|
* <p>To create a secret, you can provide the secret value to be encrypted in either the
|
|
22
19
|
* <code>SecretString</code> parameter or the <code>SecretBinary</code> parameter, but not both.
|
|
@@ -8,13 +8,31 @@ export interface RotateSecretCommandInput extends RotateSecretRequest {
|
|
|
8
8
|
export interface RotateSecretCommandOutput extends RotateSecretResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Configures and starts the asynchronous process of rotating the secret. For information about rotation,
|
|
12
|
-
* see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html">Rotate secrets</a
|
|
11
|
+
* <p>Configures and starts the asynchronous process of rotating the secret. For more information about rotation,
|
|
12
|
+
* see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html">Rotate secrets</a>.</p>
|
|
13
|
+
* <p>If you include the
|
|
14
|
+
* configuration parameters, the operation sets the values for the secret and then immediately
|
|
15
|
+
* starts a rotation. If you don't include the configuration parameters, the operation starts a
|
|
16
|
+
* rotation with the values already stored in the secret. </p>
|
|
17
|
+
* <p>For database credentials you want to rotate, for Secrets Manager to be able to rotate the secret, you must
|
|
18
|
+
* make sure the secret value is in the
|
|
19
|
+
* <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_secret_json_structure.html"> JSON structure
|
|
20
|
+
* of a database secret</a>. In particular, if you want to use the <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets_strategies.html#rotating-secrets-two-users"> alternating users strategy</a>, your secret must contain the ARN of a superuser
|
|
21
|
+
* secret.</p>
|
|
22
|
+
* <p>To configure rotation, you also need the ARN of an Amazon Web Services Lambda function and the schedule
|
|
23
|
+
* for the rotation. The Lambda rotation function creates a new
|
|
24
|
+
* version of the secret and creates or updates the credentials on the database or service to
|
|
25
|
+
* match. After testing the new credentials, the function marks the new secret version with the staging
|
|
26
|
+
* label <code>AWSCURRENT</code>. Then anyone who retrieves the secret gets the new version. For more
|
|
27
|
+
* information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html">How rotation works</a>.</p>
|
|
28
|
+
* <p>You can create the Lambda rotation function based on the <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_available-rotation-templates.html">rotation function templates</a> that Secrets Manager provides. Choose
|
|
29
|
+
* a template that matches your <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets_strategies.html">Rotation strategy</a>.</p>
|
|
13
30
|
* <p>When rotation is successful, the <code>AWSPENDING</code> staging label might be attached
|
|
14
31
|
* to the same version as the <code>AWSCURRENT</code> version, or it might not be attached to any
|
|
15
32
|
* version. If the <code>AWSPENDING</code> staging label is present but not attached to the same
|
|
16
33
|
* version as <code>AWSCURRENT</code>, then any later invocation of <code>RotateSecret</code>
|
|
17
|
-
* assumes that a previous rotation request is still in progress and returns an error
|
|
34
|
+
* assumes that a previous rotation request is still in progress and returns an error.</p>
|
|
35
|
+
* <p>When rotation is unsuccessful, the <code>AWSPENDING</code> staging label might be attached to an empty secret version. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot_rotation.html">Troubleshoot rotation</a> in the <i>Secrets Manager User Guide</i>.</p>
|
|
18
36
|
* <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>
|
|
19
37
|
* <p>
|
|
20
38
|
* <b>Required permissions: </b>
|
|
@@ -10,7 +10,6 @@ export interface UpdateSecretCommandOutput extends UpdateSecretResponse, __Metad
|
|
|
10
10
|
/**
|
|
11
11
|
* <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>
|
|
12
12
|
* <p>To change the rotation configuration of a secret, use <a>RotateSecret</a> instead.</p>
|
|
13
|
-
* <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>
|
|
14
13
|
* <p>We recommend you avoid calling <code>UpdateSecret</code> at a sustained rate of more than
|
|
15
14
|
* once every 10 minutes. When you call <code>UpdateSecret</code> to update the secret value, Secrets Manager creates a new version
|
|
16
15
|
* of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not
|
|
@@ -571,6 +571,7 @@ export interface DescribeSecretResponse {
|
|
|
571
571
|
* value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use <a>RestoreSecret</a>.</p>
|
|
572
572
|
*/
|
|
573
573
|
DeletedDate?: Date;
|
|
574
|
+
NextRotationDate?: Date;
|
|
574
575
|
/**
|
|
575
576
|
* <p>The list of tags attached to the secret. To add tags to a
|
|
576
577
|
* secret, use <a>TagResource</a>. To remove tags, use <a>UntagResource</a>.</p>
|
|
@@ -639,6 +640,7 @@ export declare enum FilterNameStringType {
|
|
|
639
640
|
all = "all",
|
|
640
641
|
description = "description",
|
|
641
642
|
name = "name",
|
|
643
|
+
owning_service = "owning-service",
|
|
642
644
|
primary_region = "primary-region",
|
|
643
645
|
tag_key = "tag-key",
|
|
644
646
|
tag_value = "tag-value"
|
|
@@ -839,6 +841,7 @@ export declare enum SortOrderType {
|
|
|
839
841
|
desc = "desc"
|
|
840
842
|
}
|
|
841
843
|
export interface ListSecretsRequest {
|
|
844
|
+
IncludePlannedDeletion?: boolean;
|
|
842
845
|
/**
|
|
843
846
|
* <p>The number of results to include in the response.</p>
|
|
844
847
|
* <p>If there are more results available, in the response, Secrets Manager includes <code>NextToken</code>.
|
|
@@ -923,6 +926,7 @@ export interface SecretListEntry {
|
|
|
923
926
|
* </a> operation.</p>
|
|
924
927
|
*/
|
|
925
928
|
DeletedDate?: Date;
|
|
929
|
+
NextRotationDate?: Date;
|
|
926
930
|
/**
|
|
927
931
|
* <p>The list of user-defined tags associated with the secret. To add tags to a
|
|
928
932
|
* secret, use <a href="https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_TagResource.html">
|
|
@@ -1260,8 +1264,7 @@ export interface RotateSecretRequest {
|
|
|
1260
1264
|
*/
|
|
1261
1265
|
ClientRequestToken?: string;
|
|
1262
1266
|
/**
|
|
1263
|
-
* <p>
|
|
1264
|
-
* <p>For secrets that use <i>managed rotation</i>, omit this field. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_managed.html">Managed rotation</a> in the <i>Secrets Manager User Guide</i>.</p>
|
|
1267
|
+
* <p>The ARN of the Lambda rotation function that can rotate the secret.</p>
|
|
1265
1268
|
*/
|
|
1266
1269
|
RotationLambdaARN?: string;
|
|
1267
1270
|
/**
|
|
@@ -1271,7 +1274,7 @@ export interface RotateSecretRequest {
|
|
|
1271
1274
|
/**
|
|
1272
1275
|
* <p>Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.
|
|
1273
1276
|
* The rotation schedule is defined in <a>RotateSecretRequest$RotationRules</a>.</p>
|
|
1274
|
-
* <p>
|
|
1277
|
+
* <p>If you don't immediately rotate the secret, Secrets Manager tests the rotation configuration by running the
|
|
1275
1278
|
* <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html">
|
|
1276
1279
|
* <code>testSecret</code>
|
|
1277
1280
|
* step</a> of the Lambda rotation function. The test creates an <code>AWSPENDING</code> version of the secret and then removes it.</p>
|
|
@@ -161,6 +161,7 @@ export interface DescribeSecretResponse {
|
|
|
161
161
|
LastChangedDate?: Date;
|
|
162
162
|
LastAccessedDate?: Date;
|
|
163
163
|
DeletedDate?: Date;
|
|
164
|
+
NextRotationDate?: Date;
|
|
164
165
|
Tags?: Tag[];
|
|
165
166
|
VersionIdsToStages?: Record<string, string[]>;
|
|
166
167
|
OwningService?: string;
|
|
@@ -172,6 +173,7 @@ export declare enum FilterNameStringType {
|
|
|
172
173
|
all = "all",
|
|
173
174
|
description = "description",
|
|
174
175
|
name = "name",
|
|
176
|
+
owning_service = "owning-service",
|
|
175
177
|
primary_region = "primary-region",
|
|
176
178
|
tag_key = "tag-key",
|
|
177
179
|
tag_value = "tag-value",
|
|
@@ -228,6 +230,7 @@ export declare enum SortOrderType {
|
|
|
228
230
|
desc = "desc",
|
|
229
231
|
}
|
|
230
232
|
export interface ListSecretsRequest {
|
|
233
|
+
IncludePlannedDeletion?: boolean;
|
|
231
234
|
MaxResults?: number;
|
|
232
235
|
NextToken?: string;
|
|
233
236
|
Filters?: Filter[];
|
|
@@ -245,6 +248,7 @@ export interface SecretListEntry {
|
|
|
245
248
|
LastChangedDate?: Date;
|
|
246
249
|
LastAccessedDate?: Date;
|
|
247
250
|
DeletedDate?: Date;
|
|
251
|
+
NextRotationDate?: Date;
|
|
248
252
|
Tags?: Tag[];
|
|
249
253
|
SecretVersionsToStages?: Record<string, string[]>;
|
|
250
254
|
OwningService?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-secrets-manager",
|
|
3
3
|
"description": "AWS SDK for JavaScript Secrets Manager Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.245.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.245.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.234.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.245.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.226.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.226.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
48
|
"@aws-sdk/util-defaults-mode-browser": "3.234.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-node": "3.234.0",
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.245.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.229.0",
|
|
52
52
|
"@aws-sdk/util-user-agent-browser": "3.226.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-node": "3.226.0",
|