@aws-sdk/client-dlm 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +143 -202
- package/dist-es/protocols/Aws_restJson1.js +104 -163
- package/package.json +26 -26
|
@@ -13,15 +13,13 @@ const serializeAws_restJson1CreateLifecyclePolicyCommand = async (input, context
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/policies";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.Description
|
|
17
|
-
...(input.ExecutionRoleArn
|
|
18
|
-
|
|
19
|
-
...(input.PolicyDetails !== undefined &&
|
|
20
|
-
input.PolicyDetails !== null && {
|
|
16
|
+
...(input.Description != null && { Description: input.Description }),
|
|
17
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
18
|
+
...(input.PolicyDetails != null && {
|
|
21
19
|
PolicyDetails: serializeAws_restJson1PolicyDetails(input.PolicyDetails, context),
|
|
22
20
|
}),
|
|
23
|
-
...(input.State
|
|
24
|
-
...(input.Tags
|
|
21
|
+
...(input.State != null && { State: input.State }),
|
|
22
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
25
23
|
});
|
|
26
24
|
return new protocol_http_1.HttpRequest({
|
|
27
25
|
protocol,
|
|
@@ -156,7 +154,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
156
154
|
}
|
|
157
155
|
let body;
|
|
158
156
|
body = JSON.stringify({
|
|
159
|
-
...(input.Tags
|
|
157
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
160
158
|
});
|
|
161
159
|
return new protocol_http_1.HttpRequest({
|
|
162
160
|
protocol,
|
|
@@ -217,14 +215,12 @@ const serializeAws_restJson1UpdateLifecyclePolicyCommand = async (input, context
|
|
|
217
215
|
}
|
|
218
216
|
let body;
|
|
219
217
|
body = JSON.stringify({
|
|
220
|
-
...(input.Description
|
|
221
|
-
...(input.ExecutionRoleArn
|
|
222
|
-
|
|
223
|
-
...(input.PolicyDetails !== undefined &&
|
|
224
|
-
input.PolicyDetails !== null && {
|
|
218
|
+
...(input.Description != null && { Description: input.Description }),
|
|
219
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
220
|
+
...(input.PolicyDetails != null && {
|
|
225
221
|
PolicyDetails: serializeAws_restJson1PolicyDetails(input.PolicyDetails, context),
|
|
226
222
|
}),
|
|
227
|
-
...(input.State
|
|
223
|
+
...(input.State != null && { State: input.State }),
|
|
228
224
|
});
|
|
229
225
|
return new protocol_http_1.HttpRequest({
|
|
230
226
|
protocol,
|
|
@@ -258,8 +254,7 @@ const deserializeAws_restJson1CreateLifecyclePolicyCommandError = async (output,
|
|
|
258
254
|
body: await parseBody(output.body, context),
|
|
259
255
|
};
|
|
260
256
|
let response;
|
|
261
|
-
|
|
262
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
257
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
263
258
|
switch (errorCode) {
|
|
264
259
|
case "InternalServerException":
|
|
265
260
|
case "com.amazonaws.dlm#InternalServerException":
|
|
@@ -272,10 +267,12 @@ const deserializeAws_restJson1CreateLifecyclePolicyCommandError = async (output,
|
|
|
272
267
|
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
273
268
|
default:
|
|
274
269
|
const parsedBody = parsedOutput.body;
|
|
270
|
+
const $metadata = deserializeMetadata(output);
|
|
271
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
275
272
|
response = new DLMServiceException_1.DLMServiceException({
|
|
276
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
273
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
277
274
|
$fault: "client",
|
|
278
|
-
$metadata
|
|
275
|
+
$metadata,
|
|
279
276
|
});
|
|
280
277
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
281
278
|
}
|
|
@@ -297,8 +294,7 @@ const deserializeAws_restJson1DeleteLifecyclePolicyCommandError = async (output,
|
|
|
297
294
|
body: await parseBody(output.body, context),
|
|
298
295
|
};
|
|
299
296
|
let response;
|
|
300
|
-
|
|
301
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
297
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
302
298
|
switch (errorCode) {
|
|
303
299
|
case "InternalServerException":
|
|
304
300
|
case "com.amazonaws.dlm#InternalServerException":
|
|
@@ -311,10 +307,12 @@ const deserializeAws_restJson1DeleteLifecyclePolicyCommandError = async (output,
|
|
|
311
307
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
312
308
|
default:
|
|
313
309
|
const parsedBody = parsedOutput.body;
|
|
310
|
+
const $metadata = deserializeMetadata(output);
|
|
311
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
314
312
|
response = new DLMServiceException_1.DLMServiceException({
|
|
315
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
313
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
316
314
|
$fault: "client",
|
|
317
|
-
$metadata
|
|
315
|
+
$metadata,
|
|
318
316
|
});
|
|
319
317
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
320
318
|
}
|
|
@@ -340,8 +338,7 @@ const deserializeAws_restJson1GetLifecyclePoliciesCommandError = async (output,
|
|
|
340
338
|
body: await parseBody(output.body, context),
|
|
341
339
|
};
|
|
342
340
|
let response;
|
|
343
|
-
|
|
344
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
341
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
345
342
|
switch (errorCode) {
|
|
346
343
|
case "InternalServerException":
|
|
347
344
|
case "com.amazonaws.dlm#InternalServerException":
|
|
@@ -357,10 +354,12 @@ const deserializeAws_restJson1GetLifecyclePoliciesCommandError = async (output,
|
|
|
357
354
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
358
355
|
default:
|
|
359
356
|
const parsedBody = parsedOutput.body;
|
|
357
|
+
const $metadata = deserializeMetadata(output);
|
|
358
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
360
359
|
response = new DLMServiceException_1.DLMServiceException({
|
|
361
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
360
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
362
361
|
$fault: "client",
|
|
363
|
-
$metadata
|
|
362
|
+
$metadata,
|
|
364
363
|
});
|
|
365
364
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
366
365
|
}
|
|
@@ -386,8 +385,7 @@ const deserializeAws_restJson1GetLifecyclePolicyCommandError = async (output, co
|
|
|
386
385
|
body: await parseBody(output.body, context),
|
|
387
386
|
};
|
|
388
387
|
let response;
|
|
389
|
-
|
|
390
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
391
389
|
switch (errorCode) {
|
|
392
390
|
case "InternalServerException":
|
|
393
391
|
case "com.amazonaws.dlm#InternalServerException":
|
|
@@ -400,10 +398,12 @@ const deserializeAws_restJson1GetLifecyclePolicyCommandError = async (output, co
|
|
|
400
398
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
401
399
|
default:
|
|
402
400
|
const parsedBody = parsedOutput.body;
|
|
401
|
+
const $metadata = deserializeMetadata(output);
|
|
402
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
403
403
|
response = new DLMServiceException_1.DLMServiceException({
|
|
404
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
404
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
405
405
|
$fault: "client",
|
|
406
|
-
$metadata
|
|
406
|
+
$metadata,
|
|
407
407
|
});
|
|
408
408
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
409
409
|
}
|
|
@@ -429,8 +429,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
429
429
|
body: await parseBody(output.body, context),
|
|
430
430
|
};
|
|
431
431
|
let response;
|
|
432
|
-
|
|
433
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
432
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
434
433
|
switch (errorCode) {
|
|
435
434
|
case "InternalServerException":
|
|
436
435
|
case "com.amazonaws.dlm#InternalServerException":
|
|
@@ -443,10 +442,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
443
442
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
444
443
|
default:
|
|
445
444
|
const parsedBody = parsedOutput.body;
|
|
445
|
+
const $metadata = deserializeMetadata(output);
|
|
446
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
446
447
|
response = new DLMServiceException_1.DLMServiceException({
|
|
447
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
448
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
448
449
|
$fault: "client",
|
|
449
|
-
$metadata
|
|
450
|
+
$metadata,
|
|
450
451
|
});
|
|
451
452
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
452
453
|
}
|
|
@@ -468,8 +469,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
468
469
|
body: await parseBody(output.body, context),
|
|
469
470
|
};
|
|
470
471
|
let response;
|
|
471
|
-
|
|
472
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
473
|
switch (errorCode) {
|
|
474
474
|
case "InternalServerException":
|
|
475
475
|
case "com.amazonaws.dlm#InternalServerException":
|
|
@@ -482,10 +482,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
482
482
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
483
483
|
default:
|
|
484
484
|
const parsedBody = parsedOutput.body;
|
|
485
|
+
const $metadata = deserializeMetadata(output);
|
|
486
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
485
487
|
response = new DLMServiceException_1.DLMServiceException({
|
|
486
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
488
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
487
489
|
$fault: "client",
|
|
488
|
-
$metadata
|
|
490
|
+
$metadata,
|
|
489
491
|
});
|
|
490
492
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
491
493
|
}
|
|
@@ -507,8 +509,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
507
509
|
body: await parseBody(output.body, context),
|
|
508
510
|
};
|
|
509
511
|
let response;
|
|
510
|
-
|
|
511
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
513
|
switch (errorCode) {
|
|
513
514
|
case "InternalServerException":
|
|
514
515
|
case "com.amazonaws.dlm#InternalServerException":
|
|
@@ -521,10 +522,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
521
522
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
522
523
|
default:
|
|
523
524
|
const parsedBody = parsedOutput.body;
|
|
525
|
+
const $metadata = deserializeMetadata(output);
|
|
526
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
524
527
|
response = new DLMServiceException_1.DLMServiceException({
|
|
525
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
528
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
526
529
|
$fault: "client",
|
|
527
|
-
$metadata
|
|
530
|
+
$metadata,
|
|
528
531
|
});
|
|
529
532
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
530
533
|
}
|
|
@@ -546,8 +549,7 @@ const deserializeAws_restJson1UpdateLifecyclePolicyCommandError = async (output,
|
|
|
546
549
|
body: await parseBody(output.body, context),
|
|
547
550
|
};
|
|
548
551
|
let response;
|
|
549
|
-
|
|
550
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
551
553
|
switch (errorCode) {
|
|
552
554
|
case "InternalServerException":
|
|
553
555
|
case "com.amazonaws.dlm#InternalServerException":
|
|
@@ -563,10 +565,12 @@ const deserializeAws_restJson1UpdateLifecyclePolicyCommandError = async (output,
|
|
|
563
565
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
564
566
|
default:
|
|
565
567
|
const parsedBody = parsedOutput.body;
|
|
568
|
+
const $metadata = deserializeMetadata(output);
|
|
569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
566
570
|
response = new DLMServiceException_1.DLMServiceException({
|
|
567
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
568
572
|
$fault: "client",
|
|
569
|
-
$metadata
|
|
573
|
+
$metadata,
|
|
570
574
|
});
|
|
571
575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
572
576
|
}
|
|
@@ -648,11 +652,10 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
648
652
|
};
|
|
649
653
|
const serializeAws_restJson1Action = (input, context) => {
|
|
650
654
|
return {
|
|
651
|
-
...(input.CrossRegionCopy
|
|
652
|
-
input.CrossRegionCopy !== null && {
|
|
655
|
+
...(input.CrossRegionCopy != null && {
|
|
653
656
|
CrossRegionCopy: serializeAws_restJson1CrossRegionCopyActionList(input.CrossRegionCopy, context),
|
|
654
657
|
}),
|
|
655
|
-
...(input.Name
|
|
658
|
+
...(input.Name != null && { Name: input.Name }),
|
|
656
659
|
};
|
|
657
660
|
};
|
|
658
661
|
const serializeAws_restJson1ActionList = (input, context) => {
|
|
@@ -677,26 +680,22 @@ const serializeAws_restJson1AvailabilityZoneList = (input, context) => {
|
|
|
677
680
|
};
|
|
678
681
|
const serializeAws_restJson1CreateRule = (input, context) => {
|
|
679
682
|
return {
|
|
680
|
-
...(input.CronExpression
|
|
681
|
-
|
|
682
|
-
...(input.
|
|
683
|
-
...(input.
|
|
684
|
-
...(input.
|
|
685
|
-
...(input.Times !== undefined &&
|
|
686
|
-
input.Times !== null && { Times: serializeAws_restJson1TimesList(input.Times, context) }),
|
|
683
|
+
...(input.CronExpression != null && { CronExpression: input.CronExpression }),
|
|
684
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
685
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
686
|
+
...(input.Location != null && { Location: input.Location }),
|
|
687
|
+
...(input.Times != null && { Times: serializeAws_restJson1TimesList(input.Times, context) }),
|
|
687
688
|
};
|
|
688
689
|
};
|
|
689
690
|
const serializeAws_restJson1CrossRegionCopyAction = (input, context) => {
|
|
690
691
|
return {
|
|
691
|
-
...(input.EncryptionConfiguration
|
|
692
|
-
input.EncryptionConfiguration !== null && {
|
|
692
|
+
...(input.EncryptionConfiguration != null && {
|
|
693
693
|
EncryptionConfiguration: serializeAws_restJson1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
694
694
|
}),
|
|
695
|
-
...(input.RetainRule
|
|
696
|
-
input.RetainRule !== null && {
|
|
695
|
+
...(input.RetainRule != null && {
|
|
697
696
|
RetainRule: serializeAws_restJson1CrossRegionCopyRetainRule(input.RetainRule, context),
|
|
698
697
|
}),
|
|
699
|
-
...(input.Target
|
|
698
|
+
...(input.Target != null && { Target: input.Target }),
|
|
700
699
|
};
|
|
701
700
|
};
|
|
702
701
|
const serializeAws_restJson1CrossRegionCopyActionList = (input, context) => {
|
|
@@ -711,31 +710,29 @@ const serializeAws_restJson1CrossRegionCopyActionList = (input, context) => {
|
|
|
711
710
|
};
|
|
712
711
|
const serializeAws_restJson1CrossRegionCopyDeprecateRule = (input, context) => {
|
|
713
712
|
return {
|
|
714
|
-
...(input.Interval
|
|
715
|
-
...(input.IntervalUnit
|
|
713
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
714
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
716
715
|
};
|
|
717
716
|
};
|
|
718
717
|
const serializeAws_restJson1CrossRegionCopyRetainRule = (input, context) => {
|
|
719
718
|
return {
|
|
720
|
-
...(input.Interval
|
|
721
|
-
...(input.IntervalUnit
|
|
719
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
720
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
722
721
|
};
|
|
723
722
|
};
|
|
724
723
|
const serializeAws_restJson1CrossRegionCopyRule = (input, context) => {
|
|
725
724
|
return {
|
|
726
|
-
...(input.CmkArn
|
|
727
|
-
...(input.CopyTags
|
|
728
|
-
...(input.DeprecateRule
|
|
729
|
-
input.DeprecateRule !== null && {
|
|
725
|
+
...(input.CmkArn != null && { CmkArn: input.CmkArn }),
|
|
726
|
+
...(input.CopyTags != null && { CopyTags: input.CopyTags }),
|
|
727
|
+
...(input.DeprecateRule != null && {
|
|
730
728
|
DeprecateRule: serializeAws_restJson1CrossRegionCopyDeprecateRule(input.DeprecateRule, context),
|
|
731
729
|
}),
|
|
732
|
-
...(input.Encrypted
|
|
733
|
-
...(input.RetainRule
|
|
734
|
-
input.RetainRule !== null && {
|
|
730
|
+
...(input.Encrypted != null && { Encrypted: input.Encrypted }),
|
|
731
|
+
...(input.RetainRule != null && {
|
|
735
732
|
RetainRule: serializeAws_restJson1CrossRegionCopyRetainRule(input.RetainRule, context),
|
|
736
733
|
}),
|
|
737
|
-
...(input.Target
|
|
738
|
-
...(input.TargetRegion
|
|
734
|
+
...(input.Target != null && { Target: input.Target }),
|
|
735
|
+
...(input.TargetRegion != null && { TargetRegion: input.TargetRegion }),
|
|
739
736
|
};
|
|
740
737
|
};
|
|
741
738
|
const serializeAws_restJson1CrossRegionCopyRules = (input, context) => {
|
|
@@ -750,74 +747,62 @@ const serializeAws_restJson1CrossRegionCopyRules = (input, context) => {
|
|
|
750
747
|
};
|
|
751
748
|
const serializeAws_restJson1DeprecateRule = (input, context) => {
|
|
752
749
|
return {
|
|
753
|
-
...(input.Count
|
|
754
|
-
...(input.Interval
|
|
755
|
-
...(input.IntervalUnit
|
|
750
|
+
...(input.Count != null && { Count: input.Count }),
|
|
751
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
752
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
756
753
|
};
|
|
757
754
|
};
|
|
758
755
|
const serializeAws_restJson1EncryptionConfiguration = (input, context) => {
|
|
759
756
|
return {
|
|
760
|
-
...(input.CmkArn
|
|
761
|
-
...(input.Encrypted
|
|
757
|
+
...(input.CmkArn != null && { CmkArn: input.CmkArn }),
|
|
758
|
+
...(input.Encrypted != null && { Encrypted: input.Encrypted }),
|
|
762
759
|
};
|
|
763
760
|
};
|
|
764
761
|
const serializeAws_restJson1EventParameters = (input, context) => {
|
|
765
762
|
return {
|
|
766
|
-
...(input.DescriptionRegex
|
|
767
|
-
|
|
768
|
-
...(input.
|
|
769
|
-
...(input.SnapshotOwner !== undefined &&
|
|
770
|
-
input.SnapshotOwner !== null && {
|
|
763
|
+
...(input.DescriptionRegex != null && { DescriptionRegex: input.DescriptionRegex }),
|
|
764
|
+
...(input.EventType != null && { EventType: input.EventType }),
|
|
765
|
+
...(input.SnapshotOwner != null && {
|
|
771
766
|
SnapshotOwner: serializeAws_restJson1SnapshotOwnerList(input.SnapshotOwner, context),
|
|
772
767
|
}),
|
|
773
768
|
};
|
|
774
769
|
};
|
|
775
770
|
const serializeAws_restJson1EventSource = (input, context) => {
|
|
776
771
|
return {
|
|
777
|
-
...(input.Parameters
|
|
778
|
-
|
|
779
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
772
|
+
...(input.Parameters != null && { Parameters: serializeAws_restJson1EventParameters(input.Parameters, context) }),
|
|
773
|
+
...(input.Type != null && { Type: input.Type }),
|
|
780
774
|
};
|
|
781
775
|
};
|
|
782
776
|
const serializeAws_restJson1FastRestoreRule = (input, context) => {
|
|
783
777
|
return {
|
|
784
|
-
...(input.AvailabilityZones
|
|
785
|
-
input.AvailabilityZones !== null && {
|
|
778
|
+
...(input.AvailabilityZones != null && {
|
|
786
779
|
AvailabilityZones: serializeAws_restJson1AvailabilityZoneList(input.AvailabilityZones, context),
|
|
787
780
|
}),
|
|
788
|
-
...(input.Count
|
|
789
|
-
...(input.Interval
|
|
790
|
-
...(input.IntervalUnit
|
|
781
|
+
...(input.Count != null && { Count: input.Count }),
|
|
782
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
783
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
791
784
|
};
|
|
792
785
|
};
|
|
793
786
|
const serializeAws_restJson1_Parameters = (input, context) => {
|
|
794
787
|
return {
|
|
795
|
-
...(input.ExcludeBootVolume
|
|
796
|
-
|
|
797
|
-
...(input.NoReboot !== undefined && input.NoReboot !== null && { NoReboot: input.NoReboot }),
|
|
788
|
+
...(input.ExcludeBootVolume != null && { ExcludeBootVolume: input.ExcludeBootVolume }),
|
|
789
|
+
...(input.NoReboot != null && { NoReboot: input.NoReboot }),
|
|
798
790
|
};
|
|
799
791
|
};
|
|
800
792
|
const serializeAws_restJson1PolicyDetails = (input, context) => {
|
|
801
793
|
return {
|
|
802
|
-
...(input.Actions
|
|
803
|
-
|
|
804
|
-
...(input.
|
|
805
|
-
|
|
806
|
-
...(input.
|
|
807
|
-
input.Parameters !== null && { Parameters: serializeAws_restJson1_Parameters(input.Parameters, context) }),
|
|
808
|
-
...(input.PolicyType !== undefined && input.PolicyType !== null && { PolicyType: input.PolicyType }),
|
|
809
|
-
...(input.ResourceLocations !== undefined &&
|
|
810
|
-
input.ResourceLocations !== null && {
|
|
794
|
+
...(input.Actions != null && { Actions: serializeAws_restJson1ActionList(input.Actions, context) }),
|
|
795
|
+
...(input.EventSource != null && { EventSource: serializeAws_restJson1EventSource(input.EventSource, context) }),
|
|
796
|
+
...(input.Parameters != null && { Parameters: serializeAws_restJson1_Parameters(input.Parameters, context) }),
|
|
797
|
+
...(input.PolicyType != null && { PolicyType: input.PolicyType }),
|
|
798
|
+
...(input.ResourceLocations != null && {
|
|
811
799
|
ResourceLocations: serializeAws_restJson1ResourceLocationList(input.ResourceLocations, context),
|
|
812
800
|
}),
|
|
813
|
-
...(input.ResourceTypes
|
|
814
|
-
input.ResourceTypes !== null && {
|
|
801
|
+
...(input.ResourceTypes != null && {
|
|
815
802
|
ResourceTypes: serializeAws_restJson1ResourceTypeValuesList(input.ResourceTypes, context),
|
|
816
803
|
}),
|
|
817
|
-
...(input.Schedules
|
|
818
|
-
|
|
819
|
-
...(input.TargetTags !== undefined &&
|
|
820
|
-
input.TargetTags !== null && { TargetTags: serializeAws_restJson1TargetTagList(input.TargetTags, context) }),
|
|
804
|
+
...(input.Schedules != null && { Schedules: serializeAws_restJson1ScheduleList(input.Schedules, context) }),
|
|
805
|
+
...(input.TargetTags != null && { TargetTags: serializeAws_restJson1TargetTagList(input.TargetTags, context) }),
|
|
821
806
|
};
|
|
822
807
|
};
|
|
823
808
|
const serializeAws_restJson1ResourceLocationList = (input, context) => {
|
|
@@ -842,37 +827,29 @@ const serializeAws_restJson1ResourceTypeValuesList = (input, context) => {
|
|
|
842
827
|
};
|
|
843
828
|
const serializeAws_restJson1RetainRule = (input, context) => {
|
|
844
829
|
return {
|
|
845
|
-
...(input.Count
|
|
846
|
-
...(input.Interval
|
|
847
|
-
...(input.IntervalUnit
|
|
830
|
+
...(input.Count != null && { Count: input.Count }),
|
|
831
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
832
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
848
833
|
};
|
|
849
834
|
};
|
|
850
835
|
const serializeAws_restJson1Schedule = (input, context) => {
|
|
851
836
|
return {
|
|
852
|
-
...(input.CopyTags
|
|
853
|
-
...(input.CreateRule
|
|
854
|
-
|
|
855
|
-
...(input.CrossRegionCopyRules !== undefined &&
|
|
856
|
-
input.CrossRegionCopyRules !== null && {
|
|
837
|
+
...(input.CopyTags != null && { CopyTags: input.CopyTags }),
|
|
838
|
+
...(input.CreateRule != null && { CreateRule: serializeAws_restJson1CreateRule(input.CreateRule, context) }),
|
|
839
|
+
...(input.CrossRegionCopyRules != null && {
|
|
857
840
|
CrossRegionCopyRules: serializeAws_restJson1CrossRegionCopyRules(input.CrossRegionCopyRules, context),
|
|
858
841
|
}),
|
|
859
|
-
...(input.DeprecateRule
|
|
860
|
-
input.DeprecateRule !== null && {
|
|
842
|
+
...(input.DeprecateRule != null && {
|
|
861
843
|
DeprecateRule: serializeAws_restJson1DeprecateRule(input.DeprecateRule, context),
|
|
862
844
|
}),
|
|
863
|
-
...(input.FastRestoreRule
|
|
864
|
-
input.FastRestoreRule !== null && {
|
|
845
|
+
...(input.FastRestoreRule != null && {
|
|
865
846
|
FastRestoreRule: serializeAws_restJson1FastRestoreRule(input.FastRestoreRule, context),
|
|
866
847
|
}),
|
|
867
|
-
...(input.Name
|
|
868
|
-
...(input.RetainRule
|
|
869
|
-
|
|
870
|
-
...(input.
|
|
871
|
-
|
|
872
|
-
...(input.TagsToAdd !== undefined &&
|
|
873
|
-
input.TagsToAdd !== null && { TagsToAdd: serializeAws_restJson1TagsToAddList(input.TagsToAdd, context) }),
|
|
874
|
-
...(input.VariableTags !== undefined &&
|
|
875
|
-
input.VariableTags !== null && {
|
|
848
|
+
...(input.Name != null && { Name: input.Name }),
|
|
849
|
+
...(input.RetainRule != null && { RetainRule: serializeAws_restJson1RetainRule(input.RetainRule, context) }),
|
|
850
|
+
...(input.ShareRules != null && { ShareRules: serializeAws_restJson1ShareRules(input.ShareRules, context) }),
|
|
851
|
+
...(input.TagsToAdd != null && { TagsToAdd: serializeAws_restJson1TagsToAddList(input.TagsToAdd, context) }),
|
|
852
|
+
...(input.VariableTags != null && {
|
|
876
853
|
VariableTags: serializeAws_restJson1VariableTagsList(input.VariableTags, context),
|
|
877
854
|
}),
|
|
878
855
|
};
|
|
@@ -889,14 +866,11 @@ const serializeAws_restJson1ScheduleList = (input, context) => {
|
|
|
889
866
|
};
|
|
890
867
|
const serializeAws_restJson1ShareRule = (input, context) => {
|
|
891
868
|
return {
|
|
892
|
-
...(input.TargetAccounts
|
|
893
|
-
input.TargetAccounts !== null && {
|
|
869
|
+
...(input.TargetAccounts != null && {
|
|
894
870
|
TargetAccounts: serializeAws_restJson1ShareTargetAccountList(input.TargetAccounts, context),
|
|
895
871
|
}),
|
|
896
|
-
...(input.UnshareInterval
|
|
897
|
-
|
|
898
|
-
...(input.UnshareIntervalUnit !== undefined &&
|
|
899
|
-
input.UnshareIntervalUnit !== null && { UnshareIntervalUnit: input.UnshareIntervalUnit }),
|
|
872
|
+
...(input.UnshareInterval != null && { UnshareInterval: input.UnshareInterval }),
|
|
873
|
+
...(input.UnshareIntervalUnit != null && { UnshareIntervalUnit: input.UnshareIntervalUnit }),
|
|
900
874
|
};
|
|
901
875
|
};
|
|
902
876
|
const serializeAws_restJson1ShareRules = (input, context) => {
|
|
@@ -931,8 +905,8 @@ const serializeAws_restJson1SnapshotOwnerList = (input, context) => {
|
|
|
931
905
|
};
|
|
932
906
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
933
907
|
return {
|
|
934
|
-
...(input.Key
|
|
935
|
-
...(input.Value
|
|
908
|
+
...(input.Key != null && { Key: input.Key }),
|
|
909
|
+
...(input.Value != null && { Value: input.Value }),
|
|
936
910
|
};
|
|
937
911
|
};
|
|
938
912
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -988,7 +962,7 @@ const serializeAws_restJson1VariableTagsList = (input, context) => {
|
|
|
988
962
|
};
|
|
989
963
|
const deserializeAws_restJson1Action = (output, context) => {
|
|
990
964
|
return {
|
|
991
|
-
CrossRegionCopy: output.CrossRegionCopy
|
|
965
|
+
CrossRegionCopy: output.CrossRegionCopy != null
|
|
992
966
|
? deserializeAws_restJson1CrossRegionCopyActionList(output.CrossRegionCopy, context)
|
|
993
967
|
: undefined,
|
|
994
968
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -1022,17 +996,15 @@ const deserializeAws_restJson1CreateRule = (output, context) => {
|
|
|
1022
996
|
Interval: (0, smithy_client_1.expectInt32)(output.Interval),
|
|
1023
997
|
IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
|
|
1024
998
|
Location: (0, smithy_client_1.expectString)(output.Location),
|
|
1025
|
-
Times: output.Times
|
|
1026
|
-
? deserializeAws_restJson1TimesList(output.Times, context)
|
|
1027
|
-
: undefined,
|
|
999
|
+
Times: output.Times != null ? deserializeAws_restJson1TimesList(output.Times, context) : undefined,
|
|
1028
1000
|
};
|
|
1029
1001
|
};
|
|
1030
1002
|
const deserializeAws_restJson1CrossRegionCopyAction = (output, context) => {
|
|
1031
1003
|
return {
|
|
1032
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
1004
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
1033
1005
|
? deserializeAws_restJson1EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
1034
1006
|
: undefined,
|
|
1035
|
-
RetainRule: output.RetainRule
|
|
1007
|
+
RetainRule: output.RetainRule != null
|
|
1036
1008
|
? deserializeAws_restJson1CrossRegionCopyRetainRule(output.RetainRule, context)
|
|
1037
1009
|
: undefined,
|
|
1038
1010
|
Target: (0, smithy_client_1.expectString)(output.Target),
|
|
@@ -1065,11 +1037,11 @@ const deserializeAws_restJson1CrossRegionCopyRule = (output, context) => {
|
|
|
1065
1037
|
return {
|
|
1066
1038
|
CmkArn: (0, smithy_client_1.expectString)(output.CmkArn),
|
|
1067
1039
|
CopyTags: (0, smithy_client_1.expectBoolean)(output.CopyTags),
|
|
1068
|
-
DeprecateRule: output.DeprecateRule
|
|
1040
|
+
DeprecateRule: output.DeprecateRule != null
|
|
1069
1041
|
? deserializeAws_restJson1CrossRegionCopyDeprecateRule(output.DeprecateRule, context)
|
|
1070
1042
|
: undefined,
|
|
1071
1043
|
Encrypted: (0, smithy_client_1.expectBoolean)(output.Encrypted),
|
|
1072
|
-
RetainRule: output.RetainRule
|
|
1044
|
+
RetainRule: output.RetainRule != null
|
|
1073
1045
|
? deserializeAws_restJson1CrossRegionCopyRetainRule(output.RetainRule, context)
|
|
1074
1046
|
: undefined,
|
|
1075
1047
|
Target: (0, smithy_client_1.expectString)(output.Target),
|
|
@@ -1104,22 +1076,20 @@ const deserializeAws_restJson1EventParameters = (output, context) => {
|
|
|
1104
1076
|
return {
|
|
1105
1077
|
DescriptionRegex: (0, smithy_client_1.expectString)(output.DescriptionRegex),
|
|
1106
1078
|
EventType: (0, smithy_client_1.expectString)(output.EventType),
|
|
1107
|
-
SnapshotOwner: output.SnapshotOwner
|
|
1079
|
+
SnapshotOwner: output.SnapshotOwner != null
|
|
1108
1080
|
? deserializeAws_restJson1SnapshotOwnerList(output.SnapshotOwner, context)
|
|
1109
1081
|
: undefined,
|
|
1110
1082
|
};
|
|
1111
1083
|
};
|
|
1112
1084
|
const deserializeAws_restJson1EventSource = (output, context) => {
|
|
1113
1085
|
return {
|
|
1114
|
-
Parameters: output.Parameters
|
|
1115
|
-
? deserializeAws_restJson1EventParameters(output.Parameters, context)
|
|
1116
|
-
: undefined,
|
|
1086
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1EventParameters(output.Parameters, context) : undefined,
|
|
1117
1087
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1118
1088
|
};
|
|
1119
1089
|
};
|
|
1120
1090
|
const deserializeAws_restJson1FastRestoreRule = (output, context) => {
|
|
1121
1091
|
return {
|
|
1122
|
-
AvailabilityZones: output.AvailabilityZones
|
|
1092
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
1123
1093
|
? deserializeAws_restJson1AvailabilityZoneList(output.AvailabilityZones, context)
|
|
1124
1094
|
: undefined,
|
|
1125
1095
|
Count: (0, smithy_client_1.expectInt32)(output.Count),
|
|
@@ -1129,24 +1099,20 @@ const deserializeAws_restJson1FastRestoreRule = (output, context) => {
|
|
|
1129
1099
|
};
|
|
1130
1100
|
const deserializeAws_restJson1LifecyclePolicy = (output, context) => {
|
|
1131
1101
|
return {
|
|
1132
|
-
DateCreated: output.DateCreated
|
|
1102
|
+
DateCreated: output.DateCreated != null
|
|
1133
1103
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateCreated)))
|
|
1134
1104
|
: undefined,
|
|
1135
|
-
DateModified: output.DateModified
|
|
1105
|
+
DateModified: output.DateModified != null
|
|
1136
1106
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateModified)))
|
|
1137
1107
|
: undefined,
|
|
1138
1108
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1139
1109
|
ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
|
|
1140
1110
|
PolicyArn: (0, smithy_client_1.expectString)(output.PolicyArn),
|
|
1141
|
-
PolicyDetails: output.PolicyDetails
|
|
1142
|
-
? deserializeAws_restJson1PolicyDetails(output.PolicyDetails, context)
|
|
1143
|
-
: undefined,
|
|
1111
|
+
PolicyDetails: output.PolicyDetails != null ? deserializeAws_restJson1PolicyDetails(output.PolicyDetails, context) : undefined,
|
|
1144
1112
|
PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
|
|
1145
1113
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1146
1114
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1147
|
-
Tags: output.Tags
|
|
1148
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1149
|
-
: undefined,
|
|
1115
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1150
1116
|
};
|
|
1151
1117
|
};
|
|
1152
1118
|
const deserializeAws_restJson1LifecyclePolicySummary = (output, context) => {
|
|
@@ -1155,9 +1121,7 @@ const deserializeAws_restJson1LifecyclePolicySummary = (output, context) => {
|
|
|
1155
1121
|
PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
|
|
1156
1122
|
PolicyType: (0, smithy_client_1.expectString)(output.PolicyType),
|
|
1157
1123
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1158
|
-
Tags: output.Tags
|
|
1159
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1160
|
-
: undefined,
|
|
1124
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1161
1125
|
};
|
|
1162
1126
|
};
|
|
1163
1127
|
const deserializeAws_restJson1LifecyclePolicySummaryList = (output, context) => {
|
|
@@ -1190,28 +1154,18 @@ const deserializeAws_restJson1_Parameters = (output, context) => {
|
|
|
1190
1154
|
};
|
|
1191
1155
|
const deserializeAws_restJson1PolicyDetails = (output, context) => {
|
|
1192
1156
|
return {
|
|
1193
|
-
Actions: output.Actions
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
EventSource: output.EventSource !== undefined && output.EventSource !== null
|
|
1197
|
-
? deserializeAws_restJson1EventSource(output.EventSource, context)
|
|
1198
|
-
: undefined,
|
|
1199
|
-
Parameters: output.Parameters !== undefined && output.Parameters !== null
|
|
1200
|
-
? deserializeAws_restJson1_Parameters(output.Parameters, context)
|
|
1201
|
-
: undefined,
|
|
1157
|
+
Actions: output.Actions != null ? deserializeAws_restJson1ActionList(output.Actions, context) : undefined,
|
|
1158
|
+
EventSource: output.EventSource != null ? deserializeAws_restJson1EventSource(output.EventSource, context) : undefined,
|
|
1159
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1_Parameters(output.Parameters, context) : undefined,
|
|
1202
1160
|
PolicyType: (0, smithy_client_1.expectString)(output.PolicyType),
|
|
1203
|
-
ResourceLocations: output.ResourceLocations
|
|
1161
|
+
ResourceLocations: output.ResourceLocations != null
|
|
1204
1162
|
? deserializeAws_restJson1ResourceLocationList(output.ResourceLocations, context)
|
|
1205
1163
|
: undefined,
|
|
1206
|
-
ResourceTypes: output.ResourceTypes
|
|
1164
|
+
ResourceTypes: output.ResourceTypes != null
|
|
1207
1165
|
? deserializeAws_restJson1ResourceTypeValuesList(output.ResourceTypes, context)
|
|
1208
1166
|
: undefined,
|
|
1209
|
-
Schedules: output.Schedules
|
|
1210
|
-
|
|
1211
|
-
: undefined,
|
|
1212
|
-
TargetTags: output.TargetTags !== undefined && output.TargetTags !== null
|
|
1213
|
-
? deserializeAws_restJson1TargetTagList(output.TargetTags, context)
|
|
1214
|
-
: undefined,
|
|
1167
|
+
Schedules: output.Schedules != null ? deserializeAws_restJson1ScheduleList(output.Schedules, context) : undefined,
|
|
1168
|
+
TargetTags: output.TargetTags != null ? deserializeAws_restJson1TargetTagList(output.TargetTags, context) : undefined,
|
|
1215
1169
|
};
|
|
1216
1170
|
};
|
|
1217
1171
|
const deserializeAws_restJson1PolicyIdList = (output, context) => {
|
|
@@ -1257,31 +1211,19 @@ const deserializeAws_restJson1RetainRule = (output, context) => {
|
|
|
1257
1211
|
const deserializeAws_restJson1Schedule = (output, context) => {
|
|
1258
1212
|
return {
|
|
1259
1213
|
CopyTags: (0, smithy_client_1.expectBoolean)(output.CopyTags),
|
|
1260
|
-
CreateRule: output.CreateRule
|
|
1261
|
-
|
|
1262
|
-
: undefined,
|
|
1263
|
-
CrossRegionCopyRules: output.CrossRegionCopyRules !== undefined && output.CrossRegionCopyRules !== null
|
|
1214
|
+
CreateRule: output.CreateRule != null ? deserializeAws_restJson1CreateRule(output.CreateRule, context) : undefined,
|
|
1215
|
+
CrossRegionCopyRules: output.CrossRegionCopyRules != null
|
|
1264
1216
|
? deserializeAws_restJson1CrossRegionCopyRules(output.CrossRegionCopyRules, context)
|
|
1265
1217
|
: undefined,
|
|
1266
|
-
DeprecateRule: output.DeprecateRule
|
|
1267
|
-
|
|
1268
|
-
: undefined,
|
|
1269
|
-
FastRestoreRule: output.FastRestoreRule !== undefined && output.FastRestoreRule !== null
|
|
1218
|
+
DeprecateRule: output.DeprecateRule != null ? deserializeAws_restJson1DeprecateRule(output.DeprecateRule, context) : undefined,
|
|
1219
|
+
FastRestoreRule: output.FastRestoreRule != null
|
|
1270
1220
|
? deserializeAws_restJson1FastRestoreRule(output.FastRestoreRule, context)
|
|
1271
1221
|
: undefined,
|
|
1272
1222
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1273
|
-
RetainRule: output.RetainRule
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
? deserializeAws_restJson1ShareRules(output.ShareRules, context)
|
|
1278
|
-
: undefined,
|
|
1279
|
-
TagsToAdd: output.TagsToAdd !== undefined && output.TagsToAdd !== null
|
|
1280
|
-
? deserializeAws_restJson1TagsToAddList(output.TagsToAdd, context)
|
|
1281
|
-
: undefined,
|
|
1282
|
-
VariableTags: output.VariableTags !== undefined && output.VariableTags !== null
|
|
1283
|
-
? deserializeAws_restJson1VariableTagsList(output.VariableTags, context)
|
|
1284
|
-
: undefined,
|
|
1223
|
+
RetainRule: output.RetainRule != null ? deserializeAws_restJson1RetainRule(output.RetainRule, context) : undefined,
|
|
1224
|
+
ShareRules: output.ShareRules != null ? deserializeAws_restJson1ShareRules(output.ShareRules, context) : undefined,
|
|
1225
|
+
TagsToAdd: output.TagsToAdd != null ? deserializeAws_restJson1TagsToAddList(output.TagsToAdd, context) : undefined,
|
|
1226
|
+
VariableTags: output.VariableTags != null ? deserializeAws_restJson1VariableTagsList(output.VariableTags, context) : undefined,
|
|
1285
1227
|
};
|
|
1286
1228
|
};
|
|
1287
1229
|
const deserializeAws_restJson1ScheduleList = (output, context) => {
|
|
@@ -1297,7 +1239,7 @@ const deserializeAws_restJson1ScheduleList = (output, context) => {
|
|
|
1297
1239
|
};
|
|
1298
1240
|
const deserializeAws_restJson1ShareRule = (output, context) => {
|
|
1299
1241
|
return {
|
|
1300
|
-
TargetAccounts: output.TargetAccounts
|
|
1242
|
+
TargetAccounts: output.TargetAccounts != null
|
|
1301
1243
|
? deserializeAws_restJson1ShareTargetAccountList(output.TargetAccounts, context)
|
|
1302
1244
|
: undefined,
|
|
1303
1245
|
UnshareInterval: (0, smithy_client_1.expectInt32)(output.UnshareInterval),
|
|
@@ -1447,5 +1389,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1447
1389
|
if (data["__type"] !== undefined) {
|
|
1448
1390
|
return sanitizeErrorCode(data["__type"]);
|
|
1449
1391
|
}
|
|
1450
|
-
return "";
|
|
1451
1392
|
};
|