@aws-sdk/client-secrets-manager 3.299.0 → 3.301.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.
@@ -44,6 +44,9 @@ export interface CancelRotateSecretCommandOutput extends CancelRotateSecretRespo
44
44
  * import { SecretsManagerClient, CancelRotateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
45
45
  * // const { SecretsManagerClient, CancelRotateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
46
46
  * const client = new SecretsManagerClient(config);
47
+ * const input = { // CancelRotateSecretRequest
48
+ * SecretId: "STRING_VALUE", // required
49
+ * };
47
50
  * const command = new CancelRotateSecretCommand(input);
48
51
  * const response = await client.send(command);
49
52
  * ```
@@ -61,6 +61,27 @@ export interface CreateSecretCommandOutput extends CreateSecretResponse, __Metad
61
61
  * import { SecretsManagerClient, CreateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
62
62
  * // const { SecretsManagerClient, CreateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
63
63
  * const client = new SecretsManagerClient(config);
64
+ * const input = { // CreateSecretRequest
65
+ * Name: "STRING_VALUE", // required
66
+ * ClientRequestToken: "STRING_VALUE",
67
+ * Description: "STRING_VALUE",
68
+ * KmsKeyId: "STRING_VALUE",
69
+ * SecretBinary: "BLOB_VALUE",
70
+ * SecretString: "STRING_VALUE",
71
+ * Tags: [ // TagListType
72
+ * { // Tag
73
+ * Key: "STRING_VALUE",
74
+ * Value: "STRING_VALUE",
75
+ * },
76
+ * ],
77
+ * AddReplicaRegions: [ // AddReplicaRegionListType
78
+ * { // ReplicaRegionType
79
+ * Region: "STRING_VALUE",
80
+ * KmsKeyId: "STRING_VALUE",
81
+ * },
82
+ * ],
83
+ * ForceOverwriteReplicaSecret: true || false,
84
+ * };
64
85
  * const command = new CreateSecretCommand(input);
65
86
  * const response = await client.send(command);
66
87
  * ```
@@ -34,6 +34,9 @@ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyR
34
34
  * import { SecretsManagerClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
35
35
  * // const { SecretsManagerClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
36
36
  * const client = new SecretsManagerClient(config);
37
+ * const input = { // DeleteResourcePolicyRequest
38
+ * SecretId: "STRING_VALUE", // required
39
+ * };
37
40
  * const command = new DeleteResourcePolicyCommand(input);
38
41
  * const response = await client.send(command);
39
42
  * ```
@@ -54,6 +54,11 @@ export interface DeleteSecretCommandOutput extends DeleteSecretResponse, __Metad
54
54
  * import { SecretsManagerClient, DeleteSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
55
55
  * // const { SecretsManagerClient, DeleteSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
56
56
  * const client = new SecretsManagerClient(config);
57
+ * const input = { // DeleteSecretRequest
58
+ * SecretId: "STRING_VALUE", // required
59
+ * RecoveryWindowInDays: Number("long"),
60
+ * ForceDeleteWithoutRecovery: true || false,
61
+ * };
57
62
  * const command = new DeleteSecretCommand(input);
58
63
  * const response = await client.send(command);
59
64
  * ```
@@ -34,6 +34,9 @@ export interface DescribeSecretCommandOutput extends DescribeSecretResponse, __M
34
34
  * import { SecretsManagerClient, DescribeSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
35
35
  * // const { SecretsManagerClient, DescribeSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
36
36
  * const client = new SecretsManagerClient(config);
37
+ * const input = { // DescribeSecretRequest
38
+ * SecretId: "STRING_VALUE", // required
39
+ * };
37
40
  * const command = new DescribeSecretCommand(input);
38
41
  * const response = await client.send(command);
39
42
  * ```
@@ -35,6 +35,16 @@ export interface GetRandomPasswordCommandOutput extends GetRandomPasswordRespons
35
35
  * import { SecretsManagerClient, GetRandomPasswordCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
36
36
  * // const { SecretsManagerClient, GetRandomPasswordCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
37
37
  * const client = new SecretsManagerClient(config);
38
+ * const input = { // GetRandomPasswordRequest
39
+ * PasswordLength: Number("long"),
40
+ * ExcludeCharacters: "STRING_VALUE",
41
+ * ExcludeNumbers: true || false,
42
+ * ExcludePunctuation: true || false,
43
+ * ExcludeUppercase: true || false,
44
+ * ExcludeLowercase: true || false,
45
+ * IncludeSpace: true || false,
46
+ * RequireEachIncludedType: true || false,
47
+ * };
38
48
  * const command = new GetRandomPasswordCommand(input);
39
49
  * const response = await client.send(command);
40
50
  * ```
@@ -36,6 +36,9 @@ export interface GetResourcePolicyCommandOutput extends GetResourcePolicyRespons
36
36
  * import { SecretsManagerClient, GetResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
37
37
  * // const { SecretsManagerClient, GetResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
38
38
  * const client = new SecretsManagerClient(config);
39
+ * const input = { // GetResourcePolicyRequest
40
+ * SecretId: "STRING_VALUE", // required
41
+ * };
39
42
  * const command = new GetResourcePolicyCommand(input);
40
43
  * const response = await client.send(command);
41
44
  * ```
@@ -42,6 +42,11 @@ export interface GetSecretValueCommandOutput extends GetSecretValueResponse, __M
42
42
  * import { SecretsManagerClient, GetSecretValueCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
43
43
  * // const { SecretsManagerClient, GetSecretValueCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
44
44
  * const client = new SecretsManagerClient(config);
45
+ * const input = { // GetSecretValueRequest
46
+ * SecretId: "STRING_VALUE", // required
47
+ * VersionId: "STRING_VALUE",
48
+ * VersionStage: "STRING_VALUE",
49
+ * };
45
50
  * const command = new GetSecretValueCommand(input);
46
51
  * const response = await client.send(command);
47
52
  * ```
@@ -36,6 +36,12 @@ export interface ListSecretVersionIdsCommandOutput extends ListSecretVersionIdsR
36
36
  * import { SecretsManagerClient, ListSecretVersionIdsCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
37
37
  * // const { SecretsManagerClient, ListSecretVersionIdsCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
38
38
  * const client = new SecretsManagerClient(config);
39
+ * const input = { // ListSecretVersionIdsRequest
40
+ * SecretId: "STRING_VALUE", // required
41
+ * MaxResults: Number("int"),
42
+ * NextToken: "STRING_VALUE",
43
+ * IncludeDeprecated: true || false,
44
+ * };
39
45
  * const command = new ListSecretVersionIdsCommand(input);
40
46
  * const response = await client.send(command);
41
47
  * ```
@@ -40,6 +40,20 @@ export interface ListSecretsCommandOutput extends ListSecretsResponse, __Metadat
40
40
  * import { SecretsManagerClient, ListSecretsCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
41
41
  * // const { SecretsManagerClient, ListSecretsCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
42
42
  * const client = new SecretsManagerClient(config);
43
+ * const input = { // ListSecretsRequest
44
+ * IncludePlannedDeletion: true || false,
45
+ * MaxResults: Number("int"),
46
+ * NextToken: "STRING_VALUE",
47
+ * Filters: [ // FiltersListType
48
+ * { // Filter
49
+ * Key: "description" || "name" || "tag-key" || "tag-value" || "primary-region" || "owning-service" || "all",
50
+ * Values: [ // FilterValuesStringList
51
+ * "STRING_VALUE",
52
+ * ],
53
+ * },
54
+ * ],
55
+ * SortOrder: "asc" || "desc",
56
+ * };
43
57
  * const command = new ListSecretsCommand(input);
44
58
  * const response = await client.send(command);
45
59
  * ```
@@ -37,6 +37,11 @@ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyRespons
37
37
  * import { SecretsManagerClient, PutResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
38
38
  * // const { SecretsManagerClient, PutResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
39
39
  * const client = new SecretsManagerClient(config);
40
+ * const input = { // PutResourcePolicyRequest
41
+ * SecretId: "STRING_VALUE", // required
42
+ * ResourcePolicy: "STRING_VALUE", // required
43
+ * BlockPublicPolicy: true || false,
44
+ * };
40
45
  * const command = new PutResourcePolicyCommand(input);
41
46
  * const response = await client.send(command);
42
47
  * ```
@@ -53,6 +53,15 @@ export interface PutSecretValueCommandOutput extends PutSecretValueResponse, __M
53
53
  * import { SecretsManagerClient, PutSecretValueCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
54
54
  * // const { SecretsManagerClient, PutSecretValueCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
55
55
  * const client = new SecretsManagerClient(config);
56
+ * const input = { // PutSecretValueRequest
57
+ * SecretId: "STRING_VALUE", // required
58
+ * ClientRequestToken: "STRING_VALUE",
59
+ * SecretBinary: "BLOB_VALUE",
60
+ * SecretString: "STRING_VALUE",
61
+ * VersionStages: [ // SecretVersionStagesType
62
+ * "STRING_VALUE",
63
+ * ],
64
+ * };
56
65
  * const command = new PutSecretValueCommand(input);
57
66
  * const response = await client.send(command);
58
67
  * ```
@@ -33,6 +33,12 @@ export interface RemoveRegionsFromReplicationCommandOutput extends RemoveRegions
33
33
  * import { SecretsManagerClient, RemoveRegionsFromReplicationCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
34
34
  * // const { SecretsManagerClient, RemoveRegionsFromReplicationCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
35
35
  * const client = new SecretsManagerClient(config);
36
+ * const input = { // RemoveRegionsFromReplicationRequest
37
+ * SecretId: "STRING_VALUE", // required
38
+ * RemoveReplicaRegions: [ // RemoveReplicaRegionListType // required
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * };
36
42
  * const command = new RemoveRegionsFromReplicationCommand(input);
37
43
  * const response = await client.send(command);
38
44
  * ```
@@ -33,6 +33,16 @@ export interface ReplicateSecretToRegionsCommandOutput extends ReplicateSecretTo
33
33
  * import { SecretsManagerClient, ReplicateSecretToRegionsCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
34
34
  * // const { SecretsManagerClient, ReplicateSecretToRegionsCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
35
35
  * const client = new SecretsManagerClient(config);
36
+ * const input = { // ReplicateSecretToRegionsRequest
37
+ * SecretId: "STRING_VALUE", // required
38
+ * AddReplicaRegions: [ // AddReplicaRegionListType // required
39
+ * { // ReplicaRegionType
40
+ * Region: "STRING_VALUE",
41
+ * KmsKeyId: "STRING_VALUE",
42
+ * },
43
+ * ],
44
+ * ForceOverwriteReplicaSecret: true || false,
45
+ * };
36
46
  * const command = new ReplicateSecretToRegionsCommand(input);
37
47
  * const response = await client.send(command);
38
48
  * ```
@@ -34,6 +34,9 @@ export interface RestoreSecretCommandOutput extends RestoreSecretResponse, __Met
34
34
  * import { SecretsManagerClient, RestoreSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
35
35
  * // const { SecretsManagerClient, RestoreSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
36
36
  * const client = new SecretsManagerClient(config);
37
+ * const input = { // RestoreSecretRequest
38
+ * SecretId: "STRING_VALUE", // required
39
+ * };
37
40
  * const command = new RestoreSecretCommand(input);
38
41
  * const response = await client.send(command);
39
42
  * ```
@@ -41,6 +41,17 @@ export interface RotateSecretCommandOutput extends RotateSecretResponse, __Metad
41
41
  * import { SecretsManagerClient, RotateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
42
42
  * // const { SecretsManagerClient, RotateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
43
43
  * const client = new SecretsManagerClient(config);
44
+ * const input = { // RotateSecretRequest
45
+ * SecretId: "STRING_VALUE", // required
46
+ * ClientRequestToken: "STRING_VALUE",
47
+ * RotationLambdaARN: "STRING_VALUE",
48
+ * RotationRules: { // RotationRulesType
49
+ * AutomaticallyAfterDays: Number("long"),
50
+ * Duration: "STRING_VALUE",
51
+ * ScheduleExpression: "STRING_VALUE",
52
+ * },
53
+ * RotateImmediately: true || false,
54
+ * };
44
55
  * const command = new RotateSecretCommand(input);
45
56
  * const response = await client.send(command);
46
57
  * ```
@@ -34,6 +34,9 @@ export interface StopReplicationToReplicaCommandOutput extends StopReplicationTo
34
34
  * import { SecretsManagerClient, StopReplicationToReplicaCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
35
35
  * // const { SecretsManagerClient, StopReplicationToReplicaCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
36
36
  * const client = new SecretsManagerClient(config);
37
+ * const input = { // StopReplicationToReplicaRequest
38
+ * SecretId: "STRING_VALUE", // required
39
+ * };
37
40
  * const command = new StopReplicationToReplicaCommand(input);
38
41
  * const response = await client.send(command);
39
42
  * ```
@@ -66,6 +66,15 @@ export interface TagResourceCommandOutput extends __MetadataBearer {
66
66
  * import { SecretsManagerClient, TagResourceCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
67
67
  * // const { SecretsManagerClient, TagResourceCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
68
68
  * const client = new SecretsManagerClient(config);
69
+ * const input = { // TagResourceRequest
70
+ * SecretId: "STRING_VALUE", // required
71
+ * Tags: [ // TagListType // required
72
+ * { // Tag
73
+ * Key: "STRING_VALUE",
74
+ * Value: "STRING_VALUE",
75
+ * },
76
+ * ],
77
+ * };
69
78
  * const command = new TagResourceCommand(input);
70
79
  * const response = await client.send(command);
71
80
  * ```
@@ -41,6 +41,12 @@ export interface UntagResourceCommandOutput extends __MetadataBearer {
41
41
  * import { SecretsManagerClient, UntagResourceCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
42
42
  * // const { SecretsManagerClient, UntagResourceCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
43
43
  * const client = new SecretsManagerClient(config);
44
+ * const input = { // UntagResourceRequest
45
+ * SecretId: "STRING_VALUE", // required
46
+ * TagKeys: [ // TagKeyListType // required
47
+ * "STRING_VALUE",
48
+ * ],
49
+ * };
44
50
  * const command = new UntagResourceCommand(input);
45
51
  * const response = await client.send(command);
46
52
  * ```
@@ -52,6 +52,14 @@ export interface UpdateSecretCommandOutput extends UpdateSecretResponse, __Metad
52
52
  * import { SecretsManagerClient, UpdateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
53
53
  * // const { SecretsManagerClient, UpdateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
54
54
  * const client = new SecretsManagerClient(config);
55
+ * const input = { // UpdateSecretRequest
56
+ * SecretId: "STRING_VALUE", // required
57
+ * ClientRequestToken: "STRING_VALUE",
58
+ * Description: "STRING_VALUE",
59
+ * KmsKeyId: "STRING_VALUE",
60
+ * SecretBinary: "BLOB_VALUE",
61
+ * SecretString: "STRING_VALUE",
62
+ * };
55
63
  * const command = new UpdateSecretCommand(input);
56
64
  * const response = await client.send(command);
57
65
  * ```
@@ -47,6 +47,12 @@ export interface UpdateSecretVersionStageCommandOutput extends UpdateSecretVersi
47
47
  * import { SecretsManagerClient, UpdateSecretVersionStageCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
48
48
  * // const { SecretsManagerClient, UpdateSecretVersionStageCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
49
49
  * const client = new SecretsManagerClient(config);
50
+ * const input = { // UpdateSecretVersionStageRequest
51
+ * SecretId: "STRING_VALUE", // required
52
+ * VersionStage: "STRING_VALUE", // required
53
+ * RemoveFromVersionId: "STRING_VALUE",
54
+ * MoveToVersionId: "STRING_VALUE",
55
+ * };
50
56
  * const command = new UpdateSecretVersionStageCommand(input);
51
57
  * const response = await client.send(command);
52
58
  * ```
@@ -47,6 +47,10 @@ export interface ValidateResourcePolicyCommandOutput extends ValidateResourcePol
47
47
  * import { SecretsManagerClient, ValidateResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
48
48
  * // const { SecretsManagerClient, ValidateResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
49
49
  * const client = new SecretsManagerClient(config);
50
+ * const input = { // ValidateResourcePolicyRequest
51
+ * SecretId: "STRING_VALUE",
52
+ * ResourcePolicy: "STRING_VALUE", // required
53
+ * };
50
54
  * const command = new ValidateResourcePolicyCommand(input);
51
55
  * const response = await client.send(command);
52
56
  * ```
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.299.0",
4
+ "version": "3.301.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.299.0",
25
- "@aws-sdk/config-resolver": "3.299.0",
26
- "@aws-sdk/credential-provider-node": "3.299.0",
24
+ "@aws-sdk/client-sts": "3.301.0",
25
+ "@aws-sdk/config-resolver": "3.300.0",
26
+ "@aws-sdk/credential-provider-node": "3.301.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.296.0",
28
28
  "@aws-sdk/hash-node": "3.296.0",
29
29
  "@aws-sdk/invalid-dependency": "3.296.0",
@@ -32,12 +32,12 @@
32
32
  "@aws-sdk/middleware-host-header": "3.296.0",
33
33
  "@aws-sdk/middleware-logger": "3.296.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.296.0",
35
+ "@aws-sdk/middleware-retry": "3.300.0",
36
36
  "@aws-sdk/middleware-serde": "3.296.0",
37
37
  "@aws-sdk/middleware-signing": "3.299.0",
38
38
  "@aws-sdk/middleware-stack": "3.296.0",
39
39
  "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.296.0",
40
+ "@aws-sdk/node-config-provider": "3.300.0",
41
41
  "@aws-sdk/node-http-handler": "3.296.0",
42
42
  "@aws-sdk/protocol-http": "3.296.0",
43
43
  "@aws-sdk/smithy-client": "3.296.0",
@@ -47,11 +47,11 @@
47
47
  "@aws-sdk/util-body-length-browser": "3.295.0",
48
48
  "@aws-sdk/util-body-length-node": "3.295.0",
49
49
  "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.299.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
51
  "@aws-sdk/util-endpoints": "3.296.0",
52
52
  "@aws-sdk/util-retry": "3.296.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.299.0",
54
+ "@aws-sdk/util-user-agent-node": "3.300.0",
55
55
  "@aws-sdk/util-utf8": "3.295.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"