@aws-sdk/client-secrets-manager 3.592.0 → 3.598.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/dist-cjs/index.js +3 -1
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +1 -0
- package/dist-types/commands/PutSecretValueCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +17 -3
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -505,7 +505,8 @@ var GetSecretValueResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
|
|
|
505
505
|
var PutSecretValueRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
506
506
|
...obj,
|
|
507
507
|
...obj.SecretBinary && { SecretBinary: import_smithy_client.SENSITIVE_STRING },
|
|
508
|
-
...obj.SecretString && { SecretString: import_smithy_client.SENSITIVE_STRING }
|
|
508
|
+
...obj.SecretString && { SecretString: import_smithy_client.SENSITIVE_STRING },
|
|
509
|
+
...obj.RotationToken && { RotationToken: import_smithy_client.SENSITIVE_STRING }
|
|
509
510
|
}), "PutSecretValueRequestFilterSensitiveLog");
|
|
510
511
|
var UpdateSecretRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
511
512
|
...obj,
|
|
@@ -1125,6 +1126,7 @@ var se_CreateSecretRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
1125
1126
|
var se_PutSecretValueRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1126
1127
|
return (0, import_smithy_client.take)(input, {
|
|
1127
1128
|
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1129
|
+
RotationToken: [],
|
|
1128
1130
|
SecretBinary: context.base64Encoder,
|
|
1129
1131
|
SecretId: [],
|
|
1130
1132
|
SecretString: [],
|
|
@@ -201,6 +201,7 @@ export const PutSecretValueRequestFilterSensitiveLog = (obj) => ({
|
|
|
201
201
|
...obj,
|
|
202
202
|
...(obj.SecretBinary && { SecretBinary: SENSITIVE_STRING }),
|
|
203
203
|
...(obj.SecretString && { SecretString: SENSITIVE_STRING }),
|
|
204
|
+
...(obj.RotationToken && { RotationToken: SENSITIVE_STRING }),
|
|
204
205
|
});
|
|
205
206
|
export const UpdateSecretRequestFilterSensitiveLog = (obj) => ({
|
|
206
207
|
...obj,
|
|
@@ -611,6 +611,7 @@ const se_CreateSecretRequest = (input, context) => {
|
|
|
611
611
|
const se_PutSecretValueRequest = (input, context) => {
|
|
612
612
|
return take(input, {
|
|
613
613
|
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
614
|
+
RotationToken: [],
|
|
614
615
|
SecretBinary: context.base64Encoder,
|
|
615
616
|
SecretId: [],
|
|
616
617
|
SecretString: [],
|
|
@@ -48,7 +48,7 @@ declare const PutSecretValueCommand_base: {
|
|
|
48
48
|
* same secret data, the operation succeeds but does nothing. However, if the secret data is
|
|
49
49
|
* different, then the operation fails because you can't modify an existing version; you can
|
|
50
50
|
* only create new ones.</p>
|
|
51
|
-
* <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters except <code>SecretBinary</code> or <code>
|
|
51
|
+
* <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters except <code>SecretBinary</code>, <code>SecretString</code>, or <code>RotationToken</code> 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>
|
|
52
52
|
* <p>
|
|
53
53
|
* <b>Required permissions: </b>
|
|
54
54
|
* <code>secretsmanager:PutSecretValue</code>.
|
|
@@ -69,6 +69,7 @@ declare const PutSecretValueCommand_base: {
|
|
|
69
69
|
* VersionStages: [ // SecretVersionStagesType
|
|
70
70
|
* "STRING_VALUE",
|
|
71
71
|
* ],
|
|
72
|
+
* RotationToken: "STRING_VALUE",
|
|
72
73
|
* };
|
|
73
74
|
* const command = new PutSecretValueCommand(input);
|
|
74
75
|
* const response = await client.send(command);
|
|
@@ -416,6 +416,7 @@ export interface CreateSecretRequest {
|
|
|
416
416
|
* <p>Either <code>SecretString</code> or <code>SecretBinary</code> must have a value, but not
|
|
417
417
|
* both.</p>
|
|
418
418
|
* <p>This parameter is not available in the Secrets Manager console.</p>
|
|
419
|
+
* <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
|
|
419
420
|
* @public
|
|
420
421
|
*/
|
|
421
422
|
SecretBinary?: Uint8Array;
|
|
@@ -427,6 +428,7 @@ export interface CreateSecretRequest {
|
|
|
427
428
|
* <p>If you create a secret by using the Secrets Manager console then Secrets Manager puts the protected
|
|
428
429
|
* secret text in only the <code>SecretString</code> parameter. The Secrets Manager console stores the
|
|
429
430
|
* information as a JSON structure of key/value pairs that a Lambda rotation function can parse.</p>
|
|
431
|
+
* <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
|
|
430
432
|
* @public
|
|
431
433
|
*/
|
|
432
434
|
SecretString?: string;
|
|
@@ -798,7 +800,7 @@ export interface DescribeSecretResponse {
|
|
|
798
800
|
*/
|
|
799
801
|
KmsKeyId?: string;
|
|
800
802
|
/**
|
|
801
|
-
* <p>Specifies whether automatic rotation is turned on for this secret.</p>
|
|
803
|
+
* <p>Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured for rotation, Secrets Manager returns null.</p>
|
|
802
804
|
* <p>To turn on rotation, use <a>RotateSecret</a>. To turn off
|
|
803
805
|
* rotation, use <a>CancelRotateSecret</a>.</p>
|
|
804
806
|
* @public
|
|
@@ -1021,7 +1023,7 @@ export interface GetResourcePolicyResponse {
|
|
|
1021
1023
|
*/
|
|
1022
1024
|
export interface GetSecretValueRequest {
|
|
1023
1025
|
/**
|
|
1024
|
-
* <p>The ARN or name of the secret to retrieve.</p>
|
|
1026
|
+
* <p>The ARN or name of the secret to retrieve. To retrieve a secret from another account, you must use an ARN.</p>
|
|
1025
1027
|
* <p>For an ARN, we recommend that you specify a complete ARN rather
|
|
1026
1028
|
* than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>
|
|
1027
1029
|
* @public
|
|
@@ -1072,6 +1074,7 @@ export interface GetSecretValueResponse {
|
|
|
1072
1074
|
* <p>If the secret was created by using the Secrets Manager console, or if the secret value was
|
|
1073
1075
|
* originally provided as a string, then this field is omitted. The secret value appears in
|
|
1074
1076
|
* <code>SecretString</code> instead.</p>
|
|
1077
|
+
* <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
|
|
1075
1078
|
* @public
|
|
1076
1079
|
*/
|
|
1077
1080
|
SecretBinary?: Uint8Array;
|
|
@@ -1080,6 +1083,7 @@ export interface GetSecretValueResponse {
|
|
|
1080
1083
|
* through the Secrets Manager console.</p>
|
|
1081
1084
|
* <p>If this secret was created by using the console, then Secrets Manager stores the information as a
|
|
1082
1085
|
* JSON structure of key/value pairs. </p>
|
|
1086
|
+
* <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
|
|
1083
1087
|
* @public
|
|
1084
1088
|
*/
|
|
1085
1089
|
SecretString?: string;
|
|
@@ -1482,6 +1486,7 @@ export interface PutSecretValueRequest {
|
|
|
1482
1486
|
* contents of the file as a parameter. </p>
|
|
1483
1487
|
* <p>You must include <code>SecretBinary</code> or <code>SecretString</code>, but not both.</p>
|
|
1484
1488
|
* <p>You can't access this value from the Secrets Manager console.</p>
|
|
1489
|
+
* <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
|
|
1485
1490
|
* @public
|
|
1486
1491
|
*/
|
|
1487
1492
|
SecretBinary?: Uint8Array;
|
|
@@ -1489,6 +1494,7 @@ export interface PutSecretValueRequest {
|
|
|
1489
1494
|
* <p>The text to encrypt and store in the new version of the secret. </p>
|
|
1490
1495
|
* <p>You must include <code>SecretBinary</code> or <code>SecretString</code>, but not both.</p>
|
|
1491
1496
|
* <p>We recommend you create the secret string as JSON key/value pairs, as shown in the example.</p>
|
|
1497
|
+
* <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
|
|
1492
1498
|
* @public
|
|
1493
1499
|
*/
|
|
1494
1500
|
SecretString?: string;
|
|
@@ -1506,6 +1512,12 @@ export interface PutSecretValueRequest {
|
|
|
1506
1512
|
* @public
|
|
1507
1513
|
*/
|
|
1508
1514
|
VersionStages?: string[];
|
|
1515
|
+
/**
|
|
1516
|
+
* <p>A unique identifier that indicates the source of the request. For cross-account rotation (when you rotate a secret in one account by using a Lambda rotation function in another account) and the Lambda rotation function assumes an IAM role to call Secrets Manager, Secrets Manager validates the identity with the rotation token. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html">How rotation works</a>.</p>
|
|
1517
|
+
* <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
|
|
1518
|
+
* @public
|
|
1519
|
+
*/
|
|
1520
|
+
RotationToken?: string;
|
|
1509
1521
|
}
|
|
1510
1522
|
/**
|
|
1511
1523
|
* @public
|
|
@@ -1812,6 +1824,7 @@ export interface UpdateSecretRequest {
|
|
|
1812
1824
|
* <p>Either <code>SecretBinary</code> or
|
|
1813
1825
|
* <code>SecretString</code> must have a value, but not both.</p>
|
|
1814
1826
|
* <p>You can't access this parameter in the Secrets Manager console.</p>
|
|
1827
|
+
* <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
|
|
1815
1828
|
* @public
|
|
1816
1829
|
*/
|
|
1817
1830
|
SecretBinary?: Uint8Array;
|
|
@@ -1820,6 +1833,7 @@ export interface UpdateSecretRequest {
|
|
|
1820
1833
|
* version of the secret. We recommend you use a JSON structure of key/value pairs for your secret value. </p>
|
|
1821
1834
|
* <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have
|
|
1822
1835
|
* a value, but not both. </p>
|
|
1836
|
+
* <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
|
|
1823
1837
|
* @public
|
|
1824
1838
|
*/
|
|
1825
1839
|
SecretString?: string;
|
|
@@ -1899,7 +1913,7 @@ export interface UpdateSecretVersionStageResponse {
|
|
|
1899
1913
|
*/
|
|
1900
1914
|
export interface ValidateResourcePolicyRequest {
|
|
1901
1915
|
/**
|
|
1902
|
-
* <p>
|
|
1916
|
+
* <p>The ARN or name of the secret with the resource-based policy you want to validate.</p>
|
|
1903
1917
|
* @public
|
|
1904
1918
|
*/
|
|
1905
1919
|
SecretId?: 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.598.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-secrets-manager",
|
|
@@ -18,45 +18,45 @@
|
|
|
18
18
|
"module": "./dist-es/index.js",
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@aws-crypto/sha256-browser": "
|
|
22
|
-
"@aws-crypto/sha256-js": "
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^3.0.
|
|
37
|
-
"@smithy/core": "^2.2.
|
|
38
|
-
"@smithy/fetch-http-handler": "^3.0.
|
|
39
|
-
"@smithy/hash-node": "^3.0.
|
|
40
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
41
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
42
|
-
"@smithy/middleware-endpoint": "^3.0.
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
44
|
-
"@smithy/middleware-serde": "^3.0.
|
|
45
|
-
"@smithy/middleware-stack": "^3.0.
|
|
46
|
-
"@smithy/node-config-provider": "^3.1.
|
|
47
|
-
"@smithy/node-http-handler": "^3.0.
|
|
48
|
-
"@smithy/protocol-http": "^4.0.
|
|
49
|
-
"@smithy/smithy-client": "^3.1.
|
|
50
|
-
"@smithy/types": "^3.
|
|
51
|
-
"@smithy/url-parser": "^3.0.
|
|
21
|
+
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
|
+
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.598.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.598.0",
|
|
25
|
+
"@aws-sdk/core": "3.598.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.598.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.598.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.598.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.598.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.598.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.598.0",
|
|
32
|
+
"@aws-sdk/types": "3.598.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.598.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.598.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.598.0",
|
|
36
|
+
"@smithy/config-resolver": "^3.0.2",
|
|
37
|
+
"@smithy/core": "^2.2.1",
|
|
38
|
+
"@smithy/fetch-http-handler": "^3.0.2",
|
|
39
|
+
"@smithy/hash-node": "^3.0.1",
|
|
40
|
+
"@smithy/invalid-dependency": "^3.0.1",
|
|
41
|
+
"@smithy/middleware-content-length": "^3.0.1",
|
|
42
|
+
"@smithy/middleware-endpoint": "^3.0.2",
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.4",
|
|
44
|
+
"@smithy/middleware-serde": "^3.0.1",
|
|
45
|
+
"@smithy/middleware-stack": "^3.0.1",
|
|
46
|
+
"@smithy/node-config-provider": "^3.1.1",
|
|
47
|
+
"@smithy/node-http-handler": "^3.0.1",
|
|
48
|
+
"@smithy/protocol-http": "^4.0.1",
|
|
49
|
+
"@smithy/smithy-client": "^3.1.2",
|
|
50
|
+
"@smithy/types": "^3.1.0",
|
|
51
|
+
"@smithy/url-parser": "^3.0.1",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
57
|
-
"@smithy/util-endpoints": "^2.0.
|
|
58
|
-
"@smithy/util-middleware": "^3.0.
|
|
59
|
-
"@smithy/util-retry": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.4",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.4",
|
|
57
|
+
"@smithy/util-endpoints": "^2.0.2",
|
|
58
|
+
"@smithy/util-middleware": "^3.0.1",
|
|
59
|
+
"@smithy/util-retry": "^3.0.1",
|
|
60
60
|
"@smithy/util-utf8": "^3.0.0",
|
|
61
61
|
"tslib": "^2.6.2",
|
|
62
62
|
"uuid": "^9.0.1"
|