@aws-sdk/client-secrets-manager 3.927.0 → 3.928.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 (47) hide show
  1. package/dist-cjs/index.js +808 -1068
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/SecretsManagerClient.js +2 -0
  4. package/dist-es/commands/BatchGetSecretValueCommand.js +3 -10
  5. package/dist-es/commands/CancelRotateSecretCommand.js +3 -9
  6. package/dist-es/commands/CreateSecretCommand.js +3 -10
  7. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  8. package/dist-es/commands/DeleteSecretCommand.js +3 -9
  9. package/dist-es/commands/DescribeSecretCommand.js +3 -9
  10. package/dist-es/commands/GetRandomPasswordCommand.js +3 -10
  11. package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
  12. package/dist-es/commands/GetSecretValueCommand.js +3 -10
  13. package/dist-es/commands/ListSecretVersionIdsCommand.js +3 -9
  14. package/dist-es/commands/ListSecretsCommand.js +3 -9
  15. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  16. package/dist-es/commands/PutSecretValueCommand.js +3 -10
  17. package/dist-es/commands/RemoveRegionsFromReplicationCommand.js +3 -9
  18. package/dist-es/commands/ReplicateSecretToRegionsCommand.js +3 -9
  19. package/dist-es/commands/RestoreSecretCommand.js +3 -9
  20. package/dist-es/commands/RotateSecretCommand.js +3 -9
  21. package/dist-es/commands/StopReplicationToReplicaCommand.js +3 -9
  22. package/dist-es/commands/TagResourceCommand.js +3 -9
  23. package/dist-es/commands/UntagResourceCommand.js +3 -9
  24. package/dist-es/commands/UpdateSecretCommand.js +3 -10
  25. package/dist-es/commands/UpdateSecretVersionStageCommand.js +3 -9
  26. package/dist-es/commands/ValidateResourcePolicyCommand.js +3 -9
  27. package/dist-es/models/models_0.js +0 -35
  28. package/dist-es/runtimeConfig.shared.js +7 -0
  29. package/dist-es/schemas/schemas_0.js +731 -0
  30. package/dist-types/SecretsManagerClient.d.ts +10 -1
  31. package/dist-types/models/models_0.d.ts +0 -28
  32. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  33. package/dist-types/runtimeConfig.d.ts +1 -0
  34. package/dist-types/runtimeConfig.native.d.ts +1 -0
  35. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  36. package/dist-types/schemas/schemas_0.d.ts +112 -0
  37. package/dist-types/ts3.4/SecretsManagerClient.d.ts +4 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +0 -21
  39. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  40. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  41. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  42. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  43. package/dist-types/ts3.4/schemas/schemas_0.d.ts +119 -0
  44. package/package.json +5 -6
  45. package/dist-es/protocols/Aws_json1_1.js +0 -834
  46. package/dist-types/protocols/Aws_json1_1.d.ts +0 -209
  47. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -281
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
- var uuid = require('@smithy/uuid');
20
18
 
21
19
  const resolveClientEndpointParameters = (options) => {
22
20
  return Object.assign(options, {
@@ -92,6 +90,7 @@ class SecretsManagerClient extends smithyClient.Client {
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
95
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -111,12 +110,12 @@ class SecretsManagerClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class SecretsManagerServiceException extends smithyClient.ServiceException {
113
+ let SecretsManagerServiceException$1 = class SecretsManagerServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, SecretsManagerServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
120
  const FilterNameStringType = {
122
121
  all: "all",
@@ -127,7 +126,7 @@ const FilterNameStringType = {
127
126
  tag_key: "tag-key",
128
127
  tag_value: "tag-value",
129
128
  };
130
- class DecryptionFailure extends SecretsManagerServiceException {
129
+ let DecryptionFailure$1 = class DecryptionFailure extends SecretsManagerServiceException$1 {
131
130
  name = "DecryptionFailure";
132
131
  $fault = "client";
133
132
  Message;
@@ -140,8 +139,8 @@ class DecryptionFailure extends SecretsManagerServiceException {
140
139
  Object.setPrototypeOf(this, DecryptionFailure.prototype);
141
140
  this.Message = opts.Message;
142
141
  }
143
- }
144
- class InternalServiceError extends SecretsManagerServiceException {
142
+ };
143
+ let InternalServiceError$1 = class InternalServiceError extends SecretsManagerServiceException$1 {
145
144
  name = "InternalServiceError";
146
145
  $fault = "server";
147
146
  Message;
@@ -154,8 +153,8 @@ class InternalServiceError extends SecretsManagerServiceException {
154
153
  Object.setPrototypeOf(this, InternalServiceError.prototype);
155
154
  this.Message = opts.Message;
156
155
  }
157
- }
158
- class InvalidNextTokenException extends SecretsManagerServiceException {
156
+ };
157
+ let InvalidNextTokenException$1 = class InvalidNextTokenException extends SecretsManagerServiceException$1 {
159
158
  name = "InvalidNextTokenException";
160
159
  $fault = "client";
161
160
  Message;
@@ -168,8 +167,8 @@ class InvalidNextTokenException extends SecretsManagerServiceException {
168
167
  Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
169
168
  this.Message = opts.Message;
170
169
  }
171
- }
172
- class InvalidParameterException extends SecretsManagerServiceException {
170
+ };
171
+ let InvalidParameterException$1 = class InvalidParameterException extends SecretsManagerServiceException$1 {
173
172
  name = "InvalidParameterException";
174
173
  $fault = "client";
175
174
  Message;
@@ -182,8 +181,8 @@ class InvalidParameterException extends SecretsManagerServiceException {
182
181
  Object.setPrototypeOf(this, InvalidParameterException.prototype);
183
182
  this.Message = opts.Message;
184
183
  }
185
- }
186
- class InvalidRequestException extends SecretsManagerServiceException {
184
+ };
185
+ let InvalidRequestException$1 = class InvalidRequestException extends SecretsManagerServiceException$1 {
187
186
  name = "InvalidRequestException";
188
187
  $fault = "client";
189
188
  Message;
@@ -196,8 +195,8 @@ class InvalidRequestException extends SecretsManagerServiceException {
196
195
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
197
196
  this.Message = opts.Message;
198
197
  }
199
- }
200
- class ResourceNotFoundException extends SecretsManagerServiceException {
198
+ };
199
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SecretsManagerServiceException$1 {
201
200
  name = "ResourceNotFoundException";
202
201
  $fault = "client";
203
202
  Message;
@@ -210,13 +209,13 @@ class ResourceNotFoundException extends SecretsManagerServiceException {
210
209
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
211
210
  this.Message = opts.Message;
212
211
  }
213
- }
212
+ };
214
213
  const StatusType = {
215
214
  Failed: "Failed",
216
215
  InProgress: "InProgress",
217
216
  InSync: "InSync",
218
217
  };
219
- class EncryptionFailure extends SecretsManagerServiceException {
218
+ let EncryptionFailure$1 = class EncryptionFailure extends SecretsManagerServiceException$1 {
220
219
  name = "EncryptionFailure";
221
220
  $fault = "client";
222
221
  Message;
@@ -229,8 +228,8 @@ class EncryptionFailure extends SecretsManagerServiceException {
229
228
  Object.setPrototypeOf(this, EncryptionFailure.prototype);
230
229
  this.Message = opts.Message;
231
230
  }
232
- }
233
- class LimitExceededException extends SecretsManagerServiceException {
231
+ };
232
+ let LimitExceededException$1 = class LimitExceededException extends SecretsManagerServiceException$1 {
234
233
  name = "LimitExceededException";
235
234
  $fault = "client";
236
235
  Message;
@@ -243,8 +242,8 @@ class LimitExceededException extends SecretsManagerServiceException {
243
242
  Object.setPrototypeOf(this, LimitExceededException.prototype);
244
243
  this.Message = opts.Message;
245
244
  }
246
- }
247
- class MalformedPolicyDocumentException extends SecretsManagerServiceException {
245
+ };
246
+ let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException extends SecretsManagerServiceException$1 {
248
247
  name = "MalformedPolicyDocumentException";
249
248
  $fault = "client";
250
249
  Message;
@@ -257,8 +256,8 @@ class MalformedPolicyDocumentException extends SecretsManagerServiceException {
257
256
  Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
258
257
  this.Message = opts.Message;
259
258
  }
260
- }
261
- class PreconditionNotMetException extends SecretsManagerServiceException {
259
+ };
260
+ let PreconditionNotMetException$1 = class PreconditionNotMetException extends SecretsManagerServiceException$1 {
262
261
  name = "PreconditionNotMetException";
263
262
  $fault = "client";
264
263
  Message;
@@ -271,8 +270,8 @@ class PreconditionNotMetException extends SecretsManagerServiceException {
271
270
  Object.setPrototypeOf(this, PreconditionNotMetException.prototype);
272
271
  this.Message = opts.Message;
273
272
  }
274
- }
275
- class ResourceExistsException extends SecretsManagerServiceException {
273
+ };
274
+ let ResourceExistsException$1 = class ResourceExistsException extends SecretsManagerServiceException$1 {
276
275
  name = "ResourceExistsException";
277
276
  $fault = "client";
278
277
  Message;
@@ -285,12 +284,12 @@ class ResourceExistsException extends SecretsManagerServiceException {
285
284
  Object.setPrototypeOf(this, ResourceExistsException.prototype);
286
285
  this.Message = opts.Message;
287
286
  }
288
- }
287
+ };
289
288
  const SortOrderType = {
290
289
  asc: "asc",
291
290
  desc: "desc",
292
291
  };
293
- class PublicPolicyException extends SecretsManagerServiceException {
292
+ let PublicPolicyException$1 = class PublicPolicyException extends SecretsManagerServiceException$1 {
294
293
  name = "PublicPolicyException";
295
294
  $fault = "client";
296
295
  Message;
@@ -303,881 +302,739 @@ class PublicPolicyException extends SecretsManagerServiceException {
303
302
  Object.setPrototypeOf(this, PublicPolicyException.prototype);
304
303
  this.Message = opts.Message;
305
304
  }
306
- }
307
- const SecretValueEntryFilterSensitiveLog = (obj) => ({
308
- ...obj,
309
- ...(obj.SecretBinary && { SecretBinary: smithyClient.SENSITIVE_STRING }),
310
- ...(obj.SecretString && { SecretString: smithyClient.SENSITIVE_STRING }),
311
- });
312
- const BatchGetSecretValueResponseFilterSensitiveLog = (obj) => ({
313
- ...obj,
314
- ...(obj.SecretValues && { SecretValues: obj.SecretValues.map((item) => SecretValueEntryFilterSensitiveLog(item)) }),
315
- });
316
- const CreateSecretRequestFilterSensitiveLog = (obj) => ({
317
- ...obj,
318
- ...(obj.SecretBinary && { SecretBinary: smithyClient.SENSITIVE_STRING }),
319
- ...(obj.SecretString && { SecretString: smithyClient.SENSITIVE_STRING }),
320
- });
321
- const GetRandomPasswordResponseFilterSensitiveLog = (obj) => ({
322
- ...obj,
323
- ...(obj.RandomPassword && { RandomPassword: smithyClient.SENSITIVE_STRING }),
324
- });
325
- const GetSecretValueResponseFilterSensitiveLog = (obj) => ({
326
- ...obj,
327
- ...(obj.SecretBinary && { SecretBinary: smithyClient.SENSITIVE_STRING }),
328
- ...(obj.SecretString && { SecretString: smithyClient.SENSITIVE_STRING }),
329
- });
330
- const PutSecretValueRequestFilterSensitiveLog = (obj) => ({
331
- ...obj,
332
- ...(obj.SecretBinary && { SecretBinary: smithyClient.SENSITIVE_STRING }),
333
- ...(obj.SecretString && { SecretString: smithyClient.SENSITIVE_STRING }),
334
- ...(obj.RotationToken && { RotationToken: smithyClient.SENSITIVE_STRING }),
335
- });
336
- const UpdateSecretRequestFilterSensitiveLog = (obj) => ({
337
- ...obj,
338
- ...(obj.SecretBinary && { SecretBinary: smithyClient.SENSITIVE_STRING }),
339
- ...(obj.SecretString && { SecretString: smithyClient.SENSITIVE_STRING }),
340
- });
341
-
342
- const se_BatchGetSecretValueCommand = async (input, context) => {
343
- const headers = sharedHeaders("BatchGetSecretValue");
344
- let body;
345
- body = JSON.stringify(smithyClient._json(input));
346
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
- };
348
- const se_CancelRotateSecretCommand = async (input, context) => {
349
- const headers = sharedHeaders("CancelRotateSecret");
350
- let body;
351
- body = JSON.stringify(smithyClient._json(input));
352
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
- };
354
- const se_CreateSecretCommand = async (input, context) => {
355
- const headers = sharedHeaders("CreateSecret");
356
- let body;
357
- body = JSON.stringify(se_CreateSecretRequest(input, context));
358
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
- };
360
- const se_DeleteResourcePolicyCommand = async (input, context) => {
361
- const headers = sharedHeaders("DeleteResourcePolicy");
362
- let body;
363
- body = JSON.stringify(smithyClient._json(input));
364
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
- };
366
- const se_DeleteSecretCommand = async (input, context) => {
367
- const headers = sharedHeaders("DeleteSecret");
368
- let body;
369
- body = JSON.stringify(smithyClient._json(input));
370
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
371
- };
372
- const se_DescribeSecretCommand = async (input, context) => {
373
- const headers = sharedHeaders("DescribeSecret");
374
- let body;
375
- body = JSON.stringify(smithyClient._json(input));
376
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
- };
378
- const se_GetRandomPasswordCommand = async (input, context) => {
379
- const headers = sharedHeaders("GetRandomPassword");
380
- let body;
381
- body = JSON.stringify(smithyClient._json(input));
382
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
- };
384
- const se_GetResourcePolicyCommand = async (input, context) => {
385
- const headers = sharedHeaders("GetResourcePolicy");
386
- let body;
387
- body = JSON.stringify(smithyClient._json(input));
388
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
389
- };
390
- const se_GetSecretValueCommand = async (input, context) => {
391
- const headers = sharedHeaders("GetSecretValue");
392
- let body;
393
- body = JSON.stringify(smithyClient._json(input));
394
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
395
- };
396
- const se_ListSecretsCommand = async (input, context) => {
397
- const headers = sharedHeaders("ListSecrets");
398
- let body;
399
- body = JSON.stringify(smithyClient._json(input));
400
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
401
- };
402
- const se_ListSecretVersionIdsCommand = async (input, context) => {
403
- const headers = sharedHeaders("ListSecretVersionIds");
404
- let body;
405
- body = JSON.stringify(smithyClient._json(input));
406
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
- };
408
- const se_PutResourcePolicyCommand = async (input, context) => {
409
- const headers = sharedHeaders("PutResourcePolicy");
410
- let body;
411
- body = JSON.stringify(smithyClient._json(input));
412
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
413
- };
414
- const se_PutSecretValueCommand = async (input, context) => {
415
- const headers = sharedHeaders("PutSecretValue");
416
- let body;
417
- body = JSON.stringify(se_PutSecretValueRequest(input, context));
418
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
419
- };
420
- const se_RemoveRegionsFromReplicationCommand = async (input, context) => {
421
- const headers = sharedHeaders("RemoveRegionsFromReplication");
422
- let body;
423
- body = JSON.stringify(smithyClient._json(input));
424
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
425
- };
426
- const se_ReplicateSecretToRegionsCommand = async (input, context) => {
427
- const headers = sharedHeaders("ReplicateSecretToRegions");
428
- let body;
429
- body = JSON.stringify(smithyClient._json(input));
430
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
431
- };
432
- const se_RestoreSecretCommand = async (input, context) => {
433
- const headers = sharedHeaders("RestoreSecret");
434
- let body;
435
- body = JSON.stringify(smithyClient._json(input));
436
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
- };
438
- const se_RotateSecretCommand = async (input, context) => {
439
- const headers = sharedHeaders("RotateSecret");
440
- let body;
441
- body = JSON.stringify(se_RotateSecretRequest(input));
442
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
443
- };
444
- const se_StopReplicationToReplicaCommand = async (input, context) => {
445
- const headers = sharedHeaders("StopReplicationToReplica");
446
- let body;
447
- body = JSON.stringify(smithyClient._json(input));
448
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
- };
450
- const se_TagResourceCommand = async (input, context) => {
451
- const headers = sharedHeaders("TagResource");
452
- let body;
453
- body = JSON.stringify(smithyClient._json(input));
454
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
455
305
  };
456
- const se_UntagResourceCommand = async (input, context) => {
457
- const headers = sharedHeaders("UntagResource");
458
- let body;
459
- body = JSON.stringify(smithyClient._json(input));
460
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
461
- };
462
- const se_UpdateSecretCommand = async (input, context) => {
463
- const headers = sharedHeaders("UpdateSecret");
464
- let body;
465
- body = JSON.stringify(se_UpdateSecretRequest(input, context));
466
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
467
- };
468
- const se_UpdateSecretVersionStageCommand = async (input, context) => {
469
- const headers = sharedHeaders("UpdateSecretVersionStage");
470
- let body;
471
- body = JSON.stringify(smithyClient._json(input));
472
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
473
- };
474
- const se_ValidateResourcePolicyCommand = async (input, context) => {
475
- const headers = sharedHeaders("ValidateResourcePolicy");
476
- let body;
477
- body = JSON.stringify(smithyClient._json(input));
478
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
479
- };
480
- const de_BatchGetSecretValueCommand = async (output, context) => {
481
- if (output.statusCode >= 300) {
482
- return de_CommandError(output, context);
483
- }
484
- const data = await core$1.parseJsonBody(output.body, context);
485
- let contents = {};
486
- contents = de_BatchGetSecretValueResponse(data, context);
487
- const response = {
488
- $metadata: deserializeMetadata(output),
489
- ...contents,
490
- };
491
- return response;
492
- };
493
- const de_CancelRotateSecretCommand = async (output, context) => {
494
- if (output.statusCode >= 300) {
495
- return de_CommandError(output, context);
496
- }
497
- const data = await core$1.parseJsonBody(output.body, context);
498
- let contents = {};
499
- contents = smithyClient._json(data);
500
- const response = {
501
- $metadata: deserializeMetadata(output),
502
- ...contents,
503
- };
504
- return response;
505
- };
506
- const de_CreateSecretCommand = async (output, context) => {
507
- if (output.statusCode >= 300) {
508
- return de_CommandError(output, context);
509
- }
510
- const data = await core$1.parseJsonBody(output.body, context);
511
- let contents = {};
512
- contents = de_CreateSecretResponse(data);
513
- const response = {
514
- $metadata: deserializeMetadata(output),
515
- ...contents,
516
- };
517
- return response;
518
- };
519
- const de_DeleteResourcePolicyCommand = async (output, context) => {
520
- if (output.statusCode >= 300) {
521
- return de_CommandError(output, context);
522
- }
523
- const data = await core$1.parseJsonBody(output.body, context);
524
- let contents = {};
525
- contents = smithyClient._json(data);
526
- const response = {
527
- $metadata: deserializeMetadata(output),
528
- ...contents,
529
- };
530
- return response;
531
- };
532
- const de_DeleteSecretCommand = async (output, context) => {
533
- if (output.statusCode >= 300) {
534
- return de_CommandError(output, context);
535
- }
536
- const data = await core$1.parseJsonBody(output.body, context);
537
- let contents = {};
538
- contents = de_DeleteSecretResponse(data);
539
- const response = {
540
- $metadata: deserializeMetadata(output),
541
- ...contents,
542
- };
543
- return response;
544
- };
545
- const de_DescribeSecretCommand = async (output, context) => {
546
- if (output.statusCode >= 300) {
547
- return de_CommandError(output, context);
548
- }
549
- const data = await core$1.parseJsonBody(output.body, context);
550
- let contents = {};
551
- contents = de_DescribeSecretResponse(data);
552
- const response = {
553
- $metadata: deserializeMetadata(output),
554
- ...contents,
555
- };
556
- return response;
557
- };
558
- const de_GetRandomPasswordCommand = async (output, context) => {
559
- if (output.statusCode >= 300) {
560
- return de_CommandError(output, context);
561
- }
562
- const data = await core$1.parseJsonBody(output.body, context);
563
- let contents = {};
564
- contents = smithyClient._json(data);
565
- const response = {
566
- $metadata: deserializeMetadata(output),
567
- ...contents,
568
- };
569
- return response;
570
- };
571
- const de_GetResourcePolicyCommand = async (output, context) => {
572
- if (output.statusCode >= 300) {
573
- return de_CommandError(output, context);
574
- }
575
- const data = await core$1.parseJsonBody(output.body, context);
576
- let contents = {};
577
- contents = smithyClient._json(data);
578
- const response = {
579
- $metadata: deserializeMetadata(output),
580
- ...contents,
581
- };
582
- return response;
583
- };
584
- const de_GetSecretValueCommand = async (output, context) => {
585
- if (output.statusCode >= 300) {
586
- return de_CommandError(output, context);
587
- }
588
- const data = await core$1.parseJsonBody(output.body, context);
589
- let contents = {};
590
- contents = de_GetSecretValueResponse(data, context);
591
- const response = {
592
- $metadata: deserializeMetadata(output),
593
- ...contents,
594
- };
595
- return response;
596
- };
597
- const de_ListSecretsCommand = async (output, context) => {
598
- if (output.statusCode >= 300) {
599
- return de_CommandError(output, context);
600
- }
601
- const data = await core$1.parseJsonBody(output.body, context);
602
- let contents = {};
603
- contents = de_ListSecretsResponse(data);
604
- const response = {
605
- $metadata: deserializeMetadata(output),
606
- ...contents,
607
- };
608
- return response;
609
- };
610
- const de_ListSecretVersionIdsCommand = async (output, context) => {
611
- if (output.statusCode >= 300) {
612
- return de_CommandError(output, context);
613
- }
614
- const data = await core$1.parseJsonBody(output.body, context);
615
- let contents = {};
616
- contents = de_ListSecretVersionIdsResponse(data);
617
- const response = {
618
- $metadata: deserializeMetadata(output),
619
- ...contents,
620
- };
621
- return response;
622
- };
623
- const de_PutResourcePolicyCommand = async (output, context) => {
624
- if (output.statusCode >= 300) {
625
- return de_CommandError(output, context);
626
- }
627
- const data = await core$1.parseJsonBody(output.body, context);
628
- let contents = {};
629
- contents = smithyClient._json(data);
630
- const response = {
631
- $metadata: deserializeMetadata(output),
632
- ...contents,
633
- };
634
- return response;
635
- };
636
- const de_PutSecretValueCommand = async (output, context) => {
637
- if (output.statusCode >= 300) {
638
- return de_CommandError(output, context);
639
- }
640
- const data = await core$1.parseJsonBody(output.body, context);
641
- let contents = {};
642
- contents = smithyClient._json(data);
643
- const response = {
644
- $metadata: deserializeMetadata(output),
645
- ...contents,
646
- };
647
- return response;
648
- };
649
- const de_RemoveRegionsFromReplicationCommand = async (output, context) => {
650
- if (output.statusCode >= 300) {
651
- return de_CommandError(output, context);
652
- }
653
- const data = await core$1.parseJsonBody(output.body, context);
654
- let contents = {};
655
- contents = de_RemoveRegionsFromReplicationResponse(data);
656
- const response = {
657
- $metadata: deserializeMetadata(output),
658
- ...contents,
659
- };
660
- return response;
661
- };
662
- const de_ReplicateSecretToRegionsCommand = async (output, context) => {
663
- if (output.statusCode >= 300) {
664
- return de_CommandError(output, context);
665
- }
666
- const data = await core$1.parseJsonBody(output.body, context);
667
- let contents = {};
668
- contents = de_ReplicateSecretToRegionsResponse(data);
669
- const response = {
670
- $metadata: deserializeMetadata(output),
671
- ...contents,
672
- };
673
- return response;
674
- };
675
- const de_RestoreSecretCommand = async (output, context) => {
676
- if (output.statusCode >= 300) {
677
- return de_CommandError(output, context);
678
- }
679
- const data = await core$1.parseJsonBody(output.body, context);
680
- let contents = {};
681
- contents = smithyClient._json(data);
682
- const response = {
683
- $metadata: deserializeMetadata(output),
684
- ...contents,
685
- };
686
- return response;
687
- };
688
- const de_RotateSecretCommand = async (output, context) => {
689
- if (output.statusCode >= 300) {
690
- return de_CommandError(output, context);
691
- }
692
- const data = await core$1.parseJsonBody(output.body, context);
693
- let contents = {};
694
- contents = smithyClient._json(data);
695
- const response = {
696
- $metadata: deserializeMetadata(output),
697
- ...contents,
698
- };
699
- return response;
700
- };
701
- const de_StopReplicationToReplicaCommand = async (output, context) => {
702
- if (output.statusCode >= 300) {
703
- return de_CommandError(output, context);
704
- }
705
- const data = await core$1.parseJsonBody(output.body, context);
706
- let contents = {};
707
- contents = smithyClient._json(data);
708
- const response = {
709
- $metadata: deserializeMetadata(output),
710
- ...contents,
711
- };
712
- return response;
713
- };
714
- const de_TagResourceCommand = async (output, context) => {
715
- if (output.statusCode >= 300) {
716
- return de_CommandError(output, context);
717
- }
718
- await smithyClient.collectBody(output.body, context);
719
- const response = {
720
- $metadata: deserializeMetadata(output),
721
- };
722
- return response;
723
- };
724
- const de_UntagResourceCommand = async (output, context) => {
725
- if (output.statusCode >= 300) {
726
- return de_CommandError(output, context);
727
- }
728
- await smithyClient.collectBody(output.body, context);
729
- const response = {
730
- $metadata: deserializeMetadata(output),
731
- };
732
- return response;
733
- };
734
- const de_UpdateSecretCommand = async (output, context) => {
735
- if (output.statusCode >= 300) {
736
- return de_CommandError(output, context);
737
- }
738
- const data = await core$1.parseJsonBody(output.body, context);
739
- let contents = {};
740
- contents = smithyClient._json(data);
741
- const response = {
742
- $metadata: deserializeMetadata(output),
743
- ...contents,
744
- };
745
- return response;
746
- };
747
- const de_UpdateSecretVersionStageCommand = async (output, context) => {
748
- if (output.statusCode >= 300) {
749
- return de_CommandError(output, context);
750
- }
751
- const data = await core$1.parseJsonBody(output.body, context);
752
- let contents = {};
753
- contents = smithyClient._json(data);
754
- const response = {
755
- $metadata: deserializeMetadata(output),
756
- ...contents,
757
- };
758
- return response;
759
- };
760
- const de_ValidateResourcePolicyCommand = async (output, context) => {
761
- if (output.statusCode >= 300) {
762
- return de_CommandError(output, context);
763
- }
764
- const data = await core$1.parseJsonBody(output.body, context);
765
- let contents = {};
766
- contents = smithyClient._json(data);
767
- const response = {
768
- $metadata: deserializeMetadata(output),
769
- ...contents,
770
- };
771
- return response;
772
- };
773
- const de_CommandError = async (output, context) => {
774
- const parsedOutput = {
775
- ...output,
776
- body: await core$1.parseJsonErrorBody(output.body, context),
777
- };
778
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
779
- switch (errorCode) {
780
- case "DecryptionFailure":
781
- case "com.amazonaws.secretsmanager#DecryptionFailure":
782
- throw await de_DecryptionFailureRes(parsedOutput);
783
- case "InternalServiceError":
784
- case "com.amazonaws.secretsmanager#InternalServiceError":
785
- throw await de_InternalServiceErrorRes(parsedOutput);
786
- case "InvalidNextTokenException":
787
- case "com.amazonaws.secretsmanager#InvalidNextTokenException":
788
- throw await de_InvalidNextTokenExceptionRes(parsedOutput);
789
- case "InvalidParameterException":
790
- case "com.amazonaws.secretsmanager#InvalidParameterException":
791
- throw await de_InvalidParameterExceptionRes(parsedOutput);
792
- case "InvalidRequestException":
793
- case "com.amazonaws.secretsmanager#InvalidRequestException":
794
- throw await de_InvalidRequestExceptionRes(parsedOutput);
795
- case "ResourceNotFoundException":
796
- case "com.amazonaws.secretsmanager#ResourceNotFoundException":
797
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
798
- case "EncryptionFailure":
799
- case "com.amazonaws.secretsmanager#EncryptionFailure":
800
- throw await de_EncryptionFailureRes(parsedOutput);
801
- case "LimitExceededException":
802
- case "com.amazonaws.secretsmanager#LimitExceededException":
803
- throw await de_LimitExceededExceptionRes(parsedOutput);
804
- case "MalformedPolicyDocumentException":
805
- case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
806
- throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput);
807
- case "PreconditionNotMetException":
808
- case "com.amazonaws.secretsmanager#PreconditionNotMetException":
809
- throw await de_PreconditionNotMetExceptionRes(parsedOutput);
810
- case "ResourceExistsException":
811
- case "com.amazonaws.secretsmanager#ResourceExistsException":
812
- throw await de_ResourceExistsExceptionRes(parsedOutput);
813
- case "PublicPolicyException":
814
- case "com.amazonaws.secretsmanager#PublicPolicyException":
815
- throw await de_PublicPolicyExceptionRes(parsedOutput);
816
- default:
817
- const parsedBody = parsedOutput.body;
818
- return throwDefaultError({
819
- output,
820
- parsedBody,
821
- errorCode,
822
- });
823
- }
824
- };
825
- const de_DecryptionFailureRes = async (parsedOutput, context) => {
826
- const body = parsedOutput.body;
827
- const deserialized = smithyClient._json(body);
828
- const exception = new DecryptionFailure({
829
- $metadata: deserializeMetadata(parsedOutput),
830
- ...deserialized,
831
- });
832
- return smithyClient.decorateServiceException(exception, body);
833
- };
834
- const de_EncryptionFailureRes = async (parsedOutput, context) => {
835
- const body = parsedOutput.body;
836
- const deserialized = smithyClient._json(body);
837
- const exception = new EncryptionFailure({
838
- $metadata: deserializeMetadata(parsedOutput),
839
- ...deserialized,
840
- });
841
- return smithyClient.decorateServiceException(exception, body);
842
- };
843
- const de_InternalServiceErrorRes = async (parsedOutput, context) => {
844
- const body = parsedOutput.body;
845
- const deserialized = smithyClient._json(body);
846
- const exception = new InternalServiceError({
847
- $metadata: deserializeMetadata(parsedOutput),
848
- ...deserialized,
849
- });
850
- return smithyClient.decorateServiceException(exception, body);
851
- };
852
- const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
853
- const body = parsedOutput.body;
854
- const deserialized = smithyClient._json(body);
855
- const exception = new InvalidNextTokenException({
856
- $metadata: deserializeMetadata(parsedOutput),
857
- ...deserialized,
858
- });
859
- return smithyClient.decorateServiceException(exception, body);
860
- };
861
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
862
- const body = parsedOutput.body;
863
- const deserialized = smithyClient._json(body);
864
- const exception = new InvalidParameterException({
865
- $metadata: deserializeMetadata(parsedOutput),
866
- ...deserialized,
867
- });
868
- return smithyClient.decorateServiceException(exception, body);
869
- };
870
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
871
- const body = parsedOutput.body;
872
- const deserialized = smithyClient._json(body);
873
- const exception = new InvalidRequestException({
874
- $metadata: deserializeMetadata(parsedOutput),
875
- ...deserialized,
876
- });
877
- return smithyClient.decorateServiceException(exception, body);
878
- };
879
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
880
- const body = parsedOutput.body;
881
- const deserialized = smithyClient._json(body);
882
- const exception = new LimitExceededException({
883
- $metadata: deserializeMetadata(parsedOutput),
884
- ...deserialized,
885
- });
886
- return smithyClient.decorateServiceException(exception, body);
887
- };
888
- const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
889
- const body = parsedOutput.body;
890
- const deserialized = smithyClient._json(body);
891
- const exception = new MalformedPolicyDocumentException({
892
- $metadata: deserializeMetadata(parsedOutput),
893
- ...deserialized,
894
- });
895
- return smithyClient.decorateServiceException(exception, body);
896
- };
897
- const de_PreconditionNotMetExceptionRes = async (parsedOutput, context) => {
898
- const body = parsedOutput.body;
899
- const deserialized = smithyClient._json(body);
900
- const exception = new PreconditionNotMetException({
901
- $metadata: deserializeMetadata(parsedOutput),
902
- ...deserialized,
903
- });
904
- return smithyClient.decorateServiceException(exception, body);
905
- };
906
- const de_PublicPolicyExceptionRes = async (parsedOutput, context) => {
907
- const body = parsedOutput.body;
908
- const deserialized = smithyClient._json(body);
909
- const exception = new PublicPolicyException({
910
- $metadata: deserializeMetadata(parsedOutput),
911
- ...deserialized,
912
- });
913
- return smithyClient.decorateServiceException(exception, body);
914
- };
915
- const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
916
- const body = parsedOutput.body;
917
- const deserialized = smithyClient._json(body);
918
- const exception = new ResourceExistsException({
919
- $metadata: deserializeMetadata(parsedOutput),
920
- ...deserialized,
921
- });
922
- return smithyClient.decorateServiceException(exception, body);
923
- };
924
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
925
- const body = parsedOutput.body;
926
- const deserialized = smithyClient._json(body);
927
- const exception = new ResourceNotFoundException({
928
- $metadata: deserializeMetadata(parsedOutput),
929
- ...deserialized,
930
- });
931
- return smithyClient.decorateServiceException(exception, body);
932
- };
933
- const se_CreateSecretRequest = (input, context) => {
934
- return smithyClient.take(input, {
935
- AddReplicaRegions: smithyClient._json,
936
- ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
937
- Description: [],
938
- ForceOverwriteReplicaSecret: [],
939
- KmsKeyId: [],
940
- Name: [],
941
- SecretBinary: context.base64Encoder,
942
- SecretString: [],
943
- Tags: smithyClient._json,
944
- });
945
- };
946
- const se_PutSecretValueRequest = (input, context) => {
947
- return smithyClient.take(input, {
948
- ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
949
- RotationToken: [],
950
- SecretBinary: context.base64Encoder,
951
- SecretId: [],
952
- SecretString: [],
953
- VersionStages: smithyClient._json,
954
- });
955
- };
956
- const se_RotateSecretRequest = (input, context) => {
957
- return smithyClient.take(input, {
958
- ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
959
- RotateImmediately: [],
960
- RotationLambdaARN: [],
961
- RotationRules: smithyClient._json,
962
- SecretId: [],
963
- });
964
- };
965
- const se_UpdateSecretRequest = (input, context) => {
966
- return smithyClient.take(input, {
967
- ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
968
- Description: [],
969
- KmsKeyId: [],
970
- SecretBinary: context.base64Encoder,
971
- SecretId: [],
972
- SecretString: [],
973
- });
974
- };
975
- const de_BatchGetSecretValueResponse = (output, context) => {
976
- return smithyClient.take(output, {
977
- Errors: smithyClient._json,
978
- NextToken: smithyClient.expectString,
979
- SecretValues: (_) => de_SecretValuesType(_, context),
980
- });
981
- };
982
- const de_CreateSecretResponse = (output, context) => {
983
- return smithyClient.take(output, {
984
- ARN: smithyClient.expectString,
985
- Name: smithyClient.expectString,
986
- ReplicationStatus: (_) => de_ReplicationStatusListType(_),
987
- VersionId: smithyClient.expectString,
988
- });
989
- };
990
- const de_DeleteSecretResponse = (output, context) => {
991
- return smithyClient.take(output, {
992
- ARN: smithyClient.expectString,
993
- DeletionDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
994
- Name: smithyClient.expectString,
995
- });
996
- };
997
- const de_DescribeSecretResponse = (output, context) => {
998
- return smithyClient.take(output, {
999
- ARN: smithyClient.expectString,
1000
- CreatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1001
- DeletedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1002
- Description: smithyClient.expectString,
1003
- KmsKeyId: smithyClient.expectString,
1004
- LastAccessedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1005
- LastChangedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1006
- LastRotatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1007
- Name: smithyClient.expectString,
1008
- NextRotationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1009
- OwningService: smithyClient.expectString,
1010
- PrimaryRegion: smithyClient.expectString,
1011
- ReplicationStatus: (_) => de_ReplicationStatusListType(_),
1012
- RotationEnabled: smithyClient.expectBoolean,
1013
- RotationLambdaARN: smithyClient.expectString,
1014
- RotationRules: smithyClient._json,
1015
- Tags: smithyClient._json,
1016
- VersionIdsToStages: smithyClient._json,
1017
- });
1018
- };
1019
- const de_GetSecretValueResponse = (output, context) => {
1020
- return smithyClient.take(output, {
1021
- ARN: smithyClient.expectString,
1022
- CreatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1023
- Name: smithyClient.expectString,
1024
- SecretBinary: context.base64Decoder,
1025
- SecretString: smithyClient.expectString,
1026
- VersionId: smithyClient.expectString,
1027
- VersionStages: smithyClient._json,
1028
- });
1029
- };
1030
- const de_ListSecretsResponse = (output, context) => {
1031
- return smithyClient.take(output, {
1032
- NextToken: smithyClient.expectString,
1033
- SecretList: (_) => de_SecretListType(_),
1034
- });
1035
- };
1036
- const de_ListSecretVersionIdsResponse = (output, context) => {
1037
- return smithyClient.take(output, {
1038
- ARN: smithyClient.expectString,
1039
- Name: smithyClient.expectString,
1040
- NextToken: smithyClient.expectString,
1041
- Versions: (_) => de_SecretVersionsListType(_),
1042
- });
1043
- };
1044
- const de_RemoveRegionsFromReplicationResponse = (output, context) => {
1045
- return smithyClient.take(output, {
1046
- ARN: smithyClient.expectString,
1047
- ReplicationStatus: (_) => de_ReplicationStatusListType(_),
1048
- });
1049
- };
1050
- const de_ReplicateSecretToRegionsResponse = (output, context) => {
1051
- return smithyClient.take(output, {
1052
- ARN: smithyClient.expectString,
1053
- ReplicationStatus: (_) => de_ReplicationStatusListType(_),
1054
- });
1055
- };
1056
- const de_ReplicationStatusListType = (output, context) => {
1057
- const retVal = (output || [])
1058
- .filter((e) => e != null)
1059
- .map((entry) => {
1060
- return de_ReplicationStatusType(entry);
1061
- });
1062
- return retVal;
1063
- };
1064
- const de_ReplicationStatusType = (output, context) => {
1065
- return smithyClient.take(output, {
1066
- KmsKeyId: smithyClient.expectString,
1067
- LastAccessedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1068
- Region: smithyClient.expectString,
1069
- Status: smithyClient.expectString,
1070
- StatusMessage: smithyClient.expectString,
1071
- });
1072
- };
1073
- const de_SecretListEntry = (output, context) => {
1074
- return smithyClient.take(output, {
1075
- ARN: smithyClient.expectString,
1076
- CreatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1077
- DeletedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1078
- Description: smithyClient.expectString,
1079
- KmsKeyId: smithyClient.expectString,
1080
- LastAccessedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1081
- LastChangedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1082
- LastRotatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1083
- Name: smithyClient.expectString,
1084
- NextRotationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1085
- OwningService: smithyClient.expectString,
1086
- PrimaryRegion: smithyClient.expectString,
1087
- RotationEnabled: smithyClient.expectBoolean,
1088
- RotationLambdaARN: smithyClient.expectString,
1089
- RotationRules: smithyClient._json,
1090
- SecretVersionsToStages: smithyClient._json,
1091
- Tags: smithyClient._json,
1092
- });
1093
- };
1094
- const de_SecretListType = (output, context) => {
1095
- const retVal = (output || [])
1096
- .filter((e) => e != null)
1097
- .map((entry) => {
1098
- return de_SecretListEntry(entry);
1099
- });
1100
- return retVal;
1101
- };
1102
- const de_SecretValueEntry = (output, context) => {
1103
- return smithyClient.take(output, {
1104
- ARN: smithyClient.expectString,
1105
- CreatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1106
- Name: smithyClient.expectString,
1107
- SecretBinary: context.base64Decoder,
1108
- SecretString: smithyClient.expectString,
1109
- VersionId: smithyClient.expectString,
1110
- VersionStages: smithyClient._json,
1111
- });
1112
- };
1113
- const de_SecretValuesType = (output, context) => {
1114
- const retVal = (output || [])
1115
- .filter((e) => e != null)
1116
- .map((entry) => {
1117
- return de_SecretValueEntry(entry, context);
1118
- });
1119
- return retVal;
1120
- };
1121
- const de_SecretVersionsListEntry = (output, context) => {
1122
- return smithyClient.take(output, {
1123
- CreatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1124
- KmsKeyIds: smithyClient._json,
1125
- LastAccessedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1126
- VersionId: smithyClient.expectString,
1127
- VersionStages: smithyClient._json,
1128
- });
1129
- };
1130
- const de_SecretVersionsListType = (output, context) => {
1131
- const retVal = (output || [])
1132
- .filter((e) => e != null)
1133
- .map((entry) => {
1134
- return de_SecretVersionsListEntry(entry);
1135
- });
1136
- return retVal;
1137
- };
1138
- const deserializeMetadata = (output) => ({
1139
- httpStatusCode: output.statusCode,
1140
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1141
- extendedRequestId: output.headers["x-amz-id-2"],
1142
- cfId: output.headers["x-amz-cf-id"],
1143
- });
1144
- const throwDefaultError = smithyClient.withBaseException(SecretsManagerServiceException);
1145
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1146
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1147
- const contents = {
1148
- protocol,
1149
- hostname,
1150
- port,
1151
- method: "POST",
1152
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1153
- headers,
1154
- };
1155
- if (body !== undefined) {
1156
- contents.body = body;
1157
- }
1158
- return new protocolHttp.HttpRequest(contents);
1159
- };
1160
- function sharedHeaders(operation) {
1161
- return {
1162
- "content-type": "application/x-amz-json-1.1",
1163
- "x-amz-target": `secretsmanager.${operation}`,
1164
- };
1165
- }
306
+
307
+ const _AAD = "AutomaticallyAfterDays";
308
+ const _APIELT = "APIErrorListType";
309
+ const _APIET = "APIErrorType";
310
+ const _ARN = "ARN";
311
+ const _ARR = "AddReplicaRegions";
312
+ const _ARRLT = "AddReplicaRegionListType";
313
+ const _BGSV = "BatchGetSecretValue";
314
+ const _BGSVR = "BatchGetSecretValueRequest";
315
+ const _BGSVRa = "BatchGetSecretValueResponse";
316
+ const _BPP = "BlockPublicPolicy";
317
+ const _CD = "CreatedDate";
318
+ const _CN = "CheckName";
319
+ const _CRS = "CancelRotateSecret";
320
+ const _CRSR = "CancelRotateSecretRequest";
321
+ const _CRSRa = "CancelRotateSecretResponse";
322
+ const _CRT = "ClientRequestToken";
323
+ const _CS = "CreateSecret";
324
+ const _CSR = "CreateSecretRequest";
325
+ const _CSRr = "CreateSecretResponse";
326
+ const _D = "Description";
327
+ const _DD = "DeletionDate";
328
+ const _DDe = "DeletedDate";
329
+ const _DF = "DecryptionFailure";
330
+ const _DRP = "DeleteResourcePolicy";
331
+ const _DRPR = "DeleteResourcePolicyRequest";
332
+ const _DRPRe = "DeleteResourcePolicyResponse";
333
+ const _DS = "DeleteSecret";
334
+ const _DSR = "DeleteSecretRequest";
335
+ const _DSRe = "DeleteSecretResponse";
336
+ const _DSRes = "DescribeSecretRequest";
337
+ const _DSResc = "DescribeSecretResponse";
338
+ const _DSe = "DescribeSecret";
339
+ const _Du = "Duration";
340
+ const _E = "Errors";
341
+ const _EC = "ErrorCode";
342
+ const _ECx = "ExcludeCharacters";
343
+ const _EF = "EncryptionFailure";
344
+ const _EL = "ExcludeLowercase";
345
+ const _EM = "ErrorMessage";
346
+ const _EN = "ExcludeNumbers";
347
+ const _EP = "ExcludePunctuation";
348
+ const _EU = "ExcludeUppercase";
349
+ const _F = "Filters";
350
+ const _FDWR = "ForceDeleteWithoutRecovery";
351
+ const _FLT = "FiltersListType";
352
+ const _FORS = "ForceOverwriteReplicaSecret";
353
+ const _Fi = "Filter";
354
+ const _GRP = "GetRandomPassword";
355
+ const _GRPR = "GetRandomPasswordRequest";
356
+ const _GRPRe = "GetRandomPasswordResponse";
357
+ const _GRPRet = "GetResourcePolicyRequest";
358
+ const _GRPRete = "GetResourcePolicyResponse";
359
+ const _GRPe = "GetResourcePolicy";
360
+ const _GSV = "GetSecretValue";
361
+ const _GSVR = "GetSecretValueRequest";
362
+ const _GSVRe = "GetSecretValueResponse";
363
+ const _ID = "IncludeDeprecated";
364
+ const _INTE = "InvalidNextTokenException";
365
+ const _IPD = "IncludePlannedDeletion";
366
+ const _IPE = "InvalidParameterException";
367
+ const _IRE = "InvalidRequestException";
368
+ const _IS = "IncludeSpace";
369
+ const _ISE = "InternalServiceError";
370
+ const _K = "Key";
371
+ const _KKI = "KmsKeyId";
372
+ const _KKIm = "KmsKeyIds";
373
+ const _LAD = "LastAccessedDate";
374
+ const _LCD = "LastChangedDate";
375
+ const _LEE = "LimitExceededException";
376
+ const _LRD = "LastRotatedDate";
377
+ const _LS = "ListSecrets";
378
+ const _LSR = "ListSecretsRequest";
379
+ const _LSRi = "ListSecretsResponse";
380
+ const _LSVI = "ListSecretVersionIds";
381
+ const _LSVIR = "ListSecretVersionIdsRequest";
382
+ const _LSVIRi = "ListSecretVersionIdsResponse";
383
+ const _M = "Message";
384
+ const _MPDE = "MalformedPolicyDocumentException";
385
+ const _MR = "MaxResults";
386
+ const _MTVI = "MoveToVersionId";
387
+ const _N = "Name";
388
+ const _NRD = "NextRotationDate";
389
+ const _NT = "NextToken";
390
+ const _OS = "OwningService";
391
+ const _PL = "PasswordLength";
392
+ const _PNME = "PreconditionNotMetException";
393
+ const _PPE = "PublicPolicyException";
394
+ const _PR = "PrimaryRegion";
395
+ const _PRP = "PutResourcePolicy";
396
+ const _PRPR = "PutResourcePolicyRequest";
397
+ const _PRPRu = "PutResourcePolicyResponse";
398
+ const _PSV = "PutSecretValue";
399
+ const _PSVR = "PutSecretValueRequest";
400
+ const _PSVRu = "PutSecretValueResponse";
401
+ const _PVP = "PolicyValidationPassed";
402
+ const _R = "Region";
403
+ const _RE = "RotationEnabled";
404
+ const _REE = "ResourceExistsException";
405
+ const _REIT = "RequireEachIncludedType";
406
+ const _RFVI = "RemoveFromVersionId";
407
+ const _RI = "RotateImmediately";
408
+ const _RLARN = "RotationLambdaARN";
409
+ const _RNFE = "ResourceNotFoundException";
410
+ const _RP = "RandomPassword";
411
+ const _RPT = "RandomPasswordType";
412
+ const _RPe = "ResourcePolicy";
413
+ const _RR = "RotationRules";
414
+ const _RRFR = "RemoveRegionsFromReplication";
415
+ const _RRFRR = "RemoveRegionsFromReplicationRequest";
416
+ const _RRFRRe = "RemoveRegionsFromReplicationResponse";
417
+ const _RRR = "RemoveReplicaRegions";
418
+ const _RRT = "ReplicaRegionType";
419
+ const _RRTo = "RotationRulesType";
420
+ const _RS = "ReplicationStatus";
421
+ const _RSLT = "ReplicationStatusListType";
422
+ const _RSR = "RestoreSecretRequest";
423
+ const _RSRe = "RestoreSecretResponse";
424
+ const _RSRo = "RotateSecretRequest";
425
+ const _RSRot = "RotateSecretResponse";
426
+ const _RST = "ReplicationStatusType";
427
+ const _RSTR = "ReplicateSecretToRegions";
428
+ const _RSTRR = "ReplicateSecretToRegionsRequest";
429
+ const _RSTRRe = "ReplicateSecretToRegionsResponse";
430
+ const _RSe = "RestoreSecret";
431
+ const _RSo = "RotateSecret";
432
+ const _RT = "RotationToken";
433
+ const _RTT = "RotationTokenType";
434
+ const _RWID = "RecoveryWindowInDays";
435
+ const _S = "Status";
436
+ const _SB = "SecretBinary";
437
+ const _SBT = "SecretBinaryType";
438
+ const _SE = "ScheduleExpression";
439
+ const _SI = "SecretId";
440
+ const _SIL = "SecretIdList";
441
+ const _SL = "SecretList";
442
+ const _SLE = "SecretListEntry";
443
+ const _SLT = "SecretListType";
444
+ const _SM = "StatusMessage";
445
+ const _SO = "SortOrder";
446
+ const _SRTR = "StopReplicationToReplica";
447
+ const _SRTRR = "StopReplicationToReplicaRequest";
448
+ const _SRTRRt = "StopReplicationToReplicaResponse";
449
+ const _SS = "SecretString";
450
+ const _SST = "SecretStringType";
451
+ const _SV = "SecretValues";
452
+ const _SVE = "SecretValueEntry";
453
+ const _SVLE = "SecretVersionsListEntry";
454
+ const _SVLT = "SecretVersionsListType";
455
+ const _SVT = "SecretValuesType";
456
+ const _SVTS = "SecretVersionsToStages";
457
+ const _SVTSMT = "SecretVersionsToStagesMapType";
458
+ const _T = "Tags";
459
+ const _TK = "TagKeys";
460
+ const _TLT = "TagListType";
461
+ const _TR = "TagResource";
462
+ const _TRR = "TagResourceRequest";
463
+ const _Ta = "Tag";
464
+ const _UR = "UntagResource";
465
+ const _URR = "UntagResourceRequest";
466
+ const _US = "UpdateSecret";
467
+ const _USR = "UpdateSecretRequest";
468
+ const _USRp = "UpdateSecretResponse";
469
+ const _USVS = "UpdateSecretVersionStage";
470
+ const _USVSR = "UpdateSecretVersionStageRequest";
471
+ const _USVSRp = "UpdateSecretVersionStageResponse";
472
+ const _V = "Values";
473
+ const _VE = "ValidationErrors";
474
+ const _VEE = "ValidationErrorsEntry";
475
+ const _VET = "ValidationErrorsType";
476
+ const _VI = "VersionId";
477
+ const _VITS = "VersionIdsToStages";
478
+ const _VRP = "ValidateResourcePolicy";
479
+ const _VRPR = "ValidateResourcePolicyRequest";
480
+ const _VRPRa = "ValidateResourcePolicyResponse";
481
+ const _VS = "VersionStage";
482
+ const _VSe = "VersionStages";
483
+ const _Va = "Value";
484
+ const _Ve = "Versions";
485
+ const _c = "client";
486
+ const _e = "error";
487
+ const _s = "server";
488
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.secretsmanager";
489
+ const n0 = "com.amazonaws.secretsmanager";
490
+ var RandomPasswordType = [0, n0, _RPT, 8, 0];
491
+ var RotationTokenType = [0, n0, _RTT, 8, 0];
492
+ var SecretBinaryType = [0, n0, _SBT, 8, 21];
493
+ var SecretStringType = [0, n0, _SST, 8, 0];
494
+ var APIErrorType = [3, n0, _APIET, 0, [_SI, _EC, _M], [0, 0, 0]];
495
+ var BatchGetSecretValueRequest = [
496
+ 3,
497
+ n0,
498
+ _BGSVR,
499
+ 0,
500
+ [_SIL, _F, _MR, _NT],
501
+ [64 | 0, () => FiltersListType, 1, 0],
502
+ ];
503
+ var BatchGetSecretValueResponse = [
504
+ 3,
505
+ n0,
506
+ _BGSVRa,
507
+ 0,
508
+ [_SV, _NT, _E],
509
+ [[() => SecretValuesType, 0], 0, () => APIErrorListType],
510
+ ];
511
+ var CancelRotateSecretRequest = [3, n0, _CRSR, 0, [_SI], [0]];
512
+ var CancelRotateSecretResponse = [3, n0, _CRSRa, 0, [_ARN, _N, _VI], [0, 0, 0]];
513
+ var CreateSecretRequest = [
514
+ 3,
515
+ n0,
516
+ _CSR,
517
+ 0,
518
+ [_N, _CRT, _D, _KKI, _SB, _SS, _T, _ARR, _FORS],
519
+ [
520
+ 0,
521
+ [0, 4],
522
+ 0,
523
+ 0,
524
+ [() => SecretBinaryType, 0],
525
+ [() => SecretStringType, 0],
526
+ () => TagListType,
527
+ () => AddReplicaRegionListType,
528
+ 2,
529
+ ],
530
+ ];
531
+ var CreateSecretResponse = [
532
+ 3,
533
+ n0,
534
+ _CSRr,
535
+ 0,
536
+ [_ARN, _N, _VI, _RS],
537
+ [0, 0, 0, () => ReplicationStatusListType],
538
+ ];
539
+ var DecryptionFailure = [
540
+ -3,
541
+ n0,
542
+ _DF,
543
+ {
544
+ [_e]: _c,
545
+ },
546
+ [_M],
547
+ [0],
548
+ ];
549
+ schema.TypeRegistry.for(n0).registerError(DecryptionFailure, DecryptionFailure$1);
550
+ var DeleteResourcePolicyRequest = [3, n0, _DRPR, 0, [_SI], [0]];
551
+ var DeleteResourcePolicyResponse = [3, n0, _DRPRe, 0, [_ARN, _N], [0, 0]];
552
+ var DeleteSecretRequest = [3, n0, _DSR, 0, [_SI, _RWID, _FDWR], [0, 1, 2]];
553
+ var DeleteSecretResponse = [3, n0, _DSRe, 0, [_ARN, _N, _DD], [0, 0, 4]];
554
+ var DescribeSecretRequest = [3, n0, _DSRes, 0, [_SI], [0]];
555
+ var DescribeSecretResponse = [
556
+ 3,
557
+ n0,
558
+ _DSResc,
559
+ 0,
560
+ [_ARN, _N, _D, _KKI, _RE, _RLARN, _RR, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _VITS, _OS, _CD, _PR, _RS],
561
+ [
562
+ 0,
563
+ 0,
564
+ 0,
565
+ 0,
566
+ 2,
567
+ 0,
568
+ () => RotationRulesType,
569
+ 4,
570
+ 4,
571
+ 4,
572
+ 4,
573
+ 4,
574
+ () => TagListType,
575
+ [2, n0, _SVTSMT, 0, 0, 64 | 0],
576
+ 0,
577
+ 4,
578
+ 0,
579
+ () => ReplicationStatusListType,
580
+ ],
581
+ ];
582
+ var EncryptionFailure = [
583
+ -3,
584
+ n0,
585
+ _EF,
586
+ {
587
+ [_e]: _c,
588
+ },
589
+ [_M],
590
+ [0],
591
+ ];
592
+ schema.TypeRegistry.for(n0).registerError(EncryptionFailure, EncryptionFailure$1);
593
+ var Filter = [3, n0, _Fi, 0, [_K, _V], [0, 64 | 0]];
594
+ var GetRandomPasswordRequest = [
595
+ 3,
596
+ n0,
597
+ _GRPR,
598
+ 0,
599
+ [_PL, _ECx, _EN, _EP, _EU, _EL, _IS, _REIT],
600
+ [1, 0, 2, 2, 2, 2, 2, 2],
601
+ ];
602
+ var GetRandomPasswordResponse = [
603
+ 3,
604
+ n0,
605
+ _GRPRe,
606
+ 0,
607
+ [_RP],
608
+ [[() => RandomPasswordType, 0]],
609
+ ];
610
+ var GetResourcePolicyRequest = [3, n0, _GRPRet, 0, [_SI], [0]];
611
+ var GetResourcePolicyResponse = [3, n0, _GRPRete, 0, [_ARN, _N, _RPe], [0, 0, 0]];
612
+ var GetSecretValueRequest = [3, n0, _GSVR, 0, [_SI, _VI, _VS], [0, 0, 0]];
613
+ var GetSecretValueResponse = [
614
+ 3,
615
+ n0,
616
+ _GSVRe,
617
+ 0,
618
+ [_ARN, _N, _VI, _SB, _SS, _VSe, _CD],
619
+ [0, 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], 64 | 0, 4],
620
+ ];
621
+ var InternalServiceError = [
622
+ -3,
623
+ n0,
624
+ _ISE,
625
+ {
626
+ [_e]: _s,
627
+ },
628
+ [_M],
629
+ [0],
630
+ ];
631
+ schema.TypeRegistry.for(n0).registerError(InternalServiceError, InternalServiceError$1);
632
+ var InvalidNextTokenException = [
633
+ -3,
634
+ n0,
635
+ _INTE,
636
+ {
637
+ [_e]: _c,
638
+ },
639
+ [_M],
640
+ [0],
641
+ ];
642
+ schema.TypeRegistry.for(n0).registerError(InvalidNextTokenException, InvalidNextTokenException$1);
643
+ var InvalidParameterException = [
644
+ -3,
645
+ n0,
646
+ _IPE,
647
+ {
648
+ [_e]: _c,
649
+ },
650
+ [_M],
651
+ [0],
652
+ ];
653
+ schema.TypeRegistry.for(n0).registerError(InvalidParameterException, InvalidParameterException$1);
654
+ var InvalidRequestException = [
655
+ -3,
656
+ n0,
657
+ _IRE,
658
+ {
659
+ [_e]: _c,
660
+ },
661
+ [_M],
662
+ [0],
663
+ ];
664
+ schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
665
+ var LimitExceededException = [
666
+ -3,
667
+ n0,
668
+ _LEE,
669
+ {
670
+ [_e]: _c,
671
+ },
672
+ [_M],
673
+ [0],
674
+ ];
675
+ schema.TypeRegistry.for(n0).registerError(LimitExceededException, LimitExceededException$1);
676
+ var ListSecretsRequest = [
677
+ 3,
678
+ n0,
679
+ _LSR,
680
+ 0,
681
+ [_IPD, _MR, _NT, _F, _SO],
682
+ [2, 1, 0, () => FiltersListType, 0],
683
+ ];
684
+ var ListSecretsResponse = [3, n0, _LSRi, 0, [_SL, _NT], [() => SecretListType, 0]];
685
+ var ListSecretVersionIdsRequest = [3, n0, _LSVIR, 0, [_SI, _MR, _NT, _ID], [0, 1, 0, 2]];
686
+ var ListSecretVersionIdsResponse = [
687
+ 3,
688
+ n0,
689
+ _LSVIRi,
690
+ 0,
691
+ [_Ve, _NT, _ARN, _N],
692
+ [() => SecretVersionsListType, 0, 0, 0],
693
+ ];
694
+ var MalformedPolicyDocumentException = [
695
+ -3,
696
+ n0,
697
+ _MPDE,
698
+ {
699
+ [_e]: _c,
700
+ },
701
+ [_M],
702
+ [0],
703
+ ];
704
+ schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException, MalformedPolicyDocumentException$1);
705
+ var PreconditionNotMetException = [
706
+ -3,
707
+ n0,
708
+ _PNME,
709
+ {
710
+ [_e]: _c,
711
+ },
712
+ [_M],
713
+ [0],
714
+ ];
715
+ schema.TypeRegistry.for(n0).registerError(PreconditionNotMetException, PreconditionNotMetException$1);
716
+ var PublicPolicyException = [
717
+ -3,
718
+ n0,
719
+ _PPE,
720
+ {
721
+ [_e]: _c,
722
+ },
723
+ [_M],
724
+ [0],
725
+ ];
726
+ schema.TypeRegistry.for(n0).registerError(PublicPolicyException, PublicPolicyException$1);
727
+ var PutResourcePolicyRequest = [3, n0, _PRPR, 0, [_SI, _RPe, _BPP], [0, 0, 2]];
728
+ var PutResourcePolicyResponse = [3, n0, _PRPRu, 0, [_ARN, _N], [0, 0]];
729
+ var PutSecretValueRequest = [
730
+ 3,
731
+ n0,
732
+ _PSVR,
733
+ 0,
734
+ [_SI, _CRT, _SB, _SS, _VSe, _RT],
735
+ [0, [0, 4], [() => SecretBinaryType, 0], [() => SecretStringType, 0], 64 | 0, [() => RotationTokenType, 0]],
736
+ ];
737
+ var PutSecretValueResponse = [3, n0, _PSVRu, 0, [_ARN, _N, _VI, _VSe], [0, 0, 0, 64 | 0]];
738
+ var RemoveRegionsFromReplicationRequest = [3, n0, _RRFRR, 0, [_SI, _RRR], [0, 64 | 0]];
739
+ var RemoveRegionsFromReplicationResponse = [
740
+ 3,
741
+ n0,
742
+ _RRFRRe,
743
+ 0,
744
+ [_ARN, _RS],
745
+ [0, () => ReplicationStatusListType],
746
+ ];
747
+ var ReplicaRegionType = [3, n0, _RRT, 0, [_R, _KKI], [0, 0]];
748
+ var ReplicateSecretToRegionsRequest = [
749
+ 3,
750
+ n0,
751
+ _RSTRR,
752
+ 0,
753
+ [_SI, _ARR, _FORS],
754
+ [0, () => AddReplicaRegionListType, 2],
755
+ ];
756
+ var ReplicateSecretToRegionsResponse = [
757
+ 3,
758
+ n0,
759
+ _RSTRRe,
760
+ 0,
761
+ [_ARN, _RS],
762
+ [0, () => ReplicationStatusListType],
763
+ ];
764
+ var ReplicationStatusType = [3, n0, _RST, 0, [_R, _KKI, _S, _SM, _LAD], [0, 0, 0, 0, 4]];
765
+ var ResourceExistsException = [
766
+ -3,
767
+ n0,
768
+ _REE,
769
+ {
770
+ [_e]: _c,
771
+ },
772
+ [_M],
773
+ [0],
774
+ ];
775
+ schema.TypeRegistry.for(n0).registerError(ResourceExistsException, ResourceExistsException$1);
776
+ var ResourceNotFoundException = [
777
+ -3,
778
+ n0,
779
+ _RNFE,
780
+ {
781
+ [_e]: _c,
782
+ },
783
+ [_M],
784
+ [0],
785
+ ];
786
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
787
+ var RestoreSecretRequest = [3, n0, _RSR, 0, [_SI], [0]];
788
+ var RestoreSecretResponse = [3, n0, _RSRe, 0, [_ARN, _N], [0, 0]];
789
+ var RotateSecretRequest = [
790
+ 3,
791
+ n0,
792
+ _RSRo,
793
+ 0,
794
+ [_SI, _CRT, _RLARN, _RR, _RI],
795
+ [0, [0, 4], 0, () => RotationRulesType, 2],
796
+ ];
797
+ var RotateSecretResponse = [3, n0, _RSRot, 0, [_ARN, _N, _VI], [0, 0, 0]];
798
+ var RotationRulesType = [3, n0, _RRTo, 0, [_AAD, _Du, _SE], [1, 0, 0]];
799
+ var SecretListEntry = [
800
+ 3,
801
+ n0,
802
+ _SLE,
803
+ 0,
804
+ [_ARN, _N, _D, _KKI, _RE, _RLARN, _RR, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _SVTS, _OS, _CD, _PR],
805
+ [
806
+ 0,
807
+ 0,
808
+ 0,
809
+ 0,
810
+ 2,
811
+ 0,
812
+ () => RotationRulesType,
813
+ 4,
814
+ 4,
815
+ 4,
816
+ 4,
817
+ 4,
818
+ () => TagListType,
819
+ [2, n0, _SVTSMT, 0, 0, 64 | 0],
820
+ 0,
821
+ 4,
822
+ 0,
823
+ ],
824
+ ];
825
+ var SecretValueEntry = [
826
+ 3,
827
+ n0,
828
+ _SVE,
829
+ 0,
830
+ [_ARN, _N, _VI, _SB, _SS, _VSe, _CD],
831
+ [0, 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], 64 | 0, 4],
832
+ ];
833
+ var SecretVersionsListEntry = [
834
+ 3,
835
+ n0,
836
+ _SVLE,
837
+ 0,
838
+ [_VI, _VSe, _LAD, _CD, _KKIm],
839
+ [0, 64 | 0, 4, 4, 64 | 0],
840
+ ];
841
+ var StopReplicationToReplicaRequest = [3, n0, _SRTRR, 0, [_SI], [0]];
842
+ var StopReplicationToReplicaResponse = [3, n0, _SRTRRt, 0, [_ARN], [0]];
843
+ var Tag = [3, n0, _Ta, 0, [_K, _Va], [0, 0]];
844
+ var TagResourceRequest = [3, n0, _TRR, 0, [_SI, _T], [0, () => TagListType]];
845
+ var UntagResourceRequest = [3, n0, _URR, 0, [_SI, _TK], [0, 64 | 0]];
846
+ var UpdateSecretRequest = [
847
+ 3,
848
+ n0,
849
+ _USR,
850
+ 0,
851
+ [_SI, _CRT, _D, _KKI, _SB, _SS],
852
+ [0, [0, 4], 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0]],
853
+ ];
854
+ var UpdateSecretResponse = [3, n0, _USRp, 0, [_ARN, _N, _VI], [0, 0, 0]];
855
+ var UpdateSecretVersionStageRequest = [
856
+ 3,
857
+ n0,
858
+ _USVSR,
859
+ 0,
860
+ [_SI, _VS, _RFVI, _MTVI],
861
+ [0, 0, 0, 0],
862
+ ];
863
+ var UpdateSecretVersionStageResponse = [3, n0, _USVSRp, 0, [_ARN, _N], [0, 0]];
864
+ var ValidateResourcePolicyRequest = [3, n0, _VRPR, 0, [_SI, _RPe], [0, 0]];
865
+ var ValidateResourcePolicyResponse = [
866
+ 3,
867
+ n0,
868
+ _VRPRa,
869
+ 0,
870
+ [_PVP, _VE],
871
+ [2, () => ValidationErrorsType],
872
+ ];
873
+ var ValidationErrorsEntry = [3, n0, _VEE, 0, [_CN, _EM], [0, 0]];
874
+ var __Unit = "unit";
875
+ var SecretsManagerServiceException = [-3, _sm, "SecretsManagerServiceException", 0, [], []];
876
+ schema.TypeRegistry.for(_sm).registerError(SecretsManagerServiceException, SecretsManagerServiceException$1);
877
+ var AddReplicaRegionListType = [1, n0, _ARRLT, 0, () => ReplicaRegionType];
878
+ var APIErrorListType = [1, n0, _APIELT, 0, () => APIErrorType];
879
+ var FiltersListType = [1, n0, _FLT, 0, () => Filter];
880
+ var ReplicationStatusListType = [1, n0, _RSLT, 0, () => ReplicationStatusType];
881
+ var SecretListType = [1, n0, _SLT, 0, () => SecretListEntry];
882
+ var SecretValuesType = [1, n0, _SVT, 0, [() => SecretValueEntry, 0]];
883
+ var SecretVersionsListType = [1, n0, _SVLT, 0, () => SecretVersionsListEntry];
884
+ var TagListType = [1, n0, _TLT, 0, () => Tag];
885
+ var ValidationErrorsType = [1, n0, _VET, 0, () => ValidationErrorsEntry];
886
+ var BatchGetSecretValue = [
887
+ 9,
888
+ n0,
889
+ _BGSV,
890
+ 0,
891
+ () => BatchGetSecretValueRequest,
892
+ () => BatchGetSecretValueResponse,
893
+ ];
894
+ var CancelRotateSecret = [
895
+ 9,
896
+ n0,
897
+ _CRS,
898
+ 0,
899
+ () => CancelRotateSecretRequest,
900
+ () => CancelRotateSecretResponse,
901
+ ];
902
+ var CreateSecret = [9, n0, _CS, 0, () => CreateSecretRequest, () => CreateSecretResponse];
903
+ var DeleteResourcePolicy = [
904
+ 9,
905
+ n0,
906
+ _DRP,
907
+ 0,
908
+ () => DeleteResourcePolicyRequest,
909
+ () => DeleteResourcePolicyResponse,
910
+ ];
911
+ var DeleteSecret = [9, n0, _DS, 0, () => DeleteSecretRequest, () => DeleteSecretResponse];
912
+ var DescribeSecret = [
913
+ 9,
914
+ n0,
915
+ _DSe,
916
+ 0,
917
+ () => DescribeSecretRequest,
918
+ () => DescribeSecretResponse,
919
+ ];
920
+ var GetRandomPassword = [
921
+ 9,
922
+ n0,
923
+ _GRP,
924
+ 0,
925
+ () => GetRandomPasswordRequest,
926
+ () => GetRandomPasswordResponse,
927
+ ];
928
+ var GetResourcePolicy = [
929
+ 9,
930
+ n0,
931
+ _GRPe,
932
+ 0,
933
+ () => GetResourcePolicyRequest,
934
+ () => GetResourcePolicyResponse,
935
+ ];
936
+ var GetSecretValue = [
937
+ 9,
938
+ n0,
939
+ _GSV,
940
+ 0,
941
+ () => GetSecretValueRequest,
942
+ () => GetSecretValueResponse,
943
+ ];
944
+ var ListSecrets = [9, n0, _LS, 0, () => ListSecretsRequest, () => ListSecretsResponse];
945
+ var ListSecretVersionIds = [
946
+ 9,
947
+ n0,
948
+ _LSVI,
949
+ 0,
950
+ () => ListSecretVersionIdsRequest,
951
+ () => ListSecretVersionIdsResponse,
952
+ ];
953
+ var PutResourcePolicy = [
954
+ 9,
955
+ n0,
956
+ _PRP,
957
+ 0,
958
+ () => PutResourcePolicyRequest,
959
+ () => PutResourcePolicyResponse,
960
+ ];
961
+ var PutSecretValue = [
962
+ 9,
963
+ n0,
964
+ _PSV,
965
+ 0,
966
+ () => PutSecretValueRequest,
967
+ () => PutSecretValueResponse,
968
+ ];
969
+ var RemoveRegionsFromReplication = [
970
+ 9,
971
+ n0,
972
+ _RRFR,
973
+ 0,
974
+ () => RemoveRegionsFromReplicationRequest,
975
+ () => RemoveRegionsFromReplicationResponse,
976
+ ];
977
+ var ReplicateSecretToRegions = [
978
+ 9,
979
+ n0,
980
+ _RSTR,
981
+ 0,
982
+ () => ReplicateSecretToRegionsRequest,
983
+ () => ReplicateSecretToRegionsResponse,
984
+ ];
985
+ var RestoreSecret = [
986
+ 9,
987
+ n0,
988
+ _RSe,
989
+ 0,
990
+ () => RestoreSecretRequest,
991
+ () => RestoreSecretResponse,
992
+ ];
993
+ var RotateSecret = [
994
+ 9,
995
+ n0,
996
+ _RSo,
997
+ 0,
998
+ () => RotateSecretRequest,
999
+ () => RotateSecretResponse,
1000
+ ];
1001
+ var StopReplicationToReplica = [
1002
+ 9,
1003
+ n0,
1004
+ _SRTR,
1005
+ 0,
1006
+ () => StopReplicationToReplicaRequest,
1007
+ () => StopReplicationToReplicaResponse,
1008
+ ];
1009
+ var TagResource = [9, n0, _TR, 0, () => TagResourceRequest, () => __Unit];
1010
+ var UntagResource = [9, n0, _UR, 0, () => UntagResourceRequest, () => __Unit];
1011
+ var UpdateSecret = [9, n0, _US, 0, () => UpdateSecretRequest, () => UpdateSecretResponse];
1012
+ var UpdateSecretVersionStage = [
1013
+ 9,
1014
+ n0,
1015
+ _USVS,
1016
+ 0,
1017
+ () => UpdateSecretVersionStageRequest,
1018
+ () => UpdateSecretVersionStageResponse,
1019
+ ];
1020
+ var ValidateResourcePolicy = [
1021
+ 9,
1022
+ n0,
1023
+ _VRP,
1024
+ 0,
1025
+ () => ValidateResourcePolicyRequest,
1026
+ () => ValidateResourcePolicyResponse,
1027
+ ];
1166
1028
 
1167
1029
  class BatchGetSecretValueCommand extends smithyClient.Command
1168
1030
  .classBuilder()
1169
1031
  .ep(commonParams)
1170
1032
  .m(function (Command, cs, config, o) {
1171
- return [
1172
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1173
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1174
- ];
1033
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1175
1034
  })
1176
1035
  .s("secretsmanager", "BatchGetSecretValue", {})
1177
1036
  .n("SecretsManagerClient", "BatchGetSecretValueCommand")
1178
- .f(void 0, BatchGetSecretValueResponseFilterSensitiveLog)
1179
- .ser(se_BatchGetSecretValueCommand)
1180
- .de(de_BatchGetSecretValueCommand)
1037
+ .sc(BatchGetSecretValue)
1181
1038
  .build() {
1182
1039
  }
1183
1040
 
@@ -1185,16 +1042,11 @@ class CancelRotateSecretCommand extends smithyClient.Command
1185
1042
  .classBuilder()
1186
1043
  .ep(commonParams)
1187
1044
  .m(function (Command, cs, config, o) {
1188
- return [
1189
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1190
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1191
- ];
1045
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1192
1046
  })
1193
1047
  .s("secretsmanager", "CancelRotateSecret", {})
1194
1048
  .n("SecretsManagerClient", "CancelRotateSecretCommand")
1195
- .f(void 0, void 0)
1196
- .ser(se_CancelRotateSecretCommand)
1197
- .de(de_CancelRotateSecretCommand)
1049
+ .sc(CancelRotateSecret)
1198
1050
  .build() {
1199
1051
  }
1200
1052
 
@@ -1202,16 +1054,11 @@ class CreateSecretCommand extends smithyClient.Command
1202
1054
  .classBuilder()
1203
1055
  .ep(commonParams)
1204
1056
  .m(function (Command, cs, config, o) {
1205
- return [
1206
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1207
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1208
- ];
1057
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1209
1058
  })
1210
1059
  .s("secretsmanager", "CreateSecret", {})
1211
1060
  .n("SecretsManagerClient", "CreateSecretCommand")
1212
- .f(CreateSecretRequestFilterSensitiveLog, void 0)
1213
- .ser(se_CreateSecretCommand)
1214
- .de(de_CreateSecretCommand)
1061
+ .sc(CreateSecret)
1215
1062
  .build() {
1216
1063
  }
1217
1064
 
@@ -1219,16 +1066,11 @@ class DeleteResourcePolicyCommand extends smithyClient.Command
1219
1066
  .classBuilder()
1220
1067
  .ep(commonParams)
1221
1068
  .m(function (Command, cs, config, o) {
1222
- return [
1223
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1224
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1225
- ];
1069
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1226
1070
  })
1227
1071
  .s("secretsmanager", "DeleteResourcePolicy", {})
1228
1072
  .n("SecretsManagerClient", "DeleteResourcePolicyCommand")
1229
- .f(void 0, void 0)
1230
- .ser(se_DeleteResourcePolicyCommand)
1231
- .de(de_DeleteResourcePolicyCommand)
1073
+ .sc(DeleteResourcePolicy)
1232
1074
  .build() {
1233
1075
  }
1234
1076
 
@@ -1236,16 +1078,11 @@ class DeleteSecretCommand extends smithyClient.Command
1236
1078
  .classBuilder()
1237
1079
  .ep(commonParams)
1238
1080
  .m(function (Command, cs, config, o) {
1239
- return [
1240
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1241
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1242
- ];
1081
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1243
1082
  })
1244
1083
  .s("secretsmanager", "DeleteSecret", {})
1245
1084
  .n("SecretsManagerClient", "DeleteSecretCommand")
1246
- .f(void 0, void 0)
1247
- .ser(se_DeleteSecretCommand)
1248
- .de(de_DeleteSecretCommand)
1085
+ .sc(DeleteSecret)
1249
1086
  .build() {
1250
1087
  }
1251
1088
 
@@ -1253,16 +1090,11 @@ class DescribeSecretCommand extends smithyClient.Command
1253
1090
  .classBuilder()
1254
1091
  .ep(commonParams)
1255
1092
  .m(function (Command, cs, config, o) {
1256
- return [
1257
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1258
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1259
- ];
1093
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1260
1094
  })
1261
1095
  .s("secretsmanager", "DescribeSecret", {})
1262
1096
  .n("SecretsManagerClient", "DescribeSecretCommand")
1263
- .f(void 0, void 0)
1264
- .ser(se_DescribeSecretCommand)
1265
- .de(de_DescribeSecretCommand)
1097
+ .sc(DescribeSecret)
1266
1098
  .build() {
1267
1099
  }
1268
1100
 
@@ -1270,16 +1102,11 @@ class GetRandomPasswordCommand extends smithyClient.Command
1270
1102
  .classBuilder()
1271
1103
  .ep(commonParams)
1272
1104
  .m(function (Command, cs, config, o) {
1273
- return [
1274
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1275
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1276
- ];
1105
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1277
1106
  })
1278
1107
  .s("secretsmanager", "GetRandomPassword", {})
1279
1108
  .n("SecretsManagerClient", "GetRandomPasswordCommand")
1280
- .f(void 0, GetRandomPasswordResponseFilterSensitiveLog)
1281
- .ser(se_GetRandomPasswordCommand)
1282
- .de(de_GetRandomPasswordCommand)
1109
+ .sc(GetRandomPassword)
1283
1110
  .build() {
1284
1111
  }
1285
1112
 
@@ -1287,16 +1114,11 @@ class GetResourcePolicyCommand extends smithyClient.Command
1287
1114
  .classBuilder()
1288
1115
  .ep(commonParams)
1289
1116
  .m(function (Command, cs, config, o) {
1290
- return [
1291
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1292
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1293
- ];
1117
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1294
1118
  })
1295
1119
  .s("secretsmanager", "GetResourcePolicy", {})
1296
1120
  .n("SecretsManagerClient", "GetResourcePolicyCommand")
1297
- .f(void 0, void 0)
1298
- .ser(se_GetResourcePolicyCommand)
1299
- .de(de_GetResourcePolicyCommand)
1121
+ .sc(GetResourcePolicy)
1300
1122
  .build() {
1301
1123
  }
1302
1124
 
@@ -1304,16 +1126,11 @@ class GetSecretValueCommand extends smithyClient.Command
1304
1126
  .classBuilder()
1305
1127
  .ep(commonParams)
1306
1128
  .m(function (Command, cs, config, o) {
1307
- return [
1308
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1309
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1310
- ];
1129
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1311
1130
  })
1312
1131
  .s("secretsmanager", "GetSecretValue", {})
1313
1132
  .n("SecretsManagerClient", "GetSecretValueCommand")
1314
- .f(void 0, GetSecretValueResponseFilterSensitiveLog)
1315
- .ser(se_GetSecretValueCommand)
1316
- .de(de_GetSecretValueCommand)
1133
+ .sc(GetSecretValue)
1317
1134
  .build() {
1318
1135
  }
1319
1136
 
@@ -1321,16 +1138,11 @@ class ListSecretsCommand extends smithyClient.Command
1321
1138
  .classBuilder()
1322
1139
  .ep(commonParams)
1323
1140
  .m(function (Command, cs, config, o) {
1324
- return [
1325
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1326
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1327
- ];
1141
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1328
1142
  })
1329
1143
  .s("secretsmanager", "ListSecrets", {})
1330
1144
  .n("SecretsManagerClient", "ListSecretsCommand")
1331
- .f(void 0, void 0)
1332
- .ser(se_ListSecretsCommand)
1333
- .de(de_ListSecretsCommand)
1145
+ .sc(ListSecrets)
1334
1146
  .build() {
1335
1147
  }
1336
1148
 
@@ -1338,16 +1150,11 @@ class ListSecretVersionIdsCommand extends smithyClient.Command
1338
1150
  .classBuilder()
1339
1151
  .ep(commonParams)
1340
1152
  .m(function (Command, cs, config, o) {
1341
- return [
1342
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1343
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1344
- ];
1153
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1345
1154
  })
1346
1155
  .s("secretsmanager", "ListSecretVersionIds", {})
1347
1156
  .n("SecretsManagerClient", "ListSecretVersionIdsCommand")
1348
- .f(void 0, void 0)
1349
- .ser(se_ListSecretVersionIdsCommand)
1350
- .de(de_ListSecretVersionIdsCommand)
1157
+ .sc(ListSecretVersionIds)
1351
1158
  .build() {
1352
1159
  }
1353
1160
 
@@ -1355,16 +1162,11 @@ class PutResourcePolicyCommand extends smithyClient.Command
1355
1162
  .classBuilder()
1356
1163
  .ep(commonParams)
1357
1164
  .m(function (Command, cs, config, o) {
1358
- return [
1359
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1360
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1361
- ];
1165
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1362
1166
  })
1363
1167
  .s("secretsmanager", "PutResourcePolicy", {})
1364
1168
  .n("SecretsManagerClient", "PutResourcePolicyCommand")
1365
- .f(void 0, void 0)
1366
- .ser(se_PutResourcePolicyCommand)
1367
- .de(de_PutResourcePolicyCommand)
1169
+ .sc(PutResourcePolicy)
1368
1170
  .build() {
1369
1171
  }
1370
1172
 
@@ -1372,16 +1174,11 @@ class PutSecretValueCommand extends smithyClient.Command
1372
1174
  .classBuilder()
1373
1175
  .ep(commonParams)
1374
1176
  .m(function (Command, cs, config, o) {
1375
- return [
1376
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1377
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1378
- ];
1177
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1379
1178
  })
1380
1179
  .s("secretsmanager", "PutSecretValue", {})
1381
1180
  .n("SecretsManagerClient", "PutSecretValueCommand")
1382
- .f(PutSecretValueRequestFilterSensitiveLog, void 0)
1383
- .ser(se_PutSecretValueCommand)
1384
- .de(de_PutSecretValueCommand)
1181
+ .sc(PutSecretValue)
1385
1182
  .build() {
1386
1183
  }
1387
1184
 
@@ -1389,16 +1186,11 @@ class RemoveRegionsFromReplicationCommand extends smithyClient.Command
1389
1186
  .classBuilder()
1390
1187
  .ep(commonParams)
1391
1188
  .m(function (Command, cs, config, o) {
1392
- return [
1393
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1394
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1395
- ];
1189
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1396
1190
  })
1397
1191
  .s("secretsmanager", "RemoveRegionsFromReplication", {})
1398
1192
  .n("SecretsManagerClient", "RemoveRegionsFromReplicationCommand")
1399
- .f(void 0, void 0)
1400
- .ser(se_RemoveRegionsFromReplicationCommand)
1401
- .de(de_RemoveRegionsFromReplicationCommand)
1193
+ .sc(RemoveRegionsFromReplication)
1402
1194
  .build() {
1403
1195
  }
1404
1196
 
@@ -1406,16 +1198,11 @@ class ReplicateSecretToRegionsCommand extends smithyClient.Command
1406
1198
  .classBuilder()
1407
1199
  .ep(commonParams)
1408
1200
  .m(function (Command, cs, config, o) {
1409
- return [
1410
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1411
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1412
- ];
1201
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1413
1202
  })
1414
1203
  .s("secretsmanager", "ReplicateSecretToRegions", {})
1415
1204
  .n("SecretsManagerClient", "ReplicateSecretToRegionsCommand")
1416
- .f(void 0, void 0)
1417
- .ser(se_ReplicateSecretToRegionsCommand)
1418
- .de(de_ReplicateSecretToRegionsCommand)
1205
+ .sc(ReplicateSecretToRegions)
1419
1206
  .build() {
1420
1207
  }
1421
1208
 
@@ -1423,16 +1210,11 @@ class RestoreSecretCommand extends smithyClient.Command
1423
1210
  .classBuilder()
1424
1211
  .ep(commonParams)
1425
1212
  .m(function (Command, cs, config, o) {
1426
- return [
1427
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1428
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1429
- ];
1213
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1430
1214
  })
1431
1215
  .s("secretsmanager", "RestoreSecret", {})
1432
1216
  .n("SecretsManagerClient", "RestoreSecretCommand")
1433
- .f(void 0, void 0)
1434
- .ser(se_RestoreSecretCommand)
1435
- .de(de_RestoreSecretCommand)
1217
+ .sc(RestoreSecret)
1436
1218
  .build() {
1437
1219
  }
1438
1220
 
@@ -1440,16 +1222,11 @@ class RotateSecretCommand extends smithyClient.Command
1440
1222
  .classBuilder()
1441
1223
  .ep(commonParams)
1442
1224
  .m(function (Command, cs, config, o) {
1443
- return [
1444
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1445
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1446
- ];
1225
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1447
1226
  })
1448
1227
  .s("secretsmanager", "RotateSecret", {})
1449
1228
  .n("SecretsManagerClient", "RotateSecretCommand")
1450
- .f(void 0, void 0)
1451
- .ser(se_RotateSecretCommand)
1452
- .de(de_RotateSecretCommand)
1229
+ .sc(RotateSecret)
1453
1230
  .build() {
1454
1231
  }
1455
1232
 
@@ -1457,16 +1234,11 @@ class StopReplicationToReplicaCommand extends smithyClient.Command
1457
1234
  .classBuilder()
1458
1235
  .ep(commonParams)
1459
1236
  .m(function (Command, cs, config, o) {
1460
- return [
1461
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1462
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1463
- ];
1237
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1464
1238
  })
1465
1239
  .s("secretsmanager", "StopReplicationToReplica", {})
1466
1240
  .n("SecretsManagerClient", "StopReplicationToReplicaCommand")
1467
- .f(void 0, void 0)
1468
- .ser(se_StopReplicationToReplicaCommand)
1469
- .de(de_StopReplicationToReplicaCommand)
1241
+ .sc(StopReplicationToReplica)
1470
1242
  .build() {
1471
1243
  }
1472
1244
 
@@ -1474,16 +1246,11 @@ class TagResourceCommand extends smithyClient.Command
1474
1246
  .classBuilder()
1475
1247
  .ep(commonParams)
1476
1248
  .m(function (Command, cs, config, o) {
1477
- return [
1478
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1479
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1480
- ];
1249
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1481
1250
  })
1482
1251
  .s("secretsmanager", "TagResource", {})
1483
1252
  .n("SecretsManagerClient", "TagResourceCommand")
1484
- .f(void 0, void 0)
1485
- .ser(se_TagResourceCommand)
1486
- .de(de_TagResourceCommand)
1253
+ .sc(TagResource)
1487
1254
  .build() {
1488
1255
  }
1489
1256
 
@@ -1491,16 +1258,11 @@ class UntagResourceCommand extends smithyClient.Command
1491
1258
  .classBuilder()
1492
1259
  .ep(commonParams)
1493
1260
  .m(function (Command, cs, config, o) {
1494
- return [
1495
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1496
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1497
- ];
1261
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1498
1262
  })
1499
1263
  .s("secretsmanager", "UntagResource", {})
1500
1264
  .n("SecretsManagerClient", "UntagResourceCommand")
1501
- .f(void 0, void 0)
1502
- .ser(se_UntagResourceCommand)
1503
- .de(de_UntagResourceCommand)
1265
+ .sc(UntagResource)
1504
1266
  .build() {
1505
1267
  }
1506
1268
 
@@ -1508,16 +1270,11 @@ class UpdateSecretCommand extends smithyClient.Command
1508
1270
  .classBuilder()
1509
1271
  .ep(commonParams)
1510
1272
  .m(function (Command, cs, config, o) {
1511
- return [
1512
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1513
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1514
- ];
1273
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1515
1274
  })
1516
1275
  .s("secretsmanager", "UpdateSecret", {})
1517
1276
  .n("SecretsManagerClient", "UpdateSecretCommand")
1518
- .f(UpdateSecretRequestFilterSensitiveLog, void 0)
1519
- .ser(se_UpdateSecretCommand)
1520
- .de(de_UpdateSecretCommand)
1277
+ .sc(UpdateSecret)
1521
1278
  .build() {
1522
1279
  }
1523
1280
 
@@ -1525,16 +1282,11 @@ class UpdateSecretVersionStageCommand extends smithyClient.Command
1525
1282
  .classBuilder()
1526
1283
  .ep(commonParams)
1527
1284
  .m(function (Command, cs, config, o) {
1528
- return [
1529
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1530
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1531
- ];
1285
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1532
1286
  })
1533
1287
  .s("secretsmanager", "UpdateSecretVersionStage", {})
1534
1288
  .n("SecretsManagerClient", "UpdateSecretVersionStageCommand")
1535
- .f(void 0, void 0)
1536
- .ser(se_UpdateSecretVersionStageCommand)
1537
- .de(de_UpdateSecretVersionStageCommand)
1289
+ .sc(UpdateSecretVersionStage)
1538
1290
  .build() {
1539
1291
  }
1540
1292
 
@@ -1542,16 +1294,11 @@ class ValidateResourcePolicyCommand extends smithyClient.Command
1542
1294
  .classBuilder()
1543
1295
  .ep(commonParams)
1544
1296
  .m(function (Command, cs, config, o) {
1545
- return [
1546
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1547
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1548
- ];
1297
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1549
1298
  })
1550
1299
  .s("secretsmanager", "ValidateResourcePolicy", {})
1551
1300
  .n("SecretsManagerClient", "ValidateResourcePolicyCommand")
1552
- .f(void 0, void 0)
1553
- .ser(se_ValidateResourcePolicyCommand)
1554
- .de(de_ValidateResourcePolicyCommand)
1301
+ .sc(ValidateResourcePolicy)
1555
1302
  .build() {
1556
1303
  }
1557
1304
 
@@ -1599,51 +1346,44 @@ Object.defineProperty(exports, "__Client", {
1599
1346
  get: function () { return smithyClient.Client; }
1600
1347
  });
1601
1348
  exports.BatchGetSecretValueCommand = BatchGetSecretValueCommand;
1602
- exports.BatchGetSecretValueResponseFilterSensitiveLog = BatchGetSecretValueResponseFilterSensitiveLog;
1603
1349
  exports.CancelRotateSecretCommand = CancelRotateSecretCommand;
1604
1350
  exports.CreateSecretCommand = CreateSecretCommand;
1605
- exports.CreateSecretRequestFilterSensitiveLog = CreateSecretRequestFilterSensitiveLog;
1606
- exports.DecryptionFailure = DecryptionFailure;
1351
+ exports.DecryptionFailure = DecryptionFailure$1;
1607
1352
  exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
1608
1353
  exports.DeleteSecretCommand = DeleteSecretCommand;
1609
1354
  exports.DescribeSecretCommand = DescribeSecretCommand;
1610
- exports.EncryptionFailure = EncryptionFailure;
1355
+ exports.EncryptionFailure = EncryptionFailure$1;
1611
1356
  exports.FilterNameStringType = FilterNameStringType;
1612
1357
  exports.GetRandomPasswordCommand = GetRandomPasswordCommand;
1613
- exports.GetRandomPasswordResponseFilterSensitiveLog = GetRandomPasswordResponseFilterSensitiveLog;
1614
1358
  exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
1615
1359
  exports.GetSecretValueCommand = GetSecretValueCommand;
1616
- exports.GetSecretValueResponseFilterSensitiveLog = GetSecretValueResponseFilterSensitiveLog;
1617
- exports.InternalServiceError = InternalServiceError;
1618
- exports.InvalidNextTokenException = InvalidNextTokenException;
1619
- exports.InvalidParameterException = InvalidParameterException;
1620
- exports.InvalidRequestException = InvalidRequestException;
1621
- exports.LimitExceededException = LimitExceededException;
1360
+ exports.InternalServiceError = InternalServiceError$1;
1361
+ exports.InvalidNextTokenException = InvalidNextTokenException$1;
1362
+ exports.InvalidParameterException = InvalidParameterException$1;
1363
+ exports.InvalidRequestException = InvalidRequestException$1;
1364
+ exports.LimitExceededException = LimitExceededException$1;
1622
1365
  exports.ListSecretVersionIdsCommand = ListSecretVersionIdsCommand;
1623
1366
  exports.ListSecretsCommand = ListSecretsCommand;
1624
- exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
1625
- exports.PreconditionNotMetException = PreconditionNotMetException;
1626
- exports.PublicPolicyException = PublicPolicyException;
1367
+ exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException$1;
1368
+ exports.PreconditionNotMetException = PreconditionNotMetException$1;
1369
+ exports.PublicPolicyException = PublicPolicyException$1;
1627
1370
  exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
1628
1371
  exports.PutSecretValueCommand = PutSecretValueCommand;
1629
- exports.PutSecretValueRequestFilterSensitiveLog = PutSecretValueRequestFilterSensitiveLog;
1630
1372
  exports.RemoveRegionsFromReplicationCommand = RemoveRegionsFromReplicationCommand;
1631
1373
  exports.ReplicateSecretToRegionsCommand = ReplicateSecretToRegionsCommand;
1632
- exports.ResourceExistsException = ResourceExistsException;
1633
- exports.ResourceNotFoundException = ResourceNotFoundException;
1374
+ exports.ResourceExistsException = ResourceExistsException$1;
1375
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1634
1376
  exports.RestoreSecretCommand = RestoreSecretCommand;
1635
1377
  exports.RotateSecretCommand = RotateSecretCommand;
1636
- exports.SecretValueEntryFilterSensitiveLog = SecretValueEntryFilterSensitiveLog;
1637
1378
  exports.SecretsManager = SecretsManager;
1638
1379
  exports.SecretsManagerClient = SecretsManagerClient;
1639
- exports.SecretsManagerServiceException = SecretsManagerServiceException;
1380
+ exports.SecretsManagerServiceException = SecretsManagerServiceException$1;
1640
1381
  exports.SortOrderType = SortOrderType;
1641
1382
  exports.StatusType = StatusType;
1642
1383
  exports.StopReplicationToReplicaCommand = StopReplicationToReplicaCommand;
1643
1384
  exports.TagResourceCommand = TagResourceCommand;
1644
1385
  exports.UntagResourceCommand = UntagResourceCommand;
1645
1386
  exports.UpdateSecretCommand = UpdateSecretCommand;
1646
- exports.UpdateSecretRequestFilterSensitiveLog = UpdateSecretRequestFilterSensitiveLog;
1647
1387
  exports.UpdateSecretVersionStageCommand = UpdateSecretVersionStageCommand;
1648
1388
  exports.ValidateResourcePolicyCommand = ValidateResourcePolicyCommand;
1649
1389
  exports.paginateBatchGetSecretValue = paginateBatchGetSecretValue;