@aws-sdk/client-cloudfront 3.118.1 → 3.128.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_restXml.js +757 -667
- package/dist-es/protocols/Aws_restXml.js +757 -667
- package/package.json +27 -27
|
@@ -2775,8 +2775,7 @@ const deserializeAws_restXmlAssociateAliasCommandError = async (output, context)
|
|
|
2775
2775
|
body: await parseBody(output.body, context),
|
|
2776
2776
|
};
|
|
2777
2777
|
let response;
|
|
2778
|
-
|
|
2779
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2778
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2780
2779
|
switch (errorCode) {
|
|
2781
2780
|
case "AccessDenied":
|
|
2782
2781
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -2795,10 +2794,12 @@ const deserializeAws_restXmlAssociateAliasCommandError = async (output, context)
|
|
|
2795
2794
|
throw await deserializeAws_restXmlTooManyDistributionCNAMEsResponse(parsedOutput, context);
|
|
2796
2795
|
default:
|
|
2797
2796
|
const parsedBody = parsedOutput.body;
|
|
2797
|
+
const $metadata = deserializeMetadata(output);
|
|
2798
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2798
2799
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
2799
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2800
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2800
2801
|
$fault: "client",
|
|
2801
|
-
$metadata
|
|
2802
|
+
$metadata,
|
|
2802
2803
|
});
|
|
2803
2804
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2804
2805
|
}
|
|
@@ -2830,8 +2831,7 @@ const deserializeAws_restXmlCreateCachePolicyCommandError = async (output, conte
|
|
|
2830
2831
|
body: await parseBody(output.body, context),
|
|
2831
2832
|
};
|
|
2832
2833
|
let response;
|
|
2833
|
-
|
|
2834
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2834
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2835
2835
|
switch (errorCode) {
|
|
2836
2836
|
case "AccessDenied":
|
|
2837
2837
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -2859,10 +2859,12 @@ const deserializeAws_restXmlCreateCachePolicyCommandError = async (output, conte
|
|
|
2859
2859
|
throw await deserializeAws_restXmlTooManyQueryStringsInCachePolicyResponse(parsedOutput, context);
|
|
2860
2860
|
default:
|
|
2861
2861
|
const parsedBody = parsedOutput.body;
|
|
2862
|
+
const $metadata = deserializeMetadata(output);
|
|
2863
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2862
2864
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
2863
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2865
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2864
2866
|
$fault: "client",
|
|
2865
|
-
$metadata
|
|
2867
|
+
$metadata,
|
|
2866
2868
|
});
|
|
2867
2869
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2868
2870
|
}
|
|
@@ -2894,8 +2896,7 @@ const deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommandError = a
|
|
|
2894
2896
|
body: await parseBody(output.body, context),
|
|
2895
2897
|
};
|
|
2896
2898
|
let response;
|
|
2897
|
-
|
|
2898
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2899
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2899
2900
|
switch (errorCode) {
|
|
2900
2901
|
case "CloudFrontOriginAccessIdentityAlreadyExists":
|
|
2901
2902
|
case "com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityAlreadyExists":
|
|
@@ -2914,10 +2915,12 @@ const deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommandError = a
|
|
|
2914
2915
|
throw await deserializeAws_restXmlTooManyCloudFrontOriginAccessIdentitiesResponse(parsedOutput, context);
|
|
2915
2916
|
default:
|
|
2916
2917
|
const parsedBody = parsedOutput.body;
|
|
2918
|
+
const $metadata = deserializeMetadata(output);
|
|
2919
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2917
2920
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
2918
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2921
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2919
2922
|
$fault: "client",
|
|
2920
|
-
$metadata
|
|
2923
|
+
$metadata,
|
|
2921
2924
|
});
|
|
2922
2925
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2923
2926
|
}
|
|
@@ -2949,8 +2952,7 @@ const deserializeAws_restXmlCreateDistributionCommandError = async (output, cont
|
|
|
2949
2952
|
body: await parseBody(output.body, context),
|
|
2950
2953
|
};
|
|
2951
2954
|
let response;
|
|
2952
|
-
|
|
2953
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2955
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2954
2956
|
switch (errorCode) {
|
|
2955
2957
|
case "AccessDenied":
|
|
2956
2958
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -3131,10 +3133,12 @@ const deserializeAws_restXmlCreateDistributionCommandError = async (output, cont
|
|
|
3131
3133
|
throw await deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context);
|
|
3132
3134
|
default:
|
|
3133
3135
|
const parsedBody = parsedOutput.body;
|
|
3136
|
+
const $metadata = deserializeMetadata(output);
|
|
3137
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3134
3138
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3135
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3139
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3136
3140
|
$fault: "client",
|
|
3137
|
-
$metadata
|
|
3141
|
+
$metadata,
|
|
3138
3142
|
});
|
|
3139
3143
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3140
3144
|
}
|
|
@@ -3166,8 +3170,7 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (outp
|
|
|
3166
3170
|
body: await parseBody(output.body, context),
|
|
3167
3171
|
};
|
|
3168
3172
|
let response;
|
|
3169
|
-
|
|
3170
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3173
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3171
3174
|
switch (errorCode) {
|
|
3172
3175
|
case "AccessDenied":
|
|
3173
3176
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -3351,10 +3354,12 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (outp
|
|
|
3351
3354
|
throw await deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context);
|
|
3352
3355
|
default:
|
|
3353
3356
|
const parsedBody = parsedOutput.body;
|
|
3357
|
+
const $metadata = deserializeMetadata(output);
|
|
3358
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3354
3359
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3355
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3360
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3356
3361
|
$fault: "client",
|
|
3357
|
-
$metadata
|
|
3362
|
+
$metadata,
|
|
3358
3363
|
});
|
|
3359
3364
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3360
3365
|
}
|
|
@@ -3386,8 +3391,7 @@ const deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommandError = async
|
|
|
3386
3391
|
body: await parseBody(output.body, context),
|
|
3387
3392
|
};
|
|
3388
3393
|
let response;
|
|
3389
|
-
|
|
3390
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3394
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3391
3395
|
switch (errorCode) {
|
|
3392
3396
|
case "FieldLevelEncryptionConfigAlreadyExists":
|
|
3393
3397
|
case "com.amazonaws.cloudfront#FieldLevelEncryptionConfigAlreadyExists":
|
|
@@ -3415,10 +3419,12 @@ const deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommandError = async
|
|
|
3415
3419
|
throw await deserializeAws_restXmlTooManyFieldLevelEncryptionQueryArgProfilesResponse(parsedOutput, context);
|
|
3416
3420
|
default:
|
|
3417
3421
|
const parsedBody = parsedOutput.body;
|
|
3422
|
+
const $metadata = deserializeMetadata(output);
|
|
3423
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3418
3424
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3419
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3425
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3420
3426
|
$fault: "client",
|
|
3421
|
-
$metadata
|
|
3427
|
+
$metadata,
|
|
3422
3428
|
});
|
|
3423
3429
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3424
3430
|
}
|
|
@@ -3450,8 +3456,7 @@ const deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommandError = asyn
|
|
|
3450
3456
|
body: await parseBody(output.body, context),
|
|
3451
3457
|
};
|
|
3452
3458
|
let response;
|
|
3453
|
-
|
|
3454
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3459
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3455
3460
|
switch (errorCode) {
|
|
3456
3461
|
case "FieldLevelEncryptionProfileAlreadyExists":
|
|
3457
3462
|
case "com.amazonaws.cloudfront#FieldLevelEncryptionProfileAlreadyExists":
|
|
@@ -3479,10 +3484,12 @@ const deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommandError = asyn
|
|
|
3479
3484
|
throw await deserializeAws_restXmlTooManyFieldLevelEncryptionProfilesResponse(parsedOutput, context);
|
|
3480
3485
|
default:
|
|
3481
3486
|
const parsedBody = parsedOutput.body;
|
|
3487
|
+
const $metadata = deserializeMetadata(output);
|
|
3488
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3482
3489
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3483
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3490
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3484
3491
|
$fault: "client",
|
|
3485
|
-
$metadata
|
|
3492
|
+
$metadata,
|
|
3486
3493
|
});
|
|
3487
3494
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3488
3495
|
}
|
|
@@ -3514,8 +3521,7 @@ const deserializeAws_restXmlCreateFunctionCommandError = async (output, context)
|
|
|
3514
3521
|
body: await parseBody(output.body, context),
|
|
3515
3522
|
};
|
|
3516
3523
|
let response;
|
|
3517
|
-
|
|
3518
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3524
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3519
3525
|
switch (errorCode) {
|
|
3520
3526
|
case "FunctionAlreadyExists":
|
|
3521
3527
|
case "com.amazonaws.cloudfront#FunctionAlreadyExists":
|
|
@@ -3534,10 +3540,12 @@ const deserializeAws_restXmlCreateFunctionCommandError = async (output, context)
|
|
|
3534
3540
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
3535
3541
|
default:
|
|
3536
3542
|
const parsedBody = parsedOutput.body;
|
|
3543
|
+
const $metadata = deserializeMetadata(output);
|
|
3544
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3537
3545
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3538
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3546
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3539
3547
|
$fault: "client",
|
|
3540
|
-
$metadata
|
|
3548
|
+
$metadata,
|
|
3541
3549
|
});
|
|
3542
3550
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3543
3551
|
}
|
|
@@ -3565,8 +3573,7 @@ const deserializeAws_restXmlCreateInvalidationCommandError = async (output, cont
|
|
|
3565
3573
|
body: await parseBody(output.body, context),
|
|
3566
3574
|
};
|
|
3567
3575
|
let response;
|
|
3568
|
-
|
|
3569
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3576
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3570
3577
|
switch (errorCode) {
|
|
3571
3578
|
case "AccessDenied":
|
|
3572
3579
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -3591,10 +3598,12 @@ const deserializeAws_restXmlCreateInvalidationCommandError = async (output, cont
|
|
|
3591
3598
|
throw await deserializeAws_restXmlTooManyInvalidationsInProgressResponse(parsedOutput, context);
|
|
3592
3599
|
default:
|
|
3593
3600
|
const parsedBody = parsedOutput.body;
|
|
3601
|
+
const $metadata = deserializeMetadata(output);
|
|
3602
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3594
3603
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3595
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3604
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3596
3605
|
$fault: "client",
|
|
3597
|
-
$metadata
|
|
3606
|
+
$metadata,
|
|
3598
3607
|
});
|
|
3599
3608
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3600
3609
|
}
|
|
@@ -3626,8 +3635,7 @@ const deserializeAws_restXmlCreateKeyGroupCommandError = async (output, context)
|
|
|
3626
3635
|
body: await parseBody(output.body, context),
|
|
3627
3636
|
};
|
|
3628
3637
|
let response;
|
|
3629
|
-
|
|
3630
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3638
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3631
3639
|
switch (errorCode) {
|
|
3632
3640
|
case "InvalidArgument":
|
|
3633
3641
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
@@ -3643,10 +3651,12 @@ const deserializeAws_restXmlCreateKeyGroupCommandError = async (output, context)
|
|
|
3643
3651
|
throw await deserializeAws_restXmlTooManyPublicKeysInKeyGroupResponse(parsedOutput, context);
|
|
3644
3652
|
default:
|
|
3645
3653
|
const parsedBody = parsedOutput.body;
|
|
3654
|
+
const $metadata = deserializeMetadata(output);
|
|
3655
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3646
3656
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3647
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3657
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3648
3658
|
$fault: "client",
|
|
3649
|
-
$metadata
|
|
3659
|
+
$metadata,
|
|
3650
3660
|
});
|
|
3651
3661
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3652
3662
|
}
|
|
@@ -3670,8 +3680,7 @@ const deserializeAws_restXmlCreateMonitoringSubscriptionCommandError = async (ou
|
|
|
3670
3680
|
body: await parseBody(output.body, context),
|
|
3671
3681
|
};
|
|
3672
3682
|
let response;
|
|
3673
|
-
|
|
3674
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3683
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3675
3684
|
switch (errorCode) {
|
|
3676
3685
|
case "AccessDenied":
|
|
3677
3686
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -3684,10 +3693,12 @@ const deserializeAws_restXmlCreateMonitoringSubscriptionCommandError = async (ou
|
|
|
3684
3693
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
3685
3694
|
default:
|
|
3686
3695
|
const parsedBody = parsedOutput.body;
|
|
3696
|
+
const $metadata = deserializeMetadata(output);
|
|
3697
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3687
3698
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3688
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3699
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3689
3700
|
$fault: "client",
|
|
3690
|
-
$metadata
|
|
3701
|
+
$metadata,
|
|
3691
3702
|
});
|
|
3692
3703
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3693
3704
|
}
|
|
@@ -3719,8 +3730,7 @@ const deserializeAws_restXmlCreateOriginRequestPolicyCommandError = async (outpu
|
|
|
3719
3730
|
body: await parseBody(output.body, context),
|
|
3720
3731
|
};
|
|
3721
3732
|
let response;
|
|
3722
|
-
|
|
3723
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3733
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3724
3734
|
switch (errorCode) {
|
|
3725
3735
|
case "AccessDenied":
|
|
3726
3736
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -3748,10 +3758,12 @@ const deserializeAws_restXmlCreateOriginRequestPolicyCommandError = async (outpu
|
|
|
3748
3758
|
throw await deserializeAws_restXmlTooManyQueryStringsInOriginRequestPolicyResponse(parsedOutput, context);
|
|
3749
3759
|
default:
|
|
3750
3760
|
const parsedBody = parsedOutput.body;
|
|
3761
|
+
const $metadata = deserializeMetadata(output);
|
|
3762
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3751
3763
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3752
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3764
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3753
3765
|
$fault: "client",
|
|
3754
|
-
$metadata
|
|
3766
|
+
$metadata,
|
|
3755
3767
|
});
|
|
3756
3768
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3757
3769
|
}
|
|
@@ -3783,8 +3795,7 @@ const deserializeAws_restXmlCreatePublicKeyCommandError = async (output, context
|
|
|
3783
3795
|
body: await parseBody(output.body, context),
|
|
3784
3796
|
};
|
|
3785
3797
|
let response;
|
|
3786
|
-
|
|
3787
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3798
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3788
3799
|
switch (errorCode) {
|
|
3789
3800
|
case "InvalidArgument":
|
|
3790
3801
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
@@ -3797,10 +3808,12 @@ const deserializeAws_restXmlCreatePublicKeyCommandError = async (output, context
|
|
|
3797
3808
|
throw await deserializeAws_restXmlTooManyPublicKeysResponse(parsedOutput, context);
|
|
3798
3809
|
default:
|
|
3799
3810
|
const parsedBody = parsedOutput.body;
|
|
3811
|
+
const $metadata = deserializeMetadata(output);
|
|
3812
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3800
3813
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3801
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3814
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3802
3815
|
$fault: "client",
|
|
3803
|
-
$metadata
|
|
3816
|
+
$metadata,
|
|
3804
3817
|
});
|
|
3805
3818
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3806
3819
|
}
|
|
@@ -3826,8 +3839,7 @@ const deserializeAws_restXmlCreateRealtimeLogConfigCommandError = async (output,
|
|
|
3826
3839
|
body: await parseBody(output.body, context),
|
|
3827
3840
|
};
|
|
3828
3841
|
let response;
|
|
3829
|
-
|
|
3830
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3842
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3831
3843
|
switch (errorCode) {
|
|
3832
3844
|
case "AccessDenied":
|
|
3833
3845
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -3843,10 +3855,12 @@ const deserializeAws_restXmlCreateRealtimeLogConfigCommandError = async (output,
|
|
|
3843
3855
|
throw await deserializeAws_restXmlTooManyRealtimeLogConfigsResponse(parsedOutput, context);
|
|
3844
3856
|
default:
|
|
3845
3857
|
const parsedBody = parsedOutput.body;
|
|
3858
|
+
const $metadata = deserializeMetadata(output);
|
|
3859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3846
3860
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3847
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3861
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3848
3862
|
$fault: "client",
|
|
3849
|
-
$metadata
|
|
3863
|
+
$metadata,
|
|
3850
3864
|
});
|
|
3851
3865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3852
3866
|
}
|
|
@@ -3878,8 +3892,7 @@ const deserializeAws_restXmlCreateResponseHeadersPolicyCommandError = async (out
|
|
|
3878
3892
|
body: await parseBody(output.body, context),
|
|
3879
3893
|
};
|
|
3880
3894
|
let response;
|
|
3881
|
-
|
|
3882
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3895
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3883
3896
|
switch (errorCode) {
|
|
3884
3897
|
case "AccessDenied":
|
|
3885
3898
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -3904,10 +3917,12 @@ const deserializeAws_restXmlCreateResponseHeadersPolicyCommandError = async (out
|
|
|
3904
3917
|
throw await deserializeAws_restXmlTooManyResponseHeadersPoliciesResponse(parsedOutput, context);
|
|
3905
3918
|
default:
|
|
3906
3919
|
const parsedBody = parsedOutput.body;
|
|
3920
|
+
const $metadata = deserializeMetadata(output);
|
|
3921
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3907
3922
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3908
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3923
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3909
3924
|
$fault: "client",
|
|
3910
|
-
$metadata
|
|
3925
|
+
$metadata,
|
|
3911
3926
|
});
|
|
3912
3927
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3913
3928
|
}
|
|
@@ -3939,8 +3954,7 @@ const deserializeAws_restXmlCreateStreamingDistributionCommandError = async (out
|
|
|
3939
3954
|
body: await parseBody(output.body, context),
|
|
3940
3955
|
};
|
|
3941
3956
|
let response;
|
|
3942
|
-
|
|
3943
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3957
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3944
3958
|
switch (errorCode) {
|
|
3945
3959
|
case "AccessDenied":
|
|
3946
3960
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -3980,10 +3994,12 @@ const deserializeAws_restXmlCreateStreamingDistributionCommandError = async (out
|
|
|
3980
3994
|
throw await deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context);
|
|
3981
3995
|
default:
|
|
3982
3996
|
const parsedBody = parsedOutput.body;
|
|
3997
|
+
const $metadata = deserializeMetadata(output);
|
|
3998
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3983
3999
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
3984
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4000
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3985
4001
|
$fault: "client",
|
|
3986
|
-
$metadata
|
|
4002
|
+
$metadata,
|
|
3987
4003
|
});
|
|
3988
4004
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3989
4005
|
}
|
|
@@ -4015,8 +4031,7 @@ const deserializeAws_restXmlCreateStreamingDistributionWithTagsCommandError = as
|
|
|
4015
4031
|
body: await parseBody(output.body, context),
|
|
4016
4032
|
};
|
|
4017
4033
|
let response;
|
|
4018
|
-
|
|
4019
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4034
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4020
4035
|
switch (errorCode) {
|
|
4021
4036
|
case "AccessDenied":
|
|
4022
4037
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4059,10 +4074,12 @@ const deserializeAws_restXmlCreateStreamingDistributionWithTagsCommandError = as
|
|
|
4059
4074
|
throw await deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context);
|
|
4060
4075
|
default:
|
|
4061
4076
|
const parsedBody = parsedOutput.body;
|
|
4077
|
+
const $metadata = deserializeMetadata(output);
|
|
4078
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4062
4079
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4063
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4080
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4064
4081
|
$fault: "client",
|
|
4065
|
-
$metadata
|
|
4082
|
+
$metadata,
|
|
4066
4083
|
});
|
|
4067
4084
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4068
4085
|
}
|
|
@@ -4084,8 +4101,7 @@ const deserializeAws_restXmlDeleteCachePolicyCommandError = async (output, conte
|
|
|
4084
4101
|
body: await parseBody(output.body, context),
|
|
4085
4102
|
};
|
|
4086
4103
|
let response;
|
|
4087
|
-
|
|
4088
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4104
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4089
4105
|
switch (errorCode) {
|
|
4090
4106
|
case "AccessDenied":
|
|
4091
4107
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4107,10 +4123,12 @@ const deserializeAws_restXmlDeleteCachePolicyCommandError = async (output, conte
|
|
|
4107
4123
|
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
4108
4124
|
default:
|
|
4109
4125
|
const parsedBody = parsedOutput.body;
|
|
4126
|
+
const $metadata = deserializeMetadata(output);
|
|
4127
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4110
4128
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4111
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4129
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4112
4130
|
$fault: "client",
|
|
4113
|
-
$metadata
|
|
4131
|
+
$metadata,
|
|
4114
4132
|
});
|
|
4115
4133
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4116
4134
|
}
|
|
@@ -4132,8 +4150,7 @@ const deserializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommandError = a
|
|
|
4132
4150
|
body: await parseBody(output.body, context),
|
|
4133
4151
|
};
|
|
4134
4152
|
let response;
|
|
4135
|
-
|
|
4136
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4153
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4137
4154
|
switch (errorCode) {
|
|
4138
4155
|
case "AccessDenied":
|
|
4139
4156
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4152,10 +4169,12 @@ const deserializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommandError = a
|
|
|
4152
4169
|
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
4153
4170
|
default:
|
|
4154
4171
|
const parsedBody = parsedOutput.body;
|
|
4172
|
+
const $metadata = deserializeMetadata(output);
|
|
4173
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4155
4174
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4156
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4175
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4157
4176
|
$fault: "client",
|
|
4158
|
-
$metadata
|
|
4177
|
+
$metadata,
|
|
4159
4178
|
});
|
|
4160
4179
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4161
4180
|
}
|
|
@@ -4177,8 +4196,7 @@ const deserializeAws_restXmlDeleteDistributionCommandError = async (output, cont
|
|
|
4177
4196
|
body: await parseBody(output.body, context),
|
|
4178
4197
|
};
|
|
4179
4198
|
let response;
|
|
4180
|
-
|
|
4181
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4199
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4182
4200
|
switch (errorCode) {
|
|
4183
4201
|
case "AccessDenied":
|
|
4184
4202
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4197,10 +4215,12 @@ const deserializeAws_restXmlDeleteDistributionCommandError = async (output, cont
|
|
|
4197
4215
|
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
4198
4216
|
default:
|
|
4199
4217
|
const parsedBody = parsedOutput.body;
|
|
4218
|
+
const $metadata = deserializeMetadata(output);
|
|
4219
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4200
4220
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4201
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4221
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4202
4222
|
$fault: "client",
|
|
4203
|
-
$metadata
|
|
4223
|
+
$metadata,
|
|
4204
4224
|
});
|
|
4205
4225
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4206
4226
|
}
|
|
@@ -4222,8 +4242,7 @@ const deserializeAws_restXmlDeleteFieldLevelEncryptionConfigCommandError = async
|
|
|
4222
4242
|
body: await parseBody(output.body, context),
|
|
4223
4243
|
};
|
|
4224
4244
|
let response;
|
|
4225
|
-
|
|
4226
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4245
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4227
4246
|
switch (errorCode) {
|
|
4228
4247
|
case "AccessDenied":
|
|
4229
4248
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4242,10 +4261,12 @@ const deserializeAws_restXmlDeleteFieldLevelEncryptionConfigCommandError = async
|
|
|
4242
4261
|
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
4243
4262
|
default:
|
|
4244
4263
|
const parsedBody = parsedOutput.body;
|
|
4264
|
+
const $metadata = deserializeMetadata(output);
|
|
4265
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4245
4266
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4246
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4267
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4247
4268
|
$fault: "client",
|
|
4248
|
-
$metadata
|
|
4269
|
+
$metadata,
|
|
4249
4270
|
});
|
|
4250
4271
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4251
4272
|
}
|
|
@@ -4267,8 +4288,7 @@ const deserializeAws_restXmlDeleteFieldLevelEncryptionProfileCommandError = asyn
|
|
|
4267
4288
|
body: await parseBody(output.body, context),
|
|
4268
4289
|
};
|
|
4269
4290
|
let response;
|
|
4270
|
-
|
|
4271
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4291
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4272
4292
|
switch (errorCode) {
|
|
4273
4293
|
case "AccessDenied":
|
|
4274
4294
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4287,10 +4307,12 @@ const deserializeAws_restXmlDeleteFieldLevelEncryptionProfileCommandError = asyn
|
|
|
4287
4307
|
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
4288
4308
|
default:
|
|
4289
4309
|
const parsedBody = parsedOutput.body;
|
|
4310
|
+
const $metadata = deserializeMetadata(output);
|
|
4311
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4290
4312
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4291
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4313
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4292
4314
|
$fault: "client",
|
|
4293
|
-
$metadata
|
|
4315
|
+
$metadata,
|
|
4294
4316
|
});
|
|
4295
4317
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4296
4318
|
}
|
|
@@ -4312,8 +4334,7 @@ const deserializeAws_restXmlDeleteFunctionCommandError = async (output, context)
|
|
|
4312
4334
|
body: await parseBody(output.body, context),
|
|
4313
4335
|
};
|
|
4314
4336
|
let response;
|
|
4315
|
-
|
|
4316
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4337
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4317
4338
|
switch (errorCode) {
|
|
4318
4339
|
case "FunctionInUse":
|
|
4319
4340
|
case "com.amazonaws.cloudfront#FunctionInUse":
|
|
@@ -4332,10 +4353,12 @@ const deserializeAws_restXmlDeleteFunctionCommandError = async (output, context)
|
|
|
4332
4353
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
4333
4354
|
default:
|
|
4334
4355
|
const parsedBody = parsedOutput.body;
|
|
4356
|
+
const $metadata = deserializeMetadata(output);
|
|
4357
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4335
4358
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4336
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4359
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4337
4360
|
$fault: "client",
|
|
4338
|
-
$metadata
|
|
4361
|
+
$metadata,
|
|
4339
4362
|
});
|
|
4340
4363
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4341
4364
|
}
|
|
@@ -4357,8 +4380,7 @@ const deserializeAws_restXmlDeleteKeyGroupCommandError = async (output, context)
|
|
|
4357
4380
|
body: await parseBody(output.body, context),
|
|
4358
4381
|
};
|
|
4359
4382
|
let response;
|
|
4360
|
-
|
|
4361
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4383
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4362
4384
|
switch (errorCode) {
|
|
4363
4385
|
case "InvalidIfMatchVersion":
|
|
4364
4386
|
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
@@ -4374,10 +4396,12 @@ const deserializeAws_restXmlDeleteKeyGroupCommandError = async (output, context)
|
|
|
4374
4396
|
throw await deserializeAws_restXmlResourceInUseResponse(parsedOutput, context);
|
|
4375
4397
|
default:
|
|
4376
4398
|
const parsedBody = parsedOutput.body;
|
|
4399
|
+
const $metadata = deserializeMetadata(output);
|
|
4400
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4377
4401
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4378
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4402
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4379
4403
|
$fault: "client",
|
|
4380
|
-
$metadata
|
|
4404
|
+
$metadata,
|
|
4381
4405
|
});
|
|
4382
4406
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4383
4407
|
}
|
|
@@ -4399,8 +4423,7 @@ const deserializeAws_restXmlDeleteMonitoringSubscriptionCommandError = async (ou
|
|
|
4399
4423
|
body: await parseBody(output.body, context),
|
|
4400
4424
|
};
|
|
4401
4425
|
let response;
|
|
4402
|
-
|
|
4403
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4426
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4404
4427
|
switch (errorCode) {
|
|
4405
4428
|
case "AccessDenied":
|
|
4406
4429
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4413,10 +4436,12 @@ const deserializeAws_restXmlDeleteMonitoringSubscriptionCommandError = async (ou
|
|
|
4413
4436
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
4414
4437
|
default:
|
|
4415
4438
|
const parsedBody = parsedOutput.body;
|
|
4439
|
+
const $metadata = deserializeMetadata(output);
|
|
4440
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4416
4441
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4417
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4442
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4418
4443
|
$fault: "client",
|
|
4419
|
-
$metadata
|
|
4444
|
+
$metadata,
|
|
4420
4445
|
});
|
|
4421
4446
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4422
4447
|
}
|
|
@@ -4438,8 +4463,7 @@ const deserializeAws_restXmlDeleteOriginRequestPolicyCommandError = async (outpu
|
|
|
4438
4463
|
body: await parseBody(output.body, context),
|
|
4439
4464
|
};
|
|
4440
4465
|
let response;
|
|
4441
|
-
|
|
4442
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4466
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4443
4467
|
switch (errorCode) {
|
|
4444
4468
|
case "AccessDenied":
|
|
4445
4469
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4461,10 +4485,12 @@ const deserializeAws_restXmlDeleteOriginRequestPolicyCommandError = async (outpu
|
|
|
4461
4485
|
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
4462
4486
|
default:
|
|
4463
4487
|
const parsedBody = parsedOutput.body;
|
|
4488
|
+
const $metadata = deserializeMetadata(output);
|
|
4489
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4464
4490
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4465
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4491
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4466
4492
|
$fault: "client",
|
|
4467
|
-
$metadata
|
|
4493
|
+
$metadata,
|
|
4468
4494
|
});
|
|
4469
4495
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4470
4496
|
}
|
|
@@ -4486,8 +4512,7 @@ const deserializeAws_restXmlDeletePublicKeyCommandError = async (output, context
|
|
|
4486
4512
|
body: await parseBody(output.body, context),
|
|
4487
4513
|
};
|
|
4488
4514
|
let response;
|
|
4489
|
-
|
|
4490
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4515
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4491
4516
|
switch (errorCode) {
|
|
4492
4517
|
case "AccessDenied":
|
|
4493
4518
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4506,10 +4531,12 @@ const deserializeAws_restXmlDeletePublicKeyCommandError = async (output, context
|
|
|
4506
4531
|
throw await deserializeAws_restXmlPublicKeyInUseResponse(parsedOutput, context);
|
|
4507
4532
|
default:
|
|
4508
4533
|
const parsedBody = parsedOutput.body;
|
|
4534
|
+
const $metadata = deserializeMetadata(output);
|
|
4535
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4509
4536
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4510
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4537
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4511
4538
|
$fault: "client",
|
|
4512
|
-
$metadata
|
|
4539
|
+
$metadata,
|
|
4513
4540
|
});
|
|
4514
4541
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4515
4542
|
}
|
|
@@ -4531,8 +4558,7 @@ const deserializeAws_restXmlDeleteRealtimeLogConfigCommandError = async (output,
|
|
|
4531
4558
|
body: await parseBody(output.body, context),
|
|
4532
4559
|
};
|
|
4533
4560
|
let response;
|
|
4534
|
-
|
|
4535
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4561
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4536
4562
|
switch (errorCode) {
|
|
4537
4563
|
case "AccessDenied":
|
|
4538
4564
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4548,10 +4574,12 @@ const deserializeAws_restXmlDeleteRealtimeLogConfigCommandError = async (output,
|
|
|
4548
4574
|
throw await deserializeAws_restXmlRealtimeLogConfigInUseResponse(parsedOutput, context);
|
|
4549
4575
|
default:
|
|
4550
4576
|
const parsedBody = parsedOutput.body;
|
|
4577
|
+
const $metadata = deserializeMetadata(output);
|
|
4578
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4551
4579
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4552
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4580
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4553
4581
|
$fault: "client",
|
|
4554
|
-
$metadata
|
|
4582
|
+
$metadata,
|
|
4555
4583
|
});
|
|
4556
4584
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4557
4585
|
}
|
|
@@ -4573,8 +4601,7 @@ const deserializeAws_restXmlDeleteResponseHeadersPolicyCommandError = async (out
|
|
|
4573
4601
|
body: await parseBody(output.body, context),
|
|
4574
4602
|
};
|
|
4575
4603
|
let response;
|
|
4576
|
-
|
|
4577
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4604
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4578
4605
|
switch (errorCode) {
|
|
4579
4606
|
case "AccessDenied":
|
|
4580
4607
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4596,10 +4623,12 @@ const deserializeAws_restXmlDeleteResponseHeadersPolicyCommandError = async (out
|
|
|
4596
4623
|
throw await deserializeAws_restXmlResponseHeadersPolicyInUseResponse(parsedOutput, context);
|
|
4597
4624
|
default:
|
|
4598
4625
|
const parsedBody = parsedOutput.body;
|
|
4626
|
+
const $metadata = deserializeMetadata(output);
|
|
4627
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4599
4628
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4600
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4629
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4601
4630
|
$fault: "client",
|
|
4602
|
-
$metadata
|
|
4631
|
+
$metadata,
|
|
4603
4632
|
});
|
|
4604
4633
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4605
4634
|
}
|
|
@@ -4621,8 +4650,7 @@ const deserializeAws_restXmlDeleteStreamingDistributionCommandError = async (out
|
|
|
4621
4650
|
body: await parseBody(output.body, context),
|
|
4622
4651
|
};
|
|
4623
4652
|
let response;
|
|
4624
|
-
|
|
4625
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4653
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4626
4654
|
switch (errorCode) {
|
|
4627
4655
|
case "AccessDenied":
|
|
4628
4656
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4641,10 +4669,12 @@ const deserializeAws_restXmlDeleteStreamingDistributionCommandError = async (out
|
|
|
4641
4669
|
throw await deserializeAws_restXmlStreamingDistributionNotDisabledResponse(parsedOutput, context);
|
|
4642
4670
|
default:
|
|
4643
4671
|
const parsedBody = parsedOutput.body;
|
|
4672
|
+
const $metadata = deserializeMetadata(output);
|
|
4673
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4644
4674
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4645
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4675
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4646
4676
|
$fault: "client",
|
|
4647
|
-
$metadata
|
|
4677
|
+
$metadata,
|
|
4648
4678
|
});
|
|
4649
4679
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4650
4680
|
}
|
|
@@ -4672,8 +4702,7 @@ const deserializeAws_restXmlDescribeFunctionCommandError = async (output, contex
|
|
|
4672
4702
|
body: await parseBody(output.body, context),
|
|
4673
4703
|
};
|
|
4674
4704
|
let response;
|
|
4675
|
-
|
|
4676
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4705
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4677
4706
|
switch (errorCode) {
|
|
4678
4707
|
case "NoSuchFunctionExists":
|
|
4679
4708
|
case "com.amazonaws.cloudfront#NoSuchFunctionExists":
|
|
@@ -4683,10 +4712,12 @@ const deserializeAws_restXmlDescribeFunctionCommandError = async (output, contex
|
|
|
4683
4712
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
4684
4713
|
default:
|
|
4685
4714
|
const parsedBody = parsedOutput.body;
|
|
4715
|
+
const $metadata = deserializeMetadata(output);
|
|
4716
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4686
4717
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4687
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4718
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4688
4719
|
$fault: "client",
|
|
4689
|
-
$metadata
|
|
4720
|
+
$metadata,
|
|
4690
4721
|
});
|
|
4691
4722
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4692
4723
|
}
|
|
@@ -4714,8 +4745,7 @@ const deserializeAws_restXmlGetCachePolicyCommandError = async (output, context)
|
|
|
4714
4745
|
body: await parseBody(output.body, context),
|
|
4715
4746
|
};
|
|
4716
4747
|
let response;
|
|
4717
|
-
|
|
4718
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4748
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4719
4749
|
switch (errorCode) {
|
|
4720
4750
|
case "AccessDenied":
|
|
4721
4751
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4725,10 +4755,12 @@ const deserializeAws_restXmlGetCachePolicyCommandError = async (output, context)
|
|
|
4725
4755
|
throw await deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context);
|
|
4726
4756
|
default:
|
|
4727
4757
|
const parsedBody = parsedOutput.body;
|
|
4758
|
+
const $metadata = deserializeMetadata(output);
|
|
4759
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4728
4760
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4729
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4761
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4730
4762
|
$fault: "client",
|
|
4731
|
-
$metadata
|
|
4763
|
+
$metadata,
|
|
4732
4764
|
});
|
|
4733
4765
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4734
4766
|
}
|
|
@@ -4756,8 +4788,7 @@ const deserializeAws_restXmlGetCachePolicyConfigCommandError = async (output, co
|
|
|
4756
4788
|
body: await parseBody(output.body, context),
|
|
4757
4789
|
};
|
|
4758
4790
|
let response;
|
|
4759
|
-
|
|
4760
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4791
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4761
4792
|
switch (errorCode) {
|
|
4762
4793
|
case "AccessDenied":
|
|
4763
4794
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4767,10 +4798,12 @@ const deserializeAws_restXmlGetCachePolicyConfigCommandError = async (output, co
|
|
|
4767
4798
|
throw await deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context);
|
|
4768
4799
|
default:
|
|
4769
4800
|
const parsedBody = parsedOutput.body;
|
|
4801
|
+
const $metadata = deserializeMetadata(output);
|
|
4802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4770
4803
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4771
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4804
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4772
4805
|
$fault: "client",
|
|
4773
|
-
$metadata
|
|
4806
|
+
$metadata,
|
|
4774
4807
|
});
|
|
4775
4808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4776
4809
|
}
|
|
@@ -4798,8 +4831,7 @@ const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommandError = asyn
|
|
|
4798
4831
|
body: await parseBody(output.body, context),
|
|
4799
4832
|
};
|
|
4800
4833
|
let response;
|
|
4801
|
-
|
|
4802
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4834
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4803
4835
|
switch (errorCode) {
|
|
4804
4836
|
case "AccessDenied":
|
|
4805
4837
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4809,10 +4841,12 @@ const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommandError = asyn
|
|
|
4809
4841
|
throw await deserializeAws_restXmlNoSuchCloudFrontOriginAccessIdentityResponse(parsedOutput, context);
|
|
4810
4842
|
default:
|
|
4811
4843
|
const parsedBody = parsedOutput.body;
|
|
4844
|
+
const $metadata = deserializeMetadata(output);
|
|
4845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4812
4846
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4813
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4847
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4814
4848
|
$fault: "client",
|
|
4815
|
-
$metadata
|
|
4849
|
+
$metadata,
|
|
4816
4850
|
});
|
|
4817
4851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4818
4852
|
}
|
|
@@ -4840,8 +4874,7 @@ const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommandError
|
|
|
4840
4874
|
body: await parseBody(output.body, context),
|
|
4841
4875
|
};
|
|
4842
4876
|
let response;
|
|
4843
|
-
|
|
4844
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4877
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4845
4878
|
switch (errorCode) {
|
|
4846
4879
|
case "AccessDenied":
|
|
4847
4880
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4851,10 +4884,12 @@ const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommandError
|
|
|
4851
4884
|
throw await deserializeAws_restXmlNoSuchCloudFrontOriginAccessIdentityResponse(parsedOutput, context);
|
|
4852
4885
|
default:
|
|
4853
4886
|
const parsedBody = parsedOutput.body;
|
|
4887
|
+
const $metadata = deserializeMetadata(output);
|
|
4888
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4854
4889
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4855
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4890
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4856
4891
|
$fault: "client",
|
|
4857
|
-
$metadata
|
|
4892
|
+
$metadata,
|
|
4858
4893
|
});
|
|
4859
4894
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4860
4895
|
}
|
|
@@ -4882,8 +4917,7 @@ const deserializeAws_restXmlGetDistributionCommandError = async (output, context
|
|
|
4882
4917
|
body: await parseBody(output.body, context),
|
|
4883
4918
|
};
|
|
4884
4919
|
let response;
|
|
4885
|
-
|
|
4886
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4920
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4887
4921
|
switch (errorCode) {
|
|
4888
4922
|
case "AccessDenied":
|
|
4889
4923
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4893,10 +4927,12 @@ const deserializeAws_restXmlGetDistributionCommandError = async (output, context
|
|
|
4893
4927
|
throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
|
|
4894
4928
|
default:
|
|
4895
4929
|
const parsedBody = parsedOutput.body;
|
|
4930
|
+
const $metadata = deserializeMetadata(output);
|
|
4931
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4896
4932
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4897
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4933
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4898
4934
|
$fault: "client",
|
|
4899
|
-
$metadata
|
|
4935
|
+
$metadata,
|
|
4900
4936
|
});
|
|
4901
4937
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4902
4938
|
}
|
|
@@ -4924,8 +4960,7 @@ const deserializeAws_restXmlGetDistributionConfigCommandError = async (output, c
|
|
|
4924
4960
|
body: await parseBody(output.body, context),
|
|
4925
4961
|
};
|
|
4926
4962
|
let response;
|
|
4927
|
-
|
|
4928
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4963
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4929
4964
|
switch (errorCode) {
|
|
4930
4965
|
case "AccessDenied":
|
|
4931
4966
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4935,10 +4970,12 @@ const deserializeAws_restXmlGetDistributionConfigCommandError = async (output, c
|
|
|
4935
4970
|
throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
|
|
4936
4971
|
default:
|
|
4937
4972
|
const parsedBody = parsedOutput.body;
|
|
4973
|
+
const $metadata = deserializeMetadata(output);
|
|
4974
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4938
4975
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4939
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4976
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4940
4977
|
$fault: "client",
|
|
4941
|
-
$metadata
|
|
4978
|
+
$metadata,
|
|
4942
4979
|
});
|
|
4943
4980
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4944
4981
|
}
|
|
@@ -4966,8 +5003,7 @@ const deserializeAws_restXmlGetFieldLevelEncryptionCommandError = async (output,
|
|
|
4966
5003
|
body: await parseBody(output.body, context),
|
|
4967
5004
|
};
|
|
4968
5005
|
let response;
|
|
4969
|
-
|
|
4970
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5006
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4971
5007
|
switch (errorCode) {
|
|
4972
5008
|
case "AccessDenied":
|
|
4973
5009
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -4977,10 +5013,12 @@ const deserializeAws_restXmlGetFieldLevelEncryptionCommandError = async (output,
|
|
|
4977
5013
|
throw await deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context);
|
|
4978
5014
|
default:
|
|
4979
5015
|
const parsedBody = parsedOutput.body;
|
|
5016
|
+
const $metadata = deserializeMetadata(output);
|
|
5017
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4980
5018
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
4981
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5019
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
4982
5020
|
$fault: "client",
|
|
4983
|
-
$metadata
|
|
5021
|
+
$metadata,
|
|
4984
5022
|
});
|
|
4985
5023
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4986
5024
|
}
|
|
@@ -5008,8 +5046,7 @@ const deserializeAws_restXmlGetFieldLevelEncryptionConfigCommandError = async (o
|
|
|
5008
5046
|
body: await parseBody(output.body, context),
|
|
5009
5047
|
};
|
|
5010
5048
|
let response;
|
|
5011
|
-
|
|
5012
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5049
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5013
5050
|
switch (errorCode) {
|
|
5014
5051
|
case "AccessDenied":
|
|
5015
5052
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5019,10 +5056,12 @@ const deserializeAws_restXmlGetFieldLevelEncryptionConfigCommandError = async (o
|
|
|
5019
5056
|
throw await deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context);
|
|
5020
5057
|
default:
|
|
5021
5058
|
const parsedBody = parsedOutput.body;
|
|
5059
|
+
const $metadata = deserializeMetadata(output);
|
|
5060
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5022
5061
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5023
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5062
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5024
5063
|
$fault: "client",
|
|
5025
|
-
$metadata
|
|
5064
|
+
$metadata,
|
|
5026
5065
|
});
|
|
5027
5066
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5028
5067
|
}
|
|
@@ -5050,8 +5089,7 @@ const deserializeAws_restXmlGetFieldLevelEncryptionProfileCommandError = async (
|
|
|
5050
5089
|
body: await parseBody(output.body, context),
|
|
5051
5090
|
};
|
|
5052
5091
|
let response;
|
|
5053
|
-
|
|
5054
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5092
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5055
5093
|
switch (errorCode) {
|
|
5056
5094
|
case "AccessDenied":
|
|
5057
5095
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5061,10 +5099,12 @@ const deserializeAws_restXmlGetFieldLevelEncryptionProfileCommandError = async (
|
|
|
5061
5099
|
throw await deserializeAws_restXmlNoSuchFieldLevelEncryptionProfileResponse(parsedOutput, context);
|
|
5062
5100
|
default:
|
|
5063
5101
|
const parsedBody = parsedOutput.body;
|
|
5102
|
+
const $metadata = deserializeMetadata(output);
|
|
5103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5064
5104
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5065
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5105
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5066
5106
|
$fault: "client",
|
|
5067
|
-
$metadata
|
|
5107
|
+
$metadata,
|
|
5068
5108
|
});
|
|
5069
5109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5070
5110
|
}
|
|
@@ -5092,8 +5132,7 @@ const deserializeAws_restXmlGetFieldLevelEncryptionProfileConfigCommandError = a
|
|
|
5092
5132
|
body: await parseBody(output.body, context),
|
|
5093
5133
|
};
|
|
5094
5134
|
let response;
|
|
5095
|
-
|
|
5096
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5135
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5097
5136
|
switch (errorCode) {
|
|
5098
5137
|
case "AccessDenied":
|
|
5099
5138
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5103,10 +5142,12 @@ const deserializeAws_restXmlGetFieldLevelEncryptionProfileConfigCommandError = a
|
|
|
5103
5142
|
throw await deserializeAws_restXmlNoSuchFieldLevelEncryptionProfileResponse(parsedOutput, context);
|
|
5104
5143
|
default:
|
|
5105
5144
|
const parsedBody = parsedOutput.body;
|
|
5145
|
+
const $metadata = deserializeMetadata(output);
|
|
5146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5106
5147
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5107
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5148
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5108
5149
|
$fault: "client",
|
|
5109
|
-
$metadata
|
|
5150
|
+
$metadata,
|
|
5110
5151
|
});
|
|
5111
5152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5112
5153
|
}
|
|
@@ -5138,8 +5179,7 @@ const deserializeAws_restXmlGetFunctionCommandError = async (output, context) =>
|
|
|
5138
5179
|
body: await parseBody(output.body, context),
|
|
5139
5180
|
};
|
|
5140
5181
|
let response;
|
|
5141
|
-
|
|
5142
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5182
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5143
5183
|
switch (errorCode) {
|
|
5144
5184
|
case "NoSuchFunctionExists":
|
|
5145
5185
|
case "com.amazonaws.cloudfront#NoSuchFunctionExists":
|
|
@@ -5149,10 +5189,12 @@ const deserializeAws_restXmlGetFunctionCommandError = async (output, context) =>
|
|
|
5149
5189
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
5150
5190
|
default:
|
|
5151
5191
|
const parsedBody = parsedOutput.body;
|
|
5192
|
+
const $metadata = deserializeMetadata(output);
|
|
5193
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5152
5194
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5153
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5195
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5154
5196
|
$fault: "client",
|
|
5155
|
-
$metadata
|
|
5197
|
+
$metadata,
|
|
5156
5198
|
});
|
|
5157
5199
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5158
5200
|
}
|
|
@@ -5176,8 +5218,7 @@ const deserializeAws_restXmlGetInvalidationCommandError = async (output, context
|
|
|
5176
5218
|
body: await parseBody(output.body, context),
|
|
5177
5219
|
};
|
|
5178
5220
|
let response;
|
|
5179
|
-
|
|
5180
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5221
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5181
5222
|
switch (errorCode) {
|
|
5182
5223
|
case "AccessDenied":
|
|
5183
5224
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5190,10 +5231,12 @@ const deserializeAws_restXmlGetInvalidationCommandError = async (output, context
|
|
|
5190
5231
|
throw await deserializeAws_restXmlNoSuchInvalidationResponse(parsedOutput, context);
|
|
5191
5232
|
default:
|
|
5192
5233
|
const parsedBody = parsedOutput.body;
|
|
5234
|
+
const $metadata = deserializeMetadata(output);
|
|
5235
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5193
5236
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5194
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5237
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5195
5238
|
$fault: "client",
|
|
5196
|
-
$metadata
|
|
5239
|
+
$metadata,
|
|
5197
5240
|
});
|
|
5198
5241
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5199
5242
|
}
|
|
@@ -5221,18 +5264,19 @@ const deserializeAws_restXmlGetKeyGroupCommandError = async (output, context) =>
|
|
|
5221
5264
|
body: await parseBody(output.body, context),
|
|
5222
5265
|
};
|
|
5223
5266
|
let response;
|
|
5224
|
-
|
|
5225
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5267
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5226
5268
|
switch (errorCode) {
|
|
5227
5269
|
case "NoSuchResource":
|
|
5228
5270
|
case "com.amazonaws.cloudfront#NoSuchResource":
|
|
5229
5271
|
throw await deserializeAws_restXmlNoSuchResourceResponse(parsedOutput, context);
|
|
5230
5272
|
default:
|
|
5231
5273
|
const parsedBody = parsedOutput.body;
|
|
5274
|
+
const $metadata = deserializeMetadata(output);
|
|
5275
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5232
5276
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5233
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5277
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5234
5278
|
$fault: "client",
|
|
5235
|
-
$metadata
|
|
5279
|
+
$metadata,
|
|
5236
5280
|
});
|
|
5237
5281
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5238
5282
|
}
|
|
@@ -5260,18 +5304,19 @@ const deserializeAws_restXmlGetKeyGroupConfigCommandError = async (output, conte
|
|
|
5260
5304
|
body: await parseBody(output.body, context),
|
|
5261
5305
|
};
|
|
5262
5306
|
let response;
|
|
5263
|
-
|
|
5264
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5307
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5265
5308
|
switch (errorCode) {
|
|
5266
5309
|
case "NoSuchResource":
|
|
5267
5310
|
case "com.amazonaws.cloudfront#NoSuchResource":
|
|
5268
5311
|
throw await deserializeAws_restXmlNoSuchResourceResponse(parsedOutput, context);
|
|
5269
5312
|
default:
|
|
5270
5313
|
const parsedBody = parsedOutput.body;
|
|
5314
|
+
const $metadata = deserializeMetadata(output);
|
|
5315
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5271
5316
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5272
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5317
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5273
5318
|
$fault: "client",
|
|
5274
|
-
$metadata
|
|
5319
|
+
$metadata,
|
|
5275
5320
|
});
|
|
5276
5321
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5277
5322
|
}
|
|
@@ -5295,8 +5340,7 @@ const deserializeAws_restXmlGetMonitoringSubscriptionCommandError = async (outpu
|
|
|
5295
5340
|
body: await parseBody(output.body, context),
|
|
5296
5341
|
};
|
|
5297
5342
|
let response;
|
|
5298
|
-
|
|
5299
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5343
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5300
5344
|
switch (errorCode) {
|
|
5301
5345
|
case "AccessDenied":
|
|
5302
5346
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5309,10 +5353,12 @@ const deserializeAws_restXmlGetMonitoringSubscriptionCommandError = async (outpu
|
|
|
5309
5353
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
5310
5354
|
default:
|
|
5311
5355
|
const parsedBody = parsedOutput.body;
|
|
5356
|
+
const $metadata = deserializeMetadata(output);
|
|
5357
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5312
5358
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5313
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5359
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5314
5360
|
$fault: "client",
|
|
5315
|
-
$metadata
|
|
5361
|
+
$metadata,
|
|
5316
5362
|
});
|
|
5317
5363
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5318
5364
|
}
|
|
@@ -5340,8 +5386,7 @@ const deserializeAws_restXmlGetOriginRequestPolicyCommandError = async (output,
|
|
|
5340
5386
|
body: await parseBody(output.body, context),
|
|
5341
5387
|
};
|
|
5342
5388
|
let response;
|
|
5343
|
-
|
|
5344
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5389
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5345
5390
|
switch (errorCode) {
|
|
5346
5391
|
case "AccessDenied":
|
|
5347
5392
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5351,10 +5396,12 @@ const deserializeAws_restXmlGetOriginRequestPolicyCommandError = async (output,
|
|
|
5351
5396
|
throw await deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context);
|
|
5352
5397
|
default:
|
|
5353
5398
|
const parsedBody = parsedOutput.body;
|
|
5399
|
+
const $metadata = deserializeMetadata(output);
|
|
5400
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5354
5401
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5355
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5402
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5356
5403
|
$fault: "client",
|
|
5357
|
-
$metadata
|
|
5404
|
+
$metadata,
|
|
5358
5405
|
});
|
|
5359
5406
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5360
5407
|
}
|
|
@@ -5382,8 +5429,7 @@ const deserializeAws_restXmlGetOriginRequestPolicyConfigCommandError = async (ou
|
|
|
5382
5429
|
body: await parseBody(output.body, context),
|
|
5383
5430
|
};
|
|
5384
5431
|
let response;
|
|
5385
|
-
|
|
5386
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5432
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5387
5433
|
switch (errorCode) {
|
|
5388
5434
|
case "AccessDenied":
|
|
5389
5435
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5393,10 +5439,12 @@ const deserializeAws_restXmlGetOriginRequestPolicyConfigCommandError = async (ou
|
|
|
5393
5439
|
throw await deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context);
|
|
5394
5440
|
default:
|
|
5395
5441
|
const parsedBody = parsedOutput.body;
|
|
5442
|
+
const $metadata = deserializeMetadata(output);
|
|
5443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5396
5444
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5397
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5445
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5398
5446
|
$fault: "client",
|
|
5399
|
-
$metadata
|
|
5447
|
+
$metadata,
|
|
5400
5448
|
});
|
|
5401
5449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5402
5450
|
}
|
|
@@ -5424,8 +5472,7 @@ const deserializeAws_restXmlGetPublicKeyCommandError = async (output, context) =
|
|
|
5424
5472
|
body: await parseBody(output.body, context),
|
|
5425
5473
|
};
|
|
5426
5474
|
let response;
|
|
5427
|
-
|
|
5428
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5475
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5429
5476
|
switch (errorCode) {
|
|
5430
5477
|
case "AccessDenied":
|
|
5431
5478
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5435,10 +5482,12 @@ const deserializeAws_restXmlGetPublicKeyCommandError = async (output, context) =
|
|
|
5435
5482
|
throw await deserializeAws_restXmlNoSuchPublicKeyResponse(parsedOutput, context);
|
|
5436
5483
|
default:
|
|
5437
5484
|
const parsedBody = parsedOutput.body;
|
|
5485
|
+
const $metadata = deserializeMetadata(output);
|
|
5486
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5438
5487
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5439
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5488
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5440
5489
|
$fault: "client",
|
|
5441
|
-
$metadata
|
|
5490
|
+
$metadata,
|
|
5442
5491
|
});
|
|
5443
5492
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5444
5493
|
}
|
|
@@ -5466,8 +5515,7 @@ const deserializeAws_restXmlGetPublicKeyConfigCommandError = async (output, cont
|
|
|
5466
5515
|
body: await parseBody(output.body, context),
|
|
5467
5516
|
};
|
|
5468
5517
|
let response;
|
|
5469
|
-
|
|
5470
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5518
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5471
5519
|
switch (errorCode) {
|
|
5472
5520
|
case "AccessDenied":
|
|
5473
5521
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5477,10 +5525,12 @@ const deserializeAws_restXmlGetPublicKeyConfigCommandError = async (output, cont
|
|
|
5477
5525
|
throw await deserializeAws_restXmlNoSuchPublicKeyResponse(parsedOutput, context);
|
|
5478
5526
|
default:
|
|
5479
5527
|
const parsedBody = parsedOutput.body;
|
|
5528
|
+
const $metadata = deserializeMetadata(output);
|
|
5529
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5480
5530
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5481
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5531
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5482
5532
|
$fault: "client",
|
|
5483
|
-
$metadata
|
|
5533
|
+
$metadata,
|
|
5484
5534
|
});
|
|
5485
5535
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5486
5536
|
}
|
|
@@ -5506,8 +5556,7 @@ const deserializeAws_restXmlGetRealtimeLogConfigCommandError = async (output, co
|
|
|
5506
5556
|
body: await parseBody(output.body, context),
|
|
5507
5557
|
};
|
|
5508
5558
|
let response;
|
|
5509
|
-
|
|
5510
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5559
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5511
5560
|
switch (errorCode) {
|
|
5512
5561
|
case "AccessDenied":
|
|
5513
5562
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5520,10 +5569,12 @@ const deserializeAws_restXmlGetRealtimeLogConfigCommandError = async (output, co
|
|
|
5520
5569
|
throw await deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context);
|
|
5521
5570
|
default:
|
|
5522
5571
|
const parsedBody = parsedOutput.body;
|
|
5572
|
+
const $metadata = deserializeMetadata(output);
|
|
5573
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5523
5574
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5524
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5575
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5525
5576
|
$fault: "client",
|
|
5526
|
-
$metadata
|
|
5577
|
+
$metadata,
|
|
5527
5578
|
});
|
|
5528
5579
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5529
5580
|
}
|
|
@@ -5551,8 +5602,7 @@ const deserializeAws_restXmlGetResponseHeadersPolicyCommandError = async (output
|
|
|
5551
5602
|
body: await parseBody(output.body, context),
|
|
5552
5603
|
};
|
|
5553
5604
|
let response;
|
|
5554
|
-
|
|
5555
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5605
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5556
5606
|
switch (errorCode) {
|
|
5557
5607
|
case "AccessDenied":
|
|
5558
5608
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5562,10 +5612,12 @@ const deserializeAws_restXmlGetResponseHeadersPolicyCommandError = async (output
|
|
|
5562
5612
|
throw await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context);
|
|
5563
5613
|
default:
|
|
5564
5614
|
const parsedBody = parsedOutput.body;
|
|
5615
|
+
const $metadata = deserializeMetadata(output);
|
|
5616
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5565
5617
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5566
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5618
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5567
5619
|
$fault: "client",
|
|
5568
|
-
$metadata
|
|
5620
|
+
$metadata,
|
|
5569
5621
|
});
|
|
5570
5622
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5571
5623
|
}
|
|
@@ -5593,8 +5645,7 @@ const deserializeAws_restXmlGetResponseHeadersPolicyConfigCommandError = async (
|
|
|
5593
5645
|
body: await parseBody(output.body, context),
|
|
5594
5646
|
};
|
|
5595
5647
|
let response;
|
|
5596
|
-
|
|
5597
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5648
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5598
5649
|
switch (errorCode) {
|
|
5599
5650
|
case "AccessDenied":
|
|
5600
5651
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5604,10 +5655,12 @@ const deserializeAws_restXmlGetResponseHeadersPolicyConfigCommandError = async (
|
|
|
5604
5655
|
throw await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context);
|
|
5605
5656
|
default:
|
|
5606
5657
|
const parsedBody = parsedOutput.body;
|
|
5658
|
+
const $metadata = deserializeMetadata(output);
|
|
5659
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5607
5660
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5608
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5661
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5609
5662
|
$fault: "client",
|
|
5610
|
-
$metadata
|
|
5663
|
+
$metadata,
|
|
5611
5664
|
});
|
|
5612
5665
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5613
5666
|
}
|
|
@@ -5635,8 +5688,7 @@ const deserializeAws_restXmlGetStreamingDistributionCommandError = async (output
|
|
|
5635
5688
|
body: await parseBody(output.body, context),
|
|
5636
5689
|
};
|
|
5637
5690
|
let response;
|
|
5638
|
-
|
|
5639
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5691
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5640
5692
|
switch (errorCode) {
|
|
5641
5693
|
case "AccessDenied":
|
|
5642
5694
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5646,10 +5698,12 @@ const deserializeAws_restXmlGetStreamingDistributionCommandError = async (output
|
|
|
5646
5698
|
throw await deserializeAws_restXmlNoSuchStreamingDistributionResponse(parsedOutput, context);
|
|
5647
5699
|
default:
|
|
5648
5700
|
const parsedBody = parsedOutput.body;
|
|
5701
|
+
const $metadata = deserializeMetadata(output);
|
|
5702
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5649
5703
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5650
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5704
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5651
5705
|
$fault: "client",
|
|
5652
|
-
$metadata
|
|
5706
|
+
$metadata,
|
|
5653
5707
|
});
|
|
5654
5708
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5655
5709
|
}
|
|
@@ -5677,8 +5731,7 @@ const deserializeAws_restXmlGetStreamingDistributionConfigCommandError = async (
|
|
|
5677
5731
|
body: await parseBody(output.body, context),
|
|
5678
5732
|
};
|
|
5679
5733
|
let response;
|
|
5680
|
-
|
|
5681
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5734
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5682
5735
|
switch (errorCode) {
|
|
5683
5736
|
case "AccessDenied":
|
|
5684
5737
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5688,10 +5741,12 @@ const deserializeAws_restXmlGetStreamingDistributionConfigCommandError = async (
|
|
|
5688
5741
|
throw await deserializeAws_restXmlNoSuchStreamingDistributionResponse(parsedOutput, context);
|
|
5689
5742
|
default:
|
|
5690
5743
|
const parsedBody = parsedOutput.body;
|
|
5744
|
+
const $metadata = deserializeMetadata(output);
|
|
5745
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5691
5746
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5692
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5747
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5693
5748
|
$fault: "client",
|
|
5694
|
-
$metadata
|
|
5749
|
+
$metadata,
|
|
5695
5750
|
});
|
|
5696
5751
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5697
5752
|
}
|
|
@@ -5715,8 +5770,7 @@ const deserializeAws_restXmlListCachePoliciesCommandError = async (output, conte
|
|
|
5715
5770
|
body: await parseBody(output.body, context),
|
|
5716
5771
|
};
|
|
5717
5772
|
let response;
|
|
5718
|
-
|
|
5719
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5773
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5720
5774
|
switch (errorCode) {
|
|
5721
5775
|
case "AccessDenied":
|
|
5722
5776
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5729,10 +5783,12 @@ const deserializeAws_restXmlListCachePoliciesCommandError = async (output, conte
|
|
|
5729
5783
|
throw await deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context);
|
|
5730
5784
|
default:
|
|
5731
5785
|
const parsedBody = parsedOutput.body;
|
|
5786
|
+
const $metadata = deserializeMetadata(output);
|
|
5787
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5732
5788
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5733
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5789
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5734
5790
|
$fault: "client",
|
|
5735
|
-
$metadata
|
|
5791
|
+
$metadata,
|
|
5736
5792
|
});
|
|
5737
5793
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5738
5794
|
}
|
|
@@ -5756,18 +5812,19 @@ const deserializeAws_restXmlListCloudFrontOriginAccessIdentitiesCommandError = a
|
|
|
5756
5812
|
body: await parseBody(output.body, context),
|
|
5757
5813
|
};
|
|
5758
5814
|
let response;
|
|
5759
|
-
|
|
5760
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5815
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5761
5816
|
switch (errorCode) {
|
|
5762
5817
|
case "InvalidArgument":
|
|
5763
5818
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
5764
5819
|
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
5765
5820
|
default:
|
|
5766
5821
|
const parsedBody = parsedOutput.body;
|
|
5822
|
+
const $metadata = deserializeMetadata(output);
|
|
5823
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5767
5824
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5768
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5825
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5769
5826
|
$fault: "client",
|
|
5770
|
-
$metadata
|
|
5827
|
+
$metadata,
|
|
5771
5828
|
});
|
|
5772
5829
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5773
5830
|
}
|
|
@@ -5791,8 +5848,7 @@ const deserializeAws_restXmlListConflictingAliasesCommandError = async (output,
|
|
|
5791
5848
|
body: await parseBody(output.body, context),
|
|
5792
5849
|
};
|
|
5793
5850
|
let response;
|
|
5794
|
-
|
|
5795
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5851
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5796
5852
|
switch (errorCode) {
|
|
5797
5853
|
case "InvalidArgument":
|
|
5798
5854
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
@@ -5802,10 +5858,12 @@ const deserializeAws_restXmlListConflictingAliasesCommandError = async (output,
|
|
|
5802
5858
|
throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
|
|
5803
5859
|
default:
|
|
5804
5860
|
const parsedBody = parsedOutput.body;
|
|
5861
|
+
const $metadata = deserializeMetadata(output);
|
|
5862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5805
5863
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5806
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5864
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5807
5865
|
$fault: "client",
|
|
5808
|
-
$metadata
|
|
5866
|
+
$metadata,
|
|
5809
5867
|
});
|
|
5810
5868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5811
5869
|
}
|
|
@@ -5829,18 +5887,19 @@ const deserializeAws_restXmlListDistributionsCommandError = async (output, conte
|
|
|
5829
5887
|
body: await parseBody(output.body, context),
|
|
5830
5888
|
};
|
|
5831
5889
|
let response;
|
|
5832
|
-
|
|
5833
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5890
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5834
5891
|
switch (errorCode) {
|
|
5835
5892
|
case "InvalidArgument":
|
|
5836
5893
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
5837
5894
|
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
5838
5895
|
default:
|
|
5839
5896
|
const parsedBody = parsedOutput.body;
|
|
5897
|
+
const $metadata = deserializeMetadata(output);
|
|
5898
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5840
5899
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5841
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5900
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5842
5901
|
$fault: "client",
|
|
5843
|
-
$metadata
|
|
5902
|
+
$metadata,
|
|
5844
5903
|
});
|
|
5845
5904
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5846
5905
|
}
|
|
@@ -5864,8 +5923,7 @@ const deserializeAws_restXmlListDistributionsByCachePolicyIdCommandError = async
|
|
|
5864
5923
|
body: await parseBody(output.body, context),
|
|
5865
5924
|
};
|
|
5866
5925
|
let response;
|
|
5867
|
-
|
|
5868
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5926
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5869
5927
|
switch (errorCode) {
|
|
5870
5928
|
case "AccessDenied":
|
|
5871
5929
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5878,10 +5936,12 @@ const deserializeAws_restXmlListDistributionsByCachePolicyIdCommandError = async
|
|
|
5878
5936
|
throw await deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context);
|
|
5879
5937
|
default:
|
|
5880
5938
|
const parsedBody = parsedOutput.body;
|
|
5939
|
+
const $metadata = deserializeMetadata(output);
|
|
5940
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5881
5941
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5882
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5942
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5883
5943
|
$fault: "client",
|
|
5884
|
-
$metadata
|
|
5944
|
+
$metadata,
|
|
5885
5945
|
});
|
|
5886
5946
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5887
5947
|
}
|
|
@@ -5905,8 +5965,7 @@ const deserializeAws_restXmlListDistributionsByKeyGroupCommandError = async (out
|
|
|
5905
5965
|
body: await parseBody(output.body, context),
|
|
5906
5966
|
};
|
|
5907
5967
|
let response;
|
|
5908
|
-
|
|
5909
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5968
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5910
5969
|
switch (errorCode) {
|
|
5911
5970
|
case "InvalidArgument":
|
|
5912
5971
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
@@ -5916,10 +5975,12 @@ const deserializeAws_restXmlListDistributionsByKeyGroupCommandError = async (out
|
|
|
5916
5975
|
throw await deserializeAws_restXmlNoSuchResourceResponse(parsedOutput, context);
|
|
5917
5976
|
default:
|
|
5918
5977
|
const parsedBody = parsedOutput.body;
|
|
5978
|
+
const $metadata = deserializeMetadata(output);
|
|
5979
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5919
5980
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5920
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5981
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5921
5982
|
$fault: "client",
|
|
5922
|
-
$metadata
|
|
5983
|
+
$metadata,
|
|
5923
5984
|
});
|
|
5924
5985
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5925
5986
|
}
|
|
@@ -5943,8 +6004,7 @@ const deserializeAws_restXmlListDistributionsByOriginRequestPolicyIdCommandError
|
|
|
5943
6004
|
body: await parseBody(output.body, context),
|
|
5944
6005
|
};
|
|
5945
6006
|
let response;
|
|
5946
|
-
|
|
5947
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6007
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5948
6008
|
switch (errorCode) {
|
|
5949
6009
|
case "AccessDenied":
|
|
5950
6010
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -5957,10 +6017,12 @@ const deserializeAws_restXmlListDistributionsByOriginRequestPolicyIdCommandError
|
|
|
5957
6017
|
throw await deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context);
|
|
5958
6018
|
default:
|
|
5959
6019
|
const parsedBody = parsedOutput.body;
|
|
6020
|
+
const $metadata = deserializeMetadata(output);
|
|
6021
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5960
6022
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5961
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6023
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5962
6024
|
$fault: "client",
|
|
5963
|
-
$metadata
|
|
6025
|
+
$metadata,
|
|
5964
6026
|
});
|
|
5965
6027
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5966
6028
|
}
|
|
@@ -5984,18 +6046,19 @@ const deserializeAws_restXmlListDistributionsByRealtimeLogConfigCommandError = a
|
|
|
5984
6046
|
body: await parseBody(output.body, context),
|
|
5985
6047
|
};
|
|
5986
6048
|
let response;
|
|
5987
|
-
|
|
5988
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6049
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5989
6050
|
switch (errorCode) {
|
|
5990
6051
|
case "InvalidArgument":
|
|
5991
6052
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
5992
6053
|
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
5993
6054
|
default:
|
|
5994
6055
|
const parsedBody = parsedOutput.body;
|
|
6056
|
+
const $metadata = deserializeMetadata(output);
|
|
6057
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5995
6058
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
5996
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6059
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
5997
6060
|
$fault: "client",
|
|
5998
|
-
$metadata
|
|
6061
|
+
$metadata,
|
|
5999
6062
|
});
|
|
6000
6063
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6001
6064
|
}
|
|
@@ -6019,8 +6082,7 @@ const deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommandErr
|
|
|
6019
6082
|
body: await parseBody(output.body, context),
|
|
6020
6083
|
};
|
|
6021
6084
|
let response;
|
|
6022
|
-
|
|
6023
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6085
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6024
6086
|
switch (errorCode) {
|
|
6025
6087
|
case "AccessDenied":
|
|
6026
6088
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -6033,10 +6095,12 @@ const deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommandErr
|
|
|
6033
6095
|
throw await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context);
|
|
6034
6096
|
default:
|
|
6035
6097
|
const parsedBody = parsedOutput.body;
|
|
6098
|
+
const $metadata = deserializeMetadata(output);
|
|
6099
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6036
6100
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6037
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6101
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6038
6102
|
$fault: "client",
|
|
6039
|
-
$metadata
|
|
6103
|
+
$metadata,
|
|
6040
6104
|
});
|
|
6041
6105
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6042
6106
|
}
|
|
@@ -6060,8 +6124,7 @@ const deserializeAws_restXmlListDistributionsByWebACLIdCommandError = async (out
|
|
|
6060
6124
|
body: await parseBody(output.body, context),
|
|
6061
6125
|
};
|
|
6062
6126
|
let response;
|
|
6063
|
-
|
|
6064
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6127
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6065
6128
|
switch (errorCode) {
|
|
6066
6129
|
case "InvalidArgument":
|
|
6067
6130
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
@@ -6071,10 +6134,12 @@ const deserializeAws_restXmlListDistributionsByWebACLIdCommandError = async (out
|
|
|
6071
6134
|
throw await deserializeAws_restXmlInvalidWebACLIdResponse(parsedOutput, context);
|
|
6072
6135
|
default:
|
|
6073
6136
|
const parsedBody = parsedOutput.body;
|
|
6137
|
+
const $metadata = deserializeMetadata(output);
|
|
6138
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6074
6139
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6075
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6140
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6076
6141
|
$fault: "client",
|
|
6077
|
-
$metadata
|
|
6142
|
+
$metadata,
|
|
6078
6143
|
});
|
|
6079
6144
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6080
6145
|
}
|
|
@@ -6098,18 +6163,19 @@ const deserializeAws_restXmlListFieldLevelEncryptionConfigsCommandError = async
|
|
|
6098
6163
|
body: await parseBody(output.body, context),
|
|
6099
6164
|
};
|
|
6100
6165
|
let response;
|
|
6101
|
-
|
|
6102
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6166
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6103
6167
|
switch (errorCode) {
|
|
6104
6168
|
case "InvalidArgument":
|
|
6105
6169
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
6106
6170
|
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
6107
6171
|
default:
|
|
6108
6172
|
const parsedBody = parsedOutput.body;
|
|
6173
|
+
const $metadata = deserializeMetadata(output);
|
|
6174
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6109
6175
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6110
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6176
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6111
6177
|
$fault: "client",
|
|
6112
|
-
$metadata
|
|
6178
|
+
$metadata,
|
|
6113
6179
|
});
|
|
6114
6180
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6115
6181
|
}
|
|
@@ -6133,18 +6199,19 @@ const deserializeAws_restXmlListFieldLevelEncryptionProfilesCommandError = async
|
|
|
6133
6199
|
body: await parseBody(output.body, context),
|
|
6134
6200
|
};
|
|
6135
6201
|
let response;
|
|
6136
|
-
|
|
6137
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6202
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6138
6203
|
switch (errorCode) {
|
|
6139
6204
|
case "InvalidArgument":
|
|
6140
6205
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
6141
6206
|
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
6142
6207
|
default:
|
|
6143
6208
|
const parsedBody = parsedOutput.body;
|
|
6209
|
+
const $metadata = deserializeMetadata(output);
|
|
6210
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6144
6211
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6145
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6212
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6146
6213
|
$fault: "client",
|
|
6147
|
-
$metadata
|
|
6214
|
+
$metadata,
|
|
6148
6215
|
});
|
|
6149
6216
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6150
6217
|
}
|
|
@@ -6168,8 +6235,7 @@ const deserializeAws_restXmlListFunctionsCommandError = async (output, context)
|
|
|
6168
6235
|
body: await parseBody(output.body, context),
|
|
6169
6236
|
};
|
|
6170
6237
|
let response;
|
|
6171
|
-
|
|
6172
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6238
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6173
6239
|
switch (errorCode) {
|
|
6174
6240
|
case "InvalidArgument":
|
|
6175
6241
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
@@ -6179,10 +6245,12 @@ const deserializeAws_restXmlListFunctionsCommandError = async (output, context)
|
|
|
6179
6245
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
6180
6246
|
default:
|
|
6181
6247
|
const parsedBody = parsedOutput.body;
|
|
6248
|
+
const $metadata = deserializeMetadata(output);
|
|
6249
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6182
6250
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6183
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6251
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6184
6252
|
$fault: "client",
|
|
6185
|
-
$metadata
|
|
6253
|
+
$metadata,
|
|
6186
6254
|
});
|
|
6187
6255
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6188
6256
|
}
|
|
@@ -6206,8 +6274,7 @@ const deserializeAws_restXmlListInvalidationsCommandError = async (output, conte
|
|
|
6206
6274
|
body: await parseBody(output.body, context),
|
|
6207
6275
|
};
|
|
6208
6276
|
let response;
|
|
6209
|
-
|
|
6210
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6277
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6211
6278
|
switch (errorCode) {
|
|
6212
6279
|
case "AccessDenied":
|
|
6213
6280
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -6220,10 +6287,12 @@ const deserializeAws_restXmlListInvalidationsCommandError = async (output, conte
|
|
|
6220
6287
|
throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
|
|
6221
6288
|
default:
|
|
6222
6289
|
const parsedBody = parsedOutput.body;
|
|
6290
|
+
const $metadata = deserializeMetadata(output);
|
|
6291
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6223
6292
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6224
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6293
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6225
6294
|
$fault: "client",
|
|
6226
|
-
$metadata
|
|
6295
|
+
$metadata,
|
|
6227
6296
|
});
|
|
6228
6297
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6229
6298
|
}
|
|
@@ -6247,18 +6316,19 @@ const deserializeAws_restXmlListKeyGroupsCommandError = async (output, context)
|
|
|
6247
6316
|
body: await parseBody(output.body, context),
|
|
6248
6317
|
};
|
|
6249
6318
|
let response;
|
|
6250
|
-
|
|
6251
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6319
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6252
6320
|
switch (errorCode) {
|
|
6253
6321
|
case "InvalidArgument":
|
|
6254
6322
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
6255
6323
|
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
6256
6324
|
default:
|
|
6257
6325
|
const parsedBody = parsedOutput.body;
|
|
6326
|
+
const $metadata = deserializeMetadata(output);
|
|
6327
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6258
6328
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6259
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6329
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6260
6330
|
$fault: "client",
|
|
6261
|
-
$metadata
|
|
6331
|
+
$metadata,
|
|
6262
6332
|
});
|
|
6263
6333
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6264
6334
|
}
|
|
@@ -6282,8 +6352,7 @@ const deserializeAws_restXmlListOriginRequestPoliciesCommandError = async (outpu
|
|
|
6282
6352
|
body: await parseBody(output.body, context),
|
|
6283
6353
|
};
|
|
6284
6354
|
let response;
|
|
6285
|
-
|
|
6286
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6355
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6287
6356
|
switch (errorCode) {
|
|
6288
6357
|
case "AccessDenied":
|
|
6289
6358
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -6296,10 +6365,12 @@ const deserializeAws_restXmlListOriginRequestPoliciesCommandError = async (outpu
|
|
|
6296
6365
|
throw await deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context);
|
|
6297
6366
|
default:
|
|
6298
6367
|
const parsedBody = parsedOutput.body;
|
|
6368
|
+
const $metadata = deserializeMetadata(output);
|
|
6369
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6299
6370
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6300
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6371
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6301
6372
|
$fault: "client",
|
|
6302
|
-
$metadata
|
|
6373
|
+
$metadata,
|
|
6303
6374
|
});
|
|
6304
6375
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6305
6376
|
}
|
|
@@ -6323,18 +6394,19 @@ const deserializeAws_restXmlListPublicKeysCommandError = async (output, context)
|
|
|
6323
6394
|
body: await parseBody(output.body, context),
|
|
6324
6395
|
};
|
|
6325
6396
|
let response;
|
|
6326
|
-
|
|
6327
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6397
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6328
6398
|
switch (errorCode) {
|
|
6329
6399
|
case "InvalidArgument":
|
|
6330
6400
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
6331
6401
|
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
6332
6402
|
default:
|
|
6333
6403
|
const parsedBody = parsedOutput.body;
|
|
6404
|
+
const $metadata = deserializeMetadata(output);
|
|
6405
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6334
6406
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6335
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6407
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6336
6408
|
$fault: "client",
|
|
6337
|
-
$metadata
|
|
6409
|
+
$metadata,
|
|
6338
6410
|
});
|
|
6339
6411
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6340
6412
|
}
|
|
@@ -6358,8 +6430,7 @@ const deserializeAws_restXmlListRealtimeLogConfigsCommandError = async (output,
|
|
|
6358
6430
|
body: await parseBody(output.body, context),
|
|
6359
6431
|
};
|
|
6360
6432
|
let response;
|
|
6361
|
-
|
|
6362
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6433
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6363
6434
|
switch (errorCode) {
|
|
6364
6435
|
case "AccessDenied":
|
|
6365
6436
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -6372,10 +6443,12 @@ const deserializeAws_restXmlListRealtimeLogConfigsCommandError = async (output,
|
|
|
6372
6443
|
throw await deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context);
|
|
6373
6444
|
default:
|
|
6374
6445
|
const parsedBody = parsedOutput.body;
|
|
6446
|
+
const $metadata = deserializeMetadata(output);
|
|
6447
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6375
6448
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6376
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6449
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6377
6450
|
$fault: "client",
|
|
6378
|
-
$metadata
|
|
6451
|
+
$metadata,
|
|
6379
6452
|
});
|
|
6380
6453
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6381
6454
|
}
|
|
@@ -6399,8 +6472,7 @@ const deserializeAws_restXmlListResponseHeadersPoliciesCommandError = async (out
|
|
|
6399
6472
|
body: await parseBody(output.body, context),
|
|
6400
6473
|
};
|
|
6401
6474
|
let response;
|
|
6402
|
-
|
|
6403
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6475
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6404
6476
|
switch (errorCode) {
|
|
6405
6477
|
case "AccessDenied":
|
|
6406
6478
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -6413,10 +6485,12 @@ const deserializeAws_restXmlListResponseHeadersPoliciesCommandError = async (out
|
|
|
6413
6485
|
throw await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context);
|
|
6414
6486
|
default:
|
|
6415
6487
|
const parsedBody = parsedOutput.body;
|
|
6488
|
+
const $metadata = deserializeMetadata(output);
|
|
6489
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6416
6490
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6417
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6491
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6418
6492
|
$fault: "client",
|
|
6419
|
-
$metadata
|
|
6493
|
+
$metadata,
|
|
6420
6494
|
});
|
|
6421
6495
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6422
6496
|
}
|
|
@@ -6440,18 +6514,19 @@ const deserializeAws_restXmlListStreamingDistributionsCommandError = async (outp
|
|
|
6440
6514
|
body: await parseBody(output.body, context),
|
|
6441
6515
|
};
|
|
6442
6516
|
let response;
|
|
6443
|
-
|
|
6444
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6517
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6445
6518
|
switch (errorCode) {
|
|
6446
6519
|
case "InvalidArgument":
|
|
6447
6520
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
6448
6521
|
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
6449
6522
|
default:
|
|
6450
6523
|
const parsedBody = parsedOutput.body;
|
|
6524
|
+
const $metadata = deserializeMetadata(output);
|
|
6525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6451
6526
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6452
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6527
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6453
6528
|
$fault: "client",
|
|
6454
|
-
$metadata
|
|
6529
|
+
$metadata,
|
|
6455
6530
|
});
|
|
6456
6531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6457
6532
|
}
|
|
@@ -6475,8 +6550,7 @@ const deserializeAws_restXmlListTagsForResourceCommandError = async (output, con
|
|
|
6475
6550
|
body: await parseBody(output.body, context),
|
|
6476
6551
|
};
|
|
6477
6552
|
let response;
|
|
6478
|
-
|
|
6479
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6553
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6480
6554
|
switch (errorCode) {
|
|
6481
6555
|
case "AccessDenied":
|
|
6482
6556
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -6492,10 +6566,12 @@ const deserializeAws_restXmlListTagsForResourceCommandError = async (output, con
|
|
|
6492
6566
|
throw await deserializeAws_restXmlNoSuchResourceResponse(parsedOutput, context);
|
|
6493
6567
|
default:
|
|
6494
6568
|
const parsedBody = parsedOutput.body;
|
|
6569
|
+
const $metadata = deserializeMetadata(output);
|
|
6570
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6495
6571
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6496
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6572
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6497
6573
|
$fault: "client",
|
|
6498
|
-
$metadata
|
|
6574
|
+
$metadata,
|
|
6499
6575
|
});
|
|
6500
6576
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6501
6577
|
}
|
|
@@ -6519,8 +6595,7 @@ const deserializeAws_restXmlPublishFunctionCommandError = async (output, context
|
|
|
6519
6595
|
body: await parseBody(output.body, context),
|
|
6520
6596
|
};
|
|
6521
6597
|
let response;
|
|
6522
|
-
|
|
6523
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6598
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6524
6599
|
switch (errorCode) {
|
|
6525
6600
|
case "InvalidArgument":
|
|
6526
6601
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
@@ -6539,10 +6614,12 @@ const deserializeAws_restXmlPublishFunctionCommandError = async (output, context
|
|
|
6539
6614
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
6540
6615
|
default:
|
|
6541
6616
|
const parsedBody = parsedOutput.body;
|
|
6617
|
+
const $metadata = deserializeMetadata(output);
|
|
6618
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6542
6619
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6543
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6620
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6544
6621
|
$fault: "client",
|
|
6545
|
-
$metadata
|
|
6622
|
+
$metadata,
|
|
6546
6623
|
});
|
|
6547
6624
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6548
6625
|
}
|
|
@@ -6564,8 +6641,7 @@ const deserializeAws_restXmlTagResourceCommandError = async (output, context) =>
|
|
|
6564
6641
|
body: await parseBody(output.body, context),
|
|
6565
6642
|
};
|
|
6566
6643
|
let response;
|
|
6567
|
-
|
|
6568
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6644
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6569
6645
|
switch (errorCode) {
|
|
6570
6646
|
case "AccessDenied":
|
|
6571
6647
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -6581,10 +6657,12 @@ const deserializeAws_restXmlTagResourceCommandError = async (output, context) =>
|
|
|
6581
6657
|
throw await deserializeAws_restXmlNoSuchResourceResponse(parsedOutput, context);
|
|
6582
6658
|
default:
|
|
6583
6659
|
const parsedBody = parsedOutput.body;
|
|
6660
|
+
const $metadata = deserializeMetadata(output);
|
|
6661
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6584
6662
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6585
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6663
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6586
6664
|
$fault: "client",
|
|
6587
|
-
$metadata
|
|
6665
|
+
$metadata,
|
|
6588
6666
|
});
|
|
6589
6667
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6590
6668
|
}
|
|
@@ -6608,8 +6686,7 @@ const deserializeAws_restXmlTestFunctionCommandError = async (output, context) =
|
|
|
6608
6686
|
body: await parseBody(output.body, context),
|
|
6609
6687
|
};
|
|
6610
6688
|
let response;
|
|
6611
|
-
|
|
6612
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6689
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6613
6690
|
switch (errorCode) {
|
|
6614
6691
|
case "InvalidArgument":
|
|
6615
6692
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
@@ -6628,10 +6705,12 @@ const deserializeAws_restXmlTestFunctionCommandError = async (output, context) =
|
|
|
6628
6705
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
6629
6706
|
default:
|
|
6630
6707
|
const parsedBody = parsedOutput.body;
|
|
6708
|
+
const $metadata = deserializeMetadata(output);
|
|
6709
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6631
6710
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6632
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6711
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6633
6712
|
$fault: "client",
|
|
6634
|
-
$metadata
|
|
6713
|
+
$metadata,
|
|
6635
6714
|
});
|
|
6636
6715
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6637
6716
|
}
|
|
@@ -6653,8 +6732,7 @@ const deserializeAws_restXmlUntagResourceCommandError = async (output, context)
|
|
|
6653
6732
|
body: await parseBody(output.body, context),
|
|
6654
6733
|
};
|
|
6655
6734
|
let response;
|
|
6656
|
-
|
|
6657
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6735
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6658
6736
|
switch (errorCode) {
|
|
6659
6737
|
case "AccessDenied":
|
|
6660
6738
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -6670,10 +6748,12 @@ const deserializeAws_restXmlUntagResourceCommandError = async (output, context)
|
|
|
6670
6748
|
throw await deserializeAws_restXmlNoSuchResourceResponse(parsedOutput, context);
|
|
6671
6749
|
default:
|
|
6672
6750
|
const parsedBody = parsedOutput.body;
|
|
6751
|
+
const $metadata = deserializeMetadata(output);
|
|
6752
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6673
6753
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6674
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6754
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6675
6755
|
$fault: "client",
|
|
6676
|
-
$metadata
|
|
6756
|
+
$metadata,
|
|
6677
6757
|
});
|
|
6678
6758
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6679
6759
|
}
|
|
@@ -6701,8 +6781,7 @@ const deserializeAws_restXmlUpdateCachePolicyCommandError = async (output, conte
|
|
|
6701
6781
|
body: await parseBody(output.body, context),
|
|
6702
6782
|
};
|
|
6703
6783
|
let response;
|
|
6704
|
-
|
|
6705
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6784
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6706
6785
|
switch (errorCode) {
|
|
6707
6786
|
case "AccessDenied":
|
|
6708
6787
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -6739,10 +6818,12 @@ const deserializeAws_restXmlUpdateCachePolicyCommandError = async (output, conte
|
|
|
6739
6818
|
throw await deserializeAws_restXmlTooManyQueryStringsInCachePolicyResponse(parsedOutput, context);
|
|
6740
6819
|
default:
|
|
6741
6820
|
const parsedBody = parsedOutput.body;
|
|
6821
|
+
const $metadata = deserializeMetadata(output);
|
|
6822
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6742
6823
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6743
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6824
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6744
6825
|
$fault: "client",
|
|
6745
|
-
$metadata
|
|
6826
|
+
$metadata,
|
|
6746
6827
|
});
|
|
6747
6828
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6748
6829
|
}
|
|
@@ -6770,8 +6851,7 @@ const deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommandError = a
|
|
|
6770
6851
|
body: await parseBody(output.body, context),
|
|
6771
6852
|
};
|
|
6772
6853
|
let response;
|
|
6773
|
-
|
|
6774
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6854
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6775
6855
|
switch (errorCode) {
|
|
6776
6856
|
case "AccessDenied":
|
|
6777
6857
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -6799,10 +6879,12 @@ const deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommandError = a
|
|
|
6799
6879
|
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
6800
6880
|
default:
|
|
6801
6881
|
const parsedBody = parsedOutput.body;
|
|
6882
|
+
const $metadata = deserializeMetadata(output);
|
|
6883
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6802
6884
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
6803
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6885
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
6804
6886
|
$fault: "client",
|
|
6805
|
-
$metadata
|
|
6887
|
+
$metadata,
|
|
6806
6888
|
});
|
|
6807
6889
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
6808
6890
|
}
|
|
@@ -6830,8 +6912,7 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
|
|
|
6830
6912
|
body: await parseBody(output.body, context),
|
|
6831
6913
|
};
|
|
6832
6914
|
let response;
|
|
6833
|
-
|
|
6834
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6915
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6835
6916
|
switch (errorCode) {
|
|
6836
6917
|
case "AccessDenied":
|
|
6837
6918
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -7012,10 +7093,12 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
|
|
|
7012
7093
|
throw await deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context);
|
|
7013
7094
|
default:
|
|
7014
7095
|
const parsedBody = parsedOutput.body;
|
|
7096
|
+
const $metadata = deserializeMetadata(output);
|
|
7097
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7015
7098
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
7016
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
7099
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
7017
7100
|
$fault: "client",
|
|
7018
|
-
$metadata
|
|
7101
|
+
$metadata,
|
|
7019
7102
|
});
|
|
7020
7103
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
7021
7104
|
}
|
|
@@ -7043,8 +7126,7 @@ const deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommandError = async
|
|
|
7043
7126
|
body: await parseBody(output.body, context),
|
|
7044
7127
|
};
|
|
7045
7128
|
let response;
|
|
7046
|
-
|
|
7047
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7129
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7048
7130
|
switch (errorCode) {
|
|
7049
7131
|
case "AccessDenied":
|
|
7050
7132
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -7081,10 +7163,12 @@ const deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommandError = async
|
|
|
7081
7163
|
throw await deserializeAws_restXmlTooManyFieldLevelEncryptionQueryArgProfilesResponse(parsedOutput, context);
|
|
7082
7164
|
default:
|
|
7083
7165
|
const parsedBody = parsedOutput.body;
|
|
7166
|
+
const $metadata = deserializeMetadata(output);
|
|
7167
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7084
7168
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
7085
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
7169
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
7086
7170
|
$fault: "client",
|
|
7087
|
-
$metadata
|
|
7171
|
+
$metadata,
|
|
7088
7172
|
});
|
|
7089
7173
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
7090
7174
|
}
|
|
@@ -7112,8 +7196,7 @@ const deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommandError = asyn
|
|
|
7112
7196
|
body: await parseBody(output.body, context),
|
|
7113
7197
|
};
|
|
7114
7198
|
let response;
|
|
7115
|
-
|
|
7116
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7199
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7117
7200
|
switch (errorCode) {
|
|
7118
7201
|
case "AccessDenied":
|
|
7119
7202
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -7153,10 +7236,12 @@ const deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommandError = asyn
|
|
|
7153
7236
|
throw await deserializeAws_restXmlTooManyFieldLevelEncryptionFieldPatternsResponse(parsedOutput, context);
|
|
7154
7237
|
default:
|
|
7155
7238
|
const parsedBody = parsedOutput.body;
|
|
7239
|
+
const $metadata = deserializeMetadata(output);
|
|
7240
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7156
7241
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
7157
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
7242
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
7158
7243
|
$fault: "client",
|
|
7159
|
-
$metadata
|
|
7244
|
+
$metadata,
|
|
7160
7245
|
});
|
|
7161
7246
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
7162
7247
|
}
|
|
@@ -7184,8 +7269,7 @@ const deserializeAws_restXmlUpdateFunctionCommandError = async (output, context)
|
|
|
7184
7269
|
body: await parseBody(output.body, context),
|
|
7185
7270
|
};
|
|
7186
7271
|
let response;
|
|
7187
|
-
|
|
7188
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7272
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7189
7273
|
switch (errorCode) {
|
|
7190
7274
|
case "FunctionSizeLimitExceeded":
|
|
7191
7275
|
case "com.amazonaws.cloudfront#FunctionSizeLimitExceeded":
|
|
@@ -7207,10 +7291,12 @@ const deserializeAws_restXmlUpdateFunctionCommandError = async (output, context)
|
|
|
7207
7291
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
7208
7292
|
default:
|
|
7209
7293
|
const parsedBody = parsedOutput.body;
|
|
7294
|
+
const $metadata = deserializeMetadata(output);
|
|
7295
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7210
7296
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
7211
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
7297
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
7212
7298
|
$fault: "client",
|
|
7213
|
-
$metadata
|
|
7299
|
+
$metadata,
|
|
7214
7300
|
});
|
|
7215
7301
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
7216
7302
|
}
|
|
@@ -7238,8 +7324,7 @@ const deserializeAws_restXmlUpdateKeyGroupCommandError = async (output, context)
|
|
|
7238
7324
|
body: await parseBody(output.body, context),
|
|
7239
7325
|
};
|
|
7240
7326
|
let response;
|
|
7241
|
-
|
|
7242
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7327
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7243
7328
|
switch (errorCode) {
|
|
7244
7329
|
case "InvalidArgument":
|
|
7245
7330
|
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
@@ -7261,10 +7346,12 @@ const deserializeAws_restXmlUpdateKeyGroupCommandError = async (output, context)
|
|
|
7261
7346
|
throw await deserializeAws_restXmlTooManyPublicKeysInKeyGroupResponse(parsedOutput, context);
|
|
7262
7347
|
default:
|
|
7263
7348
|
const parsedBody = parsedOutput.body;
|
|
7349
|
+
const $metadata = deserializeMetadata(output);
|
|
7350
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7264
7351
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
7265
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
7352
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
7266
7353
|
$fault: "client",
|
|
7267
|
-
$metadata
|
|
7354
|
+
$metadata,
|
|
7268
7355
|
});
|
|
7269
7356
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
7270
7357
|
}
|
|
@@ -7292,8 +7379,7 @@ const deserializeAws_restXmlUpdateOriginRequestPolicyCommandError = async (outpu
|
|
|
7292
7379
|
body: await parseBody(output.body, context),
|
|
7293
7380
|
};
|
|
7294
7381
|
let response;
|
|
7295
|
-
|
|
7296
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7382
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7297
7383
|
switch (errorCode) {
|
|
7298
7384
|
case "AccessDenied":
|
|
7299
7385
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -7330,10 +7416,12 @@ const deserializeAws_restXmlUpdateOriginRequestPolicyCommandError = async (outpu
|
|
|
7330
7416
|
throw await deserializeAws_restXmlTooManyQueryStringsInOriginRequestPolicyResponse(parsedOutput, context);
|
|
7331
7417
|
default:
|
|
7332
7418
|
const parsedBody = parsedOutput.body;
|
|
7419
|
+
const $metadata = deserializeMetadata(output);
|
|
7420
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7333
7421
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
7334
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
7422
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
7335
7423
|
$fault: "client",
|
|
7336
|
-
$metadata
|
|
7424
|
+
$metadata,
|
|
7337
7425
|
});
|
|
7338
7426
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
7339
7427
|
}
|
|
@@ -7361,8 +7449,7 @@ const deserializeAws_restXmlUpdatePublicKeyCommandError = async (output, context
|
|
|
7361
7449
|
body: await parseBody(output.body, context),
|
|
7362
7450
|
};
|
|
7363
7451
|
let response;
|
|
7364
|
-
|
|
7365
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7452
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7366
7453
|
switch (errorCode) {
|
|
7367
7454
|
case "AccessDenied":
|
|
7368
7455
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -7387,10 +7474,12 @@ const deserializeAws_restXmlUpdatePublicKeyCommandError = async (output, context
|
|
|
7387
7474
|
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
7388
7475
|
default:
|
|
7389
7476
|
const parsedBody = parsedOutput.body;
|
|
7477
|
+
const $metadata = deserializeMetadata(output);
|
|
7478
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7390
7479
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
7391
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
7480
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
7392
7481
|
$fault: "client",
|
|
7393
|
-
$metadata
|
|
7482
|
+
$metadata,
|
|
7394
7483
|
});
|
|
7395
7484
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
7396
7485
|
}
|
|
@@ -7416,8 +7505,7 @@ const deserializeAws_restXmlUpdateRealtimeLogConfigCommandError = async (output,
|
|
|
7416
7505
|
body: await parseBody(output.body, context),
|
|
7417
7506
|
};
|
|
7418
7507
|
let response;
|
|
7419
|
-
|
|
7420
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7508
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7421
7509
|
switch (errorCode) {
|
|
7422
7510
|
case "AccessDenied":
|
|
7423
7511
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -7430,10 +7518,12 @@ const deserializeAws_restXmlUpdateRealtimeLogConfigCommandError = async (output,
|
|
|
7430
7518
|
throw await deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context);
|
|
7431
7519
|
default:
|
|
7432
7520
|
const parsedBody = parsedOutput.body;
|
|
7521
|
+
const $metadata = deserializeMetadata(output);
|
|
7522
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7433
7523
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
7434
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
7524
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
7435
7525
|
$fault: "client",
|
|
7436
|
-
$metadata
|
|
7526
|
+
$metadata,
|
|
7437
7527
|
});
|
|
7438
7528
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
7439
7529
|
}
|
|
@@ -7461,8 +7551,7 @@ const deserializeAws_restXmlUpdateResponseHeadersPolicyCommandError = async (out
|
|
|
7461
7551
|
body: await parseBody(output.body, context),
|
|
7462
7552
|
};
|
|
7463
7553
|
let response;
|
|
7464
|
-
|
|
7465
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7554
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7466
7555
|
switch (errorCode) {
|
|
7467
7556
|
case "AccessDenied":
|
|
7468
7557
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -7496,10 +7585,12 @@ const deserializeAws_restXmlUpdateResponseHeadersPolicyCommandError = async (out
|
|
|
7496
7585
|
throw await deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse(parsedOutput, context);
|
|
7497
7586
|
default:
|
|
7498
7587
|
const parsedBody = parsedOutput.body;
|
|
7588
|
+
const $metadata = deserializeMetadata(output);
|
|
7589
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7499
7590
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
7500
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
7591
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
7501
7592
|
$fault: "client",
|
|
7502
|
-
$metadata
|
|
7593
|
+
$metadata,
|
|
7503
7594
|
});
|
|
7504
7595
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
7505
7596
|
}
|
|
@@ -7527,8 +7618,7 @@ const deserializeAws_restXmlUpdateStreamingDistributionCommandError = async (out
|
|
|
7527
7618
|
body: await parseBody(output.body, context),
|
|
7528
7619
|
};
|
|
7529
7620
|
let response;
|
|
7530
|
-
|
|
7531
|
-
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7621
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7532
7622
|
switch (errorCode) {
|
|
7533
7623
|
case "AccessDenied":
|
|
7534
7624
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
@@ -7571,10 +7661,12 @@ const deserializeAws_restXmlUpdateStreamingDistributionCommandError = async (out
|
|
|
7571
7661
|
throw await deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context);
|
|
7572
7662
|
default:
|
|
7573
7663
|
const parsedBody = parsedOutput.body;
|
|
7664
|
+
const $metadata = deserializeMetadata(output);
|
|
7665
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7574
7666
|
response = new CloudFrontServiceException_1.CloudFrontServiceException({
|
|
7575
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
7667
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
7576
7668
|
$fault: "client",
|
|
7577
|
-
$metadata
|
|
7669
|
+
$metadata,
|
|
7578
7670
|
});
|
|
7579
7671
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
7580
7672
|
}
|
|
@@ -9161,11 +9253,11 @@ const serializeAws_restXmlAccessControlExposeHeadersList = (input, context) => {
|
|
|
9161
9253
|
};
|
|
9162
9254
|
const serializeAws_restXmlAliases = (input, context) => {
|
|
9163
9255
|
const bodyNode = new xml_builder_1.XmlNode("Aliases");
|
|
9164
|
-
if (input.Quantity
|
|
9256
|
+
if (input.Quantity != null) {
|
|
9165
9257
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9166
9258
|
bodyNode.addChildNode(node);
|
|
9167
9259
|
}
|
|
9168
|
-
if (input.Items
|
|
9260
|
+
if (input.Items != null) {
|
|
9169
9261
|
const nodes = serializeAws_restXmlAliasList(input.Items, context);
|
|
9170
9262
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9171
9263
|
nodes.map((node) => {
|
|
@@ -9188,11 +9280,11 @@ const serializeAws_restXmlAliasList = (input, context) => {
|
|
|
9188
9280
|
};
|
|
9189
9281
|
const serializeAws_restXmlAllowedMethods = (input, context) => {
|
|
9190
9282
|
const bodyNode = new xml_builder_1.XmlNode("AllowedMethods");
|
|
9191
|
-
if (input.Quantity
|
|
9283
|
+
if (input.Quantity != null) {
|
|
9192
9284
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9193
9285
|
bodyNode.addChildNode(node);
|
|
9194
9286
|
}
|
|
9195
|
-
if (input.Items
|
|
9287
|
+
if (input.Items != null) {
|
|
9196
9288
|
const nodes = serializeAws_restXmlMethodsList(input.Items, context);
|
|
9197
9289
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9198
9290
|
nodes.map((node) => {
|
|
@@ -9200,7 +9292,7 @@ const serializeAws_restXmlAllowedMethods = (input, context) => {
|
|
|
9200
9292
|
});
|
|
9201
9293
|
bodyNode.addChildNode(containerNode);
|
|
9202
9294
|
}
|
|
9203
|
-
if (input.CachedMethods
|
|
9295
|
+
if (input.CachedMethods != null) {
|
|
9204
9296
|
const node = serializeAws_restXmlCachedMethods(input.CachedMethods, context).withName("CachedMethods");
|
|
9205
9297
|
bodyNode.addChildNode(node);
|
|
9206
9298
|
}
|
|
@@ -9219,91 +9311,91 @@ const serializeAws_restXmlAwsAccountNumberList = (input, context) => {
|
|
|
9219
9311
|
};
|
|
9220
9312
|
const serializeAws_restXmlCacheBehavior = (input, context) => {
|
|
9221
9313
|
const bodyNode = new xml_builder_1.XmlNode("CacheBehavior");
|
|
9222
|
-
if (input.PathPattern
|
|
9314
|
+
if (input.PathPattern != null) {
|
|
9223
9315
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.PathPattern)).withName("PathPattern");
|
|
9224
9316
|
bodyNode.addChildNode(node);
|
|
9225
9317
|
}
|
|
9226
|
-
if (input.TargetOriginId
|
|
9318
|
+
if (input.TargetOriginId != null) {
|
|
9227
9319
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.TargetOriginId)).withName("TargetOriginId");
|
|
9228
9320
|
bodyNode.addChildNode(node);
|
|
9229
9321
|
}
|
|
9230
|
-
if (input.TrustedSigners
|
|
9322
|
+
if (input.TrustedSigners != null) {
|
|
9231
9323
|
const node = serializeAws_restXmlTrustedSigners(input.TrustedSigners, context).withName("TrustedSigners");
|
|
9232
9324
|
bodyNode.addChildNode(node);
|
|
9233
9325
|
}
|
|
9234
|
-
if (input.TrustedKeyGroups
|
|
9326
|
+
if (input.TrustedKeyGroups != null) {
|
|
9235
9327
|
const node = serializeAws_restXmlTrustedKeyGroups(input.TrustedKeyGroups, context).withName("TrustedKeyGroups");
|
|
9236
9328
|
bodyNode.addChildNode(node);
|
|
9237
9329
|
}
|
|
9238
|
-
if (input.ViewerProtocolPolicy
|
|
9330
|
+
if (input.ViewerProtocolPolicy != null) {
|
|
9239
9331
|
const node = new xml_builder_1.XmlNode("ViewerProtocolPolicy")
|
|
9240
9332
|
.addChildNode(new xml_builder_1.XmlText(input.ViewerProtocolPolicy))
|
|
9241
9333
|
.withName("ViewerProtocolPolicy");
|
|
9242
9334
|
bodyNode.addChildNode(node);
|
|
9243
9335
|
}
|
|
9244
|
-
if (input.AllowedMethods
|
|
9336
|
+
if (input.AllowedMethods != null) {
|
|
9245
9337
|
const node = serializeAws_restXmlAllowedMethods(input.AllowedMethods, context).withName("AllowedMethods");
|
|
9246
9338
|
bodyNode.addChildNode(node);
|
|
9247
9339
|
}
|
|
9248
|
-
if (input.SmoothStreaming
|
|
9340
|
+
if (input.SmoothStreaming != null) {
|
|
9249
9341
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
9250
9342
|
.addChildNode(new xml_builder_1.XmlText(String(input.SmoothStreaming)))
|
|
9251
9343
|
.withName("SmoothStreaming");
|
|
9252
9344
|
bodyNode.addChildNode(node);
|
|
9253
9345
|
}
|
|
9254
|
-
if (input.Compress
|
|
9346
|
+
if (input.Compress != null) {
|
|
9255
9347
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Compress))).withName("Compress");
|
|
9256
9348
|
bodyNode.addChildNode(node);
|
|
9257
9349
|
}
|
|
9258
|
-
if (input.LambdaFunctionAssociations
|
|
9350
|
+
if (input.LambdaFunctionAssociations != null) {
|
|
9259
9351
|
const node = serializeAws_restXmlLambdaFunctionAssociations(input.LambdaFunctionAssociations, context).withName("LambdaFunctionAssociations");
|
|
9260
9352
|
bodyNode.addChildNode(node);
|
|
9261
9353
|
}
|
|
9262
|
-
if (input.FunctionAssociations
|
|
9354
|
+
if (input.FunctionAssociations != null) {
|
|
9263
9355
|
const node = serializeAws_restXmlFunctionAssociations(input.FunctionAssociations, context).withName("FunctionAssociations");
|
|
9264
9356
|
bodyNode.addChildNode(node);
|
|
9265
9357
|
}
|
|
9266
|
-
if (input.FieldLevelEncryptionId
|
|
9358
|
+
if (input.FieldLevelEncryptionId != null) {
|
|
9267
9359
|
const node = new xml_builder_1.XmlNode("string")
|
|
9268
9360
|
.addChildNode(new xml_builder_1.XmlText(input.FieldLevelEncryptionId))
|
|
9269
9361
|
.withName("FieldLevelEncryptionId");
|
|
9270
9362
|
bodyNode.addChildNode(node);
|
|
9271
9363
|
}
|
|
9272
|
-
if (input.RealtimeLogConfigArn
|
|
9364
|
+
if (input.RealtimeLogConfigArn != null) {
|
|
9273
9365
|
const node = new xml_builder_1.XmlNode("string")
|
|
9274
9366
|
.addChildNode(new xml_builder_1.XmlText(input.RealtimeLogConfigArn))
|
|
9275
9367
|
.withName("RealtimeLogConfigArn");
|
|
9276
9368
|
bodyNode.addChildNode(node);
|
|
9277
9369
|
}
|
|
9278
|
-
if (input.CachePolicyId
|
|
9370
|
+
if (input.CachePolicyId != null) {
|
|
9279
9371
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CachePolicyId)).withName("CachePolicyId");
|
|
9280
9372
|
bodyNode.addChildNode(node);
|
|
9281
9373
|
}
|
|
9282
|
-
if (input.OriginRequestPolicyId
|
|
9374
|
+
if (input.OriginRequestPolicyId != null) {
|
|
9283
9375
|
const node = new xml_builder_1.XmlNode("string")
|
|
9284
9376
|
.addChildNode(new xml_builder_1.XmlText(input.OriginRequestPolicyId))
|
|
9285
9377
|
.withName("OriginRequestPolicyId");
|
|
9286
9378
|
bodyNode.addChildNode(node);
|
|
9287
9379
|
}
|
|
9288
|
-
if (input.ResponseHeadersPolicyId
|
|
9380
|
+
if (input.ResponseHeadersPolicyId != null) {
|
|
9289
9381
|
const node = new xml_builder_1.XmlNode("string")
|
|
9290
9382
|
.addChildNode(new xml_builder_1.XmlText(input.ResponseHeadersPolicyId))
|
|
9291
9383
|
.withName("ResponseHeadersPolicyId");
|
|
9292
9384
|
bodyNode.addChildNode(node);
|
|
9293
9385
|
}
|
|
9294
|
-
if (input.ForwardedValues
|
|
9386
|
+
if (input.ForwardedValues != null) {
|
|
9295
9387
|
const node = serializeAws_restXmlForwardedValues(input.ForwardedValues, context).withName("ForwardedValues");
|
|
9296
9388
|
bodyNode.addChildNode(node);
|
|
9297
9389
|
}
|
|
9298
|
-
if (input.MinTTL
|
|
9390
|
+
if (input.MinTTL != null) {
|
|
9299
9391
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MinTTL))).withName("MinTTL");
|
|
9300
9392
|
bodyNode.addChildNode(node);
|
|
9301
9393
|
}
|
|
9302
|
-
if (input.DefaultTTL
|
|
9394
|
+
if (input.DefaultTTL != null) {
|
|
9303
9395
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.DefaultTTL))).withName("DefaultTTL");
|
|
9304
9396
|
bodyNode.addChildNode(node);
|
|
9305
9397
|
}
|
|
9306
|
-
if (input.MaxTTL
|
|
9398
|
+
if (input.MaxTTL != null) {
|
|
9307
9399
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MaxTTL))).withName("MaxTTL");
|
|
9308
9400
|
bodyNode.addChildNode(node);
|
|
9309
9401
|
}
|
|
@@ -9322,11 +9414,11 @@ const serializeAws_restXmlCacheBehaviorList = (input, context) => {
|
|
|
9322
9414
|
};
|
|
9323
9415
|
const serializeAws_restXmlCacheBehaviors = (input, context) => {
|
|
9324
9416
|
const bodyNode = new xml_builder_1.XmlNode("CacheBehaviors");
|
|
9325
|
-
if (input.Quantity
|
|
9417
|
+
if (input.Quantity != null) {
|
|
9326
9418
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9327
9419
|
bodyNode.addChildNode(node);
|
|
9328
9420
|
}
|
|
9329
|
-
if (input.Items
|
|
9421
|
+
if (input.Items != null) {
|
|
9330
9422
|
const nodes = serializeAws_restXmlCacheBehaviorList(input.Items, context);
|
|
9331
9423
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9332
9424
|
nodes.map((node) => {
|
|
@@ -9338,11 +9430,11 @@ const serializeAws_restXmlCacheBehaviors = (input, context) => {
|
|
|
9338
9430
|
};
|
|
9339
9431
|
const serializeAws_restXmlCachedMethods = (input, context) => {
|
|
9340
9432
|
const bodyNode = new xml_builder_1.XmlNode("CachedMethods");
|
|
9341
|
-
if (input.Quantity
|
|
9433
|
+
if (input.Quantity != null) {
|
|
9342
9434
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9343
9435
|
bodyNode.addChildNode(node);
|
|
9344
9436
|
}
|
|
9345
|
-
if (input.Items
|
|
9437
|
+
if (input.Items != null) {
|
|
9346
9438
|
const nodes = serializeAws_restXmlMethodsList(input.Items, context);
|
|
9347
9439
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9348
9440
|
nodes.map((node) => {
|
|
@@ -9354,28 +9446,27 @@ const serializeAws_restXmlCachedMethods = (input, context) => {
|
|
|
9354
9446
|
};
|
|
9355
9447
|
const serializeAws_restXmlCachePolicyConfig = (input, context) => {
|
|
9356
9448
|
const bodyNode = new xml_builder_1.XmlNode("CachePolicyConfig");
|
|
9357
|
-
if (input.Comment
|
|
9449
|
+
if (input.Comment != null) {
|
|
9358
9450
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
9359
9451
|
bodyNode.addChildNode(node);
|
|
9360
9452
|
}
|
|
9361
|
-
if (input.Name
|
|
9453
|
+
if (input.Name != null) {
|
|
9362
9454
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
9363
9455
|
bodyNode.addChildNode(node);
|
|
9364
9456
|
}
|
|
9365
|
-
if (input.DefaultTTL
|
|
9457
|
+
if (input.DefaultTTL != null) {
|
|
9366
9458
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.DefaultTTL))).withName("DefaultTTL");
|
|
9367
9459
|
bodyNode.addChildNode(node);
|
|
9368
9460
|
}
|
|
9369
|
-
if (input.MaxTTL
|
|
9461
|
+
if (input.MaxTTL != null) {
|
|
9370
9462
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MaxTTL))).withName("MaxTTL");
|
|
9371
9463
|
bodyNode.addChildNode(node);
|
|
9372
9464
|
}
|
|
9373
|
-
if (input.MinTTL
|
|
9465
|
+
if (input.MinTTL != null) {
|
|
9374
9466
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MinTTL))).withName("MinTTL");
|
|
9375
9467
|
bodyNode.addChildNode(node);
|
|
9376
9468
|
}
|
|
9377
|
-
if (input.ParametersInCacheKeyAndForwardedToOrigin
|
|
9378
|
-
input.ParametersInCacheKeyAndForwardedToOrigin !== null) {
|
|
9469
|
+
if (input.ParametersInCacheKeyAndForwardedToOrigin != null) {
|
|
9379
9470
|
const node = serializeAws_restXmlParametersInCacheKeyAndForwardedToOrigin(input.ParametersInCacheKeyAndForwardedToOrigin, context).withName("ParametersInCacheKeyAndForwardedToOrigin");
|
|
9380
9471
|
bodyNode.addChildNode(node);
|
|
9381
9472
|
}
|
|
@@ -9383,13 +9474,13 @@ const serializeAws_restXmlCachePolicyConfig = (input, context) => {
|
|
|
9383
9474
|
};
|
|
9384
9475
|
const serializeAws_restXmlCachePolicyCookiesConfig = (input, context) => {
|
|
9385
9476
|
const bodyNode = new xml_builder_1.XmlNode("CachePolicyCookiesConfig");
|
|
9386
|
-
if (input.CookieBehavior
|
|
9477
|
+
if (input.CookieBehavior != null) {
|
|
9387
9478
|
const node = new xml_builder_1.XmlNode("CachePolicyCookieBehavior")
|
|
9388
9479
|
.addChildNode(new xml_builder_1.XmlText(input.CookieBehavior))
|
|
9389
9480
|
.withName("CookieBehavior");
|
|
9390
9481
|
bodyNode.addChildNode(node);
|
|
9391
9482
|
}
|
|
9392
|
-
if (input.Cookies
|
|
9483
|
+
if (input.Cookies != null) {
|
|
9393
9484
|
const node = serializeAws_restXmlCookieNames(input.Cookies, context).withName("Cookies");
|
|
9394
9485
|
bodyNode.addChildNode(node);
|
|
9395
9486
|
}
|
|
@@ -9397,13 +9488,13 @@ const serializeAws_restXmlCachePolicyCookiesConfig = (input, context) => {
|
|
|
9397
9488
|
};
|
|
9398
9489
|
const serializeAws_restXmlCachePolicyHeadersConfig = (input, context) => {
|
|
9399
9490
|
const bodyNode = new xml_builder_1.XmlNode("CachePolicyHeadersConfig");
|
|
9400
|
-
if (input.HeaderBehavior
|
|
9491
|
+
if (input.HeaderBehavior != null) {
|
|
9401
9492
|
const node = new xml_builder_1.XmlNode("CachePolicyHeaderBehavior")
|
|
9402
9493
|
.addChildNode(new xml_builder_1.XmlText(input.HeaderBehavior))
|
|
9403
9494
|
.withName("HeaderBehavior");
|
|
9404
9495
|
bodyNode.addChildNode(node);
|
|
9405
9496
|
}
|
|
9406
|
-
if (input.Headers
|
|
9497
|
+
if (input.Headers != null) {
|
|
9407
9498
|
const node = serializeAws_restXmlHeaders(input.Headers, context).withName("Headers");
|
|
9408
9499
|
bodyNode.addChildNode(node);
|
|
9409
9500
|
}
|
|
@@ -9411,13 +9502,13 @@ const serializeAws_restXmlCachePolicyHeadersConfig = (input, context) => {
|
|
|
9411
9502
|
};
|
|
9412
9503
|
const serializeAws_restXmlCachePolicyQueryStringsConfig = (input, context) => {
|
|
9413
9504
|
const bodyNode = new xml_builder_1.XmlNode("CachePolicyQueryStringsConfig");
|
|
9414
|
-
if (input.QueryStringBehavior
|
|
9505
|
+
if (input.QueryStringBehavior != null) {
|
|
9415
9506
|
const node = new xml_builder_1.XmlNode("CachePolicyQueryStringBehavior")
|
|
9416
9507
|
.addChildNode(new xml_builder_1.XmlText(input.QueryStringBehavior))
|
|
9417
9508
|
.withName("QueryStringBehavior");
|
|
9418
9509
|
bodyNode.addChildNode(node);
|
|
9419
9510
|
}
|
|
9420
|
-
if (input.QueryStrings
|
|
9511
|
+
if (input.QueryStrings != null) {
|
|
9421
9512
|
const node = serializeAws_restXmlQueryStringNames(input.QueryStrings, context).withName("QueryStrings");
|
|
9422
9513
|
bodyNode.addChildNode(node);
|
|
9423
9514
|
}
|
|
@@ -9425,11 +9516,11 @@ const serializeAws_restXmlCachePolicyQueryStringsConfig = (input, context) => {
|
|
|
9425
9516
|
};
|
|
9426
9517
|
const serializeAws_restXmlCloudFrontOriginAccessIdentityConfig = (input, context) => {
|
|
9427
9518
|
const bodyNode = new xml_builder_1.XmlNode("CloudFrontOriginAccessIdentityConfig");
|
|
9428
|
-
if (input.CallerReference
|
|
9519
|
+
if (input.CallerReference != null) {
|
|
9429
9520
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
9430
9521
|
bodyNode.addChildNode(node);
|
|
9431
9522
|
}
|
|
9432
|
-
if (input.Comment
|
|
9523
|
+
if (input.Comment != null) {
|
|
9433
9524
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
9434
9525
|
bodyNode.addChildNode(node);
|
|
9435
9526
|
}
|
|
@@ -9437,15 +9528,15 @@ const serializeAws_restXmlCloudFrontOriginAccessIdentityConfig = (input, context
|
|
|
9437
9528
|
};
|
|
9438
9529
|
const serializeAws_restXmlContentTypeProfile = (input, context) => {
|
|
9439
9530
|
const bodyNode = new xml_builder_1.XmlNode("ContentTypeProfile");
|
|
9440
|
-
if (input.Format
|
|
9531
|
+
if (input.Format != null) {
|
|
9441
9532
|
const node = new xml_builder_1.XmlNode("Format").addChildNode(new xml_builder_1.XmlText(input.Format)).withName("Format");
|
|
9442
9533
|
bodyNode.addChildNode(node);
|
|
9443
9534
|
}
|
|
9444
|
-
if (input.ProfileId
|
|
9535
|
+
if (input.ProfileId != null) {
|
|
9445
9536
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ProfileId)).withName("ProfileId");
|
|
9446
9537
|
bodyNode.addChildNode(node);
|
|
9447
9538
|
}
|
|
9448
|
-
if (input.ContentType
|
|
9539
|
+
if (input.ContentType != null) {
|
|
9449
9540
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ContentType)).withName("ContentType");
|
|
9450
9541
|
bodyNode.addChildNode(node);
|
|
9451
9542
|
}
|
|
@@ -9453,13 +9544,13 @@ const serializeAws_restXmlContentTypeProfile = (input, context) => {
|
|
|
9453
9544
|
};
|
|
9454
9545
|
const serializeAws_restXmlContentTypeProfileConfig = (input, context) => {
|
|
9455
9546
|
const bodyNode = new xml_builder_1.XmlNode("ContentTypeProfileConfig");
|
|
9456
|
-
if (input.ForwardWhenContentTypeIsUnknown
|
|
9547
|
+
if (input.ForwardWhenContentTypeIsUnknown != null) {
|
|
9457
9548
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
9458
9549
|
.addChildNode(new xml_builder_1.XmlText(String(input.ForwardWhenContentTypeIsUnknown)))
|
|
9459
9550
|
.withName("ForwardWhenContentTypeIsUnknown");
|
|
9460
9551
|
bodyNode.addChildNode(node);
|
|
9461
9552
|
}
|
|
9462
|
-
if (input.ContentTypeProfiles
|
|
9553
|
+
if (input.ContentTypeProfiles != null) {
|
|
9463
9554
|
const node = serializeAws_restXmlContentTypeProfiles(input.ContentTypeProfiles, context).withName("ContentTypeProfiles");
|
|
9464
9555
|
bodyNode.addChildNode(node);
|
|
9465
9556
|
}
|
|
@@ -9478,11 +9569,11 @@ const serializeAws_restXmlContentTypeProfileList = (input, context) => {
|
|
|
9478
9569
|
};
|
|
9479
9570
|
const serializeAws_restXmlContentTypeProfiles = (input, context) => {
|
|
9480
9571
|
const bodyNode = new xml_builder_1.XmlNode("ContentTypeProfiles");
|
|
9481
|
-
if (input.Quantity
|
|
9572
|
+
if (input.Quantity != null) {
|
|
9482
9573
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9483
9574
|
bodyNode.addChildNode(node);
|
|
9484
9575
|
}
|
|
9485
|
-
if (input.Items
|
|
9576
|
+
if (input.Items != null) {
|
|
9486
9577
|
const nodes = serializeAws_restXmlContentTypeProfileList(input.Items, context);
|
|
9487
9578
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9488
9579
|
nodes.map((node) => {
|
|
@@ -9505,11 +9596,11 @@ const serializeAws_restXmlCookieNameList = (input, context) => {
|
|
|
9505
9596
|
};
|
|
9506
9597
|
const serializeAws_restXmlCookieNames = (input, context) => {
|
|
9507
9598
|
const bodyNode = new xml_builder_1.XmlNode("CookieNames");
|
|
9508
|
-
if (input.Quantity
|
|
9599
|
+
if (input.Quantity != null) {
|
|
9509
9600
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9510
9601
|
bodyNode.addChildNode(node);
|
|
9511
9602
|
}
|
|
9512
|
-
if (input.Items
|
|
9603
|
+
if (input.Items != null) {
|
|
9513
9604
|
const nodes = serializeAws_restXmlCookieNameList(input.Items, context);
|
|
9514
9605
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9515
9606
|
nodes.map((node) => {
|
|
@@ -9521,11 +9612,11 @@ const serializeAws_restXmlCookieNames = (input, context) => {
|
|
|
9521
9612
|
};
|
|
9522
9613
|
const serializeAws_restXmlCookiePreference = (input, context) => {
|
|
9523
9614
|
const bodyNode = new xml_builder_1.XmlNode("CookiePreference");
|
|
9524
|
-
if (input.Forward
|
|
9615
|
+
if (input.Forward != null) {
|
|
9525
9616
|
const node = new xml_builder_1.XmlNode("ItemSelection").addChildNode(new xml_builder_1.XmlText(input.Forward)).withName("Forward");
|
|
9526
9617
|
bodyNode.addChildNode(node);
|
|
9527
9618
|
}
|
|
9528
|
-
if (input.WhitelistedNames
|
|
9619
|
+
if (input.WhitelistedNames != null) {
|
|
9529
9620
|
const node = serializeAws_restXmlCookieNames(input.WhitelistedNames, context).withName("WhitelistedNames");
|
|
9530
9621
|
bodyNode.addChildNode(node);
|
|
9531
9622
|
}
|
|
@@ -9533,21 +9624,21 @@ const serializeAws_restXmlCookiePreference = (input, context) => {
|
|
|
9533
9624
|
};
|
|
9534
9625
|
const serializeAws_restXmlCustomErrorResponse = (input, context) => {
|
|
9535
9626
|
const bodyNode = new xml_builder_1.XmlNode("CustomErrorResponse");
|
|
9536
|
-
if (input.ErrorCode
|
|
9627
|
+
if (input.ErrorCode != null) {
|
|
9537
9628
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.ErrorCode))).withName("ErrorCode");
|
|
9538
9629
|
bodyNode.addChildNode(node);
|
|
9539
9630
|
}
|
|
9540
|
-
if (input.ResponsePagePath
|
|
9631
|
+
if (input.ResponsePagePath != null) {
|
|
9541
9632
|
const node = new xml_builder_1.XmlNode("string")
|
|
9542
9633
|
.addChildNode(new xml_builder_1.XmlText(input.ResponsePagePath))
|
|
9543
9634
|
.withName("ResponsePagePath");
|
|
9544
9635
|
bodyNode.addChildNode(node);
|
|
9545
9636
|
}
|
|
9546
|
-
if (input.ResponseCode
|
|
9637
|
+
if (input.ResponseCode != null) {
|
|
9547
9638
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ResponseCode)).withName("ResponseCode");
|
|
9548
9639
|
bodyNode.addChildNode(node);
|
|
9549
9640
|
}
|
|
9550
|
-
if (input.ErrorCachingMinTTL
|
|
9641
|
+
if (input.ErrorCachingMinTTL != null) {
|
|
9551
9642
|
const node = new xml_builder_1.XmlNode("long")
|
|
9552
9643
|
.addChildNode(new xml_builder_1.XmlText(String(input.ErrorCachingMinTTL)))
|
|
9553
9644
|
.withName("ErrorCachingMinTTL");
|
|
@@ -9568,11 +9659,11 @@ const serializeAws_restXmlCustomErrorResponseList = (input, context) => {
|
|
|
9568
9659
|
};
|
|
9569
9660
|
const serializeAws_restXmlCustomErrorResponses = (input, context) => {
|
|
9570
9661
|
const bodyNode = new xml_builder_1.XmlNode("CustomErrorResponses");
|
|
9571
|
-
if (input.Quantity
|
|
9662
|
+
if (input.Quantity != null) {
|
|
9572
9663
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9573
9664
|
bodyNode.addChildNode(node);
|
|
9574
9665
|
}
|
|
9575
|
-
if (input.Items
|
|
9666
|
+
if (input.Items != null) {
|
|
9576
9667
|
const nodes = serializeAws_restXmlCustomErrorResponseList(input.Items, context);
|
|
9577
9668
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9578
9669
|
nodes.map((node) => {
|
|
@@ -9584,11 +9675,11 @@ const serializeAws_restXmlCustomErrorResponses = (input, context) => {
|
|
|
9584
9675
|
};
|
|
9585
9676
|
const serializeAws_restXmlCustomHeaders = (input, context) => {
|
|
9586
9677
|
const bodyNode = new xml_builder_1.XmlNode("CustomHeaders");
|
|
9587
|
-
if (input.Quantity
|
|
9678
|
+
if (input.Quantity != null) {
|
|
9588
9679
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9589
9680
|
bodyNode.addChildNode(node);
|
|
9590
9681
|
}
|
|
9591
|
-
if (input.Items
|
|
9682
|
+
if (input.Items != null) {
|
|
9592
9683
|
const nodes = serializeAws_restXmlOriginCustomHeadersList(input.Items, context);
|
|
9593
9684
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9594
9685
|
nodes.map((node) => {
|
|
@@ -9600,31 +9691,31 @@ const serializeAws_restXmlCustomHeaders = (input, context) => {
|
|
|
9600
9691
|
};
|
|
9601
9692
|
const serializeAws_restXmlCustomOriginConfig = (input, context) => {
|
|
9602
9693
|
const bodyNode = new xml_builder_1.XmlNode("CustomOriginConfig");
|
|
9603
|
-
if (input.HTTPPort
|
|
9694
|
+
if (input.HTTPPort != null) {
|
|
9604
9695
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.HTTPPort))).withName("HTTPPort");
|
|
9605
9696
|
bodyNode.addChildNode(node);
|
|
9606
9697
|
}
|
|
9607
|
-
if (input.HTTPSPort
|
|
9698
|
+
if (input.HTTPSPort != null) {
|
|
9608
9699
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.HTTPSPort))).withName("HTTPSPort");
|
|
9609
9700
|
bodyNode.addChildNode(node);
|
|
9610
9701
|
}
|
|
9611
|
-
if (input.OriginProtocolPolicy
|
|
9702
|
+
if (input.OriginProtocolPolicy != null) {
|
|
9612
9703
|
const node = new xml_builder_1.XmlNode("OriginProtocolPolicy")
|
|
9613
9704
|
.addChildNode(new xml_builder_1.XmlText(input.OriginProtocolPolicy))
|
|
9614
9705
|
.withName("OriginProtocolPolicy");
|
|
9615
9706
|
bodyNode.addChildNode(node);
|
|
9616
9707
|
}
|
|
9617
|
-
if (input.OriginSslProtocols
|
|
9708
|
+
if (input.OriginSslProtocols != null) {
|
|
9618
9709
|
const node = serializeAws_restXmlOriginSslProtocols(input.OriginSslProtocols, context).withName("OriginSslProtocols");
|
|
9619
9710
|
bodyNode.addChildNode(node);
|
|
9620
9711
|
}
|
|
9621
|
-
if (input.OriginReadTimeout
|
|
9712
|
+
if (input.OriginReadTimeout != null) {
|
|
9622
9713
|
const node = new xml_builder_1.XmlNode("integer")
|
|
9623
9714
|
.addChildNode(new xml_builder_1.XmlText(String(input.OriginReadTimeout)))
|
|
9624
9715
|
.withName("OriginReadTimeout");
|
|
9625
9716
|
bodyNode.addChildNode(node);
|
|
9626
9717
|
}
|
|
9627
|
-
if (input.OriginKeepaliveTimeout
|
|
9718
|
+
if (input.OriginKeepaliveTimeout != null) {
|
|
9628
9719
|
const node = new xml_builder_1.XmlNode("integer")
|
|
9629
9720
|
.addChildNode(new xml_builder_1.XmlText(String(input.OriginKeepaliveTimeout)))
|
|
9630
9721
|
.withName("OriginKeepaliveTimeout");
|
|
@@ -9634,87 +9725,87 @@ const serializeAws_restXmlCustomOriginConfig = (input, context) => {
|
|
|
9634
9725
|
};
|
|
9635
9726
|
const serializeAws_restXmlDefaultCacheBehavior = (input, context) => {
|
|
9636
9727
|
const bodyNode = new xml_builder_1.XmlNode("DefaultCacheBehavior");
|
|
9637
|
-
if (input.TargetOriginId
|
|
9728
|
+
if (input.TargetOriginId != null) {
|
|
9638
9729
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.TargetOriginId)).withName("TargetOriginId");
|
|
9639
9730
|
bodyNode.addChildNode(node);
|
|
9640
9731
|
}
|
|
9641
|
-
if (input.TrustedSigners
|
|
9732
|
+
if (input.TrustedSigners != null) {
|
|
9642
9733
|
const node = serializeAws_restXmlTrustedSigners(input.TrustedSigners, context).withName("TrustedSigners");
|
|
9643
9734
|
bodyNode.addChildNode(node);
|
|
9644
9735
|
}
|
|
9645
|
-
if (input.TrustedKeyGroups
|
|
9736
|
+
if (input.TrustedKeyGroups != null) {
|
|
9646
9737
|
const node = serializeAws_restXmlTrustedKeyGroups(input.TrustedKeyGroups, context).withName("TrustedKeyGroups");
|
|
9647
9738
|
bodyNode.addChildNode(node);
|
|
9648
9739
|
}
|
|
9649
|
-
if (input.ViewerProtocolPolicy
|
|
9740
|
+
if (input.ViewerProtocolPolicy != null) {
|
|
9650
9741
|
const node = new xml_builder_1.XmlNode("ViewerProtocolPolicy")
|
|
9651
9742
|
.addChildNode(new xml_builder_1.XmlText(input.ViewerProtocolPolicy))
|
|
9652
9743
|
.withName("ViewerProtocolPolicy");
|
|
9653
9744
|
bodyNode.addChildNode(node);
|
|
9654
9745
|
}
|
|
9655
|
-
if (input.AllowedMethods
|
|
9746
|
+
if (input.AllowedMethods != null) {
|
|
9656
9747
|
const node = serializeAws_restXmlAllowedMethods(input.AllowedMethods, context).withName("AllowedMethods");
|
|
9657
9748
|
bodyNode.addChildNode(node);
|
|
9658
9749
|
}
|
|
9659
|
-
if (input.SmoothStreaming
|
|
9750
|
+
if (input.SmoothStreaming != null) {
|
|
9660
9751
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
9661
9752
|
.addChildNode(new xml_builder_1.XmlText(String(input.SmoothStreaming)))
|
|
9662
9753
|
.withName("SmoothStreaming");
|
|
9663
9754
|
bodyNode.addChildNode(node);
|
|
9664
9755
|
}
|
|
9665
|
-
if (input.Compress
|
|
9756
|
+
if (input.Compress != null) {
|
|
9666
9757
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Compress))).withName("Compress");
|
|
9667
9758
|
bodyNode.addChildNode(node);
|
|
9668
9759
|
}
|
|
9669
|
-
if (input.LambdaFunctionAssociations
|
|
9760
|
+
if (input.LambdaFunctionAssociations != null) {
|
|
9670
9761
|
const node = serializeAws_restXmlLambdaFunctionAssociations(input.LambdaFunctionAssociations, context).withName("LambdaFunctionAssociations");
|
|
9671
9762
|
bodyNode.addChildNode(node);
|
|
9672
9763
|
}
|
|
9673
|
-
if (input.FunctionAssociations
|
|
9764
|
+
if (input.FunctionAssociations != null) {
|
|
9674
9765
|
const node = serializeAws_restXmlFunctionAssociations(input.FunctionAssociations, context).withName("FunctionAssociations");
|
|
9675
9766
|
bodyNode.addChildNode(node);
|
|
9676
9767
|
}
|
|
9677
|
-
if (input.FieldLevelEncryptionId
|
|
9768
|
+
if (input.FieldLevelEncryptionId != null) {
|
|
9678
9769
|
const node = new xml_builder_1.XmlNode("string")
|
|
9679
9770
|
.addChildNode(new xml_builder_1.XmlText(input.FieldLevelEncryptionId))
|
|
9680
9771
|
.withName("FieldLevelEncryptionId");
|
|
9681
9772
|
bodyNode.addChildNode(node);
|
|
9682
9773
|
}
|
|
9683
|
-
if (input.RealtimeLogConfigArn
|
|
9774
|
+
if (input.RealtimeLogConfigArn != null) {
|
|
9684
9775
|
const node = new xml_builder_1.XmlNode("string")
|
|
9685
9776
|
.addChildNode(new xml_builder_1.XmlText(input.RealtimeLogConfigArn))
|
|
9686
9777
|
.withName("RealtimeLogConfigArn");
|
|
9687
9778
|
bodyNode.addChildNode(node);
|
|
9688
9779
|
}
|
|
9689
|
-
if (input.CachePolicyId
|
|
9780
|
+
if (input.CachePolicyId != null) {
|
|
9690
9781
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CachePolicyId)).withName("CachePolicyId");
|
|
9691
9782
|
bodyNode.addChildNode(node);
|
|
9692
9783
|
}
|
|
9693
|
-
if (input.OriginRequestPolicyId
|
|
9784
|
+
if (input.OriginRequestPolicyId != null) {
|
|
9694
9785
|
const node = new xml_builder_1.XmlNode("string")
|
|
9695
9786
|
.addChildNode(new xml_builder_1.XmlText(input.OriginRequestPolicyId))
|
|
9696
9787
|
.withName("OriginRequestPolicyId");
|
|
9697
9788
|
bodyNode.addChildNode(node);
|
|
9698
9789
|
}
|
|
9699
|
-
if (input.ResponseHeadersPolicyId
|
|
9790
|
+
if (input.ResponseHeadersPolicyId != null) {
|
|
9700
9791
|
const node = new xml_builder_1.XmlNode("string")
|
|
9701
9792
|
.addChildNode(new xml_builder_1.XmlText(input.ResponseHeadersPolicyId))
|
|
9702
9793
|
.withName("ResponseHeadersPolicyId");
|
|
9703
9794
|
bodyNode.addChildNode(node);
|
|
9704
9795
|
}
|
|
9705
|
-
if (input.ForwardedValues
|
|
9796
|
+
if (input.ForwardedValues != null) {
|
|
9706
9797
|
const node = serializeAws_restXmlForwardedValues(input.ForwardedValues, context).withName("ForwardedValues");
|
|
9707
9798
|
bodyNode.addChildNode(node);
|
|
9708
9799
|
}
|
|
9709
|
-
if (input.MinTTL
|
|
9800
|
+
if (input.MinTTL != null) {
|
|
9710
9801
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MinTTL))).withName("MinTTL");
|
|
9711
9802
|
bodyNode.addChildNode(node);
|
|
9712
9803
|
}
|
|
9713
|
-
if (input.DefaultTTL
|
|
9804
|
+
if (input.DefaultTTL != null) {
|
|
9714
9805
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.DefaultTTL))).withName("DefaultTTL");
|
|
9715
9806
|
bodyNode.addChildNode(node);
|
|
9716
9807
|
}
|
|
9717
|
-
if (input.MaxTTL
|
|
9808
|
+
if (input.MaxTTL != null) {
|
|
9718
9809
|
const node = new xml_builder_1.XmlNode("long").addChildNode(new xml_builder_1.XmlText(String(input.MaxTTL))).withName("MaxTTL");
|
|
9719
9810
|
bodyNode.addChildNode(node);
|
|
9720
9811
|
}
|
|
@@ -9722,73 +9813,73 @@ const serializeAws_restXmlDefaultCacheBehavior = (input, context) => {
|
|
|
9722
9813
|
};
|
|
9723
9814
|
const serializeAws_restXmlDistributionConfig = (input, context) => {
|
|
9724
9815
|
const bodyNode = new xml_builder_1.XmlNode("DistributionConfig");
|
|
9725
|
-
if (input.CallerReference
|
|
9816
|
+
if (input.CallerReference != null) {
|
|
9726
9817
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
9727
9818
|
bodyNode.addChildNode(node);
|
|
9728
9819
|
}
|
|
9729
|
-
if (input.Aliases
|
|
9820
|
+
if (input.Aliases != null) {
|
|
9730
9821
|
const node = serializeAws_restXmlAliases(input.Aliases, context).withName("Aliases");
|
|
9731
9822
|
bodyNode.addChildNode(node);
|
|
9732
9823
|
}
|
|
9733
|
-
if (input.DefaultRootObject
|
|
9824
|
+
if (input.DefaultRootObject != null) {
|
|
9734
9825
|
const node = new xml_builder_1.XmlNode("string")
|
|
9735
9826
|
.addChildNode(new xml_builder_1.XmlText(input.DefaultRootObject))
|
|
9736
9827
|
.withName("DefaultRootObject");
|
|
9737
9828
|
bodyNode.addChildNode(node);
|
|
9738
9829
|
}
|
|
9739
|
-
if (input.Origins
|
|
9830
|
+
if (input.Origins != null) {
|
|
9740
9831
|
const node = serializeAws_restXmlOrigins(input.Origins, context).withName("Origins");
|
|
9741
9832
|
bodyNode.addChildNode(node);
|
|
9742
9833
|
}
|
|
9743
|
-
if (input.OriginGroups
|
|
9834
|
+
if (input.OriginGroups != null) {
|
|
9744
9835
|
const node = serializeAws_restXmlOriginGroups(input.OriginGroups, context).withName("OriginGroups");
|
|
9745
9836
|
bodyNode.addChildNode(node);
|
|
9746
9837
|
}
|
|
9747
|
-
if (input.DefaultCacheBehavior
|
|
9838
|
+
if (input.DefaultCacheBehavior != null) {
|
|
9748
9839
|
const node = serializeAws_restXmlDefaultCacheBehavior(input.DefaultCacheBehavior, context).withName("DefaultCacheBehavior");
|
|
9749
9840
|
bodyNode.addChildNode(node);
|
|
9750
9841
|
}
|
|
9751
|
-
if (input.CacheBehaviors
|
|
9842
|
+
if (input.CacheBehaviors != null) {
|
|
9752
9843
|
const node = serializeAws_restXmlCacheBehaviors(input.CacheBehaviors, context).withName("CacheBehaviors");
|
|
9753
9844
|
bodyNode.addChildNode(node);
|
|
9754
9845
|
}
|
|
9755
|
-
if (input.CustomErrorResponses
|
|
9846
|
+
if (input.CustomErrorResponses != null) {
|
|
9756
9847
|
const node = serializeAws_restXmlCustomErrorResponses(input.CustomErrorResponses, context).withName("CustomErrorResponses");
|
|
9757
9848
|
bodyNode.addChildNode(node);
|
|
9758
9849
|
}
|
|
9759
|
-
if (input.Comment
|
|
9850
|
+
if (input.Comment != null) {
|
|
9760
9851
|
const node = new xml_builder_1.XmlNode("CommentType").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
9761
9852
|
bodyNode.addChildNode(node);
|
|
9762
9853
|
}
|
|
9763
|
-
if (input.Logging
|
|
9854
|
+
if (input.Logging != null) {
|
|
9764
9855
|
const node = serializeAws_restXmlLoggingConfig(input.Logging, context).withName("Logging");
|
|
9765
9856
|
bodyNode.addChildNode(node);
|
|
9766
9857
|
}
|
|
9767
|
-
if (input.PriceClass
|
|
9858
|
+
if (input.PriceClass != null) {
|
|
9768
9859
|
const node = new xml_builder_1.XmlNode("PriceClass").addChildNode(new xml_builder_1.XmlText(input.PriceClass)).withName("PriceClass");
|
|
9769
9860
|
bodyNode.addChildNode(node);
|
|
9770
9861
|
}
|
|
9771
|
-
if (input.Enabled
|
|
9862
|
+
if (input.Enabled != null) {
|
|
9772
9863
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
9773
9864
|
bodyNode.addChildNode(node);
|
|
9774
9865
|
}
|
|
9775
|
-
if (input.ViewerCertificate
|
|
9866
|
+
if (input.ViewerCertificate != null) {
|
|
9776
9867
|
const node = serializeAws_restXmlViewerCertificate(input.ViewerCertificate, context).withName("ViewerCertificate");
|
|
9777
9868
|
bodyNode.addChildNode(node);
|
|
9778
9869
|
}
|
|
9779
|
-
if (input.Restrictions
|
|
9870
|
+
if (input.Restrictions != null) {
|
|
9780
9871
|
const node = serializeAws_restXmlRestrictions(input.Restrictions, context).withName("Restrictions");
|
|
9781
9872
|
bodyNode.addChildNode(node);
|
|
9782
9873
|
}
|
|
9783
|
-
if (input.WebACLId
|
|
9874
|
+
if (input.WebACLId != null) {
|
|
9784
9875
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.WebACLId)).withName("WebACLId");
|
|
9785
9876
|
bodyNode.addChildNode(node);
|
|
9786
9877
|
}
|
|
9787
|
-
if (input.HttpVersion
|
|
9878
|
+
if (input.HttpVersion != null) {
|
|
9788
9879
|
const node = new xml_builder_1.XmlNode("HttpVersion").addChildNode(new xml_builder_1.XmlText(input.HttpVersion)).withName("HttpVersion");
|
|
9789
9880
|
bodyNode.addChildNode(node);
|
|
9790
9881
|
}
|
|
9791
|
-
if (input.IsIPV6Enabled
|
|
9882
|
+
if (input.IsIPV6Enabled != null) {
|
|
9792
9883
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
9793
9884
|
.addChildNode(new xml_builder_1.XmlText(String(input.IsIPV6Enabled)))
|
|
9794
9885
|
.withName("IsIPV6Enabled");
|
|
@@ -9798,11 +9889,11 @@ const serializeAws_restXmlDistributionConfig = (input, context) => {
|
|
|
9798
9889
|
};
|
|
9799
9890
|
const serializeAws_restXmlDistributionConfigWithTags = (input, context) => {
|
|
9800
9891
|
const bodyNode = new xml_builder_1.XmlNode("DistributionConfigWithTags");
|
|
9801
|
-
if (input.DistributionConfig
|
|
9892
|
+
if (input.DistributionConfig != null) {
|
|
9802
9893
|
const node = serializeAws_restXmlDistributionConfig(input.DistributionConfig, context).withName("DistributionConfig");
|
|
9803
9894
|
bodyNode.addChildNode(node);
|
|
9804
9895
|
}
|
|
9805
|
-
if (input.Tags
|
|
9896
|
+
if (input.Tags != null) {
|
|
9806
9897
|
const node = serializeAws_restXmlTags(input.Tags, context).withName("Tags");
|
|
9807
9898
|
bodyNode.addChildNode(node);
|
|
9808
9899
|
}
|
|
@@ -9810,11 +9901,11 @@ const serializeAws_restXmlDistributionConfigWithTags = (input, context) => {
|
|
|
9810
9901
|
};
|
|
9811
9902
|
const serializeAws_restXmlEncryptionEntities = (input, context) => {
|
|
9812
9903
|
const bodyNode = new xml_builder_1.XmlNode("EncryptionEntities");
|
|
9813
|
-
if (input.Quantity
|
|
9904
|
+
if (input.Quantity != null) {
|
|
9814
9905
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9815
9906
|
bodyNode.addChildNode(node);
|
|
9816
9907
|
}
|
|
9817
|
-
if (input.Items
|
|
9908
|
+
if (input.Items != null) {
|
|
9818
9909
|
const nodes = serializeAws_restXmlEncryptionEntityList(input.Items, context);
|
|
9819
9910
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9820
9911
|
nodes.map((node) => {
|
|
@@ -9826,15 +9917,15 @@ const serializeAws_restXmlEncryptionEntities = (input, context) => {
|
|
|
9826
9917
|
};
|
|
9827
9918
|
const serializeAws_restXmlEncryptionEntity = (input, context) => {
|
|
9828
9919
|
const bodyNode = new xml_builder_1.XmlNode("EncryptionEntity");
|
|
9829
|
-
if (input.PublicKeyId
|
|
9920
|
+
if (input.PublicKeyId != null) {
|
|
9830
9921
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.PublicKeyId)).withName("PublicKeyId");
|
|
9831
9922
|
bodyNode.addChildNode(node);
|
|
9832
9923
|
}
|
|
9833
|
-
if (input.ProviderId
|
|
9924
|
+
if (input.ProviderId != null) {
|
|
9834
9925
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ProviderId)).withName("ProviderId");
|
|
9835
9926
|
bodyNode.addChildNode(node);
|
|
9836
9927
|
}
|
|
9837
|
-
if (input.FieldPatterns
|
|
9928
|
+
if (input.FieldPatterns != null) {
|
|
9838
9929
|
const node = serializeAws_restXmlFieldPatterns(input.FieldPatterns, context).withName("FieldPatterns");
|
|
9839
9930
|
bodyNode.addChildNode(node);
|
|
9840
9931
|
}
|
|
@@ -9853,11 +9944,11 @@ const serializeAws_restXmlEncryptionEntityList = (input, context) => {
|
|
|
9853
9944
|
};
|
|
9854
9945
|
const serializeAws_restXmlEndPoint = (input, context) => {
|
|
9855
9946
|
const bodyNode = new xml_builder_1.XmlNode("EndPoint");
|
|
9856
|
-
if (input.StreamType
|
|
9947
|
+
if (input.StreamType != null) {
|
|
9857
9948
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.StreamType)).withName("StreamType");
|
|
9858
9949
|
bodyNode.addChildNode(node);
|
|
9859
9950
|
}
|
|
9860
|
-
if (input.KinesisStreamConfig
|
|
9951
|
+
if (input.KinesisStreamConfig != null) {
|
|
9861
9952
|
const node = serializeAws_restXmlKinesisStreamConfig(input.KinesisStreamConfig, context).withName("KinesisStreamConfig");
|
|
9862
9953
|
bodyNode.addChildNode(node);
|
|
9863
9954
|
}
|
|
@@ -9876,19 +9967,19 @@ const serializeAws_restXmlEndPointList = (input, context) => {
|
|
|
9876
9967
|
};
|
|
9877
9968
|
const serializeAws_restXmlFieldLevelEncryptionConfig = (input, context) => {
|
|
9878
9969
|
const bodyNode = new xml_builder_1.XmlNode("FieldLevelEncryptionConfig");
|
|
9879
|
-
if (input.CallerReference
|
|
9970
|
+
if (input.CallerReference != null) {
|
|
9880
9971
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
9881
9972
|
bodyNode.addChildNode(node);
|
|
9882
9973
|
}
|
|
9883
|
-
if (input.Comment
|
|
9974
|
+
if (input.Comment != null) {
|
|
9884
9975
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
9885
9976
|
bodyNode.addChildNode(node);
|
|
9886
9977
|
}
|
|
9887
|
-
if (input.QueryArgProfileConfig
|
|
9978
|
+
if (input.QueryArgProfileConfig != null) {
|
|
9888
9979
|
const node = serializeAws_restXmlQueryArgProfileConfig(input.QueryArgProfileConfig, context).withName("QueryArgProfileConfig");
|
|
9889
9980
|
bodyNode.addChildNode(node);
|
|
9890
9981
|
}
|
|
9891
|
-
if (input.ContentTypeProfileConfig
|
|
9982
|
+
if (input.ContentTypeProfileConfig != null) {
|
|
9892
9983
|
const node = serializeAws_restXmlContentTypeProfileConfig(input.ContentTypeProfileConfig, context).withName("ContentTypeProfileConfig");
|
|
9893
9984
|
bodyNode.addChildNode(node);
|
|
9894
9985
|
}
|
|
@@ -9896,19 +9987,19 @@ const serializeAws_restXmlFieldLevelEncryptionConfig = (input, context) => {
|
|
|
9896
9987
|
};
|
|
9897
9988
|
const serializeAws_restXmlFieldLevelEncryptionProfileConfig = (input, context) => {
|
|
9898
9989
|
const bodyNode = new xml_builder_1.XmlNode("FieldLevelEncryptionProfileConfig");
|
|
9899
|
-
if (input.Name
|
|
9990
|
+
if (input.Name != null) {
|
|
9900
9991
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
9901
9992
|
bodyNode.addChildNode(node);
|
|
9902
9993
|
}
|
|
9903
|
-
if (input.CallerReference
|
|
9994
|
+
if (input.CallerReference != null) {
|
|
9904
9995
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
9905
9996
|
bodyNode.addChildNode(node);
|
|
9906
9997
|
}
|
|
9907
|
-
if (input.Comment
|
|
9998
|
+
if (input.Comment != null) {
|
|
9908
9999
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
9909
10000
|
bodyNode.addChildNode(node);
|
|
9910
10001
|
}
|
|
9911
|
-
if (input.EncryptionEntities
|
|
10002
|
+
if (input.EncryptionEntities != null) {
|
|
9912
10003
|
const node = serializeAws_restXmlEncryptionEntities(input.EncryptionEntities, context).withName("EncryptionEntities");
|
|
9913
10004
|
bodyNode.addChildNode(node);
|
|
9914
10005
|
}
|
|
@@ -9938,11 +10029,11 @@ const serializeAws_restXmlFieldPatternList = (input, context) => {
|
|
|
9938
10029
|
};
|
|
9939
10030
|
const serializeAws_restXmlFieldPatterns = (input, context) => {
|
|
9940
10031
|
const bodyNode = new xml_builder_1.XmlNode("FieldPatterns");
|
|
9941
|
-
if (input.Quantity
|
|
10032
|
+
if (input.Quantity != null) {
|
|
9942
10033
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
9943
10034
|
bodyNode.addChildNode(node);
|
|
9944
10035
|
}
|
|
9945
|
-
if (input.Items
|
|
10036
|
+
if (input.Items != null) {
|
|
9946
10037
|
const nodes = serializeAws_restXmlFieldPatternList(input.Items, context);
|
|
9947
10038
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
9948
10039
|
nodes.map((node) => {
|
|
@@ -9954,21 +10045,21 @@ const serializeAws_restXmlFieldPatterns = (input, context) => {
|
|
|
9954
10045
|
};
|
|
9955
10046
|
const serializeAws_restXmlForwardedValues = (input, context) => {
|
|
9956
10047
|
const bodyNode = new xml_builder_1.XmlNode("ForwardedValues");
|
|
9957
|
-
if (input.QueryString
|
|
10048
|
+
if (input.QueryString != null) {
|
|
9958
10049
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
9959
10050
|
.addChildNode(new xml_builder_1.XmlText(String(input.QueryString)))
|
|
9960
10051
|
.withName("QueryString");
|
|
9961
10052
|
bodyNode.addChildNode(node);
|
|
9962
10053
|
}
|
|
9963
|
-
if (input.Cookies
|
|
10054
|
+
if (input.Cookies != null) {
|
|
9964
10055
|
const node = serializeAws_restXmlCookiePreference(input.Cookies, context).withName("Cookies");
|
|
9965
10056
|
bodyNode.addChildNode(node);
|
|
9966
10057
|
}
|
|
9967
|
-
if (input.Headers
|
|
10058
|
+
if (input.Headers != null) {
|
|
9968
10059
|
const node = serializeAws_restXmlHeaders(input.Headers, context).withName("Headers");
|
|
9969
10060
|
bodyNode.addChildNode(node);
|
|
9970
10061
|
}
|
|
9971
|
-
if (input.QueryStringCacheKeys
|
|
10062
|
+
if (input.QueryStringCacheKeys != null) {
|
|
9972
10063
|
const node = serializeAws_restXmlQueryStringCacheKeys(input.QueryStringCacheKeys, context).withName("QueryStringCacheKeys");
|
|
9973
10064
|
bodyNode.addChildNode(node);
|
|
9974
10065
|
}
|
|
@@ -9976,11 +10067,11 @@ const serializeAws_restXmlForwardedValues = (input, context) => {
|
|
|
9976
10067
|
};
|
|
9977
10068
|
const serializeAws_restXmlFunctionAssociation = (input, context) => {
|
|
9978
10069
|
const bodyNode = new xml_builder_1.XmlNode("FunctionAssociation");
|
|
9979
|
-
if (input.FunctionARN
|
|
10070
|
+
if (input.FunctionARN != null) {
|
|
9980
10071
|
const node = new xml_builder_1.XmlNode("FunctionARN").addChildNode(new xml_builder_1.XmlText(input.FunctionARN)).withName("FunctionARN");
|
|
9981
10072
|
bodyNode.addChildNode(node);
|
|
9982
10073
|
}
|
|
9983
|
-
if (input.EventType
|
|
10074
|
+
if (input.EventType != null) {
|
|
9984
10075
|
const node = new xml_builder_1.XmlNode("EventType").addChildNode(new xml_builder_1.XmlText(input.EventType)).withName("EventType");
|
|
9985
10076
|
bodyNode.addChildNode(node);
|
|
9986
10077
|
}
|
|
@@ -9999,11 +10090,11 @@ const serializeAws_restXmlFunctionAssociationList = (input, context) => {
|
|
|
9999
10090
|
};
|
|
10000
10091
|
const serializeAws_restXmlFunctionAssociations = (input, context) => {
|
|
10001
10092
|
const bodyNode = new xml_builder_1.XmlNode("FunctionAssociations");
|
|
10002
|
-
if (input.Quantity
|
|
10093
|
+
if (input.Quantity != null) {
|
|
10003
10094
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10004
10095
|
bodyNode.addChildNode(node);
|
|
10005
10096
|
}
|
|
10006
|
-
if (input.Items
|
|
10097
|
+
if (input.Items != null) {
|
|
10007
10098
|
const nodes = serializeAws_restXmlFunctionAssociationList(input.Items, context);
|
|
10008
10099
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10009
10100
|
nodes.map((node) => {
|
|
@@ -10015,11 +10106,11 @@ const serializeAws_restXmlFunctionAssociations = (input, context) => {
|
|
|
10015
10106
|
};
|
|
10016
10107
|
const serializeAws_restXmlFunctionConfig = (input, context) => {
|
|
10017
10108
|
const bodyNode = new xml_builder_1.XmlNode("FunctionConfig");
|
|
10018
|
-
if (input.Comment
|
|
10109
|
+
if (input.Comment != null) {
|
|
10019
10110
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10020
10111
|
bodyNode.addChildNode(node);
|
|
10021
10112
|
}
|
|
10022
|
-
if (input.Runtime
|
|
10113
|
+
if (input.Runtime != null) {
|
|
10023
10114
|
const node = new xml_builder_1.XmlNode("FunctionRuntime").addChildNode(new xml_builder_1.XmlText(input.Runtime)).withName("Runtime");
|
|
10024
10115
|
bodyNode.addChildNode(node);
|
|
10025
10116
|
}
|
|
@@ -10027,17 +10118,17 @@ const serializeAws_restXmlFunctionConfig = (input, context) => {
|
|
|
10027
10118
|
};
|
|
10028
10119
|
const serializeAws_restXmlGeoRestriction = (input, context) => {
|
|
10029
10120
|
const bodyNode = new xml_builder_1.XmlNode("GeoRestriction");
|
|
10030
|
-
if (input.RestrictionType
|
|
10121
|
+
if (input.RestrictionType != null) {
|
|
10031
10122
|
const node = new xml_builder_1.XmlNode("GeoRestrictionType")
|
|
10032
10123
|
.addChildNode(new xml_builder_1.XmlText(input.RestrictionType))
|
|
10033
10124
|
.withName("RestrictionType");
|
|
10034
10125
|
bodyNode.addChildNode(node);
|
|
10035
10126
|
}
|
|
10036
|
-
if (input.Quantity
|
|
10127
|
+
if (input.Quantity != null) {
|
|
10037
10128
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10038
10129
|
bodyNode.addChildNode(node);
|
|
10039
10130
|
}
|
|
10040
|
-
if (input.Items
|
|
10131
|
+
if (input.Items != null) {
|
|
10041
10132
|
const nodes = serializeAws_restXmlLocationList(input.Items, context);
|
|
10042
10133
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10043
10134
|
nodes.map((node) => {
|
|
@@ -10060,11 +10151,11 @@ const serializeAws_restXmlHeaderList = (input, context) => {
|
|
|
10060
10151
|
};
|
|
10061
10152
|
const serializeAws_restXmlHeaders = (input, context) => {
|
|
10062
10153
|
const bodyNode = new xml_builder_1.XmlNode("Headers");
|
|
10063
|
-
if (input.Quantity
|
|
10154
|
+
if (input.Quantity != null) {
|
|
10064
10155
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10065
10156
|
bodyNode.addChildNode(node);
|
|
10066
10157
|
}
|
|
10067
|
-
if (input.Items
|
|
10158
|
+
if (input.Items != null) {
|
|
10068
10159
|
const nodes = serializeAws_restXmlHeaderList(input.Items, context);
|
|
10069
10160
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10070
10161
|
nodes.map((node) => {
|
|
@@ -10076,11 +10167,11 @@ const serializeAws_restXmlHeaders = (input, context) => {
|
|
|
10076
10167
|
};
|
|
10077
10168
|
const serializeAws_restXmlInvalidationBatch = (input, context) => {
|
|
10078
10169
|
const bodyNode = new xml_builder_1.XmlNode("InvalidationBatch");
|
|
10079
|
-
if (input.Paths
|
|
10170
|
+
if (input.Paths != null) {
|
|
10080
10171
|
const node = serializeAws_restXmlPaths(input.Paths, context).withName("Paths");
|
|
10081
10172
|
bodyNode.addChildNode(node);
|
|
10082
10173
|
}
|
|
10083
|
-
if (input.CallerReference
|
|
10174
|
+
if (input.CallerReference != null) {
|
|
10084
10175
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
10085
10176
|
bodyNode.addChildNode(node);
|
|
10086
10177
|
}
|
|
@@ -10088,11 +10179,11 @@ const serializeAws_restXmlInvalidationBatch = (input, context) => {
|
|
|
10088
10179
|
};
|
|
10089
10180
|
const serializeAws_restXmlKeyGroupConfig = (input, context) => {
|
|
10090
10181
|
const bodyNode = new xml_builder_1.XmlNode("KeyGroupConfig");
|
|
10091
|
-
if (input.Name
|
|
10182
|
+
if (input.Name != null) {
|
|
10092
10183
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
10093
10184
|
bodyNode.addChildNode(node);
|
|
10094
10185
|
}
|
|
10095
|
-
if (input.Items
|
|
10186
|
+
if (input.Items != null) {
|
|
10096
10187
|
const nodes = serializeAws_restXmlPublicKeyIdList(input.Items, context);
|
|
10097
10188
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10098
10189
|
nodes.map((node) => {
|
|
@@ -10100,7 +10191,7 @@ const serializeAws_restXmlKeyGroupConfig = (input, context) => {
|
|
|
10100
10191
|
});
|
|
10101
10192
|
bodyNode.addChildNode(containerNode);
|
|
10102
10193
|
}
|
|
10103
|
-
if (input.Comment
|
|
10194
|
+
if (input.Comment != null) {
|
|
10104
10195
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10105
10196
|
bodyNode.addChildNode(node);
|
|
10106
10197
|
}
|
|
@@ -10108,11 +10199,11 @@ const serializeAws_restXmlKeyGroupConfig = (input, context) => {
|
|
|
10108
10199
|
};
|
|
10109
10200
|
const serializeAws_restXmlKinesisStreamConfig = (input, context) => {
|
|
10110
10201
|
const bodyNode = new xml_builder_1.XmlNode("KinesisStreamConfig");
|
|
10111
|
-
if (input.RoleARN
|
|
10202
|
+
if (input.RoleARN != null) {
|
|
10112
10203
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.RoleARN)).withName("RoleARN");
|
|
10113
10204
|
bodyNode.addChildNode(node);
|
|
10114
10205
|
}
|
|
10115
|
-
if (input.StreamARN
|
|
10206
|
+
if (input.StreamARN != null) {
|
|
10116
10207
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.StreamARN)).withName("StreamARN");
|
|
10117
10208
|
bodyNode.addChildNode(node);
|
|
10118
10209
|
}
|
|
@@ -10120,17 +10211,17 @@ const serializeAws_restXmlKinesisStreamConfig = (input, context) => {
|
|
|
10120
10211
|
};
|
|
10121
10212
|
const serializeAws_restXmlLambdaFunctionAssociation = (input, context) => {
|
|
10122
10213
|
const bodyNode = new xml_builder_1.XmlNode("LambdaFunctionAssociation");
|
|
10123
|
-
if (input.LambdaFunctionARN
|
|
10214
|
+
if (input.LambdaFunctionARN != null) {
|
|
10124
10215
|
const node = new xml_builder_1.XmlNode("LambdaFunctionARN")
|
|
10125
10216
|
.addChildNode(new xml_builder_1.XmlText(input.LambdaFunctionARN))
|
|
10126
10217
|
.withName("LambdaFunctionARN");
|
|
10127
10218
|
bodyNode.addChildNode(node);
|
|
10128
10219
|
}
|
|
10129
|
-
if (input.EventType
|
|
10220
|
+
if (input.EventType != null) {
|
|
10130
10221
|
const node = new xml_builder_1.XmlNode("EventType").addChildNode(new xml_builder_1.XmlText(input.EventType)).withName("EventType");
|
|
10131
10222
|
bodyNode.addChildNode(node);
|
|
10132
10223
|
}
|
|
10133
|
-
if (input.IncludeBody
|
|
10224
|
+
if (input.IncludeBody != null) {
|
|
10134
10225
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10135
10226
|
.addChildNode(new xml_builder_1.XmlText(String(input.IncludeBody)))
|
|
10136
10227
|
.withName("IncludeBody");
|
|
@@ -10151,11 +10242,11 @@ const serializeAws_restXmlLambdaFunctionAssociationList = (input, context) => {
|
|
|
10151
10242
|
};
|
|
10152
10243
|
const serializeAws_restXmlLambdaFunctionAssociations = (input, context) => {
|
|
10153
10244
|
const bodyNode = new xml_builder_1.XmlNode("LambdaFunctionAssociations");
|
|
10154
|
-
if (input.Quantity
|
|
10245
|
+
if (input.Quantity != null) {
|
|
10155
10246
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10156
10247
|
bodyNode.addChildNode(node);
|
|
10157
10248
|
}
|
|
10158
|
-
if (input.Items
|
|
10249
|
+
if (input.Items != null) {
|
|
10159
10250
|
const nodes = serializeAws_restXmlLambdaFunctionAssociationList(input.Items, context);
|
|
10160
10251
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10161
10252
|
nodes.map((node) => {
|
|
@@ -10178,21 +10269,21 @@ const serializeAws_restXmlLocationList = (input, context) => {
|
|
|
10178
10269
|
};
|
|
10179
10270
|
const serializeAws_restXmlLoggingConfig = (input, context) => {
|
|
10180
10271
|
const bodyNode = new xml_builder_1.XmlNode("LoggingConfig");
|
|
10181
|
-
if (input.Enabled
|
|
10272
|
+
if (input.Enabled != null) {
|
|
10182
10273
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
10183
10274
|
bodyNode.addChildNode(node);
|
|
10184
10275
|
}
|
|
10185
|
-
if (input.IncludeCookies
|
|
10276
|
+
if (input.IncludeCookies != null) {
|
|
10186
10277
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10187
10278
|
.addChildNode(new xml_builder_1.XmlText(String(input.IncludeCookies)))
|
|
10188
10279
|
.withName("IncludeCookies");
|
|
10189
10280
|
bodyNode.addChildNode(node);
|
|
10190
10281
|
}
|
|
10191
|
-
if (input.Bucket
|
|
10282
|
+
if (input.Bucket != null) {
|
|
10192
10283
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
|
|
10193
10284
|
bodyNode.addChildNode(node);
|
|
10194
10285
|
}
|
|
10195
|
-
if (input.Prefix
|
|
10286
|
+
if (input.Prefix != null) {
|
|
10196
10287
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
|
|
10197
10288
|
bodyNode.addChildNode(node);
|
|
10198
10289
|
}
|
|
@@ -10211,7 +10302,7 @@ const serializeAws_restXmlMethodsList = (input, context) => {
|
|
|
10211
10302
|
};
|
|
10212
10303
|
const serializeAws_restXmlMonitoringSubscription = (input, context) => {
|
|
10213
10304
|
const bodyNode = new xml_builder_1.XmlNode("MonitoringSubscription");
|
|
10214
|
-
if (input.RealtimeMetricsSubscriptionConfig
|
|
10305
|
+
if (input.RealtimeMetricsSubscriptionConfig != null) {
|
|
10215
10306
|
const node = serializeAws_restXmlRealtimeMetricsSubscriptionConfig(input.RealtimeMetricsSubscriptionConfig, context).withName("RealtimeMetricsSubscriptionConfig");
|
|
10216
10307
|
bodyNode.addChildNode(node);
|
|
10217
10308
|
}
|
|
@@ -10219,43 +10310,43 @@ const serializeAws_restXmlMonitoringSubscription = (input, context) => {
|
|
|
10219
10310
|
};
|
|
10220
10311
|
const serializeAws_restXmlOrigin = (input, context) => {
|
|
10221
10312
|
const bodyNode = new xml_builder_1.XmlNode("Origin");
|
|
10222
|
-
if (input.Id
|
|
10313
|
+
if (input.Id != null) {
|
|
10223
10314
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
|
|
10224
10315
|
bodyNode.addChildNode(node);
|
|
10225
10316
|
}
|
|
10226
|
-
if (input.DomainName
|
|
10317
|
+
if (input.DomainName != null) {
|
|
10227
10318
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.DomainName)).withName("DomainName");
|
|
10228
10319
|
bodyNode.addChildNode(node);
|
|
10229
10320
|
}
|
|
10230
|
-
if (input.OriginPath
|
|
10321
|
+
if (input.OriginPath != null) {
|
|
10231
10322
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.OriginPath)).withName("OriginPath");
|
|
10232
10323
|
bodyNode.addChildNode(node);
|
|
10233
10324
|
}
|
|
10234
|
-
if (input.CustomHeaders
|
|
10325
|
+
if (input.CustomHeaders != null) {
|
|
10235
10326
|
const node = serializeAws_restXmlCustomHeaders(input.CustomHeaders, context).withName("CustomHeaders");
|
|
10236
10327
|
bodyNode.addChildNode(node);
|
|
10237
10328
|
}
|
|
10238
|
-
if (input.S3OriginConfig
|
|
10329
|
+
if (input.S3OriginConfig != null) {
|
|
10239
10330
|
const node = serializeAws_restXmlS3OriginConfig(input.S3OriginConfig, context).withName("S3OriginConfig");
|
|
10240
10331
|
bodyNode.addChildNode(node);
|
|
10241
10332
|
}
|
|
10242
|
-
if (input.CustomOriginConfig
|
|
10333
|
+
if (input.CustomOriginConfig != null) {
|
|
10243
10334
|
const node = serializeAws_restXmlCustomOriginConfig(input.CustomOriginConfig, context).withName("CustomOriginConfig");
|
|
10244
10335
|
bodyNode.addChildNode(node);
|
|
10245
10336
|
}
|
|
10246
|
-
if (input.ConnectionAttempts
|
|
10337
|
+
if (input.ConnectionAttempts != null) {
|
|
10247
10338
|
const node = new xml_builder_1.XmlNode("integer")
|
|
10248
10339
|
.addChildNode(new xml_builder_1.XmlText(String(input.ConnectionAttempts)))
|
|
10249
10340
|
.withName("ConnectionAttempts");
|
|
10250
10341
|
bodyNode.addChildNode(node);
|
|
10251
10342
|
}
|
|
10252
|
-
if (input.ConnectionTimeout
|
|
10343
|
+
if (input.ConnectionTimeout != null) {
|
|
10253
10344
|
const node = new xml_builder_1.XmlNode("integer")
|
|
10254
10345
|
.addChildNode(new xml_builder_1.XmlText(String(input.ConnectionTimeout)))
|
|
10255
10346
|
.withName("ConnectionTimeout");
|
|
10256
10347
|
bodyNode.addChildNode(node);
|
|
10257
10348
|
}
|
|
10258
|
-
if (input.OriginShield
|
|
10349
|
+
if (input.OriginShield != null) {
|
|
10259
10350
|
const node = serializeAws_restXmlOriginShield(input.OriginShield, context).withName("OriginShield");
|
|
10260
10351
|
bodyNode.addChildNode(node);
|
|
10261
10352
|
}
|
|
@@ -10263,11 +10354,11 @@ const serializeAws_restXmlOrigin = (input, context) => {
|
|
|
10263
10354
|
};
|
|
10264
10355
|
const serializeAws_restXmlOriginCustomHeader = (input, context) => {
|
|
10265
10356
|
const bodyNode = new xml_builder_1.XmlNode("OriginCustomHeader");
|
|
10266
|
-
if (input.HeaderName
|
|
10357
|
+
if (input.HeaderName != null) {
|
|
10267
10358
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.HeaderName)).withName("HeaderName");
|
|
10268
10359
|
bodyNode.addChildNode(node);
|
|
10269
10360
|
}
|
|
10270
|
-
if (input.HeaderValue
|
|
10361
|
+
if (input.HeaderValue != null) {
|
|
10271
10362
|
const node = new xml_builder_1.XmlNode("sensitiveStringType")
|
|
10272
10363
|
.addChildNode(new xml_builder_1.XmlText(input.HeaderValue))
|
|
10273
10364
|
.withName("HeaderValue");
|
|
@@ -10288,15 +10379,15 @@ const serializeAws_restXmlOriginCustomHeadersList = (input, context) => {
|
|
|
10288
10379
|
};
|
|
10289
10380
|
const serializeAws_restXmlOriginGroup = (input, context) => {
|
|
10290
10381
|
const bodyNode = new xml_builder_1.XmlNode("OriginGroup");
|
|
10291
|
-
if (input.Id
|
|
10382
|
+
if (input.Id != null) {
|
|
10292
10383
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
|
|
10293
10384
|
bodyNode.addChildNode(node);
|
|
10294
10385
|
}
|
|
10295
|
-
if (input.FailoverCriteria
|
|
10386
|
+
if (input.FailoverCriteria != null) {
|
|
10296
10387
|
const node = serializeAws_restXmlOriginGroupFailoverCriteria(input.FailoverCriteria, context).withName("FailoverCriteria");
|
|
10297
10388
|
bodyNode.addChildNode(node);
|
|
10298
10389
|
}
|
|
10299
|
-
if (input.Members
|
|
10390
|
+
if (input.Members != null) {
|
|
10300
10391
|
const node = serializeAws_restXmlOriginGroupMembers(input.Members, context).withName("Members");
|
|
10301
10392
|
bodyNode.addChildNode(node);
|
|
10302
10393
|
}
|
|
@@ -10304,7 +10395,7 @@ const serializeAws_restXmlOriginGroup = (input, context) => {
|
|
|
10304
10395
|
};
|
|
10305
10396
|
const serializeAws_restXmlOriginGroupFailoverCriteria = (input, context) => {
|
|
10306
10397
|
const bodyNode = new xml_builder_1.XmlNode("OriginGroupFailoverCriteria");
|
|
10307
|
-
if (input.StatusCodes
|
|
10398
|
+
if (input.StatusCodes != null) {
|
|
10308
10399
|
const node = serializeAws_restXmlStatusCodes(input.StatusCodes, context).withName("StatusCodes");
|
|
10309
10400
|
bodyNode.addChildNode(node);
|
|
10310
10401
|
}
|
|
@@ -10323,7 +10414,7 @@ const serializeAws_restXmlOriginGroupList = (input, context) => {
|
|
|
10323
10414
|
};
|
|
10324
10415
|
const serializeAws_restXmlOriginGroupMember = (input, context) => {
|
|
10325
10416
|
const bodyNode = new xml_builder_1.XmlNode("OriginGroupMember");
|
|
10326
|
-
if (input.OriginId
|
|
10417
|
+
if (input.OriginId != null) {
|
|
10327
10418
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.OriginId)).withName("OriginId");
|
|
10328
10419
|
bodyNode.addChildNode(node);
|
|
10329
10420
|
}
|
|
@@ -10342,11 +10433,11 @@ const serializeAws_restXmlOriginGroupMemberList = (input, context) => {
|
|
|
10342
10433
|
};
|
|
10343
10434
|
const serializeAws_restXmlOriginGroupMembers = (input, context) => {
|
|
10344
10435
|
const bodyNode = new xml_builder_1.XmlNode("OriginGroupMembers");
|
|
10345
|
-
if (input.Quantity
|
|
10436
|
+
if (input.Quantity != null) {
|
|
10346
10437
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10347
10438
|
bodyNode.addChildNode(node);
|
|
10348
10439
|
}
|
|
10349
|
-
if (input.Items
|
|
10440
|
+
if (input.Items != null) {
|
|
10350
10441
|
const nodes = serializeAws_restXmlOriginGroupMemberList(input.Items, context);
|
|
10351
10442
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10352
10443
|
nodes.map((node) => {
|
|
@@ -10358,11 +10449,11 @@ const serializeAws_restXmlOriginGroupMembers = (input, context) => {
|
|
|
10358
10449
|
};
|
|
10359
10450
|
const serializeAws_restXmlOriginGroups = (input, context) => {
|
|
10360
10451
|
const bodyNode = new xml_builder_1.XmlNode("OriginGroups");
|
|
10361
|
-
if (input.Quantity
|
|
10452
|
+
if (input.Quantity != null) {
|
|
10362
10453
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10363
10454
|
bodyNode.addChildNode(node);
|
|
10364
10455
|
}
|
|
10365
|
-
if (input.Items
|
|
10456
|
+
if (input.Items != null) {
|
|
10366
10457
|
const nodes = serializeAws_restXmlOriginGroupList(input.Items, context);
|
|
10367
10458
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10368
10459
|
nodes.map((node) => {
|
|
@@ -10385,23 +10476,23 @@ const serializeAws_restXmlOriginList = (input, context) => {
|
|
|
10385
10476
|
};
|
|
10386
10477
|
const serializeAws_restXmlOriginRequestPolicyConfig = (input, context) => {
|
|
10387
10478
|
const bodyNode = new xml_builder_1.XmlNode("OriginRequestPolicyConfig");
|
|
10388
|
-
if (input.Comment
|
|
10479
|
+
if (input.Comment != null) {
|
|
10389
10480
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10390
10481
|
bodyNode.addChildNode(node);
|
|
10391
10482
|
}
|
|
10392
|
-
if (input.Name
|
|
10483
|
+
if (input.Name != null) {
|
|
10393
10484
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
10394
10485
|
bodyNode.addChildNode(node);
|
|
10395
10486
|
}
|
|
10396
|
-
if (input.HeadersConfig
|
|
10487
|
+
if (input.HeadersConfig != null) {
|
|
10397
10488
|
const node = serializeAws_restXmlOriginRequestPolicyHeadersConfig(input.HeadersConfig, context).withName("HeadersConfig");
|
|
10398
10489
|
bodyNode.addChildNode(node);
|
|
10399
10490
|
}
|
|
10400
|
-
if (input.CookiesConfig
|
|
10491
|
+
if (input.CookiesConfig != null) {
|
|
10401
10492
|
const node = serializeAws_restXmlOriginRequestPolicyCookiesConfig(input.CookiesConfig, context).withName("CookiesConfig");
|
|
10402
10493
|
bodyNode.addChildNode(node);
|
|
10403
10494
|
}
|
|
10404
|
-
if (input.QueryStringsConfig
|
|
10495
|
+
if (input.QueryStringsConfig != null) {
|
|
10405
10496
|
const node = serializeAws_restXmlOriginRequestPolicyQueryStringsConfig(input.QueryStringsConfig, context).withName("QueryStringsConfig");
|
|
10406
10497
|
bodyNode.addChildNode(node);
|
|
10407
10498
|
}
|
|
@@ -10409,13 +10500,13 @@ const serializeAws_restXmlOriginRequestPolicyConfig = (input, context) => {
|
|
|
10409
10500
|
};
|
|
10410
10501
|
const serializeAws_restXmlOriginRequestPolicyCookiesConfig = (input, context) => {
|
|
10411
10502
|
const bodyNode = new xml_builder_1.XmlNode("OriginRequestPolicyCookiesConfig");
|
|
10412
|
-
if (input.CookieBehavior
|
|
10503
|
+
if (input.CookieBehavior != null) {
|
|
10413
10504
|
const node = new xml_builder_1.XmlNode("OriginRequestPolicyCookieBehavior")
|
|
10414
10505
|
.addChildNode(new xml_builder_1.XmlText(input.CookieBehavior))
|
|
10415
10506
|
.withName("CookieBehavior");
|
|
10416
10507
|
bodyNode.addChildNode(node);
|
|
10417
10508
|
}
|
|
10418
|
-
if (input.Cookies
|
|
10509
|
+
if (input.Cookies != null) {
|
|
10419
10510
|
const node = serializeAws_restXmlCookieNames(input.Cookies, context).withName("Cookies");
|
|
10420
10511
|
bodyNode.addChildNode(node);
|
|
10421
10512
|
}
|
|
@@ -10423,13 +10514,13 @@ const serializeAws_restXmlOriginRequestPolicyCookiesConfig = (input, context) =>
|
|
|
10423
10514
|
};
|
|
10424
10515
|
const serializeAws_restXmlOriginRequestPolicyHeadersConfig = (input, context) => {
|
|
10425
10516
|
const bodyNode = new xml_builder_1.XmlNode("OriginRequestPolicyHeadersConfig");
|
|
10426
|
-
if (input.HeaderBehavior
|
|
10517
|
+
if (input.HeaderBehavior != null) {
|
|
10427
10518
|
const node = new xml_builder_1.XmlNode("OriginRequestPolicyHeaderBehavior")
|
|
10428
10519
|
.addChildNode(new xml_builder_1.XmlText(input.HeaderBehavior))
|
|
10429
10520
|
.withName("HeaderBehavior");
|
|
10430
10521
|
bodyNode.addChildNode(node);
|
|
10431
10522
|
}
|
|
10432
|
-
if (input.Headers
|
|
10523
|
+
if (input.Headers != null) {
|
|
10433
10524
|
const node = serializeAws_restXmlHeaders(input.Headers, context).withName("Headers");
|
|
10434
10525
|
bodyNode.addChildNode(node);
|
|
10435
10526
|
}
|
|
@@ -10437,13 +10528,13 @@ const serializeAws_restXmlOriginRequestPolicyHeadersConfig = (input, context) =>
|
|
|
10437
10528
|
};
|
|
10438
10529
|
const serializeAws_restXmlOriginRequestPolicyQueryStringsConfig = (input, context) => {
|
|
10439
10530
|
const bodyNode = new xml_builder_1.XmlNode("OriginRequestPolicyQueryStringsConfig");
|
|
10440
|
-
if (input.QueryStringBehavior
|
|
10531
|
+
if (input.QueryStringBehavior != null) {
|
|
10441
10532
|
const node = new xml_builder_1.XmlNode("OriginRequestPolicyQueryStringBehavior")
|
|
10442
10533
|
.addChildNode(new xml_builder_1.XmlText(input.QueryStringBehavior))
|
|
10443
10534
|
.withName("QueryStringBehavior");
|
|
10444
10535
|
bodyNode.addChildNode(node);
|
|
10445
10536
|
}
|
|
10446
|
-
if (input.QueryStrings
|
|
10537
|
+
if (input.QueryStrings != null) {
|
|
10447
10538
|
const node = serializeAws_restXmlQueryStringNames(input.QueryStrings, context).withName("QueryStrings");
|
|
10448
10539
|
bodyNode.addChildNode(node);
|
|
10449
10540
|
}
|
|
@@ -10451,11 +10542,11 @@ const serializeAws_restXmlOriginRequestPolicyQueryStringsConfig = (input, contex
|
|
|
10451
10542
|
};
|
|
10452
10543
|
const serializeAws_restXmlOrigins = (input, context) => {
|
|
10453
10544
|
const bodyNode = new xml_builder_1.XmlNode("Origins");
|
|
10454
|
-
if (input.Quantity
|
|
10545
|
+
if (input.Quantity != null) {
|
|
10455
10546
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10456
10547
|
bodyNode.addChildNode(node);
|
|
10457
10548
|
}
|
|
10458
|
-
if (input.Items
|
|
10549
|
+
if (input.Items != null) {
|
|
10459
10550
|
const nodes = serializeAws_restXmlOriginList(input.Items, context);
|
|
10460
10551
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10461
10552
|
nodes.map((node) => {
|
|
@@ -10467,11 +10558,11 @@ const serializeAws_restXmlOrigins = (input, context) => {
|
|
|
10467
10558
|
};
|
|
10468
10559
|
const serializeAws_restXmlOriginShield = (input, context) => {
|
|
10469
10560
|
const bodyNode = new xml_builder_1.XmlNode("OriginShield");
|
|
10470
|
-
if (input.Enabled
|
|
10561
|
+
if (input.Enabled != null) {
|
|
10471
10562
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
10472
10563
|
bodyNode.addChildNode(node);
|
|
10473
10564
|
}
|
|
10474
|
-
if (input.OriginShieldRegion
|
|
10565
|
+
if (input.OriginShieldRegion != null) {
|
|
10475
10566
|
const node = new xml_builder_1.XmlNode("OriginShieldRegion")
|
|
10476
10567
|
.addChildNode(new xml_builder_1.XmlText(input.OriginShieldRegion))
|
|
10477
10568
|
.withName("OriginShieldRegion");
|
|
@@ -10481,11 +10572,11 @@ const serializeAws_restXmlOriginShield = (input, context) => {
|
|
|
10481
10572
|
};
|
|
10482
10573
|
const serializeAws_restXmlOriginSslProtocols = (input, context) => {
|
|
10483
10574
|
const bodyNode = new xml_builder_1.XmlNode("OriginSslProtocols");
|
|
10484
|
-
if (input.Quantity
|
|
10575
|
+
if (input.Quantity != null) {
|
|
10485
10576
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10486
10577
|
bodyNode.addChildNode(node);
|
|
10487
10578
|
}
|
|
10488
|
-
if (input.Items
|
|
10579
|
+
if (input.Items != null) {
|
|
10489
10580
|
const nodes = serializeAws_restXmlSslProtocolsList(input.Items, context);
|
|
10490
10581
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10491
10582
|
nodes.map((node) => {
|
|
@@ -10497,27 +10588,27 @@ const serializeAws_restXmlOriginSslProtocols = (input, context) => {
|
|
|
10497
10588
|
};
|
|
10498
10589
|
const serializeAws_restXmlParametersInCacheKeyAndForwardedToOrigin = (input, context) => {
|
|
10499
10590
|
const bodyNode = new xml_builder_1.XmlNode("ParametersInCacheKeyAndForwardedToOrigin");
|
|
10500
|
-
if (input.EnableAcceptEncodingGzip
|
|
10591
|
+
if (input.EnableAcceptEncodingGzip != null) {
|
|
10501
10592
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10502
10593
|
.addChildNode(new xml_builder_1.XmlText(String(input.EnableAcceptEncodingGzip)))
|
|
10503
10594
|
.withName("EnableAcceptEncodingGzip");
|
|
10504
10595
|
bodyNode.addChildNode(node);
|
|
10505
10596
|
}
|
|
10506
|
-
if (input.EnableAcceptEncodingBrotli
|
|
10597
|
+
if (input.EnableAcceptEncodingBrotli != null) {
|
|
10507
10598
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10508
10599
|
.addChildNode(new xml_builder_1.XmlText(String(input.EnableAcceptEncodingBrotli)))
|
|
10509
10600
|
.withName("EnableAcceptEncodingBrotli");
|
|
10510
10601
|
bodyNode.addChildNode(node);
|
|
10511
10602
|
}
|
|
10512
|
-
if (input.HeadersConfig
|
|
10603
|
+
if (input.HeadersConfig != null) {
|
|
10513
10604
|
const node = serializeAws_restXmlCachePolicyHeadersConfig(input.HeadersConfig, context).withName("HeadersConfig");
|
|
10514
10605
|
bodyNode.addChildNode(node);
|
|
10515
10606
|
}
|
|
10516
|
-
if (input.CookiesConfig
|
|
10607
|
+
if (input.CookiesConfig != null) {
|
|
10517
10608
|
const node = serializeAws_restXmlCachePolicyCookiesConfig(input.CookiesConfig, context).withName("CookiesConfig");
|
|
10518
10609
|
bodyNode.addChildNode(node);
|
|
10519
10610
|
}
|
|
10520
|
-
if (input.QueryStringsConfig
|
|
10611
|
+
if (input.QueryStringsConfig != null) {
|
|
10521
10612
|
const node = serializeAws_restXmlCachePolicyQueryStringsConfig(input.QueryStringsConfig, context).withName("QueryStringsConfig");
|
|
10522
10613
|
bodyNode.addChildNode(node);
|
|
10523
10614
|
}
|
|
@@ -10536,11 +10627,11 @@ const serializeAws_restXmlPathList = (input, context) => {
|
|
|
10536
10627
|
};
|
|
10537
10628
|
const serializeAws_restXmlPaths = (input, context) => {
|
|
10538
10629
|
const bodyNode = new xml_builder_1.XmlNode("Paths");
|
|
10539
|
-
if (input.Quantity
|
|
10630
|
+
if (input.Quantity != null) {
|
|
10540
10631
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10541
10632
|
bodyNode.addChildNode(node);
|
|
10542
10633
|
}
|
|
10543
|
-
if (input.Items
|
|
10634
|
+
if (input.Items != null) {
|
|
10544
10635
|
const nodes = serializeAws_restXmlPathList(input.Items, context);
|
|
10545
10636
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10546
10637
|
nodes.map((node) => {
|
|
@@ -10552,19 +10643,19 @@ const serializeAws_restXmlPaths = (input, context) => {
|
|
|
10552
10643
|
};
|
|
10553
10644
|
const serializeAws_restXmlPublicKeyConfig = (input, context) => {
|
|
10554
10645
|
const bodyNode = new xml_builder_1.XmlNode("PublicKeyConfig");
|
|
10555
|
-
if (input.CallerReference
|
|
10646
|
+
if (input.CallerReference != null) {
|
|
10556
10647
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
10557
10648
|
bodyNode.addChildNode(node);
|
|
10558
10649
|
}
|
|
10559
|
-
if (input.Name
|
|
10650
|
+
if (input.Name != null) {
|
|
10560
10651
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
10561
10652
|
bodyNode.addChildNode(node);
|
|
10562
10653
|
}
|
|
10563
|
-
if (input.EncodedKey
|
|
10654
|
+
if (input.EncodedKey != null) {
|
|
10564
10655
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.EncodedKey)).withName("EncodedKey");
|
|
10565
10656
|
bodyNode.addChildNode(node);
|
|
10566
10657
|
}
|
|
10567
|
-
if (input.Comment
|
|
10658
|
+
if (input.Comment != null) {
|
|
10568
10659
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10569
10660
|
bodyNode.addChildNode(node);
|
|
10570
10661
|
}
|
|
@@ -10583,11 +10674,11 @@ const serializeAws_restXmlPublicKeyIdList = (input, context) => {
|
|
|
10583
10674
|
};
|
|
10584
10675
|
const serializeAws_restXmlQueryArgProfile = (input, context) => {
|
|
10585
10676
|
const bodyNode = new xml_builder_1.XmlNode("QueryArgProfile");
|
|
10586
|
-
if (input.QueryArg
|
|
10677
|
+
if (input.QueryArg != null) {
|
|
10587
10678
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.QueryArg)).withName("QueryArg");
|
|
10588
10679
|
bodyNode.addChildNode(node);
|
|
10589
10680
|
}
|
|
10590
|
-
if (input.ProfileId
|
|
10681
|
+
if (input.ProfileId != null) {
|
|
10591
10682
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ProfileId)).withName("ProfileId");
|
|
10592
10683
|
bodyNode.addChildNode(node);
|
|
10593
10684
|
}
|
|
@@ -10595,13 +10686,13 @@ const serializeAws_restXmlQueryArgProfile = (input, context) => {
|
|
|
10595
10686
|
};
|
|
10596
10687
|
const serializeAws_restXmlQueryArgProfileConfig = (input, context) => {
|
|
10597
10688
|
const bodyNode = new xml_builder_1.XmlNode("QueryArgProfileConfig");
|
|
10598
|
-
if (input.ForwardWhenQueryArgProfileIsUnknown
|
|
10689
|
+
if (input.ForwardWhenQueryArgProfileIsUnknown != null) {
|
|
10599
10690
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10600
10691
|
.addChildNode(new xml_builder_1.XmlText(String(input.ForwardWhenQueryArgProfileIsUnknown)))
|
|
10601
10692
|
.withName("ForwardWhenQueryArgProfileIsUnknown");
|
|
10602
10693
|
bodyNode.addChildNode(node);
|
|
10603
10694
|
}
|
|
10604
|
-
if (input.QueryArgProfiles
|
|
10695
|
+
if (input.QueryArgProfiles != null) {
|
|
10605
10696
|
const node = serializeAws_restXmlQueryArgProfiles(input.QueryArgProfiles, context).withName("QueryArgProfiles");
|
|
10606
10697
|
bodyNode.addChildNode(node);
|
|
10607
10698
|
}
|
|
@@ -10620,11 +10711,11 @@ const serializeAws_restXmlQueryArgProfileList = (input, context) => {
|
|
|
10620
10711
|
};
|
|
10621
10712
|
const serializeAws_restXmlQueryArgProfiles = (input, context) => {
|
|
10622
10713
|
const bodyNode = new xml_builder_1.XmlNode("QueryArgProfiles");
|
|
10623
|
-
if (input.Quantity
|
|
10714
|
+
if (input.Quantity != null) {
|
|
10624
10715
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10625
10716
|
bodyNode.addChildNode(node);
|
|
10626
10717
|
}
|
|
10627
|
-
if (input.Items
|
|
10718
|
+
if (input.Items != null) {
|
|
10628
10719
|
const nodes = serializeAws_restXmlQueryArgProfileList(input.Items, context);
|
|
10629
10720
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10630
10721
|
nodes.map((node) => {
|
|
@@ -10636,11 +10727,11 @@ const serializeAws_restXmlQueryArgProfiles = (input, context) => {
|
|
|
10636
10727
|
};
|
|
10637
10728
|
const serializeAws_restXmlQueryStringCacheKeys = (input, context) => {
|
|
10638
10729
|
const bodyNode = new xml_builder_1.XmlNode("QueryStringCacheKeys");
|
|
10639
|
-
if (input.Quantity
|
|
10730
|
+
if (input.Quantity != null) {
|
|
10640
10731
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10641
10732
|
bodyNode.addChildNode(node);
|
|
10642
10733
|
}
|
|
10643
|
-
if (input.Items
|
|
10734
|
+
if (input.Items != null) {
|
|
10644
10735
|
const nodes = serializeAws_restXmlQueryStringCacheKeysList(input.Items, context);
|
|
10645
10736
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10646
10737
|
nodes.map((node) => {
|
|
@@ -10663,11 +10754,11 @@ const serializeAws_restXmlQueryStringCacheKeysList = (input, context) => {
|
|
|
10663
10754
|
};
|
|
10664
10755
|
const serializeAws_restXmlQueryStringNames = (input, context) => {
|
|
10665
10756
|
const bodyNode = new xml_builder_1.XmlNode("QueryStringNames");
|
|
10666
|
-
if (input.Quantity
|
|
10757
|
+
if (input.Quantity != null) {
|
|
10667
10758
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10668
10759
|
bodyNode.addChildNode(node);
|
|
10669
10760
|
}
|
|
10670
|
-
if (input.Items
|
|
10761
|
+
if (input.Items != null) {
|
|
10671
10762
|
const nodes = serializeAws_restXmlQueryStringNamesList(input.Items, context);
|
|
10672
10763
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10673
10764
|
nodes.map((node) => {
|
|
@@ -10690,7 +10781,7 @@ const serializeAws_restXmlQueryStringNamesList = (input, context) => {
|
|
|
10690
10781
|
};
|
|
10691
10782
|
const serializeAws_restXmlRealtimeMetricsSubscriptionConfig = (input, context) => {
|
|
10692
10783
|
const bodyNode = new xml_builder_1.XmlNode("RealtimeMetricsSubscriptionConfig");
|
|
10693
|
-
if (input.RealtimeMetricsSubscriptionStatus
|
|
10784
|
+
if (input.RealtimeMetricsSubscriptionStatus != null) {
|
|
10694
10785
|
const node = new xml_builder_1.XmlNode("RealtimeMetricsSubscriptionStatus")
|
|
10695
10786
|
.addChildNode(new xml_builder_1.XmlText(input.RealtimeMetricsSubscriptionStatus))
|
|
10696
10787
|
.withName("RealtimeMetricsSubscriptionStatus");
|
|
@@ -10700,11 +10791,11 @@ const serializeAws_restXmlRealtimeMetricsSubscriptionConfig = (input, context) =
|
|
|
10700
10791
|
};
|
|
10701
10792
|
const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders = (input, context) => {
|
|
10702
10793
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlAllowHeaders");
|
|
10703
|
-
if (input.Quantity
|
|
10794
|
+
if (input.Quantity != null) {
|
|
10704
10795
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10705
10796
|
bodyNode.addChildNode(node);
|
|
10706
10797
|
}
|
|
10707
|
-
if (input.Items
|
|
10798
|
+
if (input.Items != null) {
|
|
10708
10799
|
const nodes = serializeAws_restXmlAccessControlAllowHeadersList(input.Items, context);
|
|
10709
10800
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10710
10801
|
nodes.map((node) => {
|
|
@@ -10716,11 +10807,11 @@ const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders = (inpu
|
|
|
10716
10807
|
};
|
|
10717
10808
|
const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods = (input, context) => {
|
|
10718
10809
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlAllowMethods");
|
|
10719
|
-
if (input.Quantity
|
|
10810
|
+
if (input.Quantity != null) {
|
|
10720
10811
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10721
10812
|
bodyNode.addChildNode(node);
|
|
10722
10813
|
}
|
|
10723
|
-
if (input.Items
|
|
10814
|
+
if (input.Items != null) {
|
|
10724
10815
|
const nodes = serializeAws_restXmlAccessControlAllowMethodsList(input.Items, context);
|
|
10725
10816
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10726
10817
|
nodes.map((node) => {
|
|
@@ -10732,11 +10823,11 @@ const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods = (inpu
|
|
|
10732
10823
|
};
|
|
10733
10824
|
const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins = (input, context) => {
|
|
10734
10825
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlAllowOrigins");
|
|
10735
|
-
if (input.Quantity
|
|
10826
|
+
if (input.Quantity != null) {
|
|
10736
10827
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10737
10828
|
bodyNode.addChildNode(node);
|
|
10738
10829
|
}
|
|
10739
|
-
if (input.Items
|
|
10830
|
+
if (input.Items != null) {
|
|
10740
10831
|
const nodes = serializeAws_restXmlAccessControlAllowOriginsList(input.Items, context);
|
|
10741
10832
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10742
10833
|
nodes.map((node) => {
|
|
@@ -10748,11 +10839,11 @@ const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins = (inpu
|
|
|
10748
10839
|
};
|
|
10749
10840
|
const serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders = (input, context) => {
|
|
10750
10841
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlExposeHeaders");
|
|
10751
|
-
if (input.Quantity
|
|
10842
|
+
if (input.Quantity != null) {
|
|
10752
10843
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10753
10844
|
bodyNode.addChildNode(node);
|
|
10754
10845
|
}
|
|
10755
|
-
if (input.Items
|
|
10846
|
+
if (input.Items != null) {
|
|
10756
10847
|
const nodes = serializeAws_restXmlAccessControlExposeHeadersList(input.Items, context);
|
|
10757
10848
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10758
10849
|
nodes.map((node) => {
|
|
@@ -10764,27 +10855,27 @@ const serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders = (inp
|
|
|
10764
10855
|
};
|
|
10765
10856
|
const serializeAws_restXmlResponseHeadersPolicyConfig = (input, context) => {
|
|
10766
10857
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyConfig");
|
|
10767
|
-
if (input.Comment
|
|
10858
|
+
if (input.Comment != null) {
|
|
10768
10859
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
10769
10860
|
bodyNode.addChildNode(node);
|
|
10770
10861
|
}
|
|
10771
|
-
if (input.Name
|
|
10862
|
+
if (input.Name != null) {
|
|
10772
10863
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
10773
10864
|
bodyNode.addChildNode(node);
|
|
10774
10865
|
}
|
|
10775
|
-
if (input.CorsConfig
|
|
10866
|
+
if (input.CorsConfig != null) {
|
|
10776
10867
|
const node = serializeAws_restXmlResponseHeadersPolicyCorsConfig(input.CorsConfig, context).withName("CorsConfig");
|
|
10777
10868
|
bodyNode.addChildNode(node);
|
|
10778
10869
|
}
|
|
10779
|
-
if (input.SecurityHeadersConfig
|
|
10870
|
+
if (input.SecurityHeadersConfig != null) {
|
|
10780
10871
|
const node = serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(input.SecurityHeadersConfig, context).withName("SecurityHeadersConfig");
|
|
10781
10872
|
bodyNode.addChildNode(node);
|
|
10782
10873
|
}
|
|
10783
|
-
if (input.CustomHeadersConfig
|
|
10874
|
+
if (input.CustomHeadersConfig != null) {
|
|
10784
10875
|
const node = serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(input.CustomHeadersConfig, context).withName("CustomHeadersConfig");
|
|
10785
10876
|
bodyNode.addChildNode(node);
|
|
10786
10877
|
}
|
|
10787
|
-
if (input.ServerTimingHeadersConfig
|
|
10878
|
+
if (input.ServerTimingHeadersConfig != null) {
|
|
10788
10879
|
const node = serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig(input.ServerTimingHeadersConfig, context).withName("ServerTimingHeadersConfig");
|
|
10789
10880
|
bodyNode.addChildNode(node);
|
|
10790
10881
|
}
|
|
@@ -10792,11 +10883,11 @@ const serializeAws_restXmlResponseHeadersPolicyConfig = (input, context) => {
|
|
|
10792
10883
|
};
|
|
10793
10884
|
const serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = (input, context) => {
|
|
10794
10885
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyContentSecurityPolicy");
|
|
10795
|
-
if (input.Override
|
|
10886
|
+
if (input.Override != null) {
|
|
10796
10887
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10797
10888
|
bodyNode.addChildNode(node);
|
|
10798
10889
|
}
|
|
10799
|
-
if (input.ContentSecurityPolicy
|
|
10890
|
+
if (input.ContentSecurityPolicy != null) {
|
|
10800
10891
|
const node = new xml_builder_1.XmlNode("string")
|
|
10801
10892
|
.addChildNode(new xml_builder_1.XmlText(input.ContentSecurityPolicy))
|
|
10802
10893
|
.withName("ContentSecurityPolicy");
|
|
@@ -10806,7 +10897,7 @@ const serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = (input, c
|
|
|
10806
10897
|
};
|
|
10807
10898
|
const serializeAws_restXmlResponseHeadersPolicyContentTypeOptions = (input, context) => {
|
|
10808
10899
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyContentTypeOptions");
|
|
10809
|
-
if (input.Override
|
|
10900
|
+
if (input.Override != null) {
|
|
10810
10901
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10811
10902
|
bodyNode.addChildNode(node);
|
|
10812
10903
|
}
|
|
@@ -10814,35 +10905,35 @@ const serializeAws_restXmlResponseHeadersPolicyContentTypeOptions = (input, cont
|
|
|
10814
10905
|
};
|
|
10815
10906
|
const serializeAws_restXmlResponseHeadersPolicyCorsConfig = (input, context) => {
|
|
10816
10907
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyCorsConfig");
|
|
10817
|
-
if (input.AccessControlAllowOrigins
|
|
10908
|
+
if (input.AccessControlAllowOrigins != null) {
|
|
10818
10909
|
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins(input.AccessControlAllowOrigins, context).withName("AccessControlAllowOrigins");
|
|
10819
10910
|
bodyNode.addChildNode(node);
|
|
10820
10911
|
}
|
|
10821
|
-
if (input.AccessControlAllowHeaders
|
|
10912
|
+
if (input.AccessControlAllowHeaders != null) {
|
|
10822
10913
|
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders(input.AccessControlAllowHeaders, context).withName("AccessControlAllowHeaders");
|
|
10823
10914
|
bodyNode.addChildNode(node);
|
|
10824
10915
|
}
|
|
10825
|
-
if (input.AccessControlAllowMethods
|
|
10916
|
+
if (input.AccessControlAllowMethods != null) {
|
|
10826
10917
|
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods(input.AccessControlAllowMethods, context).withName("AccessControlAllowMethods");
|
|
10827
10918
|
bodyNode.addChildNode(node);
|
|
10828
10919
|
}
|
|
10829
|
-
if (input.AccessControlAllowCredentials
|
|
10920
|
+
if (input.AccessControlAllowCredentials != null) {
|
|
10830
10921
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10831
10922
|
.addChildNode(new xml_builder_1.XmlText(String(input.AccessControlAllowCredentials)))
|
|
10832
10923
|
.withName("AccessControlAllowCredentials");
|
|
10833
10924
|
bodyNode.addChildNode(node);
|
|
10834
10925
|
}
|
|
10835
|
-
if (input.AccessControlExposeHeaders
|
|
10926
|
+
if (input.AccessControlExposeHeaders != null) {
|
|
10836
10927
|
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders(input.AccessControlExposeHeaders, context).withName("AccessControlExposeHeaders");
|
|
10837
10928
|
bodyNode.addChildNode(node);
|
|
10838
10929
|
}
|
|
10839
|
-
if (input.AccessControlMaxAgeSec
|
|
10930
|
+
if (input.AccessControlMaxAgeSec != null) {
|
|
10840
10931
|
const node = new xml_builder_1.XmlNode("integer")
|
|
10841
10932
|
.addChildNode(new xml_builder_1.XmlText(String(input.AccessControlMaxAgeSec)))
|
|
10842
10933
|
.withName("AccessControlMaxAgeSec");
|
|
10843
10934
|
bodyNode.addChildNode(node);
|
|
10844
10935
|
}
|
|
10845
|
-
if (input.OriginOverride
|
|
10936
|
+
if (input.OriginOverride != null) {
|
|
10846
10937
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10847
10938
|
.addChildNode(new xml_builder_1.XmlText(String(input.OriginOverride)))
|
|
10848
10939
|
.withName("OriginOverride");
|
|
@@ -10852,15 +10943,15 @@ const serializeAws_restXmlResponseHeadersPolicyCorsConfig = (input, context) =>
|
|
|
10852
10943
|
};
|
|
10853
10944
|
const serializeAws_restXmlResponseHeadersPolicyCustomHeader = (input, context) => {
|
|
10854
10945
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyCustomHeader");
|
|
10855
|
-
if (input.Header
|
|
10946
|
+
if (input.Header != null) {
|
|
10856
10947
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Header)).withName("Header");
|
|
10857
10948
|
bodyNode.addChildNode(node);
|
|
10858
10949
|
}
|
|
10859
|
-
if (input.Value
|
|
10950
|
+
if (input.Value != null) {
|
|
10860
10951
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
|
|
10861
10952
|
bodyNode.addChildNode(node);
|
|
10862
10953
|
}
|
|
10863
|
-
if (input.Override
|
|
10954
|
+
if (input.Override != null) {
|
|
10864
10955
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10865
10956
|
bodyNode.addChildNode(node);
|
|
10866
10957
|
}
|
|
@@ -10879,11 +10970,11 @@ const serializeAws_restXmlResponseHeadersPolicyCustomHeaderList = (input, contex
|
|
|
10879
10970
|
};
|
|
10880
10971
|
const serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig = (input, context) => {
|
|
10881
10972
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyCustomHeadersConfig");
|
|
10882
|
-
if (input.Quantity
|
|
10973
|
+
if (input.Quantity != null) {
|
|
10883
10974
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
10884
10975
|
bodyNode.addChildNode(node);
|
|
10885
10976
|
}
|
|
10886
|
-
if (input.Items
|
|
10977
|
+
if (input.Items != null) {
|
|
10887
10978
|
const nodes = serializeAws_restXmlResponseHeadersPolicyCustomHeaderList(input.Items, context);
|
|
10888
10979
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
10889
10980
|
nodes.map((node) => {
|
|
@@ -10895,11 +10986,11 @@ const serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig = (input, con
|
|
|
10895
10986
|
};
|
|
10896
10987
|
const serializeAws_restXmlResponseHeadersPolicyFrameOptions = (input, context) => {
|
|
10897
10988
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyFrameOptions");
|
|
10898
|
-
if (input.Override
|
|
10989
|
+
if (input.Override != null) {
|
|
10899
10990
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10900
10991
|
bodyNode.addChildNode(node);
|
|
10901
10992
|
}
|
|
10902
|
-
if (input.FrameOption
|
|
10993
|
+
if (input.FrameOption != null) {
|
|
10903
10994
|
const node = new xml_builder_1.XmlNode("FrameOptionsList")
|
|
10904
10995
|
.addChildNode(new xml_builder_1.XmlText(input.FrameOption))
|
|
10905
10996
|
.withName("FrameOption");
|
|
@@ -10909,11 +11000,11 @@ const serializeAws_restXmlResponseHeadersPolicyFrameOptions = (input, context) =
|
|
|
10909
11000
|
};
|
|
10910
11001
|
const serializeAws_restXmlResponseHeadersPolicyReferrerPolicy = (input, context) => {
|
|
10911
11002
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyReferrerPolicy");
|
|
10912
|
-
if (input.Override
|
|
11003
|
+
if (input.Override != null) {
|
|
10913
11004
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10914
11005
|
bodyNode.addChildNode(node);
|
|
10915
11006
|
}
|
|
10916
|
-
if (input.ReferrerPolicy
|
|
11007
|
+
if (input.ReferrerPolicy != null) {
|
|
10917
11008
|
const node = new xml_builder_1.XmlNode("ReferrerPolicyList")
|
|
10918
11009
|
.addChildNode(new xml_builder_1.XmlText(input.ReferrerPolicy))
|
|
10919
11010
|
.withName("ReferrerPolicy");
|
|
@@ -10923,27 +11014,27 @@ const serializeAws_restXmlResponseHeadersPolicyReferrerPolicy = (input, context)
|
|
|
10923
11014
|
};
|
|
10924
11015
|
const serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig = (input, context) => {
|
|
10925
11016
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicySecurityHeadersConfig");
|
|
10926
|
-
if (input.XSSProtection
|
|
11017
|
+
if (input.XSSProtection != null) {
|
|
10927
11018
|
const node = serializeAws_restXmlResponseHeadersPolicyXSSProtection(input.XSSProtection, context).withName("XSSProtection");
|
|
10928
11019
|
bodyNode.addChildNode(node);
|
|
10929
11020
|
}
|
|
10930
|
-
if (input.FrameOptions
|
|
11021
|
+
if (input.FrameOptions != null) {
|
|
10931
11022
|
const node = serializeAws_restXmlResponseHeadersPolicyFrameOptions(input.FrameOptions, context).withName("FrameOptions");
|
|
10932
11023
|
bodyNode.addChildNode(node);
|
|
10933
11024
|
}
|
|
10934
|
-
if (input.ReferrerPolicy
|
|
11025
|
+
if (input.ReferrerPolicy != null) {
|
|
10935
11026
|
const node = serializeAws_restXmlResponseHeadersPolicyReferrerPolicy(input.ReferrerPolicy, context).withName("ReferrerPolicy");
|
|
10936
11027
|
bodyNode.addChildNode(node);
|
|
10937
11028
|
}
|
|
10938
|
-
if (input.ContentSecurityPolicy
|
|
11029
|
+
if (input.ContentSecurityPolicy != null) {
|
|
10939
11030
|
const node = serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy(input.ContentSecurityPolicy, context).withName("ContentSecurityPolicy");
|
|
10940
11031
|
bodyNode.addChildNode(node);
|
|
10941
11032
|
}
|
|
10942
|
-
if (input.ContentTypeOptions
|
|
11033
|
+
if (input.ContentTypeOptions != null) {
|
|
10943
11034
|
const node = serializeAws_restXmlResponseHeadersPolicyContentTypeOptions(input.ContentTypeOptions, context).withName("ContentTypeOptions");
|
|
10944
11035
|
bodyNode.addChildNode(node);
|
|
10945
11036
|
}
|
|
10946
|
-
if (input.StrictTransportSecurity
|
|
11037
|
+
if (input.StrictTransportSecurity != null) {
|
|
10947
11038
|
const node = serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity(input.StrictTransportSecurity, context).withName("StrictTransportSecurity");
|
|
10948
11039
|
bodyNode.addChildNode(node);
|
|
10949
11040
|
}
|
|
@@ -10951,11 +11042,11 @@ const serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig = (input, c
|
|
|
10951
11042
|
};
|
|
10952
11043
|
const serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig = (input, context) => {
|
|
10953
11044
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyServerTimingHeadersConfig");
|
|
10954
|
-
if (input.Enabled
|
|
11045
|
+
if (input.Enabled != null) {
|
|
10955
11046
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
10956
11047
|
bodyNode.addChildNode(node);
|
|
10957
11048
|
}
|
|
10958
|
-
if (input.SamplingRate
|
|
11049
|
+
if (input.SamplingRate != null) {
|
|
10959
11050
|
const node = new xml_builder_1.XmlNode("SamplingRate")
|
|
10960
11051
|
.addChildNode(new xml_builder_1.XmlText(String(input.SamplingRate)))
|
|
10961
11052
|
.withName("SamplingRate");
|
|
@@ -10965,21 +11056,21 @@ const serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig = (inpu
|
|
|
10965
11056
|
};
|
|
10966
11057
|
const serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity = (input, context) => {
|
|
10967
11058
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyStrictTransportSecurity");
|
|
10968
|
-
if (input.Override
|
|
11059
|
+
if (input.Override != null) {
|
|
10969
11060
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10970
11061
|
bodyNode.addChildNode(node);
|
|
10971
11062
|
}
|
|
10972
|
-
if (input.IncludeSubdomains
|
|
11063
|
+
if (input.IncludeSubdomains != null) {
|
|
10973
11064
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
10974
11065
|
.addChildNode(new xml_builder_1.XmlText(String(input.IncludeSubdomains)))
|
|
10975
11066
|
.withName("IncludeSubdomains");
|
|
10976
11067
|
bodyNode.addChildNode(node);
|
|
10977
11068
|
}
|
|
10978
|
-
if (input.Preload
|
|
11069
|
+
if (input.Preload != null) {
|
|
10979
11070
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Preload))).withName("Preload");
|
|
10980
11071
|
bodyNode.addChildNode(node);
|
|
10981
11072
|
}
|
|
10982
|
-
if (input.AccessControlMaxAgeSec
|
|
11073
|
+
if (input.AccessControlMaxAgeSec != null) {
|
|
10983
11074
|
const node = new xml_builder_1.XmlNode("integer")
|
|
10984
11075
|
.addChildNode(new xml_builder_1.XmlText(String(input.AccessControlMaxAgeSec)))
|
|
10985
11076
|
.withName("AccessControlMaxAgeSec");
|
|
@@ -10989,19 +11080,19 @@ const serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity = (input,
|
|
|
10989
11080
|
};
|
|
10990
11081
|
const serializeAws_restXmlResponseHeadersPolicyXSSProtection = (input, context) => {
|
|
10991
11082
|
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyXSSProtection");
|
|
10992
|
-
if (input.Override
|
|
11083
|
+
if (input.Override != null) {
|
|
10993
11084
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
10994
11085
|
bodyNode.addChildNode(node);
|
|
10995
11086
|
}
|
|
10996
|
-
if (input.Protection
|
|
11087
|
+
if (input.Protection != null) {
|
|
10997
11088
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Protection))).withName("Protection");
|
|
10998
11089
|
bodyNode.addChildNode(node);
|
|
10999
11090
|
}
|
|
11000
|
-
if (input.ModeBlock
|
|
11091
|
+
if (input.ModeBlock != null) {
|
|
11001
11092
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.ModeBlock))).withName("ModeBlock");
|
|
11002
11093
|
bodyNode.addChildNode(node);
|
|
11003
11094
|
}
|
|
11004
|
-
if (input.ReportUri
|
|
11095
|
+
if (input.ReportUri != null) {
|
|
11005
11096
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ReportUri)).withName("ReportUri");
|
|
11006
11097
|
bodyNode.addChildNode(node);
|
|
11007
11098
|
}
|
|
@@ -11009,7 +11100,7 @@ const serializeAws_restXmlResponseHeadersPolicyXSSProtection = (input, context)
|
|
|
11009
11100
|
};
|
|
11010
11101
|
const serializeAws_restXmlRestrictions = (input, context) => {
|
|
11011
11102
|
const bodyNode = new xml_builder_1.XmlNode("Restrictions");
|
|
11012
|
-
if (input.GeoRestriction
|
|
11103
|
+
if (input.GeoRestriction != null) {
|
|
11013
11104
|
const node = serializeAws_restXmlGeoRestriction(input.GeoRestriction, context).withName("GeoRestriction");
|
|
11014
11105
|
bodyNode.addChildNode(node);
|
|
11015
11106
|
}
|
|
@@ -11017,11 +11108,11 @@ const serializeAws_restXmlRestrictions = (input, context) => {
|
|
|
11017
11108
|
};
|
|
11018
11109
|
const serializeAws_restXmlS3Origin = (input, context) => {
|
|
11019
11110
|
const bodyNode = new xml_builder_1.XmlNode("S3Origin");
|
|
11020
|
-
if (input.DomainName
|
|
11111
|
+
if (input.DomainName != null) {
|
|
11021
11112
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.DomainName)).withName("DomainName");
|
|
11022
11113
|
bodyNode.addChildNode(node);
|
|
11023
11114
|
}
|
|
11024
|
-
if (input.OriginAccessIdentity
|
|
11115
|
+
if (input.OriginAccessIdentity != null) {
|
|
11025
11116
|
const node = new xml_builder_1.XmlNode("string")
|
|
11026
11117
|
.addChildNode(new xml_builder_1.XmlText(input.OriginAccessIdentity))
|
|
11027
11118
|
.withName("OriginAccessIdentity");
|
|
@@ -11031,7 +11122,7 @@ const serializeAws_restXmlS3Origin = (input, context) => {
|
|
|
11031
11122
|
};
|
|
11032
11123
|
const serializeAws_restXmlS3OriginConfig = (input, context) => {
|
|
11033
11124
|
const bodyNode = new xml_builder_1.XmlNode("S3OriginConfig");
|
|
11034
|
-
if (input.OriginAccessIdentity
|
|
11125
|
+
if (input.OriginAccessIdentity != null) {
|
|
11035
11126
|
const node = new xml_builder_1.XmlNode("string")
|
|
11036
11127
|
.addChildNode(new xml_builder_1.XmlText(input.OriginAccessIdentity))
|
|
11037
11128
|
.withName("OriginAccessIdentity");
|
|
@@ -11063,11 +11154,11 @@ const serializeAws_restXmlStatusCodeList = (input, context) => {
|
|
|
11063
11154
|
};
|
|
11064
11155
|
const serializeAws_restXmlStatusCodes = (input, context) => {
|
|
11065
11156
|
const bodyNode = new xml_builder_1.XmlNode("StatusCodes");
|
|
11066
|
-
if (input.Quantity
|
|
11157
|
+
if (input.Quantity != null) {
|
|
11067
11158
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
11068
11159
|
bodyNode.addChildNode(node);
|
|
11069
11160
|
}
|
|
11070
|
-
if (input.Items
|
|
11161
|
+
if (input.Items != null) {
|
|
11071
11162
|
const nodes = serializeAws_restXmlStatusCodeList(input.Items, context);
|
|
11072
11163
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11073
11164
|
nodes.map((node) => {
|
|
@@ -11079,35 +11170,35 @@ const serializeAws_restXmlStatusCodes = (input, context) => {
|
|
|
11079
11170
|
};
|
|
11080
11171
|
const serializeAws_restXmlStreamingDistributionConfig = (input, context) => {
|
|
11081
11172
|
const bodyNode = new xml_builder_1.XmlNode("StreamingDistributionConfig");
|
|
11082
|
-
if (input.CallerReference
|
|
11173
|
+
if (input.CallerReference != null) {
|
|
11083
11174
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.CallerReference)).withName("CallerReference");
|
|
11084
11175
|
bodyNode.addChildNode(node);
|
|
11085
11176
|
}
|
|
11086
|
-
if (input.S3Origin
|
|
11177
|
+
if (input.S3Origin != null) {
|
|
11087
11178
|
const node = serializeAws_restXmlS3Origin(input.S3Origin, context).withName("S3Origin");
|
|
11088
11179
|
bodyNode.addChildNode(node);
|
|
11089
11180
|
}
|
|
11090
|
-
if (input.Aliases
|
|
11181
|
+
if (input.Aliases != null) {
|
|
11091
11182
|
const node = serializeAws_restXmlAliases(input.Aliases, context).withName("Aliases");
|
|
11092
11183
|
bodyNode.addChildNode(node);
|
|
11093
11184
|
}
|
|
11094
|
-
if (input.Comment
|
|
11185
|
+
if (input.Comment != null) {
|
|
11095
11186
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
11096
11187
|
bodyNode.addChildNode(node);
|
|
11097
11188
|
}
|
|
11098
|
-
if (input.Logging
|
|
11189
|
+
if (input.Logging != null) {
|
|
11099
11190
|
const node = serializeAws_restXmlStreamingLoggingConfig(input.Logging, context).withName("Logging");
|
|
11100
11191
|
bodyNode.addChildNode(node);
|
|
11101
11192
|
}
|
|
11102
|
-
if (input.TrustedSigners
|
|
11193
|
+
if (input.TrustedSigners != null) {
|
|
11103
11194
|
const node = serializeAws_restXmlTrustedSigners(input.TrustedSigners, context).withName("TrustedSigners");
|
|
11104
11195
|
bodyNode.addChildNode(node);
|
|
11105
11196
|
}
|
|
11106
|
-
if (input.PriceClass
|
|
11197
|
+
if (input.PriceClass != null) {
|
|
11107
11198
|
const node = new xml_builder_1.XmlNode("PriceClass").addChildNode(new xml_builder_1.XmlText(input.PriceClass)).withName("PriceClass");
|
|
11108
11199
|
bodyNode.addChildNode(node);
|
|
11109
11200
|
}
|
|
11110
|
-
if (input.Enabled
|
|
11201
|
+
if (input.Enabled != null) {
|
|
11111
11202
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
11112
11203
|
bodyNode.addChildNode(node);
|
|
11113
11204
|
}
|
|
@@ -11115,11 +11206,11 @@ const serializeAws_restXmlStreamingDistributionConfig = (input, context) => {
|
|
|
11115
11206
|
};
|
|
11116
11207
|
const serializeAws_restXmlStreamingDistributionConfigWithTags = (input, context) => {
|
|
11117
11208
|
const bodyNode = new xml_builder_1.XmlNode("StreamingDistributionConfigWithTags");
|
|
11118
|
-
if (input.StreamingDistributionConfig
|
|
11209
|
+
if (input.StreamingDistributionConfig != null) {
|
|
11119
11210
|
const node = serializeAws_restXmlStreamingDistributionConfig(input.StreamingDistributionConfig, context).withName("StreamingDistributionConfig");
|
|
11120
11211
|
bodyNode.addChildNode(node);
|
|
11121
11212
|
}
|
|
11122
|
-
if (input.Tags
|
|
11213
|
+
if (input.Tags != null) {
|
|
11123
11214
|
const node = serializeAws_restXmlTags(input.Tags, context).withName("Tags");
|
|
11124
11215
|
bodyNode.addChildNode(node);
|
|
11125
11216
|
}
|
|
@@ -11127,15 +11218,15 @@ const serializeAws_restXmlStreamingDistributionConfigWithTags = (input, context)
|
|
|
11127
11218
|
};
|
|
11128
11219
|
const serializeAws_restXmlStreamingLoggingConfig = (input, context) => {
|
|
11129
11220
|
const bodyNode = new xml_builder_1.XmlNode("StreamingLoggingConfig");
|
|
11130
|
-
if (input.Enabled
|
|
11221
|
+
if (input.Enabled != null) {
|
|
11131
11222
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
11132
11223
|
bodyNode.addChildNode(node);
|
|
11133
11224
|
}
|
|
11134
|
-
if (input.Bucket
|
|
11225
|
+
if (input.Bucket != null) {
|
|
11135
11226
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
|
|
11136
11227
|
bodyNode.addChildNode(node);
|
|
11137
11228
|
}
|
|
11138
|
-
if (input.Prefix
|
|
11229
|
+
if (input.Prefix != null) {
|
|
11139
11230
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
|
|
11140
11231
|
bodyNode.addChildNode(node);
|
|
11141
11232
|
}
|
|
@@ -11143,11 +11234,11 @@ const serializeAws_restXmlStreamingLoggingConfig = (input, context) => {
|
|
|
11143
11234
|
};
|
|
11144
11235
|
const serializeAws_restXmlTag = (input, context) => {
|
|
11145
11236
|
const bodyNode = new xml_builder_1.XmlNode("Tag");
|
|
11146
|
-
if (input.Key
|
|
11237
|
+
if (input.Key != null) {
|
|
11147
11238
|
const node = new xml_builder_1.XmlNode("TagKey").addChildNode(new xml_builder_1.XmlText(input.Key)).withName("Key");
|
|
11148
11239
|
bodyNode.addChildNode(node);
|
|
11149
11240
|
}
|
|
11150
|
-
if (input.Value
|
|
11241
|
+
if (input.Value != null) {
|
|
11151
11242
|
const node = new xml_builder_1.XmlNode("TagValue").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
|
|
11152
11243
|
bodyNode.addChildNode(node);
|
|
11153
11244
|
}
|
|
@@ -11166,7 +11257,7 @@ const serializeAws_restXmlTagKeyList = (input, context) => {
|
|
|
11166
11257
|
};
|
|
11167
11258
|
const serializeAws_restXmlTagKeys = (input, context) => {
|
|
11168
11259
|
const bodyNode = new xml_builder_1.XmlNode("TagKeys");
|
|
11169
|
-
if (input.Items
|
|
11260
|
+
if (input.Items != null) {
|
|
11170
11261
|
const nodes = serializeAws_restXmlTagKeyList(input.Items, context);
|
|
11171
11262
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11172
11263
|
nodes.map((node) => {
|
|
@@ -11189,7 +11280,7 @@ const serializeAws_restXmlTagList = (input, context) => {
|
|
|
11189
11280
|
};
|
|
11190
11281
|
const serializeAws_restXmlTags = (input, context) => {
|
|
11191
11282
|
const bodyNode = new xml_builder_1.XmlNode("Tags");
|
|
11192
|
-
if (input.Items
|
|
11283
|
+
if (input.Items != null) {
|
|
11193
11284
|
const nodes = serializeAws_restXmlTagList(input.Items, context);
|
|
11194
11285
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11195
11286
|
nodes.map((node) => {
|
|
@@ -11212,15 +11303,15 @@ const serializeAws_restXmlTrustedKeyGroupIdList = (input, context) => {
|
|
|
11212
11303
|
};
|
|
11213
11304
|
const serializeAws_restXmlTrustedKeyGroups = (input, context) => {
|
|
11214
11305
|
const bodyNode = new xml_builder_1.XmlNode("TrustedKeyGroups");
|
|
11215
|
-
if (input.Enabled
|
|
11306
|
+
if (input.Enabled != null) {
|
|
11216
11307
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
11217
11308
|
bodyNode.addChildNode(node);
|
|
11218
11309
|
}
|
|
11219
|
-
if (input.Quantity
|
|
11310
|
+
if (input.Quantity != null) {
|
|
11220
11311
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
11221
11312
|
bodyNode.addChildNode(node);
|
|
11222
11313
|
}
|
|
11223
|
-
if (input.Items
|
|
11314
|
+
if (input.Items != null) {
|
|
11224
11315
|
const nodes = serializeAws_restXmlTrustedKeyGroupIdList(input.Items, context);
|
|
11225
11316
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11226
11317
|
nodes.map((node) => {
|
|
@@ -11232,15 +11323,15 @@ const serializeAws_restXmlTrustedKeyGroups = (input, context) => {
|
|
|
11232
11323
|
};
|
|
11233
11324
|
const serializeAws_restXmlTrustedSigners = (input, context) => {
|
|
11234
11325
|
const bodyNode = new xml_builder_1.XmlNode("TrustedSigners");
|
|
11235
|
-
if (input.Enabled
|
|
11326
|
+
if (input.Enabled != null) {
|
|
11236
11327
|
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
|
|
11237
11328
|
bodyNode.addChildNode(node);
|
|
11238
11329
|
}
|
|
11239
|
-
if (input.Quantity
|
|
11330
|
+
if (input.Quantity != null) {
|
|
11240
11331
|
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
11241
11332
|
bodyNode.addChildNode(node);
|
|
11242
11333
|
}
|
|
11243
|
-
if (input.Items
|
|
11334
|
+
if (input.Items != null) {
|
|
11244
11335
|
const nodes = serializeAws_restXmlAwsAccountNumberList(input.Items, context);
|
|
11245
11336
|
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11246
11337
|
nodes.map((node) => {
|
|
@@ -11252,41 +11343,41 @@ const serializeAws_restXmlTrustedSigners = (input, context) => {
|
|
|
11252
11343
|
};
|
|
11253
11344
|
const serializeAws_restXmlViewerCertificate = (input, context) => {
|
|
11254
11345
|
const bodyNode = new xml_builder_1.XmlNode("ViewerCertificate");
|
|
11255
|
-
if (input.CloudFrontDefaultCertificate
|
|
11346
|
+
if (input.CloudFrontDefaultCertificate != null) {
|
|
11256
11347
|
const node = new xml_builder_1.XmlNode("boolean")
|
|
11257
11348
|
.addChildNode(new xml_builder_1.XmlText(String(input.CloudFrontDefaultCertificate)))
|
|
11258
11349
|
.withName("CloudFrontDefaultCertificate");
|
|
11259
11350
|
bodyNode.addChildNode(node);
|
|
11260
11351
|
}
|
|
11261
|
-
if (input.IAMCertificateId
|
|
11352
|
+
if (input.IAMCertificateId != null) {
|
|
11262
11353
|
const node = new xml_builder_1.XmlNode("string")
|
|
11263
11354
|
.addChildNode(new xml_builder_1.XmlText(input.IAMCertificateId))
|
|
11264
11355
|
.withName("IAMCertificateId");
|
|
11265
11356
|
bodyNode.addChildNode(node);
|
|
11266
11357
|
}
|
|
11267
|
-
if (input.ACMCertificateArn
|
|
11358
|
+
if (input.ACMCertificateArn != null) {
|
|
11268
11359
|
const node = new xml_builder_1.XmlNode("string")
|
|
11269
11360
|
.addChildNode(new xml_builder_1.XmlText(input.ACMCertificateArn))
|
|
11270
11361
|
.withName("ACMCertificateArn");
|
|
11271
11362
|
bodyNode.addChildNode(node);
|
|
11272
11363
|
}
|
|
11273
|
-
if (input.SSLSupportMethod
|
|
11364
|
+
if (input.SSLSupportMethod != null) {
|
|
11274
11365
|
const node = new xml_builder_1.XmlNode("SSLSupportMethod")
|
|
11275
11366
|
.addChildNode(new xml_builder_1.XmlText(input.SSLSupportMethod))
|
|
11276
11367
|
.withName("SSLSupportMethod");
|
|
11277
11368
|
bodyNode.addChildNode(node);
|
|
11278
11369
|
}
|
|
11279
|
-
if (input.MinimumProtocolVersion
|
|
11370
|
+
if (input.MinimumProtocolVersion != null) {
|
|
11280
11371
|
const node = new xml_builder_1.XmlNode("MinimumProtocolVersion")
|
|
11281
11372
|
.addChildNode(new xml_builder_1.XmlText(input.MinimumProtocolVersion))
|
|
11282
11373
|
.withName("MinimumProtocolVersion");
|
|
11283
11374
|
bodyNode.addChildNode(node);
|
|
11284
11375
|
}
|
|
11285
|
-
if (input.Certificate
|
|
11376
|
+
if (input.Certificate != null) {
|
|
11286
11377
|
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Certificate)).withName("Certificate");
|
|
11287
11378
|
bodyNode.addChildNode(node);
|
|
11288
11379
|
}
|
|
11289
|
-
if (input.CertificateSource
|
|
11380
|
+
if (input.CertificateSource != null) {
|
|
11290
11381
|
const node = new xml_builder_1.XmlNode("CertificateSource")
|
|
11291
11382
|
.addChildNode(new xml_builder_1.XmlText(input.CertificateSource))
|
|
11292
11383
|
.withName("CertificateSource");
|
|
@@ -14737,5 +14828,4 @@ const loadRestXmlErrorCode = (output, data) => {
|
|
|
14737
14828
|
if (output.statusCode == 404) {
|
|
14738
14829
|
return "NotFound";
|
|
14739
14830
|
}
|
|
14740
|
-
return "";
|
|
14741
14831
|
};
|