@aws-sdk/client-dlm 3.312.0 → 3.315.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.
@@ -12,13 +12,13 @@ const se_CreateLifecyclePolicyCommand = async (input, context) => {
12
12
  };
13
13
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies";
14
14
  let body;
15
- body = JSON.stringify({
16
- ...(input.Description != null && { Description: input.Description }),
17
- ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
18
- ...(input.PolicyDetails != null && { PolicyDetails: se_PolicyDetails(input.PolicyDetails, context) }),
19
- ...(input.State != null && { State: input.State }),
20
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
21
- });
15
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
16
+ Description: [],
17
+ ExecutionRoleArn: [],
18
+ PolicyDetails: (_) => (0, smithy_client_1._json)(_),
19
+ State: [],
20
+ Tags: (_) => (0, smithy_client_1._json)(_),
21
+ }));
22
22
  return new protocol_http_1.HttpRequest({
23
23
  protocol,
24
24
  hostname,
@@ -51,7 +51,7 @@ const se_GetLifecyclePoliciesCommand = async (input, context) => {
51
51
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
52
52
  const headers = {};
53
53
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies";
54
- const query = map({
54
+ const query = (0, smithy_client_1.map)({
55
55
  policyIds: [() => input.PolicyIds !== void 0, () => (input.PolicyIds || []).map((_entry) => _entry)],
56
56
  state: [, input.State],
57
57
  resourceTypes: [
@@ -116,9 +116,9 @@ const se_TagResourceCommand = async (input, context) => {
116
116
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
117
117
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
118
118
  let body;
119
- body = JSON.stringify({
120
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
121
- });
119
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
120
+ Tags: (_) => (0, smithy_client_1._json)(_),
121
+ }));
122
122
  return new protocol_http_1.HttpRequest({
123
123
  protocol,
124
124
  hostname,
@@ -135,7 +135,7 @@ const se_UntagResourceCommand = async (input, context) => {
135
135
  const headers = {};
136
136
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
137
137
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
138
- const query = map({
138
+ const query = (0, smithy_client_1.map)({
139
139
  tagKeys: [
140
140
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
141
141
  () => (input.TagKeys || []).map((_entry) => _entry),
@@ -162,12 +162,12 @@ const se_UpdateLifecyclePolicyCommand = async (input, context) => {
162
162
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}";
163
163
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyId", () => input.PolicyId, "{PolicyId}", false);
164
164
  let body;
165
- body = JSON.stringify({
166
- ...(input.Description != null && { Description: input.Description }),
167
- ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
168
- ...(input.PolicyDetails != null && { PolicyDetails: se_PolicyDetails(input.PolicyDetails, context) }),
169
- ...(input.State != null && { State: input.State }),
170
- });
165
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
166
+ Description: [],
167
+ ExecutionRoleArn: [],
168
+ PolicyDetails: (_) => (0, smithy_client_1._json)(_),
169
+ State: [],
170
+ }));
171
171
  return new protocol_http_1.HttpRequest({
172
172
  protocol,
173
173
  hostname,
@@ -183,13 +183,14 @@ const de_CreateLifecyclePolicyCommand = async (output, context) => {
183
183
  if (output.statusCode !== 200 && output.statusCode >= 300) {
184
184
  return de_CreateLifecyclePolicyCommandError(output, context);
185
185
  }
186
- const contents = map({
186
+ const contents = (0, smithy_client_1.map)({
187
187
  $metadata: deserializeMetadata(output),
188
188
  });
189
189
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
190
- if (data.PolicyId != null) {
191
- contents.PolicyId = (0, smithy_client_1.expectString)(data.PolicyId);
192
- }
190
+ const doc = (0, smithy_client_1.take)(data, {
191
+ PolicyId: smithy_client_1.expectString,
192
+ });
193
+ Object.assign(contents, doc);
193
194
  return contents;
194
195
  };
195
196
  exports.de_CreateLifecyclePolicyCommand = de_CreateLifecyclePolicyCommand;
@@ -211,10 +212,9 @@ const de_CreateLifecyclePolicyCommandError = async (output, context) => {
211
212
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
212
213
  default:
213
214
  const parsedBody = parsedOutput.body;
214
- (0, smithy_client_1.throwDefaultError)({
215
+ return throwDefaultError({
215
216
  output,
216
217
  parsedBody,
217
- exceptionCtor: DLMServiceException_1.DLMServiceException,
218
218
  errorCode,
219
219
  });
220
220
  }
@@ -223,7 +223,7 @@ const de_DeleteLifecyclePolicyCommand = async (output, context) => {
223
223
  if (output.statusCode !== 200 && output.statusCode >= 300) {
224
224
  return de_DeleteLifecyclePolicyCommandError(output, context);
225
225
  }
226
- const contents = map({
226
+ const contents = (0, smithy_client_1.map)({
227
227
  $metadata: deserializeMetadata(output),
228
228
  });
229
229
  await collectBody(output.body, context);
@@ -248,10 +248,9 @@ const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
248
248
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
249
249
  default:
250
250
  const parsedBody = parsedOutput.body;
251
- (0, smithy_client_1.throwDefaultError)({
251
+ return throwDefaultError({
252
252
  output,
253
253
  parsedBody,
254
- exceptionCtor: DLMServiceException_1.DLMServiceException,
255
254
  errorCode,
256
255
  });
257
256
  }
@@ -260,13 +259,14 @@ const de_GetLifecyclePoliciesCommand = async (output, context) => {
260
259
  if (output.statusCode !== 200 && output.statusCode >= 300) {
261
260
  return de_GetLifecyclePoliciesCommandError(output, context);
262
261
  }
263
- const contents = map({
262
+ const contents = (0, smithy_client_1.map)({
264
263
  $metadata: deserializeMetadata(output),
265
264
  });
266
265
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
267
- if (data.Policies != null) {
268
- contents.Policies = de_LifecyclePolicySummaryList(data.Policies, context);
269
- }
266
+ const doc = (0, smithy_client_1.take)(data, {
267
+ Policies: smithy_client_1._json,
268
+ });
269
+ Object.assign(contents, doc);
270
270
  return contents;
271
271
  };
272
272
  exports.de_GetLifecyclePoliciesCommand = de_GetLifecyclePoliciesCommand;
@@ -291,10 +291,9 @@ const de_GetLifecyclePoliciesCommandError = async (output, context) => {
291
291
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
292
292
  default:
293
293
  const parsedBody = parsedOutput.body;
294
- (0, smithy_client_1.throwDefaultError)({
294
+ return throwDefaultError({
295
295
  output,
296
296
  parsedBody,
297
- exceptionCtor: DLMServiceException_1.DLMServiceException,
298
297
  errorCode,
299
298
  });
300
299
  }
@@ -303,13 +302,14 @@ const de_GetLifecyclePolicyCommand = async (output, context) => {
303
302
  if (output.statusCode !== 200 && output.statusCode >= 300) {
304
303
  return de_GetLifecyclePolicyCommandError(output, context);
305
304
  }
306
- const contents = map({
305
+ const contents = (0, smithy_client_1.map)({
307
306
  $metadata: deserializeMetadata(output),
308
307
  });
309
308
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
310
- if (data.Policy != null) {
311
- contents.Policy = de_LifecyclePolicy(data.Policy, context);
312
- }
309
+ const doc = (0, smithy_client_1.take)(data, {
310
+ Policy: (_) => de_LifecyclePolicy(_, context),
311
+ });
312
+ Object.assign(contents, doc);
313
313
  return contents;
314
314
  };
315
315
  exports.de_GetLifecyclePolicyCommand = de_GetLifecyclePolicyCommand;
@@ -331,10 +331,9 @@ const de_GetLifecyclePolicyCommandError = async (output, context) => {
331
331
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
332
332
  default:
333
333
  const parsedBody = parsedOutput.body;
334
- (0, smithy_client_1.throwDefaultError)({
334
+ return throwDefaultError({
335
335
  output,
336
336
  parsedBody,
337
- exceptionCtor: DLMServiceException_1.DLMServiceException,
338
337
  errorCode,
339
338
  });
340
339
  }
@@ -343,13 +342,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
343
342
  if (output.statusCode !== 200 && output.statusCode >= 300) {
344
343
  return de_ListTagsForResourceCommandError(output, context);
345
344
  }
346
- const contents = map({
345
+ const contents = (0, smithy_client_1.map)({
347
346
  $metadata: deserializeMetadata(output),
348
347
  });
349
348
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
350
- if (data.Tags != null) {
351
- contents.Tags = de_TagMap(data.Tags, context);
352
- }
349
+ const doc = (0, smithy_client_1.take)(data, {
350
+ Tags: smithy_client_1._json,
351
+ });
352
+ Object.assign(contents, doc);
353
353
  return contents;
354
354
  };
355
355
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
@@ -371,10 +371,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
371
371
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
372
372
  default:
373
373
  const parsedBody = parsedOutput.body;
374
- (0, smithy_client_1.throwDefaultError)({
374
+ return throwDefaultError({
375
375
  output,
376
376
  parsedBody,
377
- exceptionCtor: DLMServiceException_1.DLMServiceException,
378
377
  errorCode,
379
378
  });
380
379
  }
@@ -383,7 +382,7 @@ const de_TagResourceCommand = async (output, context) => {
383
382
  if (output.statusCode !== 200 && output.statusCode >= 300) {
384
383
  return de_TagResourceCommandError(output, context);
385
384
  }
386
- const contents = map({
385
+ const contents = (0, smithy_client_1.map)({
387
386
  $metadata: deserializeMetadata(output),
388
387
  });
389
388
  await collectBody(output.body, context);
@@ -408,10 +407,9 @@ const de_TagResourceCommandError = async (output, context) => {
408
407
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
409
408
  default:
410
409
  const parsedBody = parsedOutput.body;
411
- (0, smithy_client_1.throwDefaultError)({
410
+ return throwDefaultError({
412
411
  output,
413
412
  parsedBody,
414
- exceptionCtor: DLMServiceException_1.DLMServiceException,
415
413
  errorCode,
416
414
  });
417
415
  }
@@ -420,7 +418,7 @@ const de_UntagResourceCommand = async (output, context) => {
420
418
  if (output.statusCode !== 200 && output.statusCode >= 300) {
421
419
  return de_UntagResourceCommandError(output, context);
422
420
  }
423
- const contents = map({
421
+ const contents = (0, smithy_client_1.map)({
424
422
  $metadata: deserializeMetadata(output),
425
423
  });
426
424
  await collectBody(output.body, context);
@@ -445,10 +443,9 @@ const de_UntagResourceCommandError = async (output, context) => {
445
443
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
446
444
  default:
447
445
  const parsedBody = parsedOutput.body;
448
- (0, smithy_client_1.throwDefaultError)({
446
+ return throwDefaultError({
449
447
  output,
450
448
  parsedBody,
451
- exceptionCtor: DLMServiceException_1.DLMServiceException,
452
449
  errorCode,
453
450
  });
454
451
  }
@@ -457,7 +454,7 @@ const de_UpdateLifecyclePolicyCommand = async (output, context) => {
457
454
  if (output.statusCode !== 200 && output.statusCode >= 300) {
458
455
  return de_UpdateLifecyclePolicyCommandError(output, context);
459
456
  }
460
- const contents = map({
457
+ const contents = (0, smithy_client_1.map)({
461
458
  $metadata: deserializeMetadata(output),
462
459
  });
463
460
  await collectBody(output.body, context);
@@ -485,24 +482,22 @@ const de_UpdateLifecyclePolicyCommandError = async (output, context) => {
485
482
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
486
483
  default:
487
484
  const parsedBody = parsedOutput.body;
488
- (0, smithy_client_1.throwDefaultError)({
485
+ return throwDefaultError({
489
486
  output,
490
487
  parsedBody,
491
- exceptionCtor: DLMServiceException_1.DLMServiceException,
492
488
  errorCode,
493
489
  });
494
490
  }
495
491
  };
496
- const map = smithy_client_1.map;
492
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(DLMServiceException_1.DLMServiceException);
497
493
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
498
- const contents = map({});
494
+ const contents = (0, smithy_client_1.map)({});
499
495
  const data = parsedOutput.body;
500
- if (data.Code != null) {
501
- contents.Code = (0, smithy_client_1.expectString)(data.Code);
502
- }
503
- if (data.Message != null) {
504
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
505
- }
496
+ const doc = (0, smithy_client_1.take)(data, {
497
+ Code: smithy_client_1.expectString,
498
+ Message: smithy_client_1.expectString,
499
+ });
500
+ Object.assign(contents, doc);
506
501
  const exception = new models_0_1.InternalServerException({
507
502
  $metadata: deserializeMetadata(parsedOutput),
508
503
  ...contents,
@@ -510,20 +505,15 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
510
505
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
511
506
  };
512
507
  const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
513
- const contents = map({});
508
+ const contents = (0, smithy_client_1.map)({});
514
509
  const data = parsedOutput.body;
515
- if (data.Code != null) {
516
- contents.Code = (0, smithy_client_1.expectString)(data.Code);
517
- }
518
- if (data.Message != null) {
519
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
520
- }
521
- if (data.MutuallyExclusiveParameters != null) {
522
- contents.MutuallyExclusiveParameters = de_ParameterList(data.MutuallyExclusiveParameters, context);
523
- }
524
- if (data.RequiredParameters != null) {
525
- contents.RequiredParameters = de_ParameterList(data.RequiredParameters, context);
526
- }
510
+ const doc = (0, smithy_client_1.take)(data, {
511
+ Code: smithy_client_1.expectString,
512
+ Message: smithy_client_1.expectString,
513
+ MutuallyExclusiveParameters: smithy_client_1._json,
514
+ RequiredParameters: smithy_client_1._json,
515
+ });
516
+ Object.assign(contents, doc);
527
517
  const exception = new models_0_1.InvalidRequestException({
528
518
  $metadata: deserializeMetadata(parsedOutput),
529
519
  ...contents,
@@ -531,17 +521,14 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
531
521
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
532
522
  };
533
523
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
534
- const contents = map({});
524
+ const contents = (0, smithy_client_1.map)({});
535
525
  const data = parsedOutput.body;
536
- if (data.Code != null) {
537
- contents.Code = (0, smithy_client_1.expectString)(data.Code);
538
- }
539
- if (data.Message != null) {
540
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
541
- }
542
- if (data.ResourceType != null) {
543
- contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
544
- }
526
+ const doc = (0, smithy_client_1.take)(data, {
527
+ Code: smithy_client_1.expectString,
528
+ Message: smithy_client_1.expectString,
529
+ ResourceType: smithy_client_1.expectString,
530
+ });
531
+ Object.assign(contents, doc);
545
532
  const exception = new models_0_1.LimitExceededException({
546
533
  $metadata: deserializeMetadata(parsedOutput),
547
534
  ...contents,
@@ -549,689 +536,34 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
549
536
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
550
537
  };
551
538
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
552
- const contents = map({});
539
+ const contents = (0, smithy_client_1.map)({});
553
540
  const data = parsedOutput.body;
554
- if (data.Code != null) {
555
- contents.Code = (0, smithy_client_1.expectString)(data.Code);
556
- }
557
- if (data.Message != null) {
558
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
559
- }
560
- if (data.ResourceIds != null) {
561
- contents.ResourceIds = de_PolicyIdList(data.ResourceIds, context);
562
- }
563
- if (data.ResourceType != null) {
564
- contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
565
- }
541
+ const doc = (0, smithy_client_1.take)(data, {
542
+ Code: smithy_client_1.expectString,
543
+ Message: smithy_client_1.expectString,
544
+ ResourceIds: smithy_client_1._json,
545
+ ResourceType: smithy_client_1.expectString,
546
+ });
547
+ Object.assign(contents, doc);
566
548
  const exception = new models_0_1.ResourceNotFoundException({
567
549
  $metadata: deserializeMetadata(parsedOutput),
568
550
  ...contents,
569
551
  });
570
552
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
571
553
  };
572
- const se_Action = (input, context) => {
573
- return {
574
- ...(input.CrossRegionCopy != null && {
575
- CrossRegionCopy: se_CrossRegionCopyActionList(input.CrossRegionCopy, context),
576
- }),
577
- ...(input.Name != null && { Name: input.Name }),
578
- };
579
- };
580
- const se_ActionList = (input, context) => {
581
- return input
582
- .filter((e) => e != null)
583
- .map((entry) => {
584
- return se_Action(entry, context);
585
- });
586
- };
587
- const se_ArchiveRetainRule = (input, context) => {
588
- return {
589
- ...(input.RetentionArchiveTier != null && {
590
- RetentionArchiveTier: se_RetentionArchiveTier(input.RetentionArchiveTier, context),
591
- }),
592
- };
593
- };
594
- const se_ArchiveRule = (input, context) => {
595
- return {
596
- ...(input.RetainRule != null && { RetainRule: se_ArchiveRetainRule(input.RetainRule, context) }),
597
- };
598
- };
599
- const se_AvailabilityZoneList = (input, context) => {
600
- return input
601
- .filter((e) => e != null)
602
- .map((entry) => {
603
- return entry;
604
- });
605
- };
606
- const se_CreateRule = (input, context) => {
607
- return {
608
- ...(input.CronExpression != null && { CronExpression: input.CronExpression }),
609
- ...(input.Interval != null && { Interval: input.Interval }),
610
- ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
611
- ...(input.Location != null && { Location: input.Location }),
612
- ...(input.Times != null && { Times: se_TimesList(input.Times, context) }),
613
- };
614
- };
615
- const se_CrossRegionCopyAction = (input, context) => {
616
- return {
617
- ...(input.EncryptionConfiguration != null && {
618
- EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
619
- }),
620
- ...(input.RetainRule != null && { RetainRule: se_CrossRegionCopyRetainRule(input.RetainRule, context) }),
621
- ...(input.Target != null && { Target: input.Target }),
622
- };
623
- };
624
- const se_CrossRegionCopyActionList = (input, context) => {
625
- return input
626
- .filter((e) => e != null)
627
- .map((entry) => {
628
- return se_CrossRegionCopyAction(entry, context);
629
- });
630
- };
631
- const se_CrossRegionCopyDeprecateRule = (input, context) => {
632
- return {
633
- ...(input.Interval != null && { Interval: input.Interval }),
634
- ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
635
- };
636
- };
637
- const se_CrossRegionCopyRetainRule = (input, context) => {
638
- return {
639
- ...(input.Interval != null && { Interval: input.Interval }),
640
- ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
641
- };
642
- };
643
- const se_CrossRegionCopyRule = (input, context) => {
644
- return {
645
- ...(input.CmkArn != null && { CmkArn: input.CmkArn }),
646
- ...(input.CopyTags != null && { CopyTags: input.CopyTags }),
647
- ...(input.DeprecateRule != null && {
648
- DeprecateRule: se_CrossRegionCopyDeprecateRule(input.DeprecateRule, context),
649
- }),
650
- ...(input.Encrypted != null && { Encrypted: input.Encrypted }),
651
- ...(input.RetainRule != null && { RetainRule: se_CrossRegionCopyRetainRule(input.RetainRule, context) }),
652
- ...(input.Target != null && { Target: input.Target }),
653
- ...(input.TargetRegion != null && { TargetRegion: input.TargetRegion }),
654
- };
655
- };
656
- const se_CrossRegionCopyRules = (input, context) => {
657
- return input
658
- .filter((e) => e != null)
659
- .map((entry) => {
660
- return se_CrossRegionCopyRule(entry, context);
661
- });
662
- };
663
- const se_DeprecateRule = (input, context) => {
664
- return {
665
- ...(input.Count != null && { Count: input.Count }),
666
- ...(input.Interval != null && { Interval: input.Interval }),
667
- ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
668
- };
669
- };
670
- const se_EncryptionConfiguration = (input, context) => {
671
- return {
672
- ...(input.CmkArn != null && { CmkArn: input.CmkArn }),
673
- ...(input.Encrypted != null && { Encrypted: input.Encrypted }),
674
- };
675
- };
676
- const se_EventParameters = (input, context) => {
677
- return {
678
- ...(input.DescriptionRegex != null && { DescriptionRegex: input.DescriptionRegex }),
679
- ...(input.EventType != null && { EventType: input.EventType }),
680
- ...(input.SnapshotOwner != null && { SnapshotOwner: se_SnapshotOwnerList(input.SnapshotOwner, context) }),
681
- };
682
- };
683
- const se_EventSource = (input, context) => {
684
- return {
685
- ...(input.Parameters != null && { Parameters: se_EventParameters(input.Parameters, context) }),
686
- ...(input.Type != null && { Type: input.Type }),
687
- };
688
- };
689
- const se_ExcludeDataVolumeTagList = (input, context) => {
690
- return input
691
- .filter((e) => e != null)
692
- .map((entry) => {
693
- return se_Tag(entry, context);
694
- });
695
- };
696
- const se_FastRestoreRule = (input, context) => {
697
- return {
698
- ...(input.AvailabilityZones != null && {
699
- AvailabilityZones: se_AvailabilityZoneList(input.AvailabilityZones, context),
700
- }),
701
- ...(input.Count != null && { Count: input.Count }),
702
- ...(input.Interval != null && { Interval: input.Interval }),
703
- ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
704
- };
705
- };
706
- const se__Parameters = (input, context) => {
707
- return {
708
- ...(input.ExcludeBootVolume != null && { ExcludeBootVolume: input.ExcludeBootVolume }),
709
- ...(input.ExcludeDataVolumeTags != null && {
710
- ExcludeDataVolumeTags: se_ExcludeDataVolumeTagList(input.ExcludeDataVolumeTags, context),
711
- }),
712
- ...(input.NoReboot != null && { NoReboot: input.NoReboot }),
713
- };
714
- };
715
- const se_PolicyDetails = (input, context) => {
716
- return {
717
- ...(input.Actions != null && { Actions: se_ActionList(input.Actions, context) }),
718
- ...(input.EventSource != null && { EventSource: se_EventSource(input.EventSource, context) }),
719
- ...(input.Parameters != null && { Parameters: se__Parameters(input.Parameters, context) }),
720
- ...(input.PolicyType != null && { PolicyType: input.PolicyType }),
721
- ...(input.ResourceLocations != null && {
722
- ResourceLocations: se_ResourceLocationList(input.ResourceLocations, context),
723
- }),
724
- ...(input.ResourceTypes != null && { ResourceTypes: se_ResourceTypeValuesList(input.ResourceTypes, context) }),
725
- ...(input.Schedules != null && { Schedules: se_ScheduleList(input.Schedules, context) }),
726
- ...(input.TargetTags != null && { TargetTags: se_TargetTagList(input.TargetTags, context) }),
727
- };
728
- };
729
- const se_ResourceLocationList = (input, context) => {
730
- return input
731
- .filter((e) => e != null)
732
- .map((entry) => {
733
- return entry;
734
- });
735
- };
736
- const se_ResourceTypeValuesList = (input, context) => {
737
- return input
738
- .filter((e) => e != null)
739
- .map((entry) => {
740
- return entry;
741
- });
742
- };
743
- const se_RetainRule = (input, context) => {
744
- return {
745
- ...(input.Count != null && { Count: input.Count }),
746
- ...(input.Interval != null && { Interval: input.Interval }),
747
- ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
748
- };
749
- };
750
- const se_RetentionArchiveTier = (input, context) => {
751
- return {
752
- ...(input.Count != null && { Count: input.Count }),
753
- ...(input.Interval != null && { Interval: input.Interval }),
754
- ...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
755
- };
756
- };
757
- const se_Schedule = (input, context) => {
758
- return {
759
- ...(input.ArchiveRule != null && { ArchiveRule: se_ArchiveRule(input.ArchiveRule, context) }),
760
- ...(input.CopyTags != null && { CopyTags: input.CopyTags }),
761
- ...(input.CreateRule != null && { CreateRule: se_CreateRule(input.CreateRule, context) }),
762
- ...(input.CrossRegionCopyRules != null && {
763
- CrossRegionCopyRules: se_CrossRegionCopyRules(input.CrossRegionCopyRules, context),
764
- }),
765
- ...(input.DeprecateRule != null && { DeprecateRule: se_DeprecateRule(input.DeprecateRule, context) }),
766
- ...(input.FastRestoreRule != null && { FastRestoreRule: se_FastRestoreRule(input.FastRestoreRule, context) }),
767
- ...(input.Name != null && { Name: input.Name }),
768
- ...(input.RetainRule != null && { RetainRule: se_RetainRule(input.RetainRule, context) }),
769
- ...(input.ShareRules != null && { ShareRules: se_ShareRules(input.ShareRules, context) }),
770
- ...(input.TagsToAdd != null && { TagsToAdd: se_TagsToAddList(input.TagsToAdd, context) }),
771
- ...(input.VariableTags != null && { VariableTags: se_VariableTagsList(input.VariableTags, context) }),
772
- };
773
- };
774
- const se_ScheduleList = (input, context) => {
775
- return input
776
- .filter((e) => e != null)
777
- .map((entry) => {
778
- return se_Schedule(entry, context);
779
- });
780
- };
781
- const se_ShareRule = (input, context) => {
782
- return {
783
- ...(input.TargetAccounts != null && { TargetAccounts: se_ShareTargetAccountList(input.TargetAccounts, context) }),
784
- ...(input.UnshareInterval != null && { UnshareInterval: input.UnshareInterval }),
785
- ...(input.UnshareIntervalUnit != null && { UnshareIntervalUnit: input.UnshareIntervalUnit }),
786
- };
787
- };
788
- const se_ShareRules = (input, context) => {
789
- return input
790
- .filter((e) => e != null)
791
- .map((entry) => {
792
- return se_ShareRule(entry, context);
793
- });
794
- };
795
- const se_ShareTargetAccountList = (input, context) => {
796
- return input
797
- .filter((e) => e != null)
798
- .map((entry) => {
799
- return entry;
800
- });
801
- };
802
- const se_SnapshotOwnerList = (input, context) => {
803
- return input
804
- .filter((e) => e != null)
805
- .map((entry) => {
806
- return entry;
807
- });
808
- };
809
- const se_Tag = (input, context) => {
810
- return {
811
- ...(input.Key != null && { Key: input.Key }),
812
- ...(input.Value != null && { Value: input.Value }),
813
- };
814
- };
815
- const se_TagMap = (input, context) => {
816
- return Object.entries(input).reduce((acc, [key, value]) => {
817
- if (value === null) {
818
- return acc;
819
- }
820
- acc[key] = value;
821
- return acc;
822
- }, {});
823
- };
824
- const se_TagsToAddList = (input, context) => {
825
- return input
826
- .filter((e) => e != null)
827
- .map((entry) => {
828
- return se_Tag(entry, context);
829
- });
830
- };
831
- const se_TargetTagList = (input, context) => {
832
- return input
833
- .filter((e) => e != null)
834
- .map((entry) => {
835
- return se_Tag(entry, context);
836
- });
837
- };
838
- const se_TimesList = (input, context) => {
839
- return input
840
- .filter((e) => e != null)
841
- .map((entry) => {
842
- return entry;
843
- });
844
- };
845
- const se_VariableTagsList = (input, context) => {
846
- return input
847
- .filter((e) => e != null)
848
- .map((entry) => {
849
- return se_Tag(entry, context);
850
- });
851
- };
852
- const de_Action = (output, context) => {
853
- return {
854
- CrossRegionCopy: output.CrossRegionCopy != null ? de_CrossRegionCopyActionList(output.CrossRegionCopy, context) : undefined,
855
- Name: (0, smithy_client_1.expectString)(output.Name),
856
- };
857
- };
858
- const de_ActionList = (output, context) => {
859
- const retVal = (output || [])
860
- .filter((e) => e != null)
861
- .map((entry) => {
862
- if (entry === null) {
863
- return null;
864
- }
865
- return de_Action(entry, context);
866
- });
867
- return retVal;
868
- };
869
- const de_ArchiveRetainRule = (output, context) => {
870
- return {
871
- RetentionArchiveTier: output.RetentionArchiveTier != null ? de_RetentionArchiveTier(output.RetentionArchiveTier, context) : undefined,
872
- };
873
- };
874
- const de_ArchiveRule = (output, context) => {
875
- return {
876
- RetainRule: output.RetainRule != null ? de_ArchiveRetainRule(output.RetainRule, context) : undefined,
877
- };
878
- };
879
- const de_AvailabilityZoneList = (output, context) => {
880
- const retVal = (output || [])
881
- .filter((e) => e != null)
882
- .map((entry) => {
883
- if (entry === null) {
884
- return null;
885
- }
886
- return (0, smithy_client_1.expectString)(entry);
887
- });
888
- return retVal;
889
- };
890
- const de_CreateRule = (output, context) => {
891
- return {
892
- CronExpression: (0, smithy_client_1.expectString)(output.CronExpression),
893
- Interval: (0, smithy_client_1.expectInt32)(output.Interval),
894
- IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
895
- Location: (0, smithy_client_1.expectString)(output.Location),
896
- Times: output.Times != null ? de_TimesList(output.Times, context) : undefined,
897
- };
898
- };
899
- const de_CrossRegionCopyAction = (output, context) => {
900
- return {
901
- EncryptionConfiguration: output.EncryptionConfiguration != null
902
- ? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
903
- : undefined,
904
- RetainRule: output.RetainRule != null ? de_CrossRegionCopyRetainRule(output.RetainRule, context) : undefined,
905
- Target: (0, smithy_client_1.expectString)(output.Target),
906
- };
907
- };
908
- const de_CrossRegionCopyActionList = (output, context) => {
909
- const retVal = (output || [])
910
- .filter((e) => e != null)
911
- .map((entry) => {
912
- if (entry === null) {
913
- return null;
914
- }
915
- return de_CrossRegionCopyAction(entry, context);
916
- });
917
- return retVal;
918
- };
919
- const de_CrossRegionCopyDeprecateRule = (output, context) => {
920
- return {
921
- Interval: (0, smithy_client_1.expectInt32)(output.Interval),
922
- IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
923
- };
924
- };
925
- const de_CrossRegionCopyRetainRule = (output, context) => {
926
- return {
927
- Interval: (0, smithy_client_1.expectInt32)(output.Interval),
928
- IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
929
- };
930
- };
931
- const de_CrossRegionCopyRule = (output, context) => {
932
- return {
933
- CmkArn: (0, smithy_client_1.expectString)(output.CmkArn),
934
- CopyTags: (0, smithy_client_1.expectBoolean)(output.CopyTags),
935
- DeprecateRule: output.DeprecateRule != null ? de_CrossRegionCopyDeprecateRule(output.DeprecateRule, context) : undefined,
936
- Encrypted: (0, smithy_client_1.expectBoolean)(output.Encrypted),
937
- RetainRule: output.RetainRule != null ? de_CrossRegionCopyRetainRule(output.RetainRule, context) : undefined,
938
- Target: (0, smithy_client_1.expectString)(output.Target),
939
- TargetRegion: (0, smithy_client_1.expectString)(output.TargetRegion),
940
- };
941
- };
942
- const de_CrossRegionCopyRules = (output, context) => {
943
- const retVal = (output || [])
944
- .filter((e) => e != null)
945
- .map((entry) => {
946
- if (entry === null) {
947
- return null;
948
- }
949
- return de_CrossRegionCopyRule(entry, context);
950
- });
951
- return retVal;
952
- };
953
- const de_DeprecateRule = (output, context) => {
954
- return {
955
- Count: (0, smithy_client_1.expectInt32)(output.Count),
956
- Interval: (0, smithy_client_1.expectInt32)(output.Interval),
957
- IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
958
- };
959
- };
960
- const de_EncryptionConfiguration = (output, context) => {
961
- return {
962
- CmkArn: (0, smithy_client_1.expectString)(output.CmkArn),
963
- Encrypted: (0, smithy_client_1.expectBoolean)(output.Encrypted),
964
- };
965
- };
966
- const de_EventParameters = (output, context) => {
967
- return {
968
- DescriptionRegex: (0, smithy_client_1.expectString)(output.DescriptionRegex),
969
- EventType: (0, smithy_client_1.expectString)(output.EventType),
970
- SnapshotOwner: output.SnapshotOwner != null ? de_SnapshotOwnerList(output.SnapshotOwner, context) : undefined,
971
- };
972
- };
973
- const de_EventSource = (output, context) => {
974
- return {
975
- Parameters: output.Parameters != null ? de_EventParameters(output.Parameters, context) : undefined,
976
- Type: (0, smithy_client_1.expectString)(output.Type),
977
- };
978
- };
979
- const de_ExcludeDataVolumeTagList = (output, context) => {
980
- const retVal = (output || [])
981
- .filter((e) => e != null)
982
- .map((entry) => {
983
- if (entry === null) {
984
- return null;
985
- }
986
- return de_Tag(entry, context);
987
- });
988
- return retVal;
989
- };
990
- const de_FastRestoreRule = (output, context) => {
991
- return {
992
- AvailabilityZones: output.AvailabilityZones != null ? de_AvailabilityZoneList(output.AvailabilityZones, context) : undefined,
993
- Count: (0, smithy_client_1.expectInt32)(output.Count),
994
- Interval: (0, smithy_client_1.expectInt32)(output.Interval),
995
- IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
996
- };
997
- };
998
554
  const de_LifecyclePolicy = (output, context) => {
999
- return {
1000
- DateCreated: output.DateCreated != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.DateCreated)) : undefined,
1001
- DateModified: output.DateModified != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.DateModified)) : undefined,
1002
- Description: (0, smithy_client_1.expectString)(output.Description),
1003
- ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
1004
- PolicyArn: (0, smithy_client_1.expectString)(output.PolicyArn),
1005
- PolicyDetails: output.PolicyDetails != null ? de_PolicyDetails(output.PolicyDetails, context) : undefined,
1006
- PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
1007
- State: (0, smithy_client_1.expectString)(output.State),
1008
- StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
1009
- Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
1010
- };
1011
- };
1012
- const de_LifecyclePolicySummary = (output, context) => {
1013
- return {
1014
- Description: (0, smithy_client_1.expectString)(output.Description),
1015
- PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
1016
- PolicyType: (0, smithy_client_1.expectString)(output.PolicyType),
1017
- State: (0, smithy_client_1.expectString)(output.State),
1018
- Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
1019
- };
1020
- };
1021
- const de_LifecyclePolicySummaryList = (output, context) => {
1022
- const retVal = (output || [])
1023
- .filter((e) => e != null)
1024
- .map((entry) => {
1025
- if (entry === null) {
1026
- return null;
1027
- }
1028
- return de_LifecyclePolicySummary(entry, context);
1029
- });
1030
- return retVal;
1031
- };
1032
- const de_ParameterList = (output, context) => {
1033
- const retVal = (output || [])
1034
- .filter((e) => e != null)
1035
- .map((entry) => {
1036
- if (entry === null) {
1037
- return null;
1038
- }
1039
- return (0, smithy_client_1.expectString)(entry);
1040
- });
1041
- return retVal;
1042
- };
1043
- const de__Parameters = (output, context) => {
1044
- return {
1045
- ExcludeBootVolume: (0, smithy_client_1.expectBoolean)(output.ExcludeBootVolume),
1046
- ExcludeDataVolumeTags: output.ExcludeDataVolumeTags != null
1047
- ? de_ExcludeDataVolumeTagList(output.ExcludeDataVolumeTags, context)
1048
- : undefined,
1049
- NoReboot: (0, smithy_client_1.expectBoolean)(output.NoReboot),
1050
- };
1051
- };
1052
- const de_PolicyDetails = (output, context) => {
1053
- return {
1054
- Actions: output.Actions != null ? de_ActionList(output.Actions, context) : undefined,
1055
- EventSource: output.EventSource != null ? de_EventSource(output.EventSource, context) : undefined,
1056
- Parameters: output.Parameters != null ? de__Parameters(output.Parameters, context) : undefined,
1057
- PolicyType: (0, smithy_client_1.expectString)(output.PolicyType),
1058
- ResourceLocations: output.ResourceLocations != null ? de_ResourceLocationList(output.ResourceLocations, context) : undefined,
1059
- ResourceTypes: output.ResourceTypes != null ? de_ResourceTypeValuesList(output.ResourceTypes, context) : undefined,
1060
- Schedules: output.Schedules != null ? de_ScheduleList(output.Schedules, context) : undefined,
1061
- TargetTags: output.TargetTags != null ? de_TargetTagList(output.TargetTags, context) : undefined,
1062
- };
1063
- };
1064
- const de_PolicyIdList = (output, context) => {
1065
- const retVal = (output || [])
1066
- .filter((e) => e != null)
1067
- .map((entry) => {
1068
- if (entry === null) {
1069
- return null;
1070
- }
1071
- return (0, smithy_client_1.expectString)(entry);
1072
- });
1073
- return retVal;
1074
- };
1075
- const de_ResourceLocationList = (output, context) => {
1076
- const retVal = (output || [])
1077
- .filter((e) => e != null)
1078
- .map((entry) => {
1079
- if (entry === null) {
1080
- return null;
1081
- }
1082
- return (0, smithy_client_1.expectString)(entry);
1083
- });
1084
- return retVal;
1085
- };
1086
- const de_ResourceTypeValuesList = (output, context) => {
1087
- const retVal = (output || [])
1088
- .filter((e) => e != null)
1089
- .map((entry) => {
1090
- if (entry === null) {
1091
- return null;
1092
- }
1093
- return (0, smithy_client_1.expectString)(entry);
1094
- });
1095
- return retVal;
1096
- };
1097
- const de_RetainRule = (output, context) => {
1098
- return {
1099
- Count: (0, smithy_client_1.expectInt32)(output.Count),
1100
- Interval: (0, smithy_client_1.expectInt32)(output.Interval),
1101
- IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
1102
- };
1103
- };
1104
- const de_RetentionArchiveTier = (output, context) => {
1105
- return {
1106
- Count: (0, smithy_client_1.expectInt32)(output.Count),
1107
- Interval: (0, smithy_client_1.expectInt32)(output.Interval),
1108
- IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
1109
- };
1110
- };
1111
- const de_Schedule = (output, context) => {
1112
- return {
1113
- ArchiveRule: output.ArchiveRule != null ? de_ArchiveRule(output.ArchiveRule, context) : undefined,
1114
- CopyTags: (0, smithy_client_1.expectBoolean)(output.CopyTags),
1115
- CreateRule: output.CreateRule != null ? de_CreateRule(output.CreateRule, context) : undefined,
1116
- CrossRegionCopyRules: output.CrossRegionCopyRules != null ? de_CrossRegionCopyRules(output.CrossRegionCopyRules, context) : undefined,
1117
- DeprecateRule: output.DeprecateRule != null ? de_DeprecateRule(output.DeprecateRule, context) : undefined,
1118
- FastRestoreRule: output.FastRestoreRule != null ? de_FastRestoreRule(output.FastRestoreRule, context) : undefined,
1119
- Name: (0, smithy_client_1.expectString)(output.Name),
1120
- RetainRule: output.RetainRule != null ? de_RetainRule(output.RetainRule, context) : undefined,
1121
- ShareRules: output.ShareRules != null ? de_ShareRules(output.ShareRules, context) : undefined,
1122
- TagsToAdd: output.TagsToAdd != null ? de_TagsToAddList(output.TagsToAdd, context) : undefined,
1123
- VariableTags: output.VariableTags != null ? de_VariableTagsList(output.VariableTags, context) : undefined,
1124
- };
1125
- };
1126
- const de_ScheduleList = (output, context) => {
1127
- const retVal = (output || [])
1128
- .filter((e) => e != null)
1129
- .map((entry) => {
1130
- if (entry === null) {
1131
- return null;
1132
- }
1133
- return de_Schedule(entry, context);
1134
- });
1135
- return retVal;
1136
- };
1137
- const de_ShareRule = (output, context) => {
1138
- return {
1139
- TargetAccounts: output.TargetAccounts != null ? de_ShareTargetAccountList(output.TargetAccounts, context) : undefined,
1140
- UnshareInterval: (0, smithy_client_1.expectInt32)(output.UnshareInterval),
1141
- UnshareIntervalUnit: (0, smithy_client_1.expectString)(output.UnshareIntervalUnit),
1142
- };
1143
- };
1144
- const de_ShareRules = (output, context) => {
1145
- const retVal = (output || [])
1146
- .filter((e) => e != null)
1147
- .map((entry) => {
1148
- if (entry === null) {
1149
- return null;
1150
- }
1151
- return de_ShareRule(entry, context);
1152
- });
1153
- return retVal;
1154
- };
1155
- const de_ShareTargetAccountList = (output, context) => {
1156
- const retVal = (output || [])
1157
- .filter((e) => e != null)
1158
- .map((entry) => {
1159
- if (entry === null) {
1160
- return null;
1161
- }
1162
- return (0, smithy_client_1.expectString)(entry);
1163
- });
1164
- return retVal;
1165
- };
1166
- const de_SnapshotOwnerList = (output, context) => {
1167
- const retVal = (output || [])
1168
- .filter((e) => e != null)
1169
- .map((entry) => {
1170
- if (entry === null) {
1171
- return null;
1172
- }
1173
- return (0, smithy_client_1.expectString)(entry);
1174
- });
1175
- return retVal;
1176
- };
1177
- const de_Tag = (output, context) => {
1178
- return {
1179
- Key: (0, smithy_client_1.expectString)(output.Key),
1180
- Value: (0, smithy_client_1.expectString)(output.Value),
1181
- };
1182
- };
1183
- const de_TagMap = (output, context) => {
1184
- return Object.entries(output).reduce((acc, [key, value]) => {
1185
- if (value === null) {
1186
- return acc;
1187
- }
1188
- acc[key] = (0, smithy_client_1.expectString)(value);
1189
- return acc;
1190
- }, {});
1191
- };
1192
- const de_TagsToAddList = (output, context) => {
1193
- const retVal = (output || [])
1194
- .filter((e) => e != null)
1195
- .map((entry) => {
1196
- if (entry === null) {
1197
- return null;
1198
- }
1199
- return de_Tag(entry, context);
1200
- });
1201
- return retVal;
1202
- };
1203
- const de_TargetTagList = (output, context) => {
1204
- const retVal = (output || [])
1205
- .filter((e) => e != null)
1206
- .map((entry) => {
1207
- if (entry === null) {
1208
- return null;
1209
- }
1210
- return de_Tag(entry, context);
1211
- });
1212
- return retVal;
1213
- };
1214
- const de_TimesList = (output, context) => {
1215
- const retVal = (output || [])
1216
- .filter((e) => e != null)
1217
- .map((entry) => {
1218
- if (entry === null) {
1219
- return null;
1220
- }
1221
- return (0, smithy_client_1.expectString)(entry);
1222
- });
1223
- return retVal;
1224
- };
1225
- const de_VariableTagsList = (output, context) => {
1226
- const retVal = (output || [])
1227
- .filter((e) => e != null)
1228
- .map((entry) => {
1229
- if (entry === null) {
1230
- return null;
1231
- }
1232
- return de_Tag(entry, context);
555
+ return (0, smithy_client_1.take)(output, {
556
+ DateCreated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
557
+ DateModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
558
+ Description: smithy_client_1.expectString,
559
+ ExecutionRoleArn: smithy_client_1.expectString,
560
+ PolicyArn: smithy_client_1.expectString,
561
+ PolicyDetails: smithy_client_1._json,
562
+ PolicyId: smithy_client_1.expectString,
563
+ State: smithy_client_1.expectString,
564
+ StatusMessage: smithy_client_1.expectString,
565
+ Tags: smithy_client_1._json,
1233
566
  });
1234
- return retVal;
1235
567
  };
1236
568
  const deserializeMetadata = (output) => ({
1237
569
  httpStatusCode: output.statusCode,