@aws-sdk/client-secrets-manager 3.1075.0 → 3.1076.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 CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultSecretsManagerHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { BatchGetSecretValue$, CancelRotateSecret$, CreateSecret$, DeleteResourcePolicy$, DeleteSecret$, DescribeSecret$, GetRandomPassword$, GetResourcePolicy$, GetSecretValue$, ListSecrets$, ListSecretVersionIds$, PutResourcePolicy$, PutSecretValue$, RemoveRegionsFromReplication$, ReplicateSecretToRegions$, RestoreSecret$, RotateSecret$, StopReplicationToReplica$, TagResource$, UntagResource$, UpdateSecret$, UpdateSecretVersionStage$, ValidateResourcePolicy$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { SecretsManagerServiceException } = require("./models/SecretsManagerServiceException");
18
- exports.SecretsManagerServiceException = SecretsManagerServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultSecretsManagerHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "secretsmanager",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultSecretsManagerHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,971 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const m = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [h]],
79
+ [c, l],
80
+ ["aws.partition", l, d],
81
+ [e, [{ [m]: "UseFIPS" }, b]],
82
+ [e, [{ [m]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
85
+ [g, [j, "aws"]],
86
+ [g, [j, "aws-cn"]],
87
+ [g, [j, "aws-us-gov"]]
88
+ ],
89
+ results: [
90
+ [a],
91
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
92
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
93
+ [h, k],
94
+ ["https://secretsmanager-fips.{Region}.amazonaws.com", k],
95
+ ["https://secretsmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
96
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
97
+ ["https://secretsmanager-fips.{Region}.{PartitionResult#dnsSuffix}", k],
98
+ [a, "FIPS is enabled but this partition does not support FIPS"],
99
+ ["https://secretsmanager.{Region}.amazonaws.com", k],
100
+ ["https://secretsmanager.{Region}.amazonaws.com.cn", k],
101
+ ["https://secretsmanager.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
102
+ [a, "DualStack is enabled but this partition does not support DualStack"],
103
+ ["https://secretsmanager.{Region}.{PartitionResult#dnsSuffix}", k],
104
+ [a, "Invalid Configuration: Missing Region"]
105
+ ]
106
+ };
107
+ const root = 2;
108
+ const r = 100_000_000;
109
+ const nodes = new Int32Array([
110
+ -1, 1, -1,
111
+ 0, 17, 3,
112
+ 1, 4, r + 14,
113
+ 2, 5, r + 14,
114
+ 3, 11, 6,
115
+ 4, 7, r + 13,
116
+ 5, 8, r + 12,
117
+ 7, r + 9, 9,
118
+ 8, r + 10, 10,
119
+ 9, r + 9, r + 11,
120
+ 4, 13, 12,
121
+ 6, r + 7, r + 8,
122
+ 5, 14, r + 6,
123
+ 6, 15, r + 6,
124
+ 7, r + 4, 16,
125
+ 9, r + 4, r + 5,
126
+ 3, r + 1, 18,
127
+ 4, r + 2, r + 3,
128
+ ]);
129
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
130
+
131
+ const cache = new EndpointCache({
132
+ size: 50,
133
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
134
+ });
135
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
136
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
137
+ endpointParams: endpointParams,
138
+ logger: context.logger,
139
+ }));
140
+ };
141
+ customEndpointFunctions.aws = awsEndpointFunctions;
142
+
143
+ class SecretsManagerServiceException extends ServiceException {
144
+ constructor(options) {
145
+ super(options);
146
+ Object.setPrototypeOf(this, SecretsManagerServiceException.prototype);
147
+ }
148
+ }
149
+
150
+ class DecryptionFailure extends SecretsManagerServiceException {
151
+ name = "DecryptionFailure";
152
+ $fault = "client";
153
+ Message;
154
+ constructor(opts) {
155
+ super({
156
+ name: "DecryptionFailure",
157
+ $fault: "client",
158
+ ...opts,
159
+ });
160
+ Object.setPrototypeOf(this, DecryptionFailure.prototype);
161
+ this.Message = opts.Message;
162
+ }
163
+ }
164
+ class InternalServiceError extends SecretsManagerServiceException {
165
+ name = "InternalServiceError";
166
+ $fault = "server";
167
+ Message;
168
+ constructor(opts) {
169
+ super({
170
+ name: "InternalServiceError",
171
+ $fault: "server",
172
+ ...opts,
173
+ });
174
+ Object.setPrototypeOf(this, InternalServiceError.prototype);
175
+ this.Message = opts.Message;
176
+ }
177
+ }
178
+ class InvalidNextTokenException extends SecretsManagerServiceException {
179
+ name = "InvalidNextTokenException";
180
+ $fault = "client";
181
+ Message;
182
+ constructor(opts) {
183
+ super({
184
+ name: "InvalidNextTokenException",
185
+ $fault: "client",
186
+ ...opts,
187
+ });
188
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
189
+ this.Message = opts.Message;
190
+ }
191
+ }
192
+ class InvalidParameterException extends SecretsManagerServiceException {
193
+ name = "InvalidParameterException";
194
+ $fault = "client";
195
+ Message;
196
+ constructor(opts) {
197
+ super({
198
+ name: "InvalidParameterException",
199
+ $fault: "client",
200
+ ...opts,
201
+ });
202
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
203
+ this.Message = opts.Message;
204
+ }
205
+ }
206
+ class InvalidRequestException extends SecretsManagerServiceException {
207
+ name = "InvalidRequestException";
208
+ $fault = "client";
209
+ Message;
210
+ constructor(opts) {
211
+ super({
212
+ name: "InvalidRequestException",
213
+ $fault: "client",
214
+ ...opts,
215
+ });
216
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
217
+ this.Message = opts.Message;
218
+ }
219
+ }
220
+ class ResourceNotFoundException extends SecretsManagerServiceException {
221
+ name = "ResourceNotFoundException";
222
+ $fault = "client";
223
+ Message;
224
+ constructor(opts) {
225
+ super({
226
+ name: "ResourceNotFoundException",
227
+ $fault: "client",
228
+ ...opts,
229
+ });
230
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
231
+ this.Message = opts.Message;
232
+ }
233
+ }
234
+ class EncryptionFailure extends SecretsManagerServiceException {
235
+ name = "EncryptionFailure";
236
+ $fault = "client";
237
+ Message;
238
+ constructor(opts) {
239
+ super({
240
+ name: "EncryptionFailure",
241
+ $fault: "client",
242
+ ...opts,
243
+ });
244
+ Object.setPrototypeOf(this, EncryptionFailure.prototype);
245
+ this.Message = opts.Message;
246
+ }
247
+ }
248
+ class LimitExceededException extends SecretsManagerServiceException {
249
+ name = "LimitExceededException";
250
+ $fault = "client";
251
+ Message;
252
+ constructor(opts) {
253
+ super({
254
+ name: "LimitExceededException",
255
+ $fault: "client",
256
+ ...opts,
257
+ });
258
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
259
+ this.Message = opts.Message;
260
+ }
261
+ }
262
+ class MalformedPolicyDocumentException extends SecretsManagerServiceException {
263
+ name = "MalformedPolicyDocumentException";
264
+ $fault = "client";
265
+ Message;
266
+ constructor(opts) {
267
+ super({
268
+ name: "MalformedPolicyDocumentException",
269
+ $fault: "client",
270
+ ...opts,
271
+ });
272
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
273
+ this.Message = opts.Message;
274
+ }
275
+ }
276
+ class PreconditionNotMetException extends SecretsManagerServiceException {
277
+ name = "PreconditionNotMetException";
278
+ $fault = "client";
279
+ Message;
280
+ constructor(opts) {
281
+ super({
282
+ name: "PreconditionNotMetException",
283
+ $fault: "client",
284
+ ...opts,
285
+ });
286
+ Object.setPrototypeOf(this, PreconditionNotMetException.prototype);
287
+ this.Message = opts.Message;
288
+ }
289
+ }
290
+ class ResourceExistsException extends SecretsManagerServiceException {
291
+ name = "ResourceExistsException";
292
+ $fault = "client";
293
+ Message;
294
+ constructor(opts) {
295
+ super({
296
+ name: "ResourceExistsException",
297
+ $fault: "client",
298
+ ...opts,
299
+ });
300
+ Object.setPrototypeOf(this, ResourceExistsException.prototype);
301
+ this.Message = opts.Message;
302
+ }
303
+ }
304
+ class PublicPolicyException extends SecretsManagerServiceException {
305
+ name = "PublicPolicyException";
306
+ $fault = "client";
307
+ Message;
308
+ constructor(opts) {
309
+ super({
310
+ name: "PublicPolicyException",
311
+ $fault: "client",
312
+ ...opts,
313
+ });
314
+ Object.setPrototypeOf(this, PublicPolicyException.prototype);
315
+ this.Message = opts.Message;
316
+ }
317
+ }
318
+
319
+ const _AAD = "AutomaticallyAfterDays";
320
+ const _APIELT = "APIErrorListType";
321
+ const _APIET = "APIErrorType";
322
+ const _ARN = "ARN";
323
+ const _ARR = "AddReplicaRegions";
324
+ const _ARRLT = "AddReplicaRegionListType";
325
+ const _BGSV = "BatchGetSecretValue";
326
+ const _BGSVR = "BatchGetSecretValueRequest";
327
+ const _BGSVRa = "BatchGetSecretValueResponse";
328
+ const _BPP = "BlockPublicPolicy";
329
+ const _CD = "CreatedDate";
330
+ const _CN = "CheckName";
331
+ const _CRS = "CancelRotateSecret";
332
+ const _CRSR = "CancelRotateSecretRequest";
333
+ const _CRSRa = "CancelRotateSecretResponse";
334
+ const _CRT = "ClientRequestToken";
335
+ const _CS = "CreateSecret";
336
+ const _CSR = "CreateSecretRequest";
337
+ const _CSRr = "CreateSecretResponse";
338
+ const _D = "Description";
339
+ const _DD = "DeletionDate";
340
+ const _DDe = "DeletedDate";
341
+ const _DF = "DecryptionFailure";
342
+ const _DRP = "DeleteResourcePolicy";
343
+ const _DRPR = "DeleteResourcePolicyRequest";
344
+ const _DRPRe = "DeleteResourcePolicyResponse";
345
+ const _DS = "DeleteSecret";
346
+ const _DSR = "DeleteSecretRequest";
347
+ const _DSRe = "DeleteSecretResponse";
348
+ const _DSRes = "DescribeSecretRequest";
349
+ const _DSResc = "DescribeSecretResponse";
350
+ const _DSe = "DescribeSecret";
351
+ const _Du = "Duration";
352
+ const _E = "Errors";
353
+ const _EC = "ErrorCode";
354
+ const _ECx = "ExcludeCharacters";
355
+ const _EF = "EncryptionFailure";
356
+ const _EL = "ExcludeLowercase";
357
+ const _EM = "ErrorMessage";
358
+ const _EN = "ExcludeNumbers";
359
+ const _EP = "ExcludePunctuation";
360
+ const _ESRM = "ExternalSecretRotationMetadata";
361
+ const _ESRMI = "ExternalSecretRotationMetadataItem";
362
+ const _ESRMT = "ExternalSecretRotationMetadataType";
363
+ const _ESRRA = "ExternalSecretRotationRoleArn";
364
+ const _EU = "ExcludeUppercase";
365
+ const _F = "Filters";
366
+ const _FDWR = "ForceDeleteWithoutRecovery";
367
+ const _FLT = "FiltersListType";
368
+ const _FORS = "ForceOverwriteReplicaSecret";
369
+ const _Fi = "Filter";
370
+ const _GRP = "GetRandomPassword";
371
+ const _GRPR = "GetRandomPasswordRequest";
372
+ const _GRPRe = "GetRandomPasswordResponse";
373
+ const _GRPRet = "GetResourcePolicyRequest";
374
+ const _GRPRete = "GetResourcePolicyResponse";
375
+ const _GRPe = "GetResourcePolicy";
376
+ const _GSV = "GetSecretValue";
377
+ const _GSVR = "GetSecretValueRequest";
378
+ const _GSVRe = "GetSecretValueResponse";
379
+ const _ID = "IncludeDeprecated";
380
+ const _INTE = "InvalidNextTokenException";
381
+ const _IPD = "IncludePlannedDeletion";
382
+ const _IPE = "InvalidParameterException";
383
+ const _IRE = "InvalidRequestException";
384
+ const _IS = "IncludeSpace";
385
+ const _ISE = "InternalServiceError";
386
+ const _K = "Key";
387
+ const _KKI = "KmsKeyId";
388
+ const _KKIm = "KmsKeyIds";
389
+ const _LAD = "LastAccessedDate";
390
+ const _LCD = "LastChangedDate";
391
+ const _LEE = "LimitExceededException";
392
+ const _LRD = "LastRotatedDate";
393
+ const _LS = "ListSecrets";
394
+ const _LSR = "ListSecretsRequest";
395
+ const _LSRi = "ListSecretsResponse";
396
+ const _LSVI = "ListSecretVersionIds";
397
+ const _LSVIR = "ListSecretVersionIdsRequest";
398
+ const _LSVIRi = "ListSecretVersionIdsResponse";
399
+ const _M = "Message";
400
+ const _MPDE = "MalformedPolicyDocumentException";
401
+ const _MR = "MaxResults";
402
+ const _MTVI = "MoveToVersionId";
403
+ const _N = "Name";
404
+ const _NRD = "NextRotationDate";
405
+ const _NT = "NextToken";
406
+ const _OS = "OwningService";
407
+ const _PL = "PasswordLength";
408
+ const _PNME = "PreconditionNotMetException";
409
+ const _PPE = "PublicPolicyException";
410
+ const _PR = "PrimaryRegion";
411
+ const _PRP = "PutResourcePolicy";
412
+ const _PRPR = "PutResourcePolicyRequest";
413
+ const _PRPRu = "PutResourcePolicyResponse";
414
+ const _PSV = "PutSecretValue";
415
+ const _PSVR = "PutSecretValueRequest";
416
+ const _PSVRu = "PutSecretValueResponse";
417
+ const _PVP = "PolicyValidationPassed";
418
+ const _R = "Region";
419
+ const _RE = "RotationEnabled";
420
+ const _REE = "ResourceExistsException";
421
+ const _REIT = "RequireEachIncludedType";
422
+ const _RFVI = "RemoveFromVersionId";
423
+ const _RI = "RotateImmediately";
424
+ const _RLARN = "RotationLambdaARN";
425
+ const _RNFE = "ResourceNotFoundException";
426
+ const _RP = "RandomPassword";
427
+ const _RPT = "RandomPasswordType";
428
+ const _RPe = "ResourcePolicy";
429
+ const _RR = "RotationRules";
430
+ const _RRFR = "RemoveRegionsFromReplication";
431
+ const _RRFRR = "RemoveRegionsFromReplicationRequest";
432
+ const _RRFRRe = "RemoveRegionsFromReplicationResponse";
433
+ const _RRR = "RemoveReplicaRegions";
434
+ const _RRT = "ReplicaRegionType";
435
+ const _RRTo = "RotationRulesType";
436
+ const _RS = "ReplicationStatus";
437
+ const _RSLT = "ReplicationStatusListType";
438
+ const _RSR = "RestoreSecretRequest";
439
+ const _RSRe = "RestoreSecretResponse";
440
+ const _RSRo = "RotateSecretRequest";
441
+ const _RSRot = "RotateSecretResponse";
442
+ const _RST = "ReplicationStatusType";
443
+ const _RSTR = "ReplicateSecretToRegions";
444
+ const _RSTRR = "ReplicateSecretToRegionsRequest";
445
+ const _RSTRRe = "ReplicateSecretToRegionsResponse";
446
+ const _RSe = "RestoreSecret";
447
+ const _RSo = "RotateSecret";
448
+ const _RT = "RotationToken";
449
+ const _RTT = "RotationTokenType";
450
+ const _RWID = "RecoveryWindowInDays";
451
+ const _S = "Status";
452
+ const _SB = "SecretBinary";
453
+ const _SBT = "SecretBinaryType";
454
+ const _SBo = "SortBy";
455
+ const _SE = "ScheduleExpression";
456
+ const _SI = "SecretId";
457
+ const _SIL = "SecretIdList";
458
+ const _SL = "SecretList";
459
+ const _SLE = "SecretListEntry";
460
+ const _SLT = "SecretListType";
461
+ const _SM = "StatusMessage";
462
+ const _SO = "SortOrder";
463
+ const _SRTR = "StopReplicationToReplica";
464
+ const _SRTRR = "StopReplicationToReplicaRequest";
465
+ const _SRTRRt = "StopReplicationToReplicaResponse";
466
+ const _SS = "SecretString";
467
+ const _SST = "SecretStringType";
468
+ const _SV = "SecretValues";
469
+ const _SVE = "SecretValueEntry";
470
+ const _SVLE = "SecretVersionsListEntry";
471
+ const _SVLT = "SecretVersionsListType";
472
+ const _SVT = "SecretValuesType";
473
+ const _SVTS = "SecretVersionsToStages";
474
+ const _SVTSMT = "SecretVersionsToStagesMapType";
475
+ const _T = "Tags";
476
+ const _TK = "TagKeys";
477
+ const _TLT = "TagListType";
478
+ const _TR = "TagResource";
479
+ const _TRR = "TagResourceRequest";
480
+ const _Ta = "Tag";
481
+ const _Ty = "Type";
482
+ const _UR = "UntagResource";
483
+ const _URR = "UntagResourceRequest";
484
+ const _US = "UpdateSecret";
485
+ const _USR = "UpdateSecretRequest";
486
+ const _USRp = "UpdateSecretResponse";
487
+ const _USVS = "UpdateSecretVersionStage";
488
+ const _USVSR = "UpdateSecretVersionStageRequest";
489
+ const _USVSRp = "UpdateSecretVersionStageResponse";
490
+ const _V = "Value";
491
+ const _VE = "ValidationErrors";
492
+ const _VEE = "ValidationErrorsEntry";
493
+ const _VET = "ValidationErrorsType";
494
+ const _VI = "VersionId";
495
+ const _VITS = "VersionIdsToStages";
496
+ const _VRP = "ValidateResourcePolicy";
497
+ const _VRPR = "ValidateResourcePolicyRequest";
498
+ const _VRPRa = "ValidateResourcePolicyResponse";
499
+ const _VS = "VersionStage";
500
+ const _VSe = "VersionStages";
501
+ const _Va = "Values";
502
+ const _Ve = "Versions";
503
+ const _c = "client";
504
+ const _e = "error";
505
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.secretsmanager";
506
+ const _se = "server";
507
+ const n0 = "com.amazonaws.secretsmanager";
508
+ const _s_registry = TypeRegistry.for(_s);
509
+ var SecretsManagerServiceException$ = [-3, _s, "SecretsManagerServiceException", 0, [], []];
510
+ _s_registry.registerError(SecretsManagerServiceException$, SecretsManagerServiceException);
511
+ const n0_registry = TypeRegistry.for(n0);
512
+ var DecryptionFailure$ = [-3, n0, _DF,
513
+ { [_e]: _c },
514
+ [_M],
515
+ [0]
516
+ ];
517
+ n0_registry.registerError(DecryptionFailure$, DecryptionFailure);
518
+ var EncryptionFailure$ = [-3, n0, _EF,
519
+ { [_e]: _c },
520
+ [_M],
521
+ [0]
522
+ ];
523
+ n0_registry.registerError(EncryptionFailure$, EncryptionFailure);
524
+ var InternalServiceError$ = [-3, n0, _ISE,
525
+ { [_e]: _se },
526
+ [_M],
527
+ [0]
528
+ ];
529
+ n0_registry.registerError(InternalServiceError$, InternalServiceError);
530
+ var InvalidNextTokenException$ = [-3, n0, _INTE,
531
+ { [_e]: _c },
532
+ [_M],
533
+ [0]
534
+ ];
535
+ n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
536
+ var InvalidParameterException$ = [-3, n0, _IPE,
537
+ { [_e]: _c },
538
+ [_M],
539
+ [0]
540
+ ];
541
+ n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
542
+ var InvalidRequestException$ = [-3, n0, _IRE,
543
+ { [_e]: _c },
544
+ [_M],
545
+ [0]
546
+ ];
547
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
548
+ var LimitExceededException$ = [-3, n0, _LEE,
549
+ { [_e]: _c },
550
+ [_M],
551
+ [0]
552
+ ];
553
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
554
+ var MalformedPolicyDocumentException$ = [-3, n0, _MPDE,
555
+ { [_e]: _c },
556
+ [_M],
557
+ [0]
558
+ ];
559
+ n0_registry.registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
560
+ var PreconditionNotMetException$ = [-3, n0, _PNME,
561
+ { [_e]: _c },
562
+ [_M],
563
+ [0]
564
+ ];
565
+ n0_registry.registerError(PreconditionNotMetException$, PreconditionNotMetException);
566
+ var PublicPolicyException$ = [-3, n0, _PPE,
567
+ { [_e]: _c },
568
+ [_M],
569
+ [0]
570
+ ];
571
+ n0_registry.registerError(PublicPolicyException$, PublicPolicyException);
572
+ var ResourceExistsException$ = [-3, n0, _REE,
573
+ { [_e]: _c },
574
+ [_M],
575
+ [0]
576
+ ];
577
+ n0_registry.registerError(ResourceExistsException$, ResourceExistsException);
578
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
579
+ { [_e]: _c },
580
+ [_M],
581
+ [0]
582
+ ];
583
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
584
+ const errorTypeRegistries = [
585
+ _s_registry,
586
+ n0_registry,
587
+ ];
588
+ var RandomPasswordType = [0, n0, _RPT, 8, 0];
589
+ var RotationTokenType = [0, n0, _RTT, 8, 0];
590
+ var SecretBinaryType = [0, n0, _SBT, 8, 21];
591
+ var SecretStringType = [0, n0, _SST, 8, 0];
592
+ var APIErrorType$ = [3, n0, _APIET,
593
+ 0,
594
+ [_SI, _EC, _M],
595
+ [0, 0, 0]
596
+ ];
597
+ var BatchGetSecretValueRequest$ = [3, n0, _BGSVR,
598
+ 0,
599
+ [_SIL, _F, _MR, _NT],
600
+ [64 | 0, () => FiltersListType, 1, 0]
601
+ ];
602
+ var BatchGetSecretValueResponse$ = [3, n0, _BGSVRa,
603
+ 0,
604
+ [_SV, _NT, _E],
605
+ [[() => SecretValuesType, 0], 0, () => APIErrorListType]
606
+ ];
607
+ var CancelRotateSecretRequest$ = [3, n0, _CRSR,
608
+ 0,
609
+ [_SI],
610
+ [0], 1
611
+ ];
612
+ var CancelRotateSecretResponse$ = [3, n0, _CRSRa,
613
+ 0,
614
+ [_ARN, _N, _VI],
615
+ [0, 0, 0]
616
+ ];
617
+ var CreateSecretRequest$ = [3, n0, _CSR,
618
+ 0,
619
+ [_N, _CRT, _D, _KKI, _SB, _SS, _T, _ARR, _FORS, _Ty],
620
+ [0, [0, 4], 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], () => TagListType, () => AddReplicaRegionListType, 2, 0], 1
621
+ ];
622
+ var CreateSecretResponse$ = [3, n0, _CSRr,
623
+ 0,
624
+ [_ARN, _N, _VI, _RS],
625
+ [0, 0, 0, () => ReplicationStatusListType]
626
+ ];
627
+ var DeleteResourcePolicyRequest$ = [3, n0, _DRPR,
628
+ 0,
629
+ [_SI],
630
+ [0], 1
631
+ ];
632
+ var DeleteResourcePolicyResponse$ = [3, n0, _DRPRe,
633
+ 0,
634
+ [_ARN, _N],
635
+ [0, 0]
636
+ ];
637
+ var DeleteSecretRequest$ = [3, n0, _DSR,
638
+ 0,
639
+ [_SI, _RWID, _FDWR],
640
+ [0, 1, 2], 1
641
+ ];
642
+ var DeleteSecretResponse$ = [3, n0, _DSRe,
643
+ 0,
644
+ [_ARN, _N, _DD],
645
+ [0, 0, 4]
646
+ ];
647
+ var DescribeSecretRequest$ = [3, n0, _DSRes,
648
+ 0,
649
+ [_SI],
650
+ [0], 1
651
+ ];
652
+ var DescribeSecretResponse$ = [3, n0, _DSResc,
653
+ 0,
654
+ [_ARN, _N, _Ty, _D, _KKI, _RE, _RLARN, _RR, _ESRM, _ESRRA, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _VITS, _OS, _CD, _PR, _RS],
655
+ [0, 0, 0, 0, 0, 2, 0, () => RotationRulesType$, () => ExternalSecretRotationMetadataType, 0, 4, 4, 4, 4, 4, () => TagListType, [2, n0, _SVTSMT, 0, 0, 64 | 0], 0, 4, 0, () => ReplicationStatusListType]
656
+ ];
657
+ var ExternalSecretRotationMetadataItem$ = [3, n0, _ESRMI,
658
+ 0,
659
+ [_K, _V],
660
+ [0, 0]
661
+ ];
662
+ var Filter$ = [3, n0, _Fi,
663
+ 0,
664
+ [_K, _Va],
665
+ [0, 64 | 0]
666
+ ];
667
+ var GetRandomPasswordRequest$ = [3, n0, _GRPR,
668
+ 0,
669
+ [_PL, _ECx, _EN, _EP, _EU, _EL, _IS, _REIT],
670
+ [1, 0, 2, 2, 2, 2, 2, 2]
671
+ ];
672
+ var GetRandomPasswordResponse$ = [3, n0, _GRPRe,
673
+ 0,
674
+ [_RP],
675
+ [[() => RandomPasswordType, 0]]
676
+ ];
677
+ var GetResourcePolicyRequest$ = [3, n0, _GRPRet,
678
+ 0,
679
+ [_SI],
680
+ [0], 1
681
+ ];
682
+ var GetResourcePolicyResponse$ = [3, n0, _GRPRete,
683
+ 0,
684
+ [_ARN, _N, _RPe],
685
+ [0, 0, 0]
686
+ ];
687
+ var GetSecretValueRequest$ = [3, n0, _GSVR,
688
+ 0,
689
+ [_SI, _VI, _VS],
690
+ [0, 0, 0], 1
691
+ ];
692
+ var GetSecretValueResponse$ = [3, n0, _GSVRe,
693
+ 0,
694
+ [_ARN, _N, _VI, _SB, _SS, _VSe, _CD],
695
+ [0, 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], 64 | 0, 4]
696
+ ];
697
+ var ListSecretsRequest$ = [3, n0, _LSR,
698
+ 0,
699
+ [_IPD, _MR, _NT, _F, _SO, _SBo],
700
+ [2, 1, 0, () => FiltersListType, 0, 0]
701
+ ];
702
+ var ListSecretsResponse$ = [3, n0, _LSRi,
703
+ 0,
704
+ [_SL, _NT],
705
+ [() => SecretListType, 0]
706
+ ];
707
+ var ListSecretVersionIdsRequest$ = [3, n0, _LSVIR,
708
+ 0,
709
+ [_SI, _MR, _NT, _ID],
710
+ [0, 1, 0, 2], 1
711
+ ];
712
+ var ListSecretVersionIdsResponse$ = [3, n0, _LSVIRi,
713
+ 0,
714
+ [_Ve, _NT, _ARN, _N],
715
+ [() => SecretVersionsListType, 0, 0, 0]
716
+ ];
717
+ var PutResourcePolicyRequest$ = [3, n0, _PRPR,
718
+ 0,
719
+ [_SI, _RPe, _BPP],
720
+ [0, 0, 2], 2
721
+ ];
722
+ var PutResourcePolicyResponse$ = [3, n0, _PRPRu,
723
+ 0,
724
+ [_ARN, _N],
725
+ [0, 0]
726
+ ];
727
+ var PutSecretValueRequest$ = [3, n0, _PSVR,
728
+ 0,
729
+ [_SI, _CRT, _SB, _SS, _VSe, _RT],
730
+ [0, [0, 4], [() => SecretBinaryType, 0], [() => SecretStringType, 0], 64 | 0, [() => RotationTokenType, 0]], 1
731
+ ];
732
+ var PutSecretValueResponse$ = [3, n0, _PSVRu,
733
+ 0,
734
+ [_ARN, _N, _VI, _VSe],
735
+ [0, 0, 0, 64 | 0]
736
+ ];
737
+ var RemoveRegionsFromReplicationRequest$ = [3, n0, _RRFRR,
738
+ 0,
739
+ [_SI, _RRR],
740
+ [0, 64 | 0], 2
741
+ ];
742
+ var RemoveRegionsFromReplicationResponse$ = [3, n0, _RRFRRe,
743
+ 0,
744
+ [_ARN, _RS],
745
+ [0, () => ReplicationStatusListType]
746
+ ];
747
+ var ReplicaRegionType$ = [3, n0, _RRT,
748
+ 0,
749
+ [_R, _KKI],
750
+ [0, 0]
751
+ ];
752
+ var ReplicateSecretToRegionsRequest$ = [3, n0, _RSTRR,
753
+ 0,
754
+ [_SI, _ARR, _FORS],
755
+ [0, () => AddReplicaRegionListType, 2], 2
756
+ ];
757
+ var ReplicateSecretToRegionsResponse$ = [3, n0, _RSTRRe,
758
+ 0,
759
+ [_ARN, _RS],
760
+ [0, () => ReplicationStatusListType]
761
+ ];
762
+ var ReplicationStatusType$ = [3, n0, _RST,
763
+ 0,
764
+ [_R, _KKI, _S, _SM, _LAD],
765
+ [0, 0, 0, 0, 4]
766
+ ];
767
+ var RestoreSecretRequest$ = [3, n0, _RSR,
768
+ 0,
769
+ [_SI],
770
+ [0], 1
771
+ ];
772
+ var RestoreSecretResponse$ = [3, n0, _RSRe,
773
+ 0,
774
+ [_ARN, _N],
775
+ [0, 0]
776
+ ];
777
+ var RotateSecretRequest$ = [3, n0, _RSRo,
778
+ 0,
779
+ [_SI, _CRT, _RLARN, _RR, _ESRM, _ESRRA, _RI],
780
+ [0, [0, 4], 0, () => RotationRulesType$, () => ExternalSecretRotationMetadataType, 0, 2], 1
781
+ ];
782
+ var RotateSecretResponse$ = [3, n0, _RSRot,
783
+ 0,
784
+ [_ARN, _N, _VI],
785
+ [0, 0, 0]
786
+ ];
787
+ var RotationRulesType$ = [3, n0, _RRTo,
788
+ 0,
789
+ [_AAD, _Du, _SE],
790
+ [1, 0, 0]
791
+ ];
792
+ var SecretListEntry$ = [3, n0, _SLE,
793
+ 0,
794
+ [_ARN, _N, _Ty, _D, _KKI, _RE, _RLARN, _RR, _ESRM, _ESRRA, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _SVTS, _OS, _CD, _PR],
795
+ [0, 0, 0, 0, 0, 2, 0, () => RotationRulesType$, () => ExternalSecretRotationMetadataType, 0, 4, 4, 4, 4, 4, () => TagListType, [2, n0, _SVTSMT, 0, 0, 64 | 0], 0, 4, 0]
796
+ ];
797
+ var SecretValueEntry$ = [3, n0, _SVE,
798
+ 0,
799
+ [_ARN, _N, _VI, _SB, _SS, _VSe, _CD],
800
+ [0, 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], 64 | 0, 4]
801
+ ];
802
+ var SecretVersionsListEntry$ = [3, n0, _SVLE,
803
+ 0,
804
+ [_VI, _VSe, _LAD, _CD, _KKIm],
805
+ [0, 64 | 0, 4, 4, 64 | 0]
806
+ ];
807
+ var StopReplicationToReplicaRequest$ = [3, n0, _SRTRR,
808
+ 0,
809
+ [_SI],
810
+ [0], 1
811
+ ];
812
+ var StopReplicationToReplicaResponse$ = [3, n0, _SRTRRt,
813
+ 0,
814
+ [_ARN],
815
+ [0]
816
+ ];
817
+ var Tag$ = [3, n0, _Ta,
818
+ 0,
819
+ [_K, _V],
820
+ [0, 0]
821
+ ];
822
+ var TagResourceRequest$ = [3, n0, _TRR,
823
+ 0,
824
+ [_SI, _T],
825
+ [0, () => TagListType], 2
826
+ ];
827
+ var UntagResourceRequest$ = [3, n0, _URR,
828
+ 0,
829
+ [_SI, _TK],
830
+ [0, 64 | 0], 2
831
+ ];
832
+ var UpdateSecretRequest$ = [3, n0, _USR,
833
+ 0,
834
+ [_SI, _CRT, _D, _KKI, _SB, _SS, _Ty],
835
+ [0, [0, 4], 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], 0], 1
836
+ ];
837
+ var UpdateSecretResponse$ = [3, n0, _USRp,
838
+ 0,
839
+ [_ARN, _N, _VI],
840
+ [0, 0, 0]
841
+ ];
842
+ var UpdateSecretVersionStageRequest$ = [3, n0, _USVSR,
843
+ 0,
844
+ [_SI, _VS, _RFVI, _MTVI],
845
+ [0, 0, 0, 0], 2
846
+ ];
847
+ var UpdateSecretVersionStageResponse$ = [3, n0, _USVSRp,
848
+ 0,
849
+ [_ARN, _N],
850
+ [0, 0]
851
+ ];
852
+ var ValidateResourcePolicyRequest$ = [3, n0, _VRPR,
853
+ 0,
854
+ [_RPe, _SI],
855
+ [0, 0], 1
856
+ ];
857
+ var ValidateResourcePolicyResponse$ = [3, n0, _VRPRa,
858
+ 0,
859
+ [_PVP, _VE],
860
+ [2, () => ValidationErrorsType]
861
+ ];
862
+ var ValidationErrorsEntry$ = [3, n0, _VEE,
863
+ 0,
864
+ [_CN, _EM],
865
+ [0, 0]
866
+ ];
867
+ var __Unit = "unit";
868
+ var AddReplicaRegionListType = [1, n0, _ARRLT,
869
+ 0, () => ReplicaRegionType$
870
+ ];
871
+ var APIErrorListType = [1, n0, _APIELT,
872
+ 0, () => APIErrorType$
873
+ ];
874
+ var ExternalSecretRotationMetadataType = [1, n0, _ESRMT,
875
+ 0, () => ExternalSecretRotationMetadataItem$
876
+ ];
877
+ var FiltersListType = [1, n0, _FLT,
878
+ 0, () => Filter$
879
+ ];
880
+ var ReplicationStatusListType = [1, n0, _RSLT,
881
+ 0, () => ReplicationStatusType$
882
+ ];
883
+ var SecretListType = [1, n0, _SLT,
884
+ 0, () => SecretListEntry$
885
+ ];
886
+ var SecretValuesType = [1, n0, _SVT,
887
+ 0, [() => SecretValueEntry$,
888
+ 0]
889
+ ];
890
+ var SecretVersionsListType = [1, n0, _SVLT,
891
+ 0, () => SecretVersionsListEntry$
892
+ ];
893
+ var TagListType = [1, n0, _TLT,
894
+ 0, () => Tag$
895
+ ];
896
+ var ValidationErrorsType = [1, n0, _VET,
897
+ 0, () => ValidationErrorsEntry$
898
+ ];
899
+ var BatchGetSecretValue$ = [9, n0, _BGSV,
900
+ 0, () => BatchGetSecretValueRequest$, () => BatchGetSecretValueResponse$
901
+ ];
902
+ var CancelRotateSecret$ = [9, n0, _CRS,
903
+ 0, () => CancelRotateSecretRequest$, () => CancelRotateSecretResponse$
904
+ ];
905
+ var CreateSecret$ = [9, n0, _CS,
906
+ 0, () => CreateSecretRequest$, () => CreateSecretResponse$
907
+ ];
908
+ var DeleteResourcePolicy$ = [9, n0, _DRP,
909
+ 0, () => DeleteResourcePolicyRequest$, () => DeleteResourcePolicyResponse$
910
+ ];
911
+ var DeleteSecret$ = [9, n0, _DS,
912
+ 0, () => DeleteSecretRequest$, () => DeleteSecretResponse$
913
+ ];
914
+ var DescribeSecret$ = [9, n0, _DSe,
915
+ 0, () => DescribeSecretRequest$, () => DescribeSecretResponse$
916
+ ];
917
+ var GetRandomPassword$ = [9, n0, _GRP,
918
+ 0, () => GetRandomPasswordRequest$, () => GetRandomPasswordResponse$
919
+ ];
920
+ var GetResourcePolicy$ = [9, n0, _GRPe,
921
+ 0, () => GetResourcePolicyRequest$, () => GetResourcePolicyResponse$
922
+ ];
923
+ var GetSecretValue$ = [9, n0, _GSV,
924
+ 0, () => GetSecretValueRequest$, () => GetSecretValueResponse$
925
+ ];
926
+ var ListSecrets$ = [9, n0, _LS,
927
+ 0, () => ListSecretsRequest$, () => ListSecretsResponse$
928
+ ];
929
+ var ListSecretVersionIds$ = [9, n0, _LSVI,
930
+ 0, () => ListSecretVersionIdsRequest$, () => ListSecretVersionIdsResponse$
931
+ ];
932
+ var PutResourcePolicy$ = [9, n0, _PRP,
933
+ 0, () => PutResourcePolicyRequest$, () => PutResourcePolicyResponse$
934
+ ];
935
+ var PutSecretValue$ = [9, n0, _PSV,
936
+ 0, () => PutSecretValueRequest$, () => PutSecretValueResponse$
937
+ ];
938
+ var RemoveRegionsFromReplication$ = [9, n0, _RRFR,
939
+ 0, () => RemoveRegionsFromReplicationRequest$, () => RemoveRegionsFromReplicationResponse$
940
+ ];
941
+ var ReplicateSecretToRegions$ = [9, n0, _RSTR,
942
+ 0, () => ReplicateSecretToRegionsRequest$, () => ReplicateSecretToRegionsResponse$
943
+ ];
944
+ var RestoreSecret$ = [9, n0, _RSe,
945
+ 0, () => RestoreSecretRequest$, () => RestoreSecretResponse$
946
+ ];
947
+ var RotateSecret$ = [9, n0, _RSo,
948
+ 0, () => RotateSecretRequest$, () => RotateSecretResponse$
949
+ ];
950
+ var StopReplicationToReplica$ = [9, n0, _SRTR,
951
+ 0, () => StopReplicationToReplicaRequest$, () => StopReplicationToReplicaResponse$
952
+ ];
953
+ var TagResource$ = [9, n0, _TR,
954
+ 0, () => TagResourceRequest$, () => __Unit
955
+ ];
956
+ var UntagResource$ = [9, n0, _UR,
957
+ 0, () => UntagResourceRequest$, () => __Unit
958
+ ];
959
+ var UpdateSecret$ = [9, n0, _US,
960
+ 0, () => UpdateSecretRequest$, () => UpdateSecretResponse$
961
+ ];
962
+ var UpdateSecretVersionStage$ = [9, n0, _USVS,
963
+ 0, () => UpdateSecretVersionStageRequest$, () => UpdateSecretVersionStageResponse$
964
+ ];
965
+ var ValidateResourcePolicy$ = [9, n0, _VRP,
966
+ 0, () => ValidateResourcePolicyRequest$, () => ValidateResourcePolicyResponse$
967
+ ];
968
+
969
+ const getRuntimeConfig$1 = (config) => {
970
+ return {
971
+ apiVersion: "2017-10-17",
972
+ base64Decoder: config?.base64Decoder ?? fromBase64,
973
+ base64Encoder: config?.base64Encoder ?? toBase64,
974
+ disableHostPrefix: config?.disableHostPrefix ?? false,
975
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
976
+ extensions: config?.extensions ?? [],
977
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSecretsManagerHttpAuthSchemeProvider,
978
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
979
+ {
980
+ schemeId: "aws.auth#sigv4",
981
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
982
+ signer: new AwsSdkSigV4Signer(),
983
+ },
984
+ ],
985
+ logger: config?.logger ?? new NoOpLogger(),
986
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
987
+ protocolSettings: config?.protocolSettings ?? {
988
+ defaultNamespace: "com.amazonaws.secretsmanager",
989
+ errorTypeRegistries,
990
+ version: "2017-10-17",
991
+ serviceTarget: "secretsmanager",
992
+ },
993
+ serviceId: config?.serviceId ?? "Secrets Manager",
994
+ urlParser: config?.urlParser ?? parseUrl,
995
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
996
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
997
+ };
998
+ };
999
+
1000
+ const getRuntimeConfig = (config) => {
1001
+ emitWarningIfUnsupportedVersion(process.version);
1002
+ const defaultsMode = resolveDefaultsModeConfig(config);
1003
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1004
+ const clientSharedValues = getRuntimeConfig$1(config);
1005
+ emitWarningIfUnsupportedVersion$1(process.version);
1006
+ const loaderConfig = {
1007
+ profile: config?.profile,
1008
+ logger: clientSharedValues.logger,
1009
+ };
1010
+ return {
1011
+ ...clientSharedValues,
1012
+ ...config,
1013
+ runtime: "node",
1014
+ defaultsMode,
1015
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1016
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1017
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1018
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1019
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1020
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1021
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1022
+ retryMode: config?.retryMode ??
1023
+ loadConfig({
1024
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1025
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1026
+ }, config),
1027
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1028
+ streamCollector: config?.streamCollector ?? streamCollector,
1029
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1030
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1031
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1032
+ };
1033
+ };
1034
+
34
1035
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
1036
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
1037
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -452,35 +1453,140 @@ const SortOrderType = {
452
1453
  desc: "desc",
453
1454
  };
454
1455
 
1456
+ exports.APIErrorType$ = APIErrorType$;
1457
+ exports.BatchGetSecretValue$ = BatchGetSecretValue$;
455
1458
  exports.BatchGetSecretValueCommand = BatchGetSecretValueCommand;
1459
+ exports.BatchGetSecretValueRequest$ = BatchGetSecretValueRequest$;
1460
+ exports.BatchGetSecretValueResponse$ = BatchGetSecretValueResponse$;
1461
+ exports.CancelRotateSecret$ = CancelRotateSecret$;
456
1462
  exports.CancelRotateSecretCommand = CancelRotateSecretCommand;
1463
+ exports.CancelRotateSecretRequest$ = CancelRotateSecretRequest$;
1464
+ exports.CancelRotateSecretResponse$ = CancelRotateSecretResponse$;
1465
+ exports.CreateSecret$ = CreateSecret$;
457
1466
  exports.CreateSecretCommand = CreateSecretCommand;
1467
+ exports.CreateSecretRequest$ = CreateSecretRequest$;
1468
+ exports.CreateSecretResponse$ = CreateSecretResponse$;
1469
+ exports.DecryptionFailure = DecryptionFailure;
1470
+ exports.DecryptionFailure$ = DecryptionFailure$;
1471
+ exports.DeleteResourcePolicy$ = DeleteResourcePolicy$;
458
1472
  exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
1473
+ exports.DeleteResourcePolicyRequest$ = DeleteResourcePolicyRequest$;
1474
+ exports.DeleteResourcePolicyResponse$ = DeleteResourcePolicyResponse$;
1475
+ exports.DeleteSecret$ = DeleteSecret$;
459
1476
  exports.DeleteSecretCommand = DeleteSecretCommand;
1477
+ exports.DeleteSecretRequest$ = DeleteSecretRequest$;
1478
+ exports.DeleteSecretResponse$ = DeleteSecretResponse$;
1479
+ exports.DescribeSecret$ = DescribeSecret$;
460
1480
  exports.DescribeSecretCommand = DescribeSecretCommand;
1481
+ exports.DescribeSecretRequest$ = DescribeSecretRequest$;
1482
+ exports.DescribeSecretResponse$ = DescribeSecretResponse$;
1483
+ exports.EncryptionFailure = EncryptionFailure;
1484
+ exports.EncryptionFailure$ = EncryptionFailure$;
1485
+ exports.ExternalSecretRotationMetadataItem$ = ExternalSecretRotationMetadataItem$;
1486
+ exports.Filter$ = Filter$;
461
1487
  exports.FilterNameStringType = FilterNameStringType;
1488
+ exports.GetRandomPassword$ = GetRandomPassword$;
462
1489
  exports.GetRandomPasswordCommand = GetRandomPasswordCommand;
1490
+ exports.GetRandomPasswordRequest$ = GetRandomPasswordRequest$;
1491
+ exports.GetRandomPasswordResponse$ = GetRandomPasswordResponse$;
1492
+ exports.GetResourcePolicy$ = GetResourcePolicy$;
463
1493
  exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
1494
+ exports.GetResourcePolicyRequest$ = GetResourcePolicyRequest$;
1495
+ exports.GetResourcePolicyResponse$ = GetResourcePolicyResponse$;
1496
+ exports.GetSecretValue$ = GetSecretValue$;
464
1497
  exports.GetSecretValueCommand = GetSecretValueCommand;
1498
+ exports.GetSecretValueRequest$ = GetSecretValueRequest$;
1499
+ exports.GetSecretValueResponse$ = GetSecretValueResponse$;
1500
+ exports.InternalServiceError = InternalServiceError;
1501
+ exports.InternalServiceError$ = InternalServiceError$;
1502
+ exports.InvalidNextTokenException = InvalidNextTokenException;
1503
+ exports.InvalidNextTokenException$ = InvalidNextTokenException$;
1504
+ exports.InvalidParameterException = InvalidParameterException;
1505
+ exports.InvalidParameterException$ = InvalidParameterException$;
1506
+ exports.InvalidRequestException = InvalidRequestException;
1507
+ exports.InvalidRequestException$ = InvalidRequestException$;
1508
+ exports.LimitExceededException = LimitExceededException;
1509
+ exports.LimitExceededException$ = LimitExceededException$;
1510
+ exports.ListSecretVersionIds$ = ListSecretVersionIds$;
465
1511
  exports.ListSecretVersionIdsCommand = ListSecretVersionIdsCommand;
1512
+ exports.ListSecretVersionIdsRequest$ = ListSecretVersionIdsRequest$;
1513
+ exports.ListSecretVersionIdsResponse$ = ListSecretVersionIdsResponse$;
1514
+ exports.ListSecrets$ = ListSecrets$;
466
1515
  exports.ListSecretsCommand = ListSecretsCommand;
1516
+ exports.ListSecretsRequest$ = ListSecretsRequest$;
1517
+ exports.ListSecretsResponse$ = ListSecretsResponse$;
1518
+ exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
1519
+ exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
1520
+ exports.PreconditionNotMetException = PreconditionNotMetException;
1521
+ exports.PreconditionNotMetException$ = PreconditionNotMetException$;
1522
+ exports.PublicPolicyException = PublicPolicyException;
1523
+ exports.PublicPolicyException$ = PublicPolicyException$;
1524
+ exports.PutResourcePolicy$ = PutResourcePolicy$;
467
1525
  exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
1526
+ exports.PutResourcePolicyRequest$ = PutResourcePolicyRequest$;
1527
+ exports.PutResourcePolicyResponse$ = PutResourcePolicyResponse$;
1528
+ exports.PutSecretValue$ = PutSecretValue$;
468
1529
  exports.PutSecretValueCommand = PutSecretValueCommand;
1530
+ exports.PutSecretValueRequest$ = PutSecretValueRequest$;
1531
+ exports.PutSecretValueResponse$ = PutSecretValueResponse$;
1532
+ exports.RemoveRegionsFromReplication$ = RemoveRegionsFromReplication$;
469
1533
  exports.RemoveRegionsFromReplicationCommand = RemoveRegionsFromReplicationCommand;
1534
+ exports.RemoveRegionsFromReplicationRequest$ = RemoveRegionsFromReplicationRequest$;
1535
+ exports.RemoveRegionsFromReplicationResponse$ = RemoveRegionsFromReplicationResponse$;
1536
+ exports.ReplicaRegionType$ = ReplicaRegionType$;
1537
+ exports.ReplicateSecretToRegions$ = ReplicateSecretToRegions$;
470
1538
  exports.ReplicateSecretToRegionsCommand = ReplicateSecretToRegionsCommand;
1539
+ exports.ReplicateSecretToRegionsRequest$ = ReplicateSecretToRegionsRequest$;
1540
+ exports.ReplicateSecretToRegionsResponse$ = ReplicateSecretToRegionsResponse$;
1541
+ exports.ReplicationStatusType$ = ReplicationStatusType$;
1542
+ exports.ResourceExistsException = ResourceExistsException;
1543
+ exports.ResourceExistsException$ = ResourceExistsException$;
1544
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1545
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1546
+ exports.RestoreSecret$ = RestoreSecret$;
471
1547
  exports.RestoreSecretCommand = RestoreSecretCommand;
1548
+ exports.RestoreSecretRequest$ = RestoreSecretRequest$;
1549
+ exports.RestoreSecretResponse$ = RestoreSecretResponse$;
1550
+ exports.RotateSecret$ = RotateSecret$;
472
1551
  exports.RotateSecretCommand = RotateSecretCommand;
1552
+ exports.RotateSecretRequest$ = RotateSecretRequest$;
1553
+ exports.RotateSecretResponse$ = RotateSecretResponse$;
1554
+ exports.RotationRulesType$ = RotationRulesType$;
1555
+ exports.SecretListEntry$ = SecretListEntry$;
1556
+ exports.SecretValueEntry$ = SecretValueEntry$;
1557
+ exports.SecretVersionsListEntry$ = SecretVersionsListEntry$;
473
1558
  exports.SecretsManager = SecretsManager;
474
1559
  exports.SecretsManagerClient = SecretsManagerClient;
1560
+ exports.SecretsManagerServiceException = SecretsManagerServiceException;
1561
+ exports.SecretsManagerServiceException$ = SecretsManagerServiceException$;
475
1562
  exports.SortByType = SortByType;
476
1563
  exports.SortOrderType = SortOrderType;
477
1564
  exports.StatusType = StatusType;
1565
+ exports.StopReplicationToReplica$ = StopReplicationToReplica$;
478
1566
  exports.StopReplicationToReplicaCommand = StopReplicationToReplicaCommand;
1567
+ exports.StopReplicationToReplicaRequest$ = StopReplicationToReplicaRequest$;
1568
+ exports.StopReplicationToReplicaResponse$ = StopReplicationToReplicaResponse$;
1569
+ exports.Tag$ = Tag$;
1570
+ exports.TagResource$ = TagResource$;
479
1571
  exports.TagResourceCommand = TagResourceCommand;
1572
+ exports.TagResourceRequest$ = TagResourceRequest$;
1573
+ exports.UntagResource$ = UntagResource$;
480
1574
  exports.UntagResourceCommand = UntagResourceCommand;
1575
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1576
+ exports.UpdateSecret$ = UpdateSecret$;
481
1577
  exports.UpdateSecretCommand = UpdateSecretCommand;
1578
+ exports.UpdateSecretRequest$ = UpdateSecretRequest$;
1579
+ exports.UpdateSecretResponse$ = UpdateSecretResponse$;
1580
+ exports.UpdateSecretVersionStage$ = UpdateSecretVersionStage$;
482
1581
  exports.UpdateSecretVersionStageCommand = UpdateSecretVersionStageCommand;
1582
+ exports.UpdateSecretVersionStageRequest$ = UpdateSecretVersionStageRequest$;
1583
+ exports.UpdateSecretVersionStageResponse$ = UpdateSecretVersionStageResponse$;
1584
+ exports.ValidateResourcePolicy$ = ValidateResourcePolicy$;
483
1585
  exports.ValidateResourcePolicyCommand = ValidateResourcePolicyCommand;
1586
+ exports.ValidateResourcePolicyRequest$ = ValidateResourcePolicyRequest$;
1587
+ exports.ValidateResourcePolicyResponse$ = ValidateResourcePolicyResponse$;
1588
+ exports.ValidationErrorsEntry$ = ValidationErrorsEntry$;
1589
+ exports.errorTypeRegistries = errorTypeRegistries;
484
1590
  exports.paginateBatchGetSecretValue = paginateBatchGetSecretValue;
485
1591
  exports.paginateListSecretVersionIds = paginateListSecretVersionIds;
486
1592
  exports.paginateListSecrets = paginateListSecrets;