@aws-sdk/client-secrets-manager 3.47.1 → 3.50.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/CHANGELOG.md +35 -0
- package/README.md +0 -27
- package/dist-cjs/endpoints.js +9 -0
- package/dist-cjs/protocols/Aws_json1_1.js +31 -0
- package/dist-es/endpoints.js +9 -0
- package/dist-es/protocols/Aws_json1_1.js +183 -155
- package/dist-types/SecretsManager.d.ts +148 -45
- package/dist-types/SecretsManagerClient.d.ts +8 -28
- package/dist-types/commands/CancelRotateSecretCommand.d.ts +6 -0
- package/dist-types/commands/CreateSecretCommand.d.ts +6 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +6 -0
- package/dist-types/commands/DeleteSecretCommand.d.ts +6 -0
- package/dist-types/commands/DescribeSecretCommand.d.ts +6 -0
- package/dist-types/commands/GetRandomPasswordCommand.d.ts +6 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +6 -0
- package/dist-types/commands/GetSecretValueCommand.d.ts +11 -3
- package/dist-types/commands/ListSecretVersionIdsCommand.d.ts +5 -5
- package/dist-types/commands/ListSecretsCommand.d.ts +5 -4
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +6 -0
- package/dist-types/commands/PutSecretValueCommand.d.ts +6 -0
- package/dist-types/commands/RemoveRegionsFromReplicationCommand.d.ts +6 -0
- package/dist-types/commands/ReplicateSecretToRegionsCommand.d.ts +6 -0
- package/dist-types/commands/RestoreSecretCommand.d.ts +6 -0
- package/dist-types/commands/RotateSecretCommand.d.ts +8 -2
- package/dist-types/commands/StopReplicationToReplicaCommand.d.ts +6 -0
- package/dist-types/commands/TagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateSecretCommand.d.ts +9 -3
- package/dist-types/commands/UpdateSecretVersionStageCommand.d.ts +6 -0
- package/dist-types/commands/ValidateResourcePolicyCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +69 -20
- package/package.json +39 -33
- package/dist-types/ts3.4/SecretsManager.d.ts +0 -115
- package/dist-types/ts3.4/SecretsManagerClient.d.ts +0 -95
- package/dist-types/ts3.4/commands/CancelRotateSecretCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/CreateSecretCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DeleteSecretCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeSecretCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetRandomPasswordCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetSecretValueCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListSecretsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/PutSecretValueCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/RestoreSecretCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/RotateSecretCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/UpdateSecretCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/index.d.ts +0 -22
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/index.d.ts +0 -5
- package/dist-types/ts3.4/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -743
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -6
- package/dist-types/ts3.4/pagination/ListSecretVersionIdsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListSecretsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/index.d.ts +0 -3
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -68
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -38
- package/dist-types/ts3.4/runtimeConfig.d.ts +0 -38
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -37
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-secrets-manager
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update clients as of 01/28/2022 ([#3263](https://github.com/aws/aws-sdk-js-v3/issues/3263)) ([c207cf4](https://github.com/aws/aws-sdk-js-v3/commit/c207cf4a70ba9ef14dc5b94da7883b0889d64918))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-secrets-manager
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @aws-sdk/client-secrets-manager
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @aws-sdk/client-secrets-manager
|
package/README.md
CHANGED
|
@@ -19,41 +19,14 @@ service, see the <a href="https://docs.aws.amazon.com/secretsmanager/latest/user
|
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
<p>This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.</p>
|
|
22
|
-
<note>
|
|
23
|
-
<p>As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of
|
|
24
|
-
libraries and sample code for various programming languages and platforms such as Java,
|
|
25
|
-
Ruby, .NET, iOS, and Android. The SDKs provide a convenient way to create programmatic
|
|
26
|
-
access to Amazon Web Services Secrets Manager. For example, the SDKs provide cryptographically signing requests,
|
|
27
|
-
managing errors, and retrying requests automatically. For more information about the Amazon Web Services
|
|
28
|
-
SDKs, including downloading and installing them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
|
|
29
|
-
</note>
|
|
30
|
-
<p>We recommend you use the Amazon Web Services SDKs to make programmatic API calls to Secrets Manager. However, you
|
|
31
|
-
also can use the Secrets Manager HTTP Query API to make direct calls to the Secrets Manager web service. To learn
|
|
32
|
-
more about the Secrets Manager HTTP Query API, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/query-requests.html">Making Query Requests</a> in the
|
|
33
|
-
<i>Amazon Web Services Secrets Manager User Guide</i>. </p>
|
|
34
|
-
<p>Secrets Manager API supports GET and POST requests for all actions, and doesn't require you to use
|
|
35
|
-
GET for some actions and POST for others. However, GET requests are subject to the limitation
|
|
36
|
-
size of a URL. Therefore, for operations that require larger sizes, use a POST request.</p>
|
|
37
22
|
|
|
38
23
|
<p>
|
|
39
24
|
<b>Support and Feedback for Amazon Web Services Secrets Manager</b>
|
|
40
25
|
</p>
|
|
41
|
-
|
|
42
26
|
<p>We welcome your feedback. Send your comments to <a href="mailto:awssecretsmanager-feedback@amazon.com">awssecretsmanager-feedback@amazon.com</a>, or post your feedback and questions in the <a href="http://forums.aws.amazon.com/forum.jspa?forumID=296">Amazon Web Services Secrets Manager Discussion Forum</a>. For more
|
|
43
27
|
information about the Amazon Web Services Discussion Forums, see <a href="http://forums.aws.amazon.com/help.jspa">Forums
|
|
44
28
|
Help</a>.</p>
|
|
45
29
|
|
|
46
|
-
<p>
|
|
47
|
-
<b>How examples are presented</b>
|
|
48
|
-
</p>
|
|
49
|
-
|
|
50
|
-
<p>The JSON that Amazon Web Services Secrets Manager expects as your request parameters and the service returns as a
|
|
51
|
-
response to HTTP query requests contain single, long strings without line breaks or white
|
|
52
|
-
space formatting. The JSON shown in the examples displays the code formatted with both line
|
|
53
|
-
breaks and white space to improve readability. When example input parameters can also cause
|
|
54
|
-
long strings extending beyond the screen, you can insert line breaks to enhance readability.
|
|
55
|
-
You should always submit the input as a single JSON text string.</p>
|
|
56
|
-
|
|
57
30
|
<p>
|
|
58
31
|
<b>Logging API Requests</b>
|
|
59
32
|
</p>
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -3,6 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
5
|
const regionHash = {
|
|
6
|
+
"ca-central-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "secretsmanager-fips.ca-central-1.amazonaws.com",
|
|
10
|
+
tags: ["fips"],
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
},
|
|
6
14
|
"us-east-1": {
|
|
7
15
|
variants: [
|
|
8
16
|
{
|
|
@@ -65,6 +73,7 @@ const partitionHash = {
|
|
|
65
73
|
"ap-southeast-2",
|
|
66
74
|
"ap-southeast-3",
|
|
67
75
|
"ca-central-1",
|
|
76
|
+
"ca-central-1-fips",
|
|
68
77
|
"eu-central-1",
|
|
69
78
|
"eu-north-1",
|
|
70
79
|
"eu-south-1",
|
|
@@ -318,6 +318,14 @@ const deserializeAws_json1_1CreateSecretCommandError = async (output, context) =
|
|
|
318
318
|
let errorCode = "UnknownError";
|
|
319
319
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
320
320
|
switch (errorCode) {
|
|
321
|
+
case "DecryptionFailure":
|
|
322
|
+
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
323
|
+
response = {
|
|
324
|
+
...(await deserializeAws_json1_1DecryptionFailureResponse(parsedOutput, context)),
|
|
325
|
+
name: errorCode,
|
|
326
|
+
$metadata: deserializeMetadata(output),
|
|
327
|
+
};
|
|
328
|
+
break;
|
|
321
329
|
case "EncryptionFailure":
|
|
322
330
|
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
323
331
|
response = {
|
|
@@ -1068,6 +1076,14 @@ const deserializeAws_json1_1PutSecretValueCommandError = async (output, context)
|
|
|
1068
1076
|
let errorCode = "UnknownError";
|
|
1069
1077
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
1078
|
switch (errorCode) {
|
|
1079
|
+
case "DecryptionFailure":
|
|
1080
|
+
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
1081
|
+
response = {
|
|
1082
|
+
...(await deserializeAws_json1_1DecryptionFailureResponse(parsedOutput, context)),
|
|
1083
|
+
name: errorCode,
|
|
1084
|
+
$metadata: deserializeMetadata(output),
|
|
1085
|
+
};
|
|
1086
|
+
break;
|
|
1071
1087
|
case "EncryptionFailure":
|
|
1072
1088
|
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
1073
1089
|
response = {
|
|
@@ -1654,6 +1670,14 @@ const deserializeAws_json1_1UpdateSecretCommandError = async (output, context) =
|
|
|
1654
1670
|
let errorCode = "UnknownError";
|
|
1655
1671
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
1672
|
switch (errorCode) {
|
|
1673
|
+
case "DecryptionFailure":
|
|
1674
|
+
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
1675
|
+
response = {
|
|
1676
|
+
...(await deserializeAws_json1_1DecryptionFailureResponse(parsedOutput, context)),
|
|
1677
|
+
name: errorCode,
|
|
1678
|
+
$metadata: deserializeMetadata(output),
|
|
1679
|
+
};
|
|
1680
|
+
break;
|
|
1657
1681
|
case "EncryptionFailure":
|
|
1658
1682
|
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
1659
1683
|
response = {
|
|
@@ -2230,6 +2254,8 @@ const serializeAws_json1_1RotateSecretRequest = (input, context) => {
|
|
|
2230
2254
|
var _a;
|
|
2231
2255
|
return {
|
|
2232
2256
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
2257
|
+
...(input.RotateImmediately !== undefined &&
|
|
2258
|
+
input.RotateImmediately !== null && { RotateImmediately: input.RotateImmediately }),
|
|
2233
2259
|
...(input.RotationLambdaARN !== undefined &&
|
|
2234
2260
|
input.RotationLambdaARN !== null && { RotationLambdaARN: input.RotationLambdaARN }),
|
|
2235
2261
|
...(input.RotationRules !== undefined &&
|
|
@@ -2243,6 +2269,9 @@ const serializeAws_json1_1RotationRulesType = (input, context) => {
|
|
|
2243
2269
|
return {
|
|
2244
2270
|
...(input.AutomaticallyAfterDays !== undefined &&
|
|
2245
2271
|
input.AutomaticallyAfterDays !== null && { AutomaticallyAfterDays: input.AutomaticallyAfterDays }),
|
|
2272
|
+
...(input.Duration !== undefined && input.Duration !== null && { Duration: input.Duration }),
|
|
2273
|
+
...(input.ScheduleExpression !== undefined &&
|
|
2274
|
+
input.ScheduleExpression !== null && { ScheduleExpression: input.ScheduleExpression }),
|
|
2246
2275
|
};
|
|
2247
2276
|
};
|
|
2248
2277
|
const serializeAws_json1_1SecretVersionStagesType = (input, context) => {
|
|
@@ -2586,6 +2615,8 @@ const deserializeAws_json1_1RotateSecretResponse = (output, context) => {
|
|
|
2586
2615
|
const deserializeAws_json1_1RotationRulesType = (output, context) => {
|
|
2587
2616
|
return {
|
|
2588
2617
|
AutomaticallyAfterDays: smithy_client_1.expectLong(output.AutomaticallyAfterDays),
|
|
2618
|
+
Duration: smithy_client_1.expectString(output.Duration),
|
|
2619
|
+
ScheduleExpression: smithy_client_1.expectString(output.ScheduleExpression),
|
|
2589
2620
|
};
|
|
2590
2621
|
};
|
|
2591
2622
|
const deserializeAws_json1_1SecretListEntry = (output, context) => {
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
3
|
var regionHash = {
|
|
4
|
+
"ca-central-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "secretsmanager-fips.ca-central-1.amazonaws.com",
|
|
8
|
+
tags: ["fips"],
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
},
|
|
4
12
|
"us-east-1": {
|
|
5
13
|
variants: [
|
|
6
14
|
{
|
|
@@ -63,6 +71,7 @@ var partitionHash = {
|
|
|
63
71
|
"ap-southeast-2",
|
|
64
72
|
"ap-southeast-3",
|
|
65
73
|
"ca-central-1",
|
|
74
|
+
"ca-central-1-fips",
|
|
66
75
|
"eu-central-1",
|
|
67
76
|
"eu-north-1",
|
|
68
77
|
"eu-south-1",
|