@aws-sdk/client-secrets-manager 3.300.0 → 3.303.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.
Files changed (27) hide show
  1. package/dist-cjs/models/models_0.js +18 -21
  2. package/dist-es/models/models_0.js +18 -21
  3. package/dist-types/commands/CancelRotateSecretCommand.d.ts +1 -1
  4. package/dist-types/commands/CreateSecretCommand.d.ts +5 -5
  5. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +1 -1
  6. package/dist-types/commands/DeleteSecretCommand.d.ts +1 -1
  7. package/dist-types/commands/DescribeSecretCommand.d.ts +1 -1
  8. package/dist-types/commands/GetRandomPasswordCommand.d.ts +1 -1
  9. package/dist-types/commands/GetResourcePolicyCommand.d.ts +1 -1
  10. package/dist-types/commands/GetSecretValueCommand.d.ts +1 -1
  11. package/dist-types/commands/ListSecretVersionIdsCommand.d.ts +1 -1
  12. package/dist-types/commands/ListSecretsCommand.d.ts +4 -4
  13. package/dist-types/commands/PutResourcePolicyCommand.d.ts +1 -1
  14. package/dist-types/commands/PutSecretValueCommand.d.ts +2 -2
  15. package/dist-types/commands/RemoveRegionsFromReplicationCommand.d.ts +2 -2
  16. package/dist-types/commands/ReplicateSecretToRegionsCommand.d.ts +3 -3
  17. package/dist-types/commands/RestoreSecretCommand.d.ts +1 -1
  18. package/dist-types/commands/RotateSecretCommand.d.ts +2 -2
  19. package/dist-types/commands/StopReplicationToReplicaCommand.d.ts +1 -1
  20. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  21. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  22. package/dist-types/commands/UpdateSecretCommand.d.ts +1 -1
  23. package/dist-types/commands/UpdateSecretVersionStageCommand.d.ts +1 -1
  24. package/dist-types/commands/ValidateResourcePolicyCommand.d.ts +1 -1
  25. package/dist-types/models/models_0.d.ts +33 -18
  26. package/dist-types/ts3.4/models/models_0.d.ts +22 -18
  27. package/package.json +34 -34
@@ -59,12 +59,11 @@ class ResourceNotFoundException extends SecretsManagerServiceException_1.Secrets
59
59
  }
60
60
  }
61
61
  exports.ResourceNotFoundException = ResourceNotFoundException;
62
- var StatusType;
63
- (function (StatusType) {
64
- StatusType["Failed"] = "Failed";
65
- StatusType["InProgress"] = "InProgress";
66
- StatusType["InSync"] = "InSync";
67
- })(StatusType = exports.StatusType || (exports.StatusType = {}));
62
+ exports.StatusType = {
63
+ Failed: "Failed",
64
+ InProgress: "InProgress",
65
+ InSync: "InSync",
66
+ };
68
67
  class DecryptionFailure extends SecretsManagerServiceException_1.SecretsManagerServiceException {
69
68
  constructor(opts) {
70
69
  super({
@@ -149,16 +148,15 @@ class ResourceExistsException extends SecretsManagerServiceException_1.SecretsMa
149
148
  }
150
149
  }
151
150
  exports.ResourceExistsException = ResourceExistsException;
152
- var FilterNameStringType;
153
- (function (FilterNameStringType) {
154
- FilterNameStringType["all"] = "all";
155
- FilterNameStringType["description"] = "description";
156
- FilterNameStringType["name"] = "name";
157
- FilterNameStringType["owning_service"] = "owning-service";
158
- FilterNameStringType["primary_region"] = "primary-region";
159
- FilterNameStringType["tag_key"] = "tag-key";
160
- FilterNameStringType["tag_value"] = "tag-value";
161
- })(FilterNameStringType = exports.FilterNameStringType || (exports.FilterNameStringType = {}));
151
+ exports.FilterNameStringType = {
152
+ all: "all",
153
+ description: "description",
154
+ name: "name",
155
+ owning_service: "owning-service",
156
+ primary_region: "primary-region",
157
+ tag_key: "tag-key",
158
+ tag_value: "tag-value",
159
+ };
162
160
  class InvalidNextTokenException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
163
161
  constructor(opts) {
164
162
  super({
@@ -173,11 +171,10 @@ class InvalidNextTokenException extends SecretsManagerServiceException_1.Secrets
173
171
  }
174
172
  }
175
173
  exports.InvalidNextTokenException = InvalidNextTokenException;
176
- var SortOrderType;
177
- (function (SortOrderType) {
178
- SortOrderType["asc"] = "asc";
179
- SortOrderType["desc"] = "desc";
180
- })(SortOrderType = exports.SortOrderType || (exports.SortOrderType = {}));
174
+ exports.SortOrderType = {
175
+ asc: "asc",
176
+ desc: "desc",
177
+ };
181
178
  class PublicPolicyException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
182
179
  constructor(opts) {
183
180
  super({
@@ -52,12 +52,11 @@ export class ResourceNotFoundException extends __BaseException {
52
52
  this.Message = opts.Message;
53
53
  }
54
54
  }
55
- export var StatusType;
56
- (function (StatusType) {
57
- StatusType["Failed"] = "Failed";
58
- StatusType["InProgress"] = "InProgress";
59
- StatusType["InSync"] = "InSync";
60
- })(StatusType || (StatusType = {}));
55
+ export const StatusType = {
56
+ Failed: "Failed",
57
+ InProgress: "InProgress",
58
+ InSync: "InSync",
59
+ };
61
60
  export class DecryptionFailure extends __BaseException {
62
61
  constructor(opts) {
63
62
  super({
@@ -136,16 +135,15 @@ export class ResourceExistsException extends __BaseException {
136
135
  this.Message = opts.Message;
137
136
  }
138
137
  }
139
- export var FilterNameStringType;
140
- (function (FilterNameStringType) {
141
- FilterNameStringType["all"] = "all";
142
- FilterNameStringType["description"] = "description";
143
- FilterNameStringType["name"] = "name";
144
- FilterNameStringType["owning_service"] = "owning-service";
145
- FilterNameStringType["primary_region"] = "primary-region";
146
- FilterNameStringType["tag_key"] = "tag-key";
147
- FilterNameStringType["tag_value"] = "tag-value";
148
- })(FilterNameStringType || (FilterNameStringType = {}));
138
+ export const FilterNameStringType = {
139
+ all: "all",
140
+ description: "description",
141
+ name: "name",
142
+ owning_service: "owning-service",
143
+ primary_region: "primary-region",
144
+ tag_key: "tag-key",
145
+ tag_value: "tag-value",
146
+ };
149
147
  export class InvalidNextTokenException extends __BaseException {
150
148
  constructor(opts) {
151
149
  super({
@@ -159,11 +157,10 @@ export class InvalidNextTokenException extends __BaseException {
159
157
  this.Message = opts.Message;
160
158
  }
161
159
  }
162
- export var SortOrderType;
163
- (function (SortOrderType) {
164
- SortOrderType["asc"] = "asc";
165
- SortOrderType["desc"] = "desc";
166
- })(SortOrderType || (SortOrderType = {}));
160
+ export const SortOrderType = {
161
+ asc: "asc",
162
+ desc: "desc",
163
+ };
167
164
  export class PublicPolicyException extends __BaseException {
168
165
  constructor(opts) {
169
166
  super({
@@ -44,7 +44,7 @@ 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 = {
47
+ * const input = { // CancelRotateSecretRequest
48
48
  * SecretId: "STRING_VALUE", // required
49
49
  * };
50
50
  * const command = new CancelRotateSecretCommand(input);
@@ -61,21 +61,21 @@ 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 = {
64
+ * const input = { // CreateSecretRequest
65
65
  * Name: "STRING_VALUE", // required
66
66
  * ClientRequestToken: "STRING_VALUE",
67
67
  * Description: "STRING_VALUE",
68
68
  * KmsKeyId: "STRING_VALUE",
69
69
  * SecretBinary: "BLOB_VALUE",
70
70
  * SecretString: "STRING_VALUE",
71
- * Tags: [
72
- * {
71
+ * Tags: [ // TagListType
72
+ * { // Tag
73
73
  * Key: "STRING_VALUE",
74
74
  * Value: "STRING_VALUE",
75
75
  * },
76
76
  * ],
77
- * AddReplicaRegions: [
78
- * {
77
+ * AddReplicaRegions: [ // AddReplicaRegionListType
78
+ * { // ReplicaRegionType
79
79
  * Region: "STRING_VALUE",
80
80
  * KmsKeyId: "STRING_VALUE",
81
81
  * },
@@ -34,7 +34,7 @@ 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 = {
37
+ * const input = { // DeleteResourcePolicyRequest
38
38
  * SecretId: "STRING_VALUE", // required
39
39
  * };
40
40
  * const command = new DeleteResourcePolicyCommand(input);
@@ -54,7 +54,7 @@ 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 = {
57
+ * const input = { // DeleteSecretRequest
58
58
  * SecretId: "STRING_VALUE", // required
59
59
  * RecoveryWindowInDays: Number("long"),
60
60
  * ForceDeleteWithoutRecovery: true || false,
@@ -34,7 +34,7 @@ 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 = {
37
+ * const input = { // DescribeSecretRequest
38
38
  * SecretId: "STRING_VALUE", // required
39
39
  * };
40
40
  * const command = new DescribeSecretCommand(input);
@@ -35,7 +35,7 @@ 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 = {
38
+ * const input = { // GetRandomPasswordRequest
39
39
  * PasswordLength: Number("long"),
40
40
  * ExcludeCharacters: "STRING_VALUE",
41
41
  * ExcludeNumbers: true || false,
@@ -36,7 +36,7 @@ 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 = {
39
+ * const input = { // GetResourcePolicyRequest
40
40
  * SecretId: "STRING_VALUE", // required
41
41
  * };
42
42
  * const command = new GetResourcePolicyCommand(input);
@@ -42,7 +42,7 @@ 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 = {
45
+ * const input = { // GetSecretValueRequest
46
46
  * SecretId: "STRING_VALUE", // required
47
47
  * VersionId: "STRING_VALUE",
48
48
  * VersionStage: "STRING_VALUE",
@@ -36,7 +36,7 @@ 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 = {
39
+ * const input = { // ListSecretVersionIdsRequest
40
40
  * SecretId: "STRING_VALUE", // required
41
41
  * MaxResults: Number("int"),
42
42
  * NextToken: "STRING_VALUE",
@@ -40,14 +40,14 @@ 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 = {
43
+ * const input = { // ListSecretsRequest
44
44
  * IncludePlannedDeletion: true || false,
45
45
  * MaxResults: Number("int"),
46
46
  * NextToken: "STRING_VALUE",
47
- * Filters: [
48
- * {
47
+ * Filters: [ // FiltersListType
48
+ * { // Filter
49
49
  * Key: "description" || "name" || "tag-key" || "tag-value" || "primary-region" || "owning-service" || "all",
50
- * Values: [
50
+ * Values: [ // FilterValuesStringList
51
51
  * "STRING_VALUE",
52
52
  * ],
53
53
  * },
@@ -37,7 +37,7 @@ 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 = {
40
+ * const input = { // PutResourcePolicyRequest
41
41
  * SecretId: "STRING_VALUE", // required
42
42
  * ResourcePolicy: "STRING_VALUE", // required
43
43
  * BlockPublicPolicy: true || false,
@@ -53,12 +53,12 @@ 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 = {
56
+ * const input = { // PutSecretValueRequest
57
57
  * SecretId: "STRING_VALUE", // required
58
58
  * ClientRequestToken: "STRING_VALUE",
59
59
  * SecretBinary: "BLOB_VALUE",
60
60
  * SecretString: "STRING_VALUE",
61
- * VersionStages: [
61
+ * VersionStages: [ // SecretVersionStagesType
62
62
  * "STRING_VALUE",
63
63
  * ],
64
64
  * };
@@ -33,9 +33,9 @@ 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 = {
36
+ * const input = { // RemoveRegionsFromReplicationRequest
37
37
  * SecretId: "STRING_VALUE", // required
38
- * RemoveReplicaRegions: [ // required
38
+ * RemoveReplicaRegions: [ // RemoveReplicaRegionListType // required
39
39
  * "STRING_VALUE",
40
40
  * ],
41
41
  * };
@@ -33,10 +33,10 @@ 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 = {
36
+ * const input = { // ReplicateSecretToRegionsRequest
37
37
  * SecretId: "STRING_VALUE", // required
38
- * AddReplicaRegions: [ // required
39
- * {
38
+ * AddReplicaRegions: [ // AddReplicaRegionListType // required
39
+ * { // ReplicaRegionType
40
40
  * Region: "STRING_VALUE",
41
41
  * KmsKeyId: "STRING_VALUE",
42
42
  * },
@@ -34,7 +34,7 @@ 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 = {
37
+ * const input = { // RestoreSecretRequest
38
38
  * SecretId: "STRING_VALUE", // required
39
39
  * };
40
40
  * const command = new RestoreSecretCommand(input);
@@ -41,11 +41,11 @@ 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 = {
44
+ * const input = { // RotateSecretRequest
45
45
  * SecretId: "STRING_VALUE", // required
46
46
  * ClientRequestToken: "STRING_VALUE",
47
47
  * RotationLambdaARN: "STRING_VALUE",
48
- * RotationRules: {
48
+ * RotationRules: { // RotationRulesType
49
49
  * AutomaticallyAfterDays: Number("long"),
50
50
  * Duration: "STRING_VALUE",
51
51
  * ScheduleExpression: "STRING_VALUE",
@@ -34,7 +34,7 @@ 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 = {
37
+ * const input = { // StopReplicationToReplicaRequest
38
38
  * SecretId: "STRING_VALUE", // required
39
39
  * };
40
40
  * const command = new StopReplicationToReplicaCommand(input);
@@ -66,10 +66,10 @@ 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 = {
69
+ * const input = { // TagResourceRequest
70
70
  * SecretId: "STRING_VALUE", // required
71
- * Tags: [ // required
72
- * {
71
+ * Tags: [ // TagListType // required
72
+ * { // Tag
73
73
  * Key: "STRING_VALUE",
74
74
  * Value: "STRING_VALUE",
75
75
  * },
@@ -41,9 +41,9 @@ 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 = {
44
+ * const input = { // UntagResourceRequest
45
45
  * SecretId: "STRING_VALUE", // required
46
- * TagKeys: [ // required
46
+ * TagKeys: [ // TagKeyListType // required
47
47
  * "STRING_VALUE",
48
48
  * ],
49
49
  * };
@@ -52,7 +52,7 @@ 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 = {
55
+ * const input = { // UpdateSecretRequest
56
56
  * SecretId: "STRING_VALUE", // required
57
57
  * ClientRequestToken: "STRING_VALUE",
58
58
  * Description: "STRING_VALUE",
@@ -47,7 +47,7 @@ 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 = {
50
+ * const input = { // UpdateSecretVersionStageRequest
51
51
  * SecretId: "STRING_VALUE", // required
52
52
  * VersionStage: "STRING_VALUE", // required
53
53
  * RemoveFromVersionId: "STRING_VALUE",
@@ -47,7 +47,7 @@ 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 = {
50
+ * const input = { // ValidateResourcePolicyRequest
51
51
  * SecretId: "STRING_VALUE",
52
52
  * ResourcePolicy: "STRING_VALUE", // required
53
53
  * };
@@ -270,12 +270,17 @@ export interface CreateSecretRequest {
270
270
  }
271
271
  /**
272
272
  * @public
273
+ * @enum
273
274
  */
274
- export declare enum StatusType {
275
- Failed = "Failed",
276
- InProgress = "InProgress",
277
- InSync = "InSync"
278
- }
275
+ export declare const StatusType: {
276
+ readonly Failed: "Failed";
277
+ readonly InProgress: "InProgress";
278
+ readonly InSync: "InSync";
279
+ };
280
+ /**
281
+ * @public
282
+ */
283
+ export type StatusType = (typeof StatusType)[keyof typeof StatusType];
279
284
  /**
280
285
  * @public
281
286
  * <p>A replication object consisting of a <code>RegionReplicationStatus</code> object and includes a Region, KMSKeyId, status, and status message.</p>
@@ -690,16 +695,21 @@ export interface DescribeSecretResponse {
690
695
  }
691
696
  /**
692
697
  * @public
698
+ * @enum
693
699
  */
694
- export declare enum FilterNameStringType {
695
- all = "all",
696
- description = "description",
697
- name = "name",
698
- owning_service = "owning-service",
699
- primary_region = "primary-region",
700
- tag_key = "tag-key",
701
- tag_value = "tag-value"
702
- }
700
+ export declare const FilterNameStringType: {
701
+ readonly all: "all";
702
+ readonly description: "description";
703
+ readonly name: "name";
704
+ readonly owning_service: "owning-service";
705
+ readonly primary_region: "primary-region";
706
+ readonly tag_key: "tag-key";
707
+ readonly tag_value: "tag-value";
708
+ };
709
+ /**
710
+ * @public
711
+ */
712
+ export type FilterNameStringType = (typeof FilterNameStringType)[keyof typeof FilterNameStringType];
703
713
  /**
704
714
  * @public
705
715
  * <p>Allows you to add filters when you use the search function in Secrets Manager. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_search-secret.html">Find secrets in Secrets Manager</a>.</p>
@@ -917,11 +927,16 @@ export declare class InvalidNextTokenException extends __BaseException {
917
927
  }
918
928
  /**
919
929
  * @public
930
+ * @enum
920
931
  */
921
- export declare enum SortOrderType {
922
- asc = "asc",
923
- desc = "desc"
924
- }
932
+ export declare const SortOrderType: {
933
+ readonly asc: "asc";
934
+ readonly desc: "desc";
935
+ };
936
+ /**
937
+ * @public
938
+ */
939
+ export type SortOrderType = (typeof SortOrderType)[keyof typeof SortOrderType];
925
940
  /**
926
941
  * @public
927
942
  */
@@ -59,11 +59,12 @@ export interface CreateSecretRequest {
59
59
  AddReplicaRegions?: ReplicaRegionType[];
60
60
  ForceOverwriteReplicaSecret?: boolean;
61
61
  }
62
- export declare enum StatusType {
63
- Failed = "Failed",
64
- InProgress = "InProgress",
65
- InSync = "InSync",
66
- }
62
+ export declare const StatusType: {
63
+ readonly Failed: "Failed";
64
+ readonly InProgress: "InProgress";
65
+ readonly InSync: "InSync";
66
+ };
67
+ export type StatusType = (typeof StatusType)[keyof typeof StatusType];
67
68
  export interface ReplicationStatusType {
68
69
  Region?: string;
69
70
  KmsKeyId?: string;
@@ -169,15 +170,17 @@ export interface DescribeSecretResponse {
169
170
  PrimaryRegion?: string;
170
171
  ReplicationStatus?: ReplicationStatusType[];
171
172
  }
172
- export declare enum FilterNameStringType {
173
- all = "all",
174
- description = "description",
175
- name = "name",
176
- owning_service = "owning-service",
177
- primary_region = "primary-region",
178
- tag_key = "tag-key",
179
- tag_value = "tag-value",
180
- }
173
+ export declare const FilterNameStringType: {
174
+ readonly all: "all";
175
+ readonly description: "description";
176
+ readonly name: "name";
177
+ readonly owning_service: "owning-service";
178
+ readonly primary_region: "primary-region";
179
+ readonly tag_key: "tag-key";
180
+ readonly tag_value: "tag-value";
181
+ };
182
+ export type FilterNameStringType =
183
+ (typeof FilterNameStringType)[keyof typeof FilterNameStringType];
181
184
  export interface Filter {
182
185
  Key?: FilterNameStringType | string;
183
186
  Values?: string[];
@@ -225,10 +228,11 @@ export declare class InvalidNextTokenException extends __BaseException {
225
228
  opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>
226
229
  );
227
230
  }
228
- export declare enum SortOrderType {
229
- asc = "asc",
230
- desc = "desc",
231
- }
231
+ export declare const SortOrderType: {
232
+ readonly asc: "asc";
233
+ readonly desc: "desc";
234
+ };
235
+ export type SortOrderType = (typeof SortOrderType)[keyof typeof SortOrderType];
232
236
  export interface ListSecretsRequest {
233
237
  IncludePlannedDeletion?: boolean;
234
238
  MaxResults?: number;
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.300.0",
4
+ "version": "3.303.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,43 +21,43 @@
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.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",