@aws-sdk/client-cloudfront 3.38.0 → 3.42.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 +39 -0
- package/dist-cjs/CloudFront.js +105 -0
- package/dist-cjs/commands/CreateResponseHeadersPolicyCommand.js +36 -0
- package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js +2 -1
- package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeletePublicKeyCommand.js +2 -2
- package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js +2 -2
- package/dist-cjs/commands/DeleteResponseHeadersPolicyCommand.js +36 -0
- package/dist-cjs/commands/DeleteStreamingDistributionCommand.js +2 -2
- package/dist-cjs/commands/DescribeFunctionCommand.js +3 -3
- package/dist-cjs/commands/GetCachePolicyCommand.js +3 -3
- package/dist-cjs/commands/GetCachePolicyConfigCommand.js +3 -3
- package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js +3 -3
- package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +3 -3
- package/dist-cjs/commands/GetDistributionCommand.js +3 -3
- package/dist-cjs/commands/GetDistributionConfigCommand.js +3 -3
- package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js +3 -3
- package/dist-cjs/commands/GetResponseHeadersPolicyCommand.js +36 -0
- package/dist-cjs/commands/GetResponseHeadersPolicyConfigCommand.js +36 -0
- package/dist-cjs/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +36 -0
- package/dist-cjs/commands/ListResponseHeadersPoliciesCommand.js +36 -0
- package/dist-cjs/commands/UpdateResponseHeadersPolicyCommand.js +36 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoints.js +91 -5
- package/dist-cjs/models/models_0.js +174 -166
- package/dist-cjs/models/models_1.js +257 -3
- package/dist-cjs/protocols/Aws_restXml.js +1725 -120
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/CloudFront.js +105 -0
- package/dist-es/commands/CreateResponseHeadersPolicyCommand.js +39 -0
- package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js +2 -1
- package/dist-es/commands/DeleteOriginRequestPolicyCommand.js +1 -1
- package/dist-es/commands/DeletePublicKeyCommand.js +1 -1
- package/dist-es/commands/DeleteRealtimeLogConfigCommand.js +1 -1
- package/dist-es/commands/DeleteResponseHeadersPolicyCommand.js +39 -0
- package/dist-es/commands/DeleteStreamingDistributionCommand.js +1 -1
- package/dist-es/commands/DescribeFunctionCommand.js +1 -1
- package/dist-es/commands/GetCachePolicyCommand.js +1 -1
- package/dist-es/commands/GetCachePolicyConfigCommand.js +1 -1
- package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js +1 -1
- package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +1 -1
- package/dist-es/commands/GetDistributionCommand.js +1 -1
- package/dist-es/commands/GetDistributionConfigCommand.js +1 -1
- package/dist-es/commands/GetFieldLevelEncryptionCommand.js +1 -1
- package/dist-es/commands/GetResponseHeadersPolicyCommand.js +39 -0
- package/dist-es/commands/GetResponseHeadersPolicyConfigCommand.js +39 -0
- package/dist-es/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +39 -0
- package/dist-es/commands/ListResponseHeadersPoliciesCommand.js +39 -0
- package/dist-es/commands/UpdateResponseHeadersPolicyCommand.js +39 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoints.js +91 -5
- package/dist-es/models/models_0.js +122 -109
- package/dist-es/models/models_1.js +169 -2
- package/dist-es/protocols/Aws_restXml.js +2398 -664
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/CloudFront.d.ts +109 -3
- package/dist-types/CloudFrontClient.d.ts +17 -2
- package/dist-types/commands/AssociateAliasCommand.d.ts +1 -1
- package/dist-types/commands/CreateCachePolicyCommand.d.ts +1 -1
- package/dist-types/commands/CreateCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
- package/dist-types/commands/CreateDistributionCommand.d.ts +1 -1
- package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +1 -1
- package/dist-types/commands/CreateFieldLevelEncryptionConfigCommand.d.ts +1 -1
- package/dist-types/commands/CreateFieldLevelEncryptionProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateFunctionCommand.d.ts +1 -1
- package/dist-types/commands/CreateInvalidationCommand.d.ts +1 -1
- package/dist-types/commands/CreateKeyGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateMonitoringSubscriptionCommand.d.ts +1 -1
- package/dist-types/commands/CreateOriginRequestPolicyCommand.d.ts +1 -1
- package/dist-types/commands/CreatePublicKeyCommand.d.ts +1 -1
- package/dist-types/commands/CreateRealtimeLogConfigCommand.d.ts +1 -1
- package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +42 -0
- package/dist-types/commands/CreateStreamingDistributionCommand.d.ts +1 -1
- package/dist-types/commands/CreateStreamingDistributionWithTagsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCachePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDistributionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKeyGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMonitoringSubscriptionCommand.d.ts +3 -2
- package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +2 -2
- package/dist-types/commands/DeletePublicKeyCommand.d.ts +2 -2
- package/dist-types/commands/DeleteRealtimeLogConfigCommand.d.ts +2 -2
- package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +41 -0
- package/dist-types/commands/DeleteStreamingDistributionCommand.d.ts +2 -2
- package/dist-types/commands/DescribeFunctionCommand.d.ts +2 -2
- package/dist-types/commands/GetCachePolicyCommand.d.ts +2 -2
- package/dist-types/commands/GetCachePolicyConfigCommand.d.ts +2 -2
- package/dist-types/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +2 -2
- package/dist-types/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +2 -2
- package/dist-types/commands/GetDistributionCommand.d.ts +2 -2
- package/dist-types/commands/GetDistributionConfigCommand.d.ts +2 -2
- package/dist-types/commands/GetFieldLevelEncryptionCommand.d.ts +2 -2
- package/dist-types/commands/GetFieldLevelEncryptionConfigCommand.d.ts +1 -1
- package/dist-types/commands/GetFieldLevelEncryptionProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetFieldLevelEncryptionProfileConfigCommand.d.ts +1 -1
- package/dist-types/commands/GetFunctionCommand.d.ts +1 -1
- package/dist-types/commands/GetInvalidationCommand.d.ts +1 -1
- package/dist-types/commands/GetKeyGroupCommand.d.ts +1 -1
- package/dist-types/commands/GetKeyGroupConfigCommand.d.ts +1 -1
- package/dist-types/commands/GetMonitoringSubscriptionCommand.d.ts +1 -1
- package/dist-types/commands/GetOriginRequestPolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetOriginRequestPolicyConfigCommand.d.ts +1 -1
- package/dist-types/commands/GetPublicKeyCommand.d.ts +1 -1
- package/dist-types/commands/GetPublicKeyConfigCommand.d.ts +1 -1
- package/dist-types/commands/GetRealtimeLogConfigCommand.d.ts +1 -1
- package/dist-types/commands/GetResponseHeadersPolicyCommand.d.ts +42 -0
- package/dist-types/commands/GetResponseHeadersPolicyConfigCommand.d.ts +41 -0
- package/dist-types/commands/GetStreamingDistributionCommand.d.ts +1 -1
- package/dist-types/commands/GetStreamingDistributionConfigCommand.d.ts +1 -1
- package/dist-types/commands/ListCachePoliciesCommand.d.ts +2 -2
- package/dist-types/commands/ListCloudFrontOriginAccessIdentitiesCommand.d.ts +1 -1
- package/dist-types/commands/ListConflictingAliasesCommand.d.ts +1 -1
- package/dist-types/commands/ListDistributionsByCachePolicyIdCommand.d.ts +1 -1
- package/dist-types/commands/ListDistributionsByKeyGroupCommand.d.ts +1 -1
- package/dist-types/commands/ListDistributionsByOriginRequestPolicyIdCommand.d.ts +1 -1
- package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +1 -1
- package/dist-types/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +41 -0
- package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +1 -1
- package/dist-types/commands/ListDistributionsCommand.d.ts +1 -1
- package/dist-types/commands/ListFieldLevelEncryptionConfigsCommand.d.ts +1 -1
- package/dist-types/commands/ListFieldLevelEncryptionProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListFunctionsCommand.d.ts +2 -2
- package/dist-types/commands/ListInvalidationsCommand.d.ts +1 -1
- package/dist-types/commands/ListKeyGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListOriginRequestPoliciesCommand.d.ts +2 -2
- package/dist-types/commands/ListPublicKeysCommand.d.ts +1 -1
- package/dist-types/commands/ListRealtimeLogConfigsCommand.d.ts +1 -1
- package/dist-types/commands/ListResponseHeadersPoliciesCommand.d.ts +42 -0
- package/dist-types/commands/ListStreamingDistributionsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PublishFunctionCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/TestFunctionCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCachePolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDistributionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFieldLevelEncryptionConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFieldLevelEncryptionProfileCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFunctionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateKeyGroupCommand.d.ts +1 -1
- package/dist-types/commands/UpdateOriginRequestPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePublicKeyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRealtimeLogConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateResponseHeadersPolicyCommand.d.ts +53 -0
- package/dist-types/commands/UpdateStreamingDistributionCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +990 -676
- package/dist-types/models/models_1.d.ts +746 -51
- package/dist-types/protocols/Aws_restXml.d.ts +21 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/CloudFront.d.ts +35 -0
- package/dist-types/ts3.4/CloudFrontClient.d.ts +13 -2
- package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeletePublicKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteRealtimeLogConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteResponseHeadersPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteStreamingDistributionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeFunctionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCachePolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCachePolicyConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetDistributionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetDistributionConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetFieldLevelEncryptionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetResponseHeadersPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetResponseHeadersPolicyConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListResponseHeadersPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateResponseHeadersPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -0
- package/dist-types/ts3.4/models/models_1.d.ts +418 -19
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +21 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +26 -26
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.deserializeAws_restXmlUpdateStreamingDistributionCommand = exports.deserializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.deserializeAws_restXmlUpdatePublicKeyCommand = exports.deserializeAws_restXmlUpdateOriginRequestPolicyCommand = exports.deserializeAws_restXmlUpdateKeyGroupCommand = exports.deserializeAws_restXmlUpdateFunctionCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlUpdateDistributionCommand = exports.deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlUpdateCachePolicyCommand = exports.deserializeAws_restXmlUntagResourceCommand = exports.deserializeAws_restXmlTestFunctionCommand = exports.deserializeAws_restXmlTagResourceCommand = exports.deserializeAws_restXmlPublishFunctionCommand = exports.deserializeAws_restXmlListTagsForResourceCommand = exports.deserializeAws_restXmlListStreamingDistributionsCommand = exports.deserializeAws_restXmlListRealtimeLogConfigsCommand = exports.deserializeAws_restXmlListPublicKeysCommand = exports.deserializeAws_restXmlListOriginRequestPoliciesCommand = void 0;
|
|
3
|
+
exports.serializeAws_restXmlGetPublicKeyConfigCommand = exports.serializeAws_restXmlGetPublicKeyCommand = exports.serializeAws_restXmlGetOriginRequestPolicyConfigCommand = exports.serializeAws_restXmlGetOriginRequestPolicyCommand = exports.serializeAws_restXmlGetMonitoringSubscriptionCommand = exports.serializeAws_restXmlGetKeyGroupConfigCommand = exports.serializeAws_restXmlGetKeyGroupCommand = exports.serializeAws_restXmlGetInvalidationCommand = exports.serializeAws_restXmlGetFunctionCommand = exports.serializeAws_restXmlGetFieldLevelEncryptionProfileConfigCommand = exports.serializeAws_restXmlGetFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlGetFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlGetFieldLevelEncryptionCommand = exports.serializeAws_restXmlGetDistributionConfigCommand = exports.serializeAws_restXmlGetDistributionCommand = exports.serializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = exports.serializeAws_restXmlGetCloudFrontOriginAccessIdentityCommand = exports.serializeAws_restXmlGetCachePolicyConfigCommand = exports.serializeAws_restXmlGetCachePolicyCommand = exports.serializeAws_restXmlDescribeFunctionCommand = exports.serializeAws_restXmlDeleteStreamingDistributionCommand = exports.serializeAws_restXmlDeleteResponseHeadersPolicyCommand = exports.serializeAws_restXmlDeleteRealtimeLogConfigCommand = exports.serializeAws_restXmlDeletePublicKeyCommand = exports.serializeAws_restXmlDeleteOriginRequestPolicyCommand = exports.serializeAws_restXmlDeleteMonitoringSubscriptionCommand = exports.serializeAws_restXmlDeleteKeyGroupCommand = exports.serializeAws_restXmlDeleteFunctionCommand = exports.serializeAws_restXmlDeleteFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlDeleteFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlDeleteDistributionCommand = exports.serializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand = exports.serializeAws_restXmlDeleteCachePolicyCommand = exports.serializeAws_restXmlCreateStreamingDistributionWithTagsCommand = exports.serializeAws_restXmlCreateStreamingDistributionCommand = exports.serializeAws_restXmlCreateResponseHeadersPolicyCommand = exports.serializeAws_restXmlCreateRealtimeLogConfigCommand = exports.serializeAws_restXmlCreatePublicKeyCommand = exports.serializeAws_restXmlCreateOriginRequestPolicyCommand = exports.serializeAws_restXmlCreateMonitoringSubscriptionCommand = exports.serializeAws_restXmlCreateKeyGroupCommand = exports.serializeAws_restXmlCreateInvalidationCommand = exports.serializeAws_restXmlCreateFunctionCommand = exports.serializeAws_restXmlCreateFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlCreateFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlCreateDistributionWithTagsCommand = exports.serializeAws_restXmlCreateDistributionCommand = exports.serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = exports.serializeAws_restXmlCreateCachePolicyCommand = exports.serializeAws_restXmlAssociateAliasCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restXmlCreateFunctionCommand = exports.deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlCreateDistributionWithTagsCommand = exports.deserializeAws_restXmlCreateDistributionCommand = exports.deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlCreateCachePolicyCommand = exports.deserializeAws_restXmlAssociateAliasCommand = exports.serializeAws_restXmlUpdateStreamingDistributionCommand = exports.serializeAws_restXmlUpdateResponseHeadersPolicyCommand = exports.serializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.serializeAws_restXmlUpdatePublicKeyCommand = exports.serializeAws_restXmlUpdateOriginRequestPolicyCommand = exports.serializeAws_restXmlUpdateKeyGroupCommand = exports.serializeAws_restXmlUpdateFunctionCommand = exports.serializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlUpdateDistributionCommand = exports.serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = exports.serializeAws_restXmlUpdateCachePolicyCommand = exports.serializeAws_restXmlUntagResourceCommand = exports.serializeAws_restXmlTestFunctionCommand = exports.serializeAws_restXmlTagResourceCommand = exports.serializeAws_restXmlPublishFunctionCommand = exports.serializeAws_restXmlListTagsForResourceCommand = exports.serializeAws_restXmlListStreamingDistributionsCommand = exports.serializeAws_restXmlListResponseHeadersPoliciesCommand = exports.serializeAws_restXmlListRealtimeLogConfigsCommand = exports.serializeAws_restXmlListPublicKeysCommand = exports.serializeAws_restXmlListOriginRequestPoliciesCommand = exports.serializeAws_restXmlListKeyGroupsCommand = exports.serializeAws_restXmlListInvalidationsCommand = exports.serializeAws_restXmlListFunctionsCommand = exports.serializeAws_restXmlListFieldLevelEncryptionProfilesCommand = exports.serializeAws_restXmlListFieldLevelEncryptionConfigsCommand = exports.serializeAws_restXmlListDistributionsByWebACLIdCommand = exports.serializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand = exports.serializeAws_restXmlListDistributionsByRealtimeLogConfigCommand = exports.serializeAws_restXmlListDistributionsByOriginRequestPolicyIdCommand = exports.serializeAws_restXmlListDistributionsByKeyGroupCommand = exports.serializeAws_restXmlListDistributionsByCachePolicyIdCommand = exports.serializeAws_restXmlListDistributionsCommand = exports.serializeAws_restXmlListConflictingAliasesCommand = exports.serializeAws_restXmlListCloudFrontOriginAccessIdentitiesCommand = exports.serializeAws_restXmlListCachePoliciesCommand = exports.serializeAws_restXmlGetStreamingDistributionConfigCommand = exports.serializeAws_restXmlGetStreamingDistributionCommand = exports.serializeAws_restXmlGetResponseHeadersPolicyConfigCommand = exports.serializeAws_restXmlGetResponseHeadersPolicyCommand = exports.serializeAws_restXmlGetRealtimeLogConfigCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restXmlListConflictingAliasesCommand = exports.deserializeAws_restXmlListCloudFrontOriginAccessIdentitiesCommand = exports.deserializeAws_restXmlListCachePoliciesCommand = exports.deserializeAws_restXmlGetStreamingDistributionConfigCommand = exports.deserializeAws_restXmlGetStreamingDistributionCommand = exports.deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand = exports.deserializeAws_restXmlGetResponseHeadersPolicyCommand = exports.deserializeAws_restXmlGetRealtimeLogConfigCommand = exports.deserializeAws_restXmlGetPublicKeyConfigCommand = exports.deserializeAws_restXmlGetPublicKeyCommand = exports.deserializeAws_restXmlGetOriginRequestPolicyConfigCommand = exports.deserializeAws_restXmlGetOriginRequestPolicyCommand = exports.deserializeAws_restXmlGetMonitoringSubscriptionCommand = exports.deserializeAws_restXmlGetKeyGroupConfigCommand = exports.deserializeAws_restXmlGetKeyGroupCommand = exports.deserializeAws_restXmlGetInvalidationCommand = exports.deserializeAws_restXmlGetFunctionCommand = exports.deserializeAws_restXmlGetFieldLevelEncryptionProfileConfigCommand = exports.deserializeAws_restXmlGetFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlGetFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlGetFieldLevelEncryptionCommand = exports.deserializeAws_restXmlGetDistributionConfigCommand = exports.deserializeAws_restXmlGetDistributionCommand = exports.deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = exports.deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlGetCachePolicyConfigCommand = exports.deserializeAws_restXmlGetCachePolicyCommand = exports.deserializeAws_restXmlDescribeFunctionCommand = exports.deserializeAws_restXmlDeleteStreamingDistributionCommand = exports.deserializeAws_restXmlDeleteResponseHeadersPolicyCommand = exports.deserializeAws_restXmlDeleteRealtimeLogConfigCommand = exports.deserializeAws_restXmlDeletePublicKeyCommand = exports.deserializeAws_restXmlDeleteOriginRequestPolicyCommand = exports.deserializeAws_restXmlDeleteMonitoringSubscriptionCommand = exports.deserializeAws_restXmlDeleteKeyGroupCommand = exports.deserializeAws_restXmlDeleteFunctionCommand = exports.deserializeAws_restXmlDeleteFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlDeleteFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlDeleteDistributionCommand = exports.deserializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlDeleteCachePolicyCommand = exports.deserializeAws_restXmlCreateStreamingDistributionWithTagsCommand = exports.deserializeAws_restXmlCreateStreamingDistributionCommand = exports.deserializeAws_restXmlCreateResponseHeadersPolicyCommand = exports.deserializeAws_restXmlCreateRealtimeLogConfigCommand = exports.deserializeAws_restXmlCreatePublicKeyCommand = exports.deserializeAws_restXmlCreateOriginRequestPolicyCommand = exports.deserializeAws_restXmlCreateMonitoringSubscriptionCommand = exports.deserializeAws_restXmlCreateKeyGroupCommand = exports.deserializeAws_restXmlCreateInvalidationCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restXmlUpdateStreamingDistributionCommand = exports.deserializeAws_restXmlUpdateResponseHeadersPolicyCommand = exports.deserializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.deserializeAws_restXmlUpdatePublicKeyCommand = exports.deserializeAws_restXmlUpdateOriginRequestPolicyCommand = exports.deserializeAws_restXmlUpdateKeyGroupCommand = exports.deserializeAws_restXmlUpdateFunctionCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlUpdateDistributionCommand = exports.deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlUpdateCachePolicyCommand = exports.deserializeAws_restXmlUntagResourceCommand = exports.deserializeAws_restXmlTestFunctionCommand = exports.deserializeAws_restXmlTagResourceCommand = exports.deserializeAws_restXmlPublishFunctionCommand = exports.deserializeAws_restXmlListTagsForResourceCommand = exports.deserializeAws_restXmlListStreamingDistributionsCommand = exports.deserializeAws_restXmlListResponseHeadersPoliciesCommand = exports.deserializeAws_restXmlListRealtimeLogConfigsCommand = exports.deserializeAws_restXmlListPublicKeysCommand = exports.deserializeAws_restXmlListOriginRequestPoliciesCommand = exports.deserializeAws_restXmlListKeyGroupsCommand = exports.deserializeAws_restXmlListInvalidationsCommand = exports.deserializeAws_restXmlListFunctionsCommand = exports.deserializeAws_restXmlListFieldLevelEncryptionProfilesCommand = exports.deserializeAws_restXmlListFieldLevelEncryptionConfigsCommand = exports.deserializeAws_restXmlListDistributionsByWebACLIdCommand = exports.deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand = exports.deserializeAws_restXmlListDistributionsByRealtimeLogConfigCommand = exports.deserializeAws_restXmlListDistributionsByOriginRequestPolicyIdCommand = exports.deserializeAws_restXmlListDistributionsByKeyGroupCommand = exports.deserializeAws_restXmlListDistributionsByCachePolicyIdCommand = exports.deserializeAws_restXmlListDistributionsCommand = void 0;
|
|
7
7
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const xml_builder_1 = require("@aws-sdk/xml-builder");
|
|
@@ -458,6 +458,34 @@ const serializeAws_restXmlCreateRealtimeLogConfigCommand = async (input, context
|
|
|
458
458
|
});
|
|
459
459
|
};
|
|
460
460
|
exports.serializeAws_restXmlCreateRealtimeLogConfigCommand = serializeAws_restXmlCreateRealtimeLogConfigCommand;
|
|
461
|
+
const serializeAws_restXmlCreateResponseHeadersPolicyCommand = async (input, context) => {
|
|
462
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
463
|
+
const headers = {
|
|
464
|
+
"content-type": "application/xml",
|
|
465
|
+
};
|
|
466
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy";
|
|
467
|
+
let body;
|
|
468
|
+
if (input.ResponseHeadersPolicyConfig !== undefined) {
|
|
469
|
+
body = serializeAws_restXmlResponseHeadersPolicyConfig(input.ResponseHeadersPolicyConfig, context);
|
|
470
|
+
}
|
|
471
|
+
let contents;
|
|
472
|
+
if (input.ResponseHeadersPolicyConfig !== undefined) {
|
|
473
|
+
contents = serializeAws_restXmlResponseHeadersPolicyConfig(input.ResponseHeadersPolicyConfig, context);
|
|
474
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
475
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
476
|
+
body += contents.toString();
|
|
477
|
+
}
|
|
478
|
+
return new protocol_http_1.HttpRequest({
|
|
479
|
+
protocol,
|
|
480
|
+
hostname,
|
|
481
|
+
port,
|
|
482
|
+
method: "POST",
|
|
483
|
+
headers,
|
|
484
|
+
path: resolvedPath,
|
|
485
|
+
body,
|
|
486
|
+
});
|
|
487
|
+
};
|
|
488
|
+
exports.serializeAws_restXmlCreateResponseHeadersPolicyCommand = serializeAws_restXmlCreateResponseHeadersPolicyCommand;
|
|
461
489
|
const serializeAws_restXmlCreateStreamingDistributionCommand = async (input, context) => {
|
|
462
490
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
463
491
|
const headers = {
|
|
@@ -829,6 +857,34 @@ const serializeAws_restXmlDeleteRealtimeLogConfigCommand = async (input, context
|
|
|
829
857
|
});
|
|
830
858
|
};
|
|
831
859
|
exports.serializeAws_restXmlDeleteRealtimeLogConfigCommand = serializeAws_restXmlDeleteRealtimeLogConfigCommand;
|
|
860
|
+
const serializeAws_restXmlDeleteResponseHeadersPolicyCommand = async (input, context) => {
|
|
861
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
862
|
+
const headers = {
|
|
863
|
+
...(isSerializableHeaderValue(input.IfMatch) && { "if-match": input.IfMatch }),
|
|
864
|
+
};
|
|
865
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy/{Id}";
|
|
866
|
+
if (input.Id !== undefined) {
|
|
867
|
+
const labelValue = input.Id;
|
|
868
|
+
if (labelValue.length <= 0) {
|
|
869
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
870
|
+
}
|
|
871
|
+
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
872
|
+
}
|
|
873
|
+
else {
|
|
874
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
875
|
+
}
|
|
876
|
+
let body;
|
|
877
|
+
return new protocol_http_1.HttpRequest({
|
|
878
|
+
protocol,
|
|
879
|
+
hostname,
|
|
880
|
+
port,
|
|
881
|
+
method: "DELETE",
|
|
882
|
+
headers,
|
|
883
|
+
path: resolvedPath,
|
|
884
|
+
body,
|
|
885
|
+
});
|
|
886
|
+
};
|
|
887
|
+
exports.serializeAws_restXmlDeleteResponseHeadersPolicyCommand = serializeAws_restXmlDeleteResponseHeadersPolicyCommand;
|
|
832
888
|
const serializeAws_restXmlDeleteStreamingDistributionCommand = async (input, context) => {
|
|
833
889
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
834
890
|
const headers = {
|
|
@@ -1433,6 +1489,59 @@ const serializeAws_restXmlGetRealtimeLogConfigCommand = async (input, context) =
|
|
|
1433
1489
|
});
|
|
1434
1490
|
};
|
|
1435
1491
|
exports.serializeAws_restXmlGetRealtimeLogConfigCommand = serializeAws_restXmlGetRealtimeLogConfigCommand;
|
|
1492
|
+
const serializeAws_restXmlGetResponseHeadersPolicyCommand = async (input, context) => {
|
|
1493
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1494
|
+
const headers = {};
|
|
1495
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy/{Id}";
|
|
1496
|
+
if (input.Id !== undefined) {
|
|
1497
|
+
const labelValue = input.Id;
|
|
1498
|
+
if (labelValue.length <= 0) {
|
|
1499
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
1500
|
+
}
|
|
1501
|
+
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1502
|
+
}
|
|
1503
|
+
else {
|
|
1504
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
1505
|
+
}
|
|
1506
|
+
let body;
|
|
1507
|
+
return new protocol_http_1.HttpRequest({
|
|
1508
|
+
protocol,
|
|
1509
|
+
hostname,
|
|
1510
|
+
port,
|
|
1511
|
+
method: "GET",
|
|
1512
|
+
headers,
|
|
1513
|
+
path: resolvedPath,
|
|
1514
|
+
body,
|
|
1515
|
+
});
|
|
1516
|
+
};
|
|
1517
|
+
exports.serializeAws_restXmlGetResponseHeadersPolicyCommand = serializeAws_restXmlGetResponseHeadersPolicyCommand;
|
|
1518
|
+
const serializeAws_restXmlGetResponseHeadersPolicyConfigCommand = async (input, context) => {
|
|
1519
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1520
|
+
const headers = {};
|
|
1521
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1522
|
+
"/2020-05-31/response-headers-policy/{Id}/config";
|
|
1523
|
+
if (input.Id !== undefined) {
|
|
1524
|
+
const labelValue = input.Id;
|
|
1525
|
+
if (labelValue.length <= 0) {
|
|
1526
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
1527
|
+
}
|
|
1528
|
+
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1529
|
+
}
|
|
1530
|
+
else {
|
|
1531
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
1532
|
+
}
|
|
1533
|
+
let body;
|
|
1534
|
+
return new protocol_http_1.HttpRequest({
|
|
1535
|
+
protocol,
|
|
1536
|
+
hostname,
|
|
1537
|
+
port,
|
|
1538
|
+
method: "GET",
|
|
1539
|
+
headers,
|
|
1540
|
+
path: resolvedPath,
|
|
1541
|
+
body,
|
|
1542
|
+
});
|
|
1543
|
+
};
|
|
1544
|
+
exports.serializeAws_restXmlGetResponseHeadersPolicyConfigCommand = serializeAws_restXmlGetResponseHeadersPolicyConfigCommand;
|
|
1436
1545
|
const serializeAws_restXmlGetStreamingDistributionCommand = async (input, context) => {
|
|
1437
1546
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1438
1547
|
const headers = {};
|
|
@@ -1713,6 +1822,38 @@ const serializeAws_restXmlListDistributionsByRealtimeLogConfigCommand = async (i
|
|
|
1713
1822
|
});
|
|
1714
1823
|
};
|
|
1715
1824
|
exports.serializeAws_restXmlListDistributionsByRealtimeLogConfigCommand = serializeAws_restXmlListDistributionsByRealtimeLogConfigCommand;
|
|
1825
|
+
const serializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand = async (input, context) => {
|
|
1826
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1827
|
+
const headers = {};
|
|
1828
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1829
|
+
"/2020-05-31/distributionsByResponseHeadersPolicyId/{ResponseHeadersPolicyId}";
|
|
1830
|
+
if (input.ResponseHeadersPolicyId !== undefined) {
|
|
1831
|
+
const labelValue = input.ResponseHeadersPolicyId;
|
|
1832
|
+
if (labelValue.length <= 0) {
|
|
1833
|
+
throw new Error("Empty value provided for input HTTP label: ResponseHeadersPolicyId.");
|
|
1834
|
+
}
|
|
1835
|
+
resolvedPath = resolvedPath.replace("{ResponseHeadersPolicyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1836
|
+
}
|
|
1837
|
+
else {
|
|
1838
|
+
throw new Error("No value provided for input HTTP label: ResponseHeadersPolicyId.");
|
|
1839
|
+
}
|
|
1840
|
+
const query = {
|
|
1841
|
+
...(input.Marker !== undefined && { Marker: input.Marker }),
|
|
1842
|
+
...(input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() }),
|
|
1843
|
+
};
|
|
1844
|
+
let body;
|
|
1845
|
+
return new protocol_http_1.HttpRequest({
|
|
1846
|
+
protocol,
|
|
1847
|
+
hostname,
|
|
1848
|
+
port,
|
|
1849
|
+
method: "GET",
|
|
1850
|
+
headers,
|
|
1851
|
+
path: resolvedPath,
|
|
1852
|
+
query,
|
|
1853
|
+
body,
|
|
1854
|
+
});
|
|
1855
|
+
};
|
|
1856
|
+
exports.serializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand = serializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand;
|
|
1716
1857
|
const serializeAws_restXmlListDistributionsByWebACLIdCommand = async (input, context) => {
|
|
1717
1858
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1718
1859
|
const headers = {};
|
|
@@ -1927,6 +2068,28 @@ const serializeAws_restXmlListRealtimeLogConfigsCommand = async (input, context)
|
|
|
1927
2068
|
});
|
|
1928
2069
|
};
|
|
1929
2070
|
exports.serializeAws_restXmlListRealtimeLogConfigsCommand = serializeAws_restXmlListRealtimeLogConfigsCommand;
|
|
2071
|
+
const serializeAws_restXmlListResponseHeadersPoliciesCommand = async (input, context) => {
|
|
2072
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2073
|
+
const headers = {};
|
|
2074
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy";
|
|
2075
|
+
const query = {
|
|
2076
|
+
...(input.Type !== undefined && { Type: input.Type }),
|
|
2077
|
+
...(input.Marker !== undefined && { Marker: input.Marker }),
|
|
2078
|
+
...(input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() }),
|
|
2079
|
+
};
|
|
2080
|
+
let body;
|
|
2081
|
+
return new protocol_http_1.HttpRequest({
|
|
2082
|
+
protocol,
|
|
2083
|
+
hostname,
|
|
2084
|
+
port,
|
|
2085
|
+
method: "GET",
|
|
2086
|
+
headers,
|
|
2087
|
+
path: resolvedPath,
|
|
2088
|
+
query,
|
|
2089
|
+
body,
|
|
2090
|
+
});
|
|
2091
|
+
};
|
|
2092
|
+
exports.serializeAws_restXmlListResponseHeadersPoliciesCommand = serializeAws_restXmlListResponseHeadersPoliciesCommand;
|
|
1930
2093
|
const serializeAws_restXmlListStreamingDistributionsCommand = async (input, context) => {
|
|
1931
2094
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1932
2095
|
const headers = {};
|
|
@@ -2513,6 +2676,45 @@ const serializeAws_restXmlUpdateRealtimeLogConfigCommand = async (input, context
|
|
|
2513
2676
|
});
|
|
2514
2677
|
};
|
|
2515
2678
|
exports.serializeAws_restXmlUpdateRealtimeLogConfigCommand = serializeAws_restXmlUpdateRealtimeLogConfigCommand;
|
|
2679
|
+
const serializeAws_restXmlUpdateResponseHeadersPolicyCommand = async (input, context) => {
|
|
2680
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2681
|
+
const headers = {
|
|
2682
|
+
"content-type": "application/xml",
|
|
2683
|
+
...(isSerializableHeaderValue(input.IfMatch) && { "if-match": input.IfMatch }),
|
|
2684
|
+
};
|
|
2685
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy/{Id}";
|
|
2686
|
+
if (input.Id !== undefined) {
|
|
2687
|
+
const labelValue = input.Id;
|
|
2688
|
+
if (labelValue.length <= 0) {
|
|
2689
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
2690
|
+
}
|
|
2691
|
+
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2692
|
+
}
|
|
2693
|
+
else {
|
|
2694
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
2695
|
+
}
|
|
2696
|
+
let body;
|
|
2697
|
+
if (input.ResponseHeadersPolicyConfig !== undefined) {
|
|
2698
|
+
body = serializeAws_restXmlResponseHeadersPolicyConfig(input.ResponseHeadersPolicyConfig, context);
|
|
2699
|
+
}
|
|
2700
|
+
let contents;
|
|
2701
|
+
if (input.ResponseHeadersPolicyConfig !== undefined) {
|
|
2702
|
+
contents = serializeAws_restXmlResponseHeadersPolicyConfig(input.ResponseHeadersPolicyConfig, context);
|
|
2703
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2704
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
2705
|
+
body += contents.toString();
|
|
2706
|
+
}
|
|
2707
|
+
return new protocol_http_1.HttpRequest({
|
|
2708
|
+
protocol,
|
|
2709
|
+
hostname,
|
|
2710
|
+
port,
|
|
2711
|
+
method: "PUT",
|
|
2712
|
+
headers,
|
|
2713
|
+
path: resolvedPath,
|
|
2714
|
+
body,
|
|
2715
|
+
});
|
|
2716
|
+
};
|
|
2717
|
+
exports.serializeAws_restXmlUpdateResponseHeadersPolicyCommand = serializeAws_restXmlUpdateResponseHeadersPolicyCommand;
|
|
2516
2718
|
const serializeAws_restXmlUpdateStreamingDistributionCommand = async (input, context) => {
|
|
2517
2719
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2518
2720
|
const headers = {
|
|
@@ -3119,6 +3321,14 @@ const deserializeAws_restXmlCreateDistributionCommandError = async (output, cont
|
|
|
3119
3321
|
$metadata: deserializeMetadata(output),
|
|
3120
3322
|
};
|
|
3121
3323
|
break;
|
|
3324
|
+
case "NoSuchResponseHeadersPolicy":
|
|
3325
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
3326
|
+
response = {
|
|
3327
|
+
...(await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
3328
|
+
name: errorCode,
|
|
3329
|
+
$metadata: deserializeMetadata(output),
|
|
3330
|
+
};
|
|
3331
|
+
break;
|
|
3122
3332
|
case "RealtimeLogConfigOwnerMismatch":
|
|
3123
3333
|
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":
|
|
3124
3334
|
response = {
|
|
@@ -3199,6 +3409,14 @@ const deserializeAws_restXmlCreateDistributionCommandError = async (output, cont
|
|
|
3199
3409
|
$metadata: deserializeMetadata(output),
|
|
3200
3410
|
};
|
|
3201
3411
|
break;
|
|
3412
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy":
|
|
3413
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":
|
|
3414
|
+
response = {
|
|
3415
|
+
...(await deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
3416
|
+
name: errorCode,
|
|
3417
|
+
$metadata: deserializeMetadata(output),
|
|
3418
|
+
};
|
|
3419
|
+
break;
|
|
3202
3420
|
case "TooManyDistributionsWithFunctionAssociations":
|
|
3203
3421
|
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":
|
|
3204
3422
|
response = {
|
|
@@ -3629,6 +3847,14 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (outp
|
|
|
3629
3847
|
$metadata: deserializeMetadata(output),
|
|
3630
3848
|
};
|
|
3631
3849
|
break;
|
|
3850
|
+
case "NoSuchResponseHeadersPolicy":
|
|
3851
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
3852
|
+
response = {
|
|
3853
|
+
...(await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
3854
|
+
name: errorCode,
|
|
3855
|
+
$metadata: deserializeMetadata(output),
|
|
3856
|
+
};
|
|
3857
|
+
break;
|
|
3632
3858
|
case "RealtimeLogConfigOwnerMismatch":
|
|
3633
3859
|
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":
|
|
3634
3860
|
response = {
|
|
@@ -3709,6 +3935,14 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (outp
|
|
|
3709
3935
|
$metadata: deserializeMetadata(output),
|
|
3710
3936
|
};
|
|
3711
3937
|
break;
|
|
3938
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy":
|
|
3939
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":
|
|
3940
|
+
response = {
|
|
3941
|
+
...(await deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
3942
|
+
name: errorCode,
|
|
3943
|
+
$metadata: deserializeMetadata(output),
|
|
3944
|
+
};
|
|
3945
|
+
break;
|
|
3712
3946
|
case "TooManyDistributionsWithFunctionAssociations":
|
|
3713
3947
|
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":
|
|
3714
3948
|
response = {
|
|
@@ -4633,15 +4867,15 @@ const deserializeAws_restXmlCreateRealtimeLogConfigCommandError = async (output,
|
|
|
4633
4867
|
delete response.Message;
|
|
4634
4868
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
4635
4869
|
};
|
|
4636
|
-
const
|
|
4870
|
+
const deserializeAws_restXmlCreateResponseHeadersPolicyCommand = async (output, context) => {
|
|
4637
4871
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
4638
|
-
return
|
|
4872
|
+
return deserializeAws_restXmlCreateResponseHeadersPolicyCommandError(output, context);
|
|
4639
4873
|
}
|
|
4640
4874
|
const contents = {
|
|
4641
4875
|
$metadata: deserializeMetadata(output),
|
|
4642
4876
|
ETag: undefined,
|
|
4643
4877
|
Location: undefined,
|
|
4644
|
-
|
|
4878
|
+
ResponseHeadersPolicy: undefined,
|
|
4645
4879
|
};
|
|
4646
4880
|
if (output.headers["location"] !== undefined) {
|
|
4647
4881
|
contents.Location = output.headers["location"];
|
|
@@ -4650,11 +4884,11 @@ const deserializeAws_restXmlCreateStreamingDistributionCommand = async (output,
|
|
|
4650
4884
|
contents.ETag = output.headers["etag"];
|
|
4651
4885
|
}
|
|
4652
4886
|
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
4653
|
-
contents.
|
|
4887
|
+
contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(data, context);
|
|
4654
4888
|
return Promise.resolve(contents);
|
|
4655
4889
|
};
|
|
4656
|
-
exports.
|
|
4657
|
-
const
|
|
4890
|
+
exports.deserializeAws_restXmlCreateResponseHeadersPolicyCommand = deserializeAws_restXmlCreateResponseHeadersPolicyCommand;
|
|
4891
|
+
const deserializeAws_restXmlCreateResponseHeadersPolicyCommandError = async (output, context) => {
|
|
4658
4892
|
const parsedOutput = {
|
|
4659
4893
|
...output,
|
|
4660
4894
|
body: await parseBody(output.body, context),
|
|
@@ -4671,14 +4905,6 @@ const deserializeAws_restXmlCreateStreamingDistributionCommandError = async (out
|
|
|
4671
4905
|
$metadata: deserializeMetadata(output),
|
|
4672
4906
|
};
|
|
4673
4907
|
break;
|
|
4674
|
-
case "CNAMEAlreadyExists":
|
|
4675
|
-
case "com.amazonaws.cloudfront#CNAMEAlreadyExists":
|
|
4676
|
-
response = {
|
|
4677
|
-
...(await deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)),
|
|
4678
|
-
name: errorCode,
|
|
4679
|
-
$metadata: deserializeMetadata(output),
|
|
4680
|
-
};
|
|
4681
|
-
break;
|
|
4682
4908
|
case "InconsistentQuantities":
|
|
4683
4909
|
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
4684
4910
|
response = {
|
|
@@ -4695,66 +4921,26 @@ const deserializeAws_restXmlCreateStreamingDistributionCommandError = async (out
|
|
|
4695
4921
|
$metadata: deserializeMetadata(output),
|
|
4696
4922
|
};
|
|
4697
4923
|
break;
|
|
4698
|
-
case "
|
|
4699
|
-
case "com.amazonaws.cloudfront#
|
|
4700
|
-
response = {
|
|
4701
|
-
...(await deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context)),
|
|
4702
|
-
name: errorCode,
|
|
4703
|
-
$metadata: deserializeMetadata(output),
|
|
4704
|
-
};
|
|
4705
|
-
break;
|
|
4706
|
-
case "InvalidOriginAccessIdentity":
|
|
4707
|
-
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
4708
|
-
response = {
|
|
4709
|
-
...(await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)),
|
|
4710
|
-
name: errorCode,
|
|
4711
|
-
$metadata: deserializeMetadata(output),
|
|
4712
|
-
};
|
|
4713
|
-
break;
|
|
4714
|
-
case "MissingBody":
|
|
4715
|
-
case "com.amazonaws.cloudfront#MissingBody":
|
|
4716
|
-
response = {
|
|
4717
|
-
...(await deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)),
|
|
4718
|
-
name: errorCode,
|
|
4719
|
-
$metadata: deserializeMetadata(output),
|
|
4720
|
-
};
|
|
4721
|
-
break;
|
|
4722
|
-
case "StreamingDistributionAlreadyExists":
|
|
4723
|
-
case "com.amazonaws.cloudfront#StreamingDistributionAlreadyExists":
|
|
4724
|
-
response = {
|
|
4725
|
-
...(await deserializeAws_restXmlStreamingDistributionAlreadyExistsResponse(parsedOutput, context)),
|
|
4726
|
-
name: errorCode,
|
|
4727
|
-
$metadata: deserializeMetadata(output),
|
|
4728
|
-
};
|
|
4729
|
-
break;
|
|
4730
|
-
case "TooManyStreamingDistributionCNAMEs":
|
|
4731
|
-
case "com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs":
|
|
4732
|
-
response = {
|
|
4733
|
-
...(await deserializeAws_restXmlTooManyStreamingDistributionCNAMEsResponse(parsedOutput, context)),
|
|
4734
|
-
name: errorCode,
|
|
4735
|
-
$metadata: deserializeMetadata(output),
|
|
4736
|
-
};
|
|
4737
|
-
break;
|
|
4738
|
-
case "TooManyStreamingDistributions":
|
|
4739
|
-
case "com.amazonaws.cloudfront#TooManyStreamingDistributions":
|
|
4924
|
+
case "ResponseHeadersPolicyAlreadyExists":
|
|
4925
|
+
case "com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists":
|
|
4740
4926
|
response = {
|
|
4741
|
-
...(await
|
|
4927
|
+
...(await deserializeAws_restXmlResponseHeadersPolicyAlreadyExistsResponse(parsedOutput, context)),
|
|
4742
4928
|
name: errorCode,
|
|
4743
4929
|
$metadata: deserializeMetadata(output),
|
|
4744
4930
|
};
|
|
4745
4931
|
break;
|
|
4746
|
-
case "
|
|
4747
|
-
case "com.amazonaws.cloudfront#
|
|
4932
|
+
case "TooManyCustomHeadersInResponseHeadersPolicy":
|
|
4933
|
+
case "com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy":
|
|
4748
4934
|
response = {
|
|
4749
|
-
...(await
|
|
4935
|
+
...(await deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
4750
4936
|
name: errorCode,
|
|
4751
4937
|
$metadata: deserializeMetadata(output),
|
|
4752
4938
|
};
|
|
4753
4939
|
break;
|
|
4754
|
-
case "
|
|
4755
|
-
case "com.amazonaws.cloudfront#
|
|
4940
|
+
case "TooManyResponseHeadersPolicies":
|
|
4941
|
+
case "com.amazonaws.cloudfront#TooManyResponseHeadersPolicies":
|
|
4756
4942
|
response = {
|
|
4757
|
-
...(await
|
|
4943
|
+
...(await deserializeAws_restXmlTooManyResponseHeadersPoliciesResponse(parsedOutput, context)),
|
|
4758
4944
|
name: errorCode,
|
|
4759
4945
|
$metadata: deserializeMetadata(output),
|
|
4760
4946
|
};
|
|
@@ -4775,9 +4961,9 @@ const deserializeAws_restXmlCreateStreamingDistributionCommandError = async (out
|
|
|
4775
4961
|
delete response.Message;
|
|
4776
4962
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
4777
4963
|
};
|
|
4778
|
-
const
|
|
4964
|
+
const deserializeAws_restXmlCreateStreamingDistributionCommand = async (output, context) => {
|
|
4779
4965
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
4780
|
-
return
|
|
4966
|
+
return deserializeAws_restXmlCreateStreamingDistributionCommandError(output, context);
|
|
4781
4967
|
}
|
|
4782
4968
|
const contents = {
|
|
4783
4969
|
$metadata: deserializeMetadata(output),
|
|
@@ -4795,7 +4981,149 @@ const deserializeAws_restXmlCreateStreamingDistributionWithTagsCommand = async (
|
|
|
4795
4981
|
contents.StreamingDistribution = deserializeAws_restXmlStreamingDistribution(data, context);
|
|
4796
4982
|
return Promise.resolve(contents);
|
|
4797
4983
|
};
|
|
4798
|
-
exports.
|
|
4984
|
+
exports.deserializeAws_restXmlCreateStreamingDistributionCommand = deserializeAws_restXmlCreateStreamingDistributionCommand;
|
|
4985
|
+
const deserializeAws_restXmlCreateStreamingDistributionCommandError = async (output, context) => {
|
|
4986
|
+
const parsedOutput = {
|
|
4987
|
+
...output,
|
|
4988
|
+
body: await parseBody(output.body, context),
|
|
4989
|
+
};
|
|
4990
|
+
let response;
|
|
4991
|
+
let errorCode = "UnknownError";
|
|
4992
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4993
|
+
switch (errorCode) {
|
|
4994
|
+
case "AccessDenied":
|
|
4995
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4996
|
+
response = {
|
|
4997
|
+
...(await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)),
|
|
4998
|
+
name: errorCode,
|
|
4999
|
+
$metadata: deserializeMetadata(output),
|
|
5000
|
+
};
|
|
5001
|
+
break;
|
|
5002
|
+
case "CNAMEAlreadyExists":
|
|
5003
|
+
case "com.amazonaws.cloudfront#CNAMEAlreadyExists":
|
|
5004
|
+
response = {
|
|
5005
|
+
...(await deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)),
|
|
5006
|
+
name: errorCode,
|
|
5007
|
+
$metadata: deserializeMetadata(output),
|
|
5008
|
+
};
|
|
5009
|
+
break;
|
|
5010
|
+
case "InconsistentQuantities":
|
|
5011
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
5012
|
+
response = {
|
|
5013
|
+
...(await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context)),
|
|
5014
|
+
name: errorCode,
|
|
5015
|
+
$metadata: deserializeMetadata(output),
|
|
5016
|
+
};
|
|
5017
|
+
break;
|
|
5018
|
+
case "InvalidArgument":
|
|
5019
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
5020
|
+
response = {
|
|
5021
|
+
...(await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)),
|
|
5022
|
+
name: errorCode,
|
|
5023
|
+
$metadata: deserializeMetadata(output),
|
|
5024
|
+
};
|
|
5025
|
+
break;
|
|
5026
|
+
case "InvalidOrigin":
|
|
5027
|
+
case "com.amazonaws.cloudfront#InvalidOrigin":
|
|
5028
|
+
response = {
|
|
5029
|
+
...(await deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context)),
|
|
5030
|
+
name: errorCode,
|
|
5031
|
+
$metadata: deserializeMetadata(output),
|
|
5032
|
+
};
|
|
5033
|
+
break;
|
|
5034
|
+
case "InvalidOriginAccessIdentity":
|
|
5035
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
5036
|
+
response = {
|
|
5037
|
+
...(await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)),
|
|
5038
|
+
name: errorCode,
|
|
5039
|
+
$metadata: deserializeMetadata(output),
|
|
5040
|
+
};
|
|
5041
|
+
break;
|
|
5042
|
+
case "MissingBody":
|
|
5043
|
+
case "com.amazonaws.cloudfront#MissingBody":
|
|
5044
|
+
response = {
|
|
5045
|
+
...(await deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)),
|
|
5046
|
+
name: errorCode,
|
|
5047
|
+
$metadata: deserializeMetadata(output),
|
|
5048
|
+
};
|
|
5049
|
+
break;
|
|
5050
|
+
case "StreamingDistributionAlreadyExists":
|
|
5051
|
+
case "com.amazonaws.cloudfront#StreamingDistributionAlreadyExists":
|
|
5052
|
+
response = {
|
|
5053
|
+
...(await deserializeAws_restXmlStreamingDistributionAlreadyExistsResponse(parsedOutput, context)),
|
|
5054
|
+
name: errorCode,
|
|
5055
|
+
$metadata: deserializeMetadata(output),
|
|
5056
|
+
};
|
|
5057
|
+
break;
|
|
5058
|
+
case "TooManyStreamingDistributionCNAMEs":
|
|
5059
|
+
case "com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs":
|
|
5060
|
+
response = {
|
|
5061
|
+
...(await deserializeAws_restXmlTooManyStreamingDistributionCNAMEsResponse(parsedOutput, context)),
|
|
5062
|
+
name: errorCode,
|
|
5063
|
+
$metadata: deserializeMetadata(output),
|
|
5064
|
+
};
|
|
5065
|
+
break;
|
|
5066
|
+
case "TooManyStreamingDistributions":
|
|
5067
|
+
case "com.amazonaws.cloudfront#TooManyStreamingDistributions":
|
|
5068
|
+
response = {
|
|
5069
|
+
...(await deserializeAws_restXmlTooManyStreamingDistributionsResponse(parsedOutput, context)),
|
|
5070
|
+
name: errorCode,
|
|
5071
|
+
$metadata: deserializeMetadata(output),
|
|
5072
|
+
};
|
|
5073
|
+
break;
|
|
5074
|
+
case "TooManyTrustedSigners":
|
|
5075
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners":
|
|
5076
|
+
response = {
|
|
5077
|
+
...(await deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context)),
|
|
5078
|
+
name: errorCode,
|
|
5079
|
+
$metadata: deserializeMetadata(output),
|
|
5080
|
+
};
|
|
5081
|
+
break;
|
|
5082
|
+
case "TrustedSignerDoesNotExist":
|
|
5083
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist":
|
|
5084
|
+
response = {
|
|
5085
|
+
...(await deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context)),
|
|
5086
|
+
name: errorCode,
|
|
5087
|
+
$metadata: deserializeMetadata(output),
|
|
5088
|
+
};
|
|
5089
|
+
break;
|
|
5090
|
+
default:
|
|
5091
|
+
const parsedBody = parsedOutput.body;
|
|
5092
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
5093
|
+
response = {
|
|
5094
|
+
...parsedBody.Error,
|
|
5095
|
+
name: `${errorCode}`,
|
|
5096
|
+
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
5097
|
+
$fault: "client",
|
|
5098
|
+
$metadata: deserializeMetadata(output),
|
|
5099
|
+
};
|
|
5100
|
+
}
|
|
5101
|
+
const message = response.message || response.Message || errorCode;
|
|
5102
|
+
response.message = message;
|
|
5103
|
+
delete response.Message;
|
|
5104
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
5105
|
+
};
|
|
5106
|
+
const deserializeAws_restXmlCreateStreamingDistributionWithTagsCommand = async (output, context) => {
|
|
5107
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
5108
|
+
return deserializeAws_restXmlCreateStreamingDistributionWithTagsCommandError(output, context);
|
|
5109
|
+
}
|
|
5110
|
+
const contents = {
|
|
5111
|
+
$metadata: deserializeMetadata(output),
|
|
5112
|
+
ETag: undefined,
|
|
5113
|
+
Location: undefined,
|
|
5114
|
+
StreamingDistribution: undefined,
|
|
5115
|
+
};
|
|
5116
|
+
if (output.headers["location"] !== undefined) {
|
|
5117
|
+
contents.Location = output.headers["location"];
|
|
5118
|
+
}
|
|
5119
|
+
if (output.headers["etag"] !== undefined) {
|
|
5120
|
+
contents.ETag = output.headers["etag"];
|
|
5121
|
+
}
|
|
5122
|
+
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
5123
|
+
contents.StreamingDistribution = deserializeAws_restXmlStreamingDistribution(data, context);
|
|
5124
|
+
return Promise.resolve(contents);
|
|
5125
|
+
};
|
|
5126
|
+
exports.deserializeAws_restXmlCreateStreamingDistributionWithTagsCommand = deserializeAws_restXmlCreateStreamingDistributionWithTagsCommand;
|
|
4799
5127
|
const deserializeAws_restXmlCreateStreamingDistributionWithTagsCommandError = async (output, context) => {
|
|
4800
5128
|
const parsedOutput = {
|
|
4801
5129
|
...output,
|
|
@@ -5745,6 +6073,90 @@ const deserializeAws_restXmlDeleteRealtimeLogConfigCommandError = async (output,
|
|
|
5745
6073
|
delete response.Message;
|
|
5746
6074
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
5747
6075
|
};
|
|
6076
|
+
const deserializeAws_restXmlDeleteResponseHeadersPolicyCommand = async (output, context) => {
|
|
6077
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6078
|
+
return deserializeAws_restXmlDeleteResponseHeadersPolicyCommandError(output, context);
|
|
6079
|
+
}
|
|
6080
|
+
const contents = {
|
|
6081
|
+
$metadata: deserializeMetadata(output),
|
|
6082
|
+
};
|
|
6083
|
+
await collectBody(output.body, context);
|
|
6084
|
+
return Promise.resolve(contents);
|
|
6085
|
+
};
|
|
6086
|
+
exports.deserializeAws_restXmlDeleteResponseHeadersPolicyCommand = deserializeAws_restXmlDeleteResponseHeadersPolicyCommand;
|
|
6087
|
+
const deserializeAws_restXmlDeleteResponseHeadersPolicyCommandError = async (output, context) => {
|
|
6088
|
+
const parsedOutput = {
|
|
6089
|
+
...output,
|
|
6090
|
+
body: await parseBody(output.body, context),
|
|
6091
|
+
};
|
|
6092
|
+
let response;
|
|
6093
|
+
let errorCode = "UnknownError";
|
|
6094
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6095
|
+
switch (errorCode) {
|
|
6096
|
+
case "AccessDenied":
|
|
6097
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
6098
|
+
response = {
|
|
6099
|
+
...(await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)),
|
|
6100
|
+
name: errorCode,
|
|
6101
|
+
$metadata: deserializeMetadata(output),
|
|
6102
|
+
};
|
|
6103
|
+
break;
|
|
6104
|
+
case "IllegalDelete":
|
|
6105
|
+
case "com.amazonaws.cloudfront#IllegalDelete":
|
|
6106
|
+
response = {
|
|
6107
|
+
...(await deserializeAws_restXmlIllegalDeleteResponse(parsedOutput, context)),
|
|
6108
|
+
name: errorCode,
|
|
6109
|
+
$metadata: deserializeMetadata(output),
|
|
6110
|
+
};
|
|
6111
|
+
break;
|
|
6112
|
+
case "InvalidIfMatchVersion":
|
|
6113
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
6114
|
+
response = {
|
|
6115
|
+
...(await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)),
|
|
6116
|
+
name: errorCode,
|
|
6117
|
+
$metadata: deserializeMetadata(output),
|
|
6118
|
+
};
|
|
6119
|
+
break;
|
|
6120
|
+
case "NoSuchResponseHeadersPolicy":
|
|
6121
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
6122
|
+
response = {
|
|
6123
|
+
...(await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
6124
|
+
name: errorCode,
|
|
6125
|
+
$metadata: deserializeMetadata(output),
|
|
6126
|
+
};
|
|
6127
|
+
break;
|
|
6128
|
+
case "PreconditionFailed":
|
|
6129
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
6130
|
+
response = {
|
|
6131
|
+
...(await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)),
|
|
6132
|
+
name: errorCode,
|
|
6133
|
+
$metadata: deserializeMetadata(output),
|
|
6134
|
+
};
|
|
6135
|
+
break;
|
|
6136
|
+
case "ResponseHeadersPolicyInUse":
|
|
6137
|
+
case "com.amazonaws.cloudfront#ResponseHeadersPolicyInUse":
|
|
6138
|
+
response = {
|
|
6139
|
+
...(await deserializeAws_restXmlResponseHeadersPolicyInUseResponse(parsedOutput, context)),
|
|
6140
|
+
name: errorCode,
|
|
6141
|
+
$metadata: deserializeMetadata(output),
|
|
6142
|
+
};
|
|
6143
|
+
break;
|
|
6144
|
+
default:
|
|
6145
|
+
const parsedBody = parsedOutput.body;
|
|
6146
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
6147
|
+
response = {
|
|
6148
|
+
...parsedBody.Error,
|
|
6149
|
+
name: `${errorCode}`,
|
|
6150
|
+
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
6151
|
+
$fault: "client",
|
|
6152
|
+
$metadata: deserializeMetadata(output),
|
|
6153
|
+
};
|
|
6154
|
+
}
|
|
6155
|
+
const message = response.message || response.Message || errorCode;
|
|
6156
|
+
response.message = message;
|
|
6157
|
+
delete response.Message;
|
|
6158
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
6159
|
+
};
|
|
5748
6160
|
const deserializeAws_restXmlDeleteStreamingDistributionCommand = async (output, context) => {
|
|
5749
6161
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5750
6162
|
return deserializeAws_restXmlDeleteStreamingDistributionCommandError(output, context);
|
|
@@ -7041,24 +7453,24 @@ const deserializeAws_restXmlGetRealtimeLogConfigCommandError = async (output, co
|
|
|
7041
7453
|
delete response.Message;
|
|
7042
7454
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
7043
7455
|
};
|
|
7044
|
-
const
|
|
7456
|
+
const deserializeAws_restXmlGetResponseHeadersPolicyCommand = async (output, context) => {
|
|
7045
7457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7046
|
-
return
|
|
7458
|
+
return deserializeAws_restXmlGetResponseHeadersPolicyCommandError(output, context);
|
|
7047
7459
|
}
|
|
7048
7460
|
const contents = {
|
|
7049
7461
|
$metadata: deserializeMetadata(output),
|
|
7050
7462
|
ETag: undefined,
|
|
7051
|
-
|
|
7463
|
+
ResponseHeadersPolicy: undefined,
|
|
7052
7464
|
};
|
|
7053
7465
|
if (output.headers["etag"] !== undefined) {
|
|
7054
7466
|
contents.ETag = output.headers["etag"];
|
|
7055
7467
|
}
|
|
7056
7468
|
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
7057
|
-
contents.
|
|
7469
|
+
contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(data, context);
|
|
7058
7470
|
return Promise.resolve(contents);
|
|
7059
7471
|
};
|
|
7060
|
-
exports.
|
|
7061
|
-
const
|
|
7472
|
+
exports.deserializeAws_restXmlGetResponseHeadersPolicyCommand = deserializeAws_restXmlGetResponseHeadersPolicyCommand;
|
|
7473
|
+
const deserializeAws_restXmlGetResponseHeadersPolicyCommandError = async (output, context) => {
|
|
7062
7474
|
const parsedOutput = {
|
|
7063
7475
|
...output,
|
|
7064
7476
|
body: await parseBody(output.body, context),
|
|
@@ -7075,10 +7487,10 @@ const deserializeAws_restXmlGetStreamingDistributionCommandError = async (output
|
|
|
7075
7487
|
$metadata: deserializeMetadata(output),
|
|
7076
7488
|
};
|
|
7077
7489
|
break;
|
|
7078
|
-
case "
|
|
7079
|
-
case "com.amazonaws.cloudfront#
|
|
7490
|
+
case "NoSuchResponseHeadersPolicy":
|
|
7491
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
7080
7492
|
response = {
|
|
7081
|
-
...(await
|
|
7493
|
+
...(await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
7082
7494
|
name: errorCode,
|
|
7083
7495
|
$metadata: deserializeMetadata(output),
|
|
7084
7496
|
};
|
|
@@ -7099,24 +7511,24 @@ const deserializeAws_restXmlGetStreamingDistributionCommandError = async (output
|
|
|
7099
7511
|
delete response.Message;
|
|
7100
7512
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
7101
7513
|
};
|
|
7102
|
-
const
|
|
7514
|
+
const deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand = async (output, context) => {
|
|
7103
7515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7104
|
-
return
|
|
7516
|
+
return deserializeAws_restXmlGetResponseHeadersPolicyConfigCommandError(output, context);
|
|
7105
7517
|
}
|
|
7106
7518
|
const contents = {
|
|
7107
7519
|
$metadata: deserializeMetadata(output),
|
|
7108
7520
|
ETag: undefined,
|
|
7109
|
-
|
|
7521
|
+
ResponseHeadersPolicyConfig: undefined,
|
|
7110
7522
|
};
|
|
7111
7523
|
if (output.headers["etag"] !== undefined) {
|
|
7112
7524
|
contents.ETag = output.headers["etag"];
|
|
7113
7525
|
}
|
|
7114
7526
|
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
7115
|
-
contents.
|
|
7527
|
+
contents.ResponseHeadersPolicyConfig = deserializeAws_restXmlResponseHeadersPolicyConfig(data, context);
|
|
7116
7528
|
return Promise.resolve(contents);
|
|
7117
7529
|
};
|
|
7118
|
-
exports.
|
|
7119
|
-
const
|
|
7530
|
+
exports.deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand = deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand;
|
|
7531
|
+
const deserializeAws_restXmlGetResponseHeadersPolicyConfigCommandError = async (output, context) => {
|
|
7120
7532
|
const parsedOutput = {
|
|
7121
7533
|
...output,
|
|
7122
7534
|
body: await parseBody(output.body, context),
|
|
@@ -7133,10 +7545,10 @@ const deserializeAws_restXmlGetStreamingDistributionConfigCommandError = async (
|
|
|
7133
7545
|
$metadata: deserializeMetadata(output),
|
|
7134
7546
|
};
|
|
7135
7547
|
break;
|
|
7136
|
-
case "
|
|
7137
|
-
case "com.amazonaws.cloudfront#
|
|
7548
|
+
case "NoSuchResponseHeadersPolicy":
|
|
7549
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
7138
7550
|
response = {
|
|
7139
|
-
...(await
|
|
7551
|
+
...(await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
7140
7552
|
name: errorCode,
|
|
7141
7553
|
$metadata: deserializeMetadata(output),
|
|
7142
7554
|
};
|
|
@@ -7157,20 +7569,24 @@ const deserializeAws_restXmlGetStreamingDistributionConfigCommandError = async (
|
|
|
7157
7569
|
delete response.Message;
|
|
7158
7570
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
7159
7571
|
};
|
|
7160
|
-
const
|
|
7572
|
+
const deserializeAws_restXmlGetStreamingDistributionCommand = async (output, context) => {
|
|
7161
7573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7162
|
-
return
|
|
7574
|
+
return deserializeAws_restXmlGetStreamingDistributionCommandError(output, context);
|
|
7163
7575
|
}
|
|
7164
7576
|
const contents = {
|
|
7165
7577
|
$metadata: deserializeMetadata(output),
|
|
7166
|
-
|
|
7578
|
+
ETag: undefined,
|
|
7579
|
+
StreamingDistribution: undefined,
|
|
7167
7580
|
};
|
|
7581
|
+
if (output.headers["etag"] !== undefined) {
|
|
7582
|
+
contents.ETag = output.headers["etag"];
|
|
7583
|
+
}
|
|
7168
7584
|
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
7169
|
-
contents.
|
|
7585
|
+
contents.StreamingDistribution = deserializeAws_restXmlStreamingDistribution(data, context);
|
|
7170
7586
|
return Promise.resolve(contents);
|
|
7171
7587
|
};
|
|
7172
|
-
exports.
|
|
7173
|
-
const
|
|
7588
|
+
exports.deserializeAws_restXmlGetStreamingDistributionCommand = deserializeAws_restXmlGetStreamingDistributionCommand;
|
|
7589
|
+
const deserializeAws_restXmlGetStreamingDistributionCommandError = async (output, context) => {
|
|
7174
7590
|
const parsedOutput = {
|
|
7175
7591
|
...output,
|
|
7176
7592
|
body: await parseBody(output.body, context),
|
|
@@ -7187,10 +7603,122 @@ const deserializeAws_restXmlListCachePoliciesCommandError = async (output, conte
|
|
|
7187
7603
|
$metadata: deserializeMetadata(output),
|
|
7188
7604
|
};
|
|
7189
7605
|
break;
|
|
7190
|
-
case "
|
|
7191
|
-
case "com.amazonaws.cloudfront#
|
|
7606
|
+
case "NoSuchStreamingDistribution":
|
|
7607
|
+
case "com.amazonaws.cloudfront#NoSuchStreamingDistribution":
|
|
7192
7608
|
response = {
|
|
7193
|
-
...(await
|
|
7609
|
+
...(await deserializeAws_restXmlNoSuchStreamingDistributionResponse(parsedOutput, context)),
|
|
7610
|
+
name: errorCode,
|
|
7611
|
+
$metadata: deserializeMetadata(output),
|
|
7612
|
+
};
|
|
7613
|
+
break;
|
|
7614
|
+
default:
|
|
7615
|
+
const parsedBody = parsedOutput.body;
|
|
7616
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
7617
|
+
response = {
|
|
7618
|
+
...parsedBody.Error,
|
|
7619
|
+
name: `${errorCode}`,
|
|
7620
|
+
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
7621
|
+
$fault: "client",
|
|
7622
|
+
$metadata: deserializeMetadata(output),
|
|
7623
|
+
};
|
|
7624
|
+
}
|
|
7625
|
+
const message = response.message || response.Message || errorCode;
|
|
7626
|
+
response.message = message;
|
|
7627
|
+
delete response.Message;
|
|
7628
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
7629
|
+
};
|
|
7630
|
+
const deserializeAws_restXmlGetStreamingDistributionConfigCommand = async (output, context) => {
|
|
7631
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7632
|
+
return deserializeAws_restXmlGetStreamingDistributionConfigCommandError(output, context);
|
|
7633
|
+
}
|
|
7634
|
+
const contents = {
|
|
7635
|
+
$metadata: deserializeMetadata(output),
|
|
7636
|
+
ETag: undefined,
|
|
7637
|
+
StreamingDistributionConfig: undefined,
|
|
7638
|
+
};
|
|
7639
|
+
if (output.headers["etag"] !== undefined) {
|
|
7640
|
+
contents.ETag = output.headers["etag"];
|
|
7641
|
+
}
|
|
7642
|
+
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
7643
|
+
contents.StreamingDistributionConfig = deserializeAws_restXmlStreamingDistributionConfig(data, context);
|
|
7644
|
+
return Promise.resolve(contents);
|
|
7645
|
+
};
|
|
7646
|
+
exports.deserializeAws_restXmlGetStreamingDistributionConfigCommand = deserializeAws_restXmlGetStreamingDistributionConfigCommand;
|
|
7647
|
+
const deserializeAws_restXmlGetStreamingDistributionConfigCommandError = async (output, context) => {
|
|
7648
|
+
const parsedOutput = {
|
|
7649
|
+
...output,
|
|
7650
|
+
body: await parseBody(output.body, context),
|
|
7651
|
+
};
|
|
7652
|
+
let response;
|
|
7653
|
+
let errorCode = "UnknownError";
|
|
7654
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7655
|
+
switch (errorCode) {
|
|
7656
|
+
case "AccessDenied":
|
|
7657
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
7658
|
+
response = {
|
|
7659
|
+
...(await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)),
|
|
7660
|
+
name: errorCode,
|
|
7661
|
+
$metadata: deserializeMetadata(output),
|
|
7662
|
+
};
|
|
7663
|
+
break;
|
|
7664
|
+
case "NoSuchStreamingDistribution":
|
|
7665
|
+
case "com.amazonaws.cloudfront#NoSuchStreamingDistribution":
|
|
7666
|
+
response = {
|
|
7667
|
+
...(await deserializeAws_restXmlNoSuchStreamingDistributionResponse(parsedOutput, context)),
|
|
7668
|
+
name: errorCode,
|
|
7669
|
+
$metadata: deserializeMetadata(output),
|
|
7670
|
+
};
|
|
7671
|
+
break;
|
|
7672
|
+
default:
|
|
7673
|
+
const parsedBody = parsedOutput.body;
|
|
7674
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
7675
|
+
response = {
|
|
7676
|
+
...parsedBody.Error,
|
|
7677
|
+
name: `${errorCode}`,
|
|
7678
|
+
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
7679
|
+
$fault: "client",
|
|
7680
|
+
$metadata: deserializeMetadata(output),
|
|
7681
|
+
};
|
|
7682
|
+
}
|
|
7683
|
+
const message = response.message || response.Message || errorCode;
|
|
7684
|
+
response.message = message;
|
|
7685
|
+
delete response.Message;
|
|
7686
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
7687
|
+
};
|
|
7688
|
+
const deserializeAws_restXmlListCachePoliciesCommand = async (output, context) => {
|
|
7689
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7690
|
+
return deserializeAws_restXmlListCachePoliciesCommandError(output, context);
|
|
7691
|
+
}
|
|
7692
|
+
const contents = {
|
|
7693
|
+
$metadata: deserializeMetadata(output),
|
|
7694
|
+
CachePolicyList: undefined,
|
|
7695
|
+
};
|
|
7696
|
+
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
7697
|
+
contents.CachePolicyList = deserializeAws_restXmlCachePolicyList(data, context);
|
|
7698
|
+
return Promise.resolve(contents);
|
|
7699
|
+
};
|
|
7700
|
+
exports.deserializeAws_restXmlListCachePoliciesCommand = deserializeAws_restXmlListCachePoliciesCommand;
|
|
7701
|
+
const deserializeAws_restXmlListCachePoliciesCommandError = async (output, context) => {
|
|
7702
|
+
const parsedOutput = {
|
|
7703
|
+
...output,
|
|
7704
|
+
body: await parseBody(output.body, context),
|
|
7705
|
+
};
|
|
7706
|
+
let response;
|
|
7707
|
+
let errorCode = "UnknownError";
|
|
7708
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
7709
|
+
switch (errorCode) {
|
|
7710
|
+
case "AccessDenied":
|
|
7711
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
7712
|
+
response = {
|
|
7713
|
+
...(await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)),
|
|
7714
|
+
name: errorCode,
|
|
7715
|
+
$metadata: deserializeMetadata(output),
|
|
7716
|
+
};
|
|
7717
|
+
break;
|
|
7718
|
+
case "InvalidArgument":
|
|
7719
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
7720
|
+
response = {
|
|
7721
|
+
...(await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)),
|
|
7194
7722
|
name: errorCode,
|
|
7195
7723
|
$metadata: deserializeMetadata(output),
|
|
7196
7724
|
};
|
|
@@ -7589,6 +8117,68 @@ const deserializeAws_restXmlListDistributionsByRealtimeLogConfigCommandError = a
|
|
|
7589
8117
|
delete response.Message;
|
|
7590
8118
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
7591
8119
|
};
|
|
8120
|
+
const deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand = async (output, context) => {
|
|
8121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8122
|
+
return deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommandError(output, context);
|
|
8123
|
+
}
|
|
8124
|
+
const contents = {
|
|
8125
|
+
$metadata: deserializeMetadata(output),
|
|
8126
|
+
DistributionIdList: undefined,
|
|
8127
|
+
};
|
|
8128
|
+
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
8129
|
+
contents.DistributionIdList = deserializeAws_restXmlDistributionIdList(data, context);
|
|
8130
|
+
return Promise.resolve(contents);
|
|
8131
|
+
};
|
|
8132
|
+
exports.deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand = deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand;
|
|
8133
|
+
const deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommandError = async (output, context) => {
|
|
8134
|
+
const parsedOutput = {
|
|
8135
|
+
...output,
|
|
8136
|
+
body: await parseBody(output.body, context),
|
|
8137
|
+
};
|
|
8138
|
+
let response;
|
|
8139
|
+
let errorCode = "UnknownError";
|
|
8140
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
8141
|
+
switch (errorCode) {
|
|
8142
|
+
case "AccessDenied":
|
|
8143
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
8144
|
+
response = {
|
|
8145
|
+
...(await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)),
|
|
8146
|
+
name: errorCode,
|
|
8147
|
+
$metadata: deserializeMetadata(output),
|
|
8148
|
+
};
|
|
8149
|
+
break;
|
|
8150
|
+
case "InvalidArgument":
|
|
8151
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
8152
|
+
response = {
|
|
8153
|
+
...(await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)),
|
|
8154
|
+
name: errorCode,
|
|
8155
|
+
$metadata: deserializeMetadata(output),
|
|
8156
|
+
};
|
|
8157
|
+
break;
|
|
8158
|
+
case "NoSuchResponseHeadersPolicy":
|
|
8159
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
8160
|
+
response = {
|
|
8161
|
+
...(await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
8162
|
+
name: errorCode,
|
|
8163
|
+
$metadata: deserializeMetadata(output),
|
|
8164
|
+
};
|
|
8165
|
+
break;
|
|
8166
|
+
default:
|
|
8167
|
+
const parsedBody = parsedOutput.body;
|
|
8168
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
8169
|
+
response = {
|
|
8170
|
+
...parsedBody.Error,
|
|
8171
|
+
name: `${errorCode}`,
|
|
8172
|
+
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
8173
|
+
$fault: "client",
|
|
8174
|
+
$metadata: deserializeMetadata(output),
|
|
8175
|
+
};
|
|
8176
|
+
}
|
|
8177
|
+
const message = response.message || response.Message || errorCode;
|
|
8178
|
+
response.message = message;
|
|
8179
|
+
delete response.Message;
|
|
8180
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
8181
|
+
};
|
|
7592
8182
|
const deserializeAws_restXmlListDistributionsByWebACLIdCommand = async (output, context) => {
|
|
7593
8183
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7594
8184
|
return deserializeAws_restXmlListDistributionsByWebACLIdCommandError(output, context);
|
|
@@ -8067,6 +8657,68 @@ const deserializeAws_restXmlListRealtimeLogConfigsCommandError = async (output,
|
|
|
8067
8657
|
delete response.Message;
|
|
8068
8658
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
8069
8659
|
};
|
|
8660
|
+
const deserializeAws_restXmlListResponseHeadersPoliciesCommand = async (output, context) => {
|
|
8661
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8662
|
+
return deserializeAws_restXmlListResponseHeadersPoliciesCommandError(output, context);
|
|
8663
|
+
}
|
|
8664
|
+
const contents = {
|
|
8665
|
+
$metadata: deserializeMetadata(output),
|
|
8666
|
+
ResponseHeadersPolicyList: undefined,
|
|
8667
|
+
};
|
|
8668
|
+
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
8669
|
+
contents.ResponseHeadersPolicyList = deserializeAws_restXmlResponseHeadersPolicyList(data, context);
|
|
8670
|
+
return Promise.resolve(contents);
|
|
8671
|
+
};
|
|
8672
|
+
exports.deserializeAws_restXmlListResponseHeadersPoliciesCommand = deserializeAws_restXmlListResponseHeadersPoliciesCommand;
|
|
8673
|
+
const deserializeAws_restXmlListResponseHeadersPoliciesCommandError = async (output, context) => {
|
|
8674
|
+
const parsedOutput = {
|
|
8675
|
+
...output,
|
|
8676
|
+
body: await parseBody(output.body, context),
|
|
8677
|
+
};
|
|
8678
|
+
let response;
|
|
8679
|
+
let errorCode = "UnknownError";
|
|
8680
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
8681
|
+
switch (errorCode) {
|
|
8682
|
+
case "AccessDenied":
|
|
8683
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
8684
|
+
response = {
|
|
8685
|
+
...(await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)),
|
|
8686
|
+
name: errorCode,
|
|
8687
|
+
$metadata: deserializeMetadata(output),
|
|
8688
|
+
};
|
|
8689
|
+
break;
|
|
8690
|
+
case "InvalidArgument":
|
|
8691
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
8692
|
+
response = {
|
|
8693
|
+
...(await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)),
|
|
8694
|
+
name: errorCode,
|
|
8695
|
+
$metadata: deserializeMetadata(output),
|
|
8696
|
+
};
|
|
8697
|
+
break;
|
|
8698
|
+
case "NoSuchResponseHeadersPolicy":
|
|
8699
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
8700
|
+
response = {
|
|
8701
|
+
...(await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
8702
|
+
name: errorCode,
|
|
8703
|
+
$metadata: deserializeMetadata(output),
|
|
8704
|
+
};
|
|
8705
|
+
break;
|
|
8706
|
+
default:
|
|
8707
|
+
const parsedBody = parsedOutput.body;
|
|
8708
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
8709
|
+
response = {
|
|
8710
|
+
...parsedBody.Error,
|
|
8711
|
+
name: `${errorCode}`,
|
|
8712
|
+
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
8713
|
+
$fault: "client",
|
|
8714
|
+
$metadata: deserializeMetadata(output),
|
|
8715
|
+
};
|
|
8716
|
+
}
|
|
8717
|
+
const message = response.message || response.Message || errorCode;
|
|
8718
|
+
response.message = message;
|
|
8719
|
+
delete response.Message;
|
|
8720
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
8721
|
+
};
|
|
8070
8722
|
const deserializeAws_restXmlListStreamingDistributionsCommand = async (output, context) => {
|
|
8071
8723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8072
8724
|
return deserializeAws_restXmlListStreamingDistributionsCommandError(output, context);
|
|
@@ -9001,6 +9653,14 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
|
|
|
9001
9653
|
$metadata: deserializeMetadata(output),
|
|
9002
9654
|
};
|
|
9003
9655
|
break;
|
|
9656
|
+
case "NoSuchResponseHeadersPolicy":
|
|
9657
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
9658
|
+
response = {
|
|
9659
|
+
...(await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
9660
|
+
name: errorCode,
|
|
9661
|
+
$metadata: deserializeMetadata(output),
|
|
9662
|
+
};
|
|
9663
|
+
break;
|
|
9004
9664
|
case "PreconditionFailed":
|
|
9005
9665
|
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
9006
9666
|
response = {
|
|
@@ -9081,6 +9741,14 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
|
|
|
9081
9741
|
$metadata: deserializeMetadata(output),
|
|
9082
9742
|
};
|
|
9083
9743
|
break;
|
|
9744
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy":
|
|
9745
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":
|
|
9746
|
+
response = {
|
|
9747
|
+
...(await deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
9748
|
+
name: errorCode,
|
|
9749
|
+
$metadata: deserializeMetadata(output),
|
|
9750
|
+
};
|
|
9751
|
+
break;
|
|
9084
9752
|
case "TooManyDistributionsWithFunctionAssociations":
|
|
9085
9753
|
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":
|
|
9086
9754
|
response = {
|
|
@@ -9949,24 +10617,24 @@ const deserializeAws_restXmlUpdateRealtimeLogConfigCommandError = async (output,
|
|
|
9949
10617
|
delete response.Message;
|
|
9950
10618
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
9951
10619
|
};
|
|
9952
|
-
const
|
|
10620
|
+
const deserializeAws_restXmlUpdateResponseHeadersPolicyCommand = async (output, context) => {
|
|
9953
10621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9954
|
-
return
|
|
10622
|
+
return deserializeAws_restXmlUpdateResponseHeadersPolicyCommandError(output, context);
|
|
9955
10623
|
}
|
|
9956
10624
|
const contents = {
|
|
9957
10625
|
$metadata: deserializeMetadata(output),
|
|
9958
10626
|
ETag: undefined,
|
|
9959
|
-
|
|
10627
|
+
ResponseHeadersPolicy: undefined,
|
|
9960
10628
|
};
|
|
9961
10629
|
if (output.headers["etag"] !== undefined) {
|
|
9962
10630
|
contents.ETag = output.headers["etag"];
|
|
9963
10631
|
}
|
|
9964
10632
|
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
9965
|
-
contents.
|
|
10633
|
+
contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(data, context);
|
|
9966
10634
|
return Promise.resolve(contents);
|
|
9967
10635
|
};
|
|
9968
|
-
exports.
|
|
9969
|
-
const
|
|
10636
|
+
exports.deserializeAws_restXmlUpdateResponseHeadersPolicyCommand = deserializeAws_restXmlUpdateResponseHeadersPolicyCommand;
|
|
10637
|
+
const deserializeAws_restXmlUpdateResponseHeadersPolicyCommandError = async (output, context) => {
|
|
9970
10638
|
const parsedOutput = {
|
|
9971
10639
|
...output,
|
|
9972
10640
|
body: await parseBody(output.body, context),
|
|
@@ -9983,14 +10651,6 @@ const deserializeAws_restXmlUpdateStreamingDistributionCommandError = async (out
|
|
|
9983
10651
|
$metadata: deserializeMetadata(output),
|
|
9984
10652
|
};
|
|
9985
10653
|
break;
|
|
9986
|
-
case "CNAMEAlreadyExists":
|
|
9987
|
-
case "com.amazonaws.cloudfront#CNAMEAlreadyExists":
|
|
9988
|
-
response = {
|
|
9989
|
-
...(await deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)),
|
|
9990
|
-
name: errorCode,
|
|
9991
|
-
$metadata: deserializeMetadata(output),
|
|
9992
|
-
};
|
|
9993
|
-
break;
|
|
9994
10654
|
case "IllegalUpdate":
|
|
9995
10655
|
case "com.amazonaws.cloudfront#IllegalUpdate":
|
|
9996
10656
|
response = {
|
|
@@ -10023,24 +10683,146 @@ const deserializeAws_restXmlUpdateStreamingDistributionCommandError = async (out
|
|
|
10023
10683
|
$metadata: deserializeMetadata(output),
|
|
10024
10684
|
};
|
|
10025
10685
|
break;
|
|
10026
|
-
case "
|
|
10027
|
-
case "com.amazonaws.cloudfront#
|
|
10686
|
+
case "NoSuchResponseHeadersPolicy":
|
|
10687
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
10028
10688
|
response = {
|
|
10029
|
-
...(await
|
|
10689
|
+
...(await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
10030
10690
|
name: errorCode,
|
|
10031
10691
|
$metadata: deserializeMetadata(output),
|
|
10032
10692
|
};
|
|
10033
10693
|
break;
|
|
10034
|
-
case "
|
|
10035
|
-
case "com.amazonaws.cloudfront#
|
|
10694
|
+
case "PreconditionFailed":
|
|
10695
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
10036
10696
|
response = {
|
|
10037
|
-
...(await
|
|
10697
|
+
...(await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)),
|
|
10038
10698
|
name: errorCode,
|
|
10039
10699
|
$metadata: deserializeMetadata(output),
|
|
10040
10700
|
};
|
|
10041
10701
|
break;
|
|
10042
|
-
case "
|
|
10043
|
-
case "com.amazonaws.cloudfront#
|
|
10702
|
+
case "ResponseHeadersPolicyAlreadyExists":
|
|
10703
|
+
case "com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists":
|
|
10704
|
+
response = {
|
|
10705
|
+
...(await deserializeAws_restXmlResponseHeadersPolicyAlreadyExistsResponse(parsedOutput, context)),
|
|
10706
|
+
name: errorCode,
|
|
10707
|
+
$metadata: deserializeMetadata(output),
|
|
10708
|
+
};
|
|
10709
|
+
break;
|
|
10710
|
+
case "TooManyCustomHeadersInResponseHeadersPolicy":
|
|
10711
|
+
case "com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy":
|
|
10712
|
+
response = {
|
|
10713
|
+
...(await deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse(parsedOutput, context)),
|
|
10714
|
+
name: errorCode,
|
|
10715
|
+
$metadata: deserializeMetadata(output),
|
|
10716
|
+
};
|
|
10717
|
+
break;
|
|
10718
|
+
default:
|
|
10719
|
+
const parsedBody = parsedOutput.body;
|
|
10720
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
10721
|
+
response = {
|
|
10722
|
+
...parsedBody.Error,
|
|
10723
|
+
name: `${errorCode}`,
|
|
10724
|
+
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
10725
|
+
$fault: "client",
|
|
10726
|
+
$metadata: deserializeMetadata(output),
|
|
10727
|
+
};
|
|
10728
|
+
}
|
|
10729
|
+
const message = response.message || response.Message || errorCode;
|
|
10730
|
+
response.message = message;
|
|
10731
|
+
delete response.Message;
|
|
10732
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
10733
|
+
};
|
|
10734
|
+
const deserializeAws_restXmlUpdateStreamingDistributionCommand = async (output, context) => {
|
|
10735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10736
|
+
return deserializeAws_restXmlUpdateStreamingDistributionCommandError(output, context);
|
|
10737
|
+
}
|
|
10738
|
+
const contents = {
|
|
10739
|
+
$metadata: deserializeMetadata(output),
|
|
10740
|
+
ETag: undefined,
|
|
10741
|
+
StreamingDistribution: undefined,
|
|
10742
|
+
};
|
|
10743
|
+
if (output.headers["etag"] !== undefined) {
|
|
10744
|
+
contents.ETag = output.headers["etag"];
|
|
10745
|
+
}
|
|
10746
|
+
const data = smithy_client_1.expectObject(await parseBody(output.body, context));
|
|
10747
|
+
contents.StreamingDistribution = deserializeAws_restXmlStreamingDistribution(data, context);
|
|
10748
|
+
return Promise.resolve(contents);
|
|
10749
|
+
};
|
|
10750
|
+
exports.deserializeAws_restXmlUpdateStreamingDistributionCommand = deserializeAws_restXmlUpdateStreamingDistributionCommand;
|
|
10751
|
+
const deserializeAws_restXmlUpdateStreamingDistributionCommandError = async (output, context) => {
|
|
10752
|
+
const parsedOutput = {
|
|
10753
|
+
...output,
|
|
10754
|
+
body: await parseBody(output.body, context),
|
|
10755
|
+
};
|
|
10756
|
+
let response;
|
|
10757
|
+
let errorCode = "UnknownError";
|
|
10758
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
10759
|
+
switch (errorCode) {
|
|
10760
|
+
case "AccessDenied":
|
|
10761
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
10762
|
+
response = {
|
|
10763
|
+
...(await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)),
|
|
10764
|
+
name: errorCode,
|
|
10765
|
+
$metadata: deserializeMetadata(output),
|
|
10766
|
+
};
|
|
10767
|
+
break;
|
|
10768
|
+
case "CNAMEAlreadyExists":
|
|
10769
|
+
case "com.amazonaws.cloudfront#CNAMEAlreadyExists":
|
|
10770
|
+
response = {
|
|
10771
|
+
...(await deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)),
|
|
10772
|
+
name: errorCode,
|
|
10773
|
+
$metadata: deserializeMetadata(output),
|
|
10774
|
+
};
|
|
10775
|
+
break;
|
|
10776
|
+
case "IllegalUpdate":
|
|
10777
|
+
case "com.amazonaws.cloudfront#IllegalUpdate":
|
|
10778
|
+
response = {
|
|
10779
|
+
...(await deserializeAws_restXmlIllegalUpdateResponse(parsedOutput, context)),
|
|
10780
|
+
name: errorCode,
|
|
10781
|
+
$metadata: deserializeMetadata(output),
|
|
10782
|
+
};
|
|
10783
|
+
break;
|
|
10784
|
+
case "InconsistentQuantities":
|
|
10785
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
10786
|
+
response = {
|
|
10787
|
+
...(await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context)),
|
|
10788
|
+
name: errorCode,
|
|
10789
|
+
$metadata: deserializeMetadata(output),
|
|
10790
|
+
};
|
|
10791
|
+
break;
|
|
10792
|
+
case "InvalidArgument":
|
|
10793
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
10794
|
+
response = {
|
|
10795
|
+
...(await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)),
|
|
10796
|
+
name: errorCode,
|
|
10797
|
+
$metadata: deserializeMetadata(output),
|
|
10798
|
+
};
|
|
10799
|
+
break;
|
|
10800
|
+
case "InvalidIfMatchVersion":
|
|
10801
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
10802
|
+
response = {
|
|
10803
|
+
...(await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)),
|
|
10804
|
+
name: errorCode,
|
|
10805
|
+
$metadata: deserializeMetadata(output),
|
|
10806
|
+
};
|
|
10807
|
+
break;
|
|
10808
|
+
case "InvalidOriginAccessIdentity":
|
|
10809
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
10810
|
+
response = {
|
|
10811
|
+
...(await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)),
|
|
10812
|
+
name: errorCode,
|
|
10813
|
+
$metadata: deserializeMetadata(output),
|
|
10814
|
+
};
|
|
10815
|
+
break;
|
|
10816
|
+
case "MissingBody":
|
|
10817
|
+
case "com.amazonaws.cloudfront#MissingBody":
|
|
10818
|
+
response = {
|
|
10819
|
+
...(await deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)),
|
|
10820
|
+
name: errorCode,
|
|
10821
|
+
$metadata: deserializeMetadata(output),
|
|
10822
|
+
};
|
|
10823
|
+
break;
|
|
10824
|
+
case "NoSuchStreamingDistribution":
|
|
10825
|
+
case "com.amazonaws.cloudfront#NoSuchStreamingDistribution":
|
|
10044
10826
|
response = {
|
|
10045
10827
|
...(await deserializeAws_restXmlNoSuchStreamingDistributionResponse(parsedOutput, context)),
|
|
10046
10828
|
name: errorCode,
|
|
@@ -10875,6 +11657,19 @@ const deserializeAws_restXmlNoSuchResourceResponse = async (parsedOutput, contex
|
|
|
10875
11657
|
}
|
|
10876
11658
|
return contents;
|
|
10877
11659
|
};
|
|
11660
|
+
const deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse = async (parsedOutput, context) => {
|
|
11661
|
+
const contents = {
|
|
11662
|
+
name: "NoSuchResponseHeadersPolicy",
|
|
11663
|
+
$fault: "client",
|
|
11664
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
11665
|
+
Message: undefined,
|
|
11666
|
+
};
|
|
11667
|
+
const data = parsedOutput.body.Error;
|
|
11668
|
+
if (data["Message"] !== undefined) {
|
|
11669
|
+
contents.Message = smithy_client_1.expectString(data["Message"]);
|
|
11670
|
+
}
|
|
11671
|
+
return contents;
|
|
11672
|
+
};
|
|
10878
11673
|
const deserializeAws_restXmlNoSuchStreamingDistributionResponse = async (parsedOutput, context) => {
|
|
10879
11674
|
const contents = {
|
|
10880
11675
|
name: "NoSuchStreamingDistribution",
|
|
@@ -11018,6 +11813,32 @@ const deserializeAws_restXmlResourceInUseResponse = async (parsedOutput, context
|
|
|
11018
11813
|
}
|
|
11019
11814
|
return contents;
|
|
11020
11815
|
};
|
|
11816
|
+
const deserializeAws_restXmlResponseHeadersPolicyAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
11817
|
+
const contents = {
|
|
11818
|
+
name: "ResponseHeadersPolicyAlreadyExists",
|
|
11819
|
+
$fault: "client",
|
|
11820
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
11821
|
+
Message: undefined,
|
|
11822
|
+
};
|
|
11823
|
+
const data = parsedOutput.body.Error;
|
|
11824
|
+
if (data["Message"] !== undefined) {
|
|
11825
|
+
contents.Message = smithy_client_1.expectString(data["Message"]);
|
|
11826
|
+
}
|
|
11827
|
+
return contents;
|
|
11828
|
+
};
|
|
11829
|
+
const deserializeAws_restXmlResponseHeadersPolicyInUseResponse = async (parsedOutput, context) => {
|
|
11830
|
+
const contents = {
|
|
11831
|
+
name: "ResponseHeadersPolicyInUse",
|
|
11832
|
+
$fault: "client",
|
|
11833
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
11834
|
+
Message: undefined,
|
|
11835
|
+
};
|
|
11836
|
+
const data = parsedOutput.body.Error;
|
|
11837
|
+
if (data["Message"] !== undefined) {
|
|
11838
|
+
contents.Message = smithy_client_1.expectString(data["Message"]);
|
|
11839
|
+
}
|
|
11840
|
+
return contents;
|
|
11841
|
+
};
|
|
11021
11842
|
const deserializeAws_restXmlStreamingDistributionAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
11022
11843
|
const contents = {
|
|
11023
11844
|
name: "StreamingDistributionAlreadyExists",
|
|
@@ -11148,6 +11969,19 @@ const deserializeAws_restXmlTooManyCookiesInOriginRequestPolicyResponse = async
|
|
|
11148
11969
|
}
|
|
11149
11970
|
return contents;
|
|
11150
11971
|
};
|
|
11972
|
+
const deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse = async (parsedOutput, context) => {
|
|
11973
|
+
const contents = {
|
|
11974
|
+
name: "TooManyCustomHeadersInResponseHeadersPolicy",
|
|
11975
|
+
$fault: "client",
|
|
11976
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
11977
|
+
Message: undefined,
|
|
11978
|
+
};
|
|
11979
|
+
const data = parsedOutput.body.Error;
|
|
11980
|
+
if (data["Message"] !== undefined) {
|
|
11981
|
+
contents.Message = smithy_client_1.expectString(data["Message"]);
|
|
11982
|
+
}
|
|
11983
|
+
return contents;
|
|
11984
|
+
};
|
|
11151
11985
|
const deserializeAws_restXmlTooManyDistributionCNAMEsResponse = async (parsedOutput, context) => {
|
|
11152
11986
|
const contents = {
|
|
11153
11987
|
name: "TooManyDistributionCNAMEs",
|
|
@@ -11226,6 +12060,19 @@ const deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyR
|
|
|
11226
12060
|
}
|
|
11227
12061
|
return contents;
|
|
11228
12062
|
};
|
|
12063
|
+
const deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse = async (parsedOutput, context) => {
|
|
12064
|
+
const contents = {
|
|
12065
|
+
name: "TooManyDistributionsAssociatedToResponseHeadersPolicy",
|
|
12066
|
+
$fault: "client",
|
|
12067
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
12068
|
+
Message: undefined,
|
|
12069
|
+
};
|
|
12070
|
+
const data = parsedOutput.body.Error;
|
|
12071
|
+
if (data["Message"] !== undefined) {
|
|
12072
|
+
contents.Message = smithy_client_1.expectString(data["Message"]);
|
|
12073
|
+
}
|
|
12074
|
+
return contents;
|
|
12075
|
+
};
|
|
11229
12076
|
const deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse = async (parsedOutput, context) => {
|
|
11230
12077
|
const contents = {
|
|
11231
12078
|
name: "TooManyDistributionsWithFunctionAssociations",
|
|
@@ -11590,6 +12437,19 @@ const deserializeAws_restXmlTooManyRealtimeLogConfigsResponse = async (parsedOut
|
|
|
11590
12437
|
}
|
|
11591
12438
|
return contents;
|
|
11592
12439
|
};
|
|
12440
|
+
const deserializeAws_restXmlTooManyResponseHeadersPoliciesResponse = async (parsedOutput, context) => {
|
|
12441
|
+
const contents = {
|
|
12442
|
+
name: "TooManyResponseHeadersPolicies",
|
|
12443
|
+
$fault: "client",
|
|
12444
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
12445
|
+
Message: undefined,
|
|
12446
|
+
};
|
|
12447
|
+
const data = parsedOutput.body.Error;
|
|
12448
|
+
if (data["Message"] !== undefined) {
|
|
12449
|
+
contents.Message = smithy_client_1.expectString(data["Message"]);
|
|
12450
|
+
}
|
|
12451
|
+
return contents;
|
|
12452
|
+
};
|
|
11593
12453
|
const deserializeAws_restXmlTooManyStreamingDistributionCNAMEsResponse = async (parsedOutput, context) => {
|
|
11594
12454
|
const contents = {
|
|
11595
12455
|
name: "TooManyStreamingDistributionCNAMEs",
|
|
@@ -11668,6 +12528,50 @@ const deserializeAws_restXmlUnsupportedOperationResponse = async (parsedOutput,
|
|
|
11668
12528
|
}
|
|
11669
12529
|
return contents;
|
|
11670
12530
|
};
|
|
12531
|
+
const serializeAws_restXmlAccessControlAllowHeadersList = (input, context) => {
|
|
12532
|
+
return input
|
|
12533
|
+
.filter((e) => e != null)
|
|
12534
|
+
.map((entry) => {
|
|
12535
|
+
if (entry === null) {
|
|
12536
|
+
return null;
|
|
12537
|
+
}
|
|
12538
|
+
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(entry));
|
|
12539
|
+
return node.withName("Header");
|
|
12540
|
+
});
|
|
12541
|
+
};
|
|
12542
|
+
const serializeAws_restXmlAccessControlAllowMethodsList = (input, context) => {
|
|
12543
|
+
return input
|
|
12544
|
+
.filter((e) => e != null)
|
|
12545
|
+
.map((entry) => {
|
|
12546
|
+
if (entry === null) {
|
|
12547
|
+
return null;
|
|
12548
|
+
}
|
|
12549
|
+
const node = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlAllowMethodsValues").addChildNode(new xml_builder_1.XmlText(entry));
|
|
12550
|
+
return node.withName("Method");
|
|
12551
|
+
});
|
|
12552
|
+
};
|
|
12553
|
+
const serializeAws_restXmlAccessControlAllowOriginsList = (input, context) => {
|
|
12554
|
+
return input
|
|
12555
|
+
.filter((e) => e != null)
|
|
12556
|
+
.map((entry) => {
|
|
12557
|
+
if (entry === null) {
|
|
12558
|
+
return null;
|
|
12559
|
+
}
|
|
12560
|
+
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(entry));
|
|
12561
|
+
return node.withName("Origin");
|
|
12562
|
+
});
|
|
12563
|
+
};
|
|
12564
|
+
const serializeAws_restXmlAccessControlExposeHeadersList = (input, context) => {
|
|
12565
|
+
return input
|
|
12566
|
+
.filter((e) => e != null)
|
|
12567
|
+
.map((entry) => {
|
|
12568
|
+
if (entry === null) {
|
|
12569
|
+
return null;
|
|
12570
|
+
}
|
|
12571
|
+
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(entry));
|
|
12572
|
+
return node.withName("Header");
|
|
12573
|
+
});
|
|
12574
|
+
};
|
|
11671
12575
|
const serializeAws_restXmlAliases = (input, context) => {
|
|
11672
12576
|
const bodyNode = new xml_builder_1.XmlNode("Aliases");
|
|
11673
12577
|
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
@@ -11794,6 +12698,12 @@ const serializeAws_restXmlCacheBehavior = (input, context) => {
|
|
|
11794
12698
|
.withName("OriginRequestPolicyId");
|
|
11795
12699
|
bodyNode.addChildNode(node);
|
|
11796
12700
|
}
|
|
12701
|
+
if (input.ResponseHeadersPolicyId !== undefined && input.ResponseHeadersPolicyId !== null) {
|
|
12702
|
+
const node = new xml_builder_1.XmlNode("string")
|
|
12703
|
+
.addChildNode(new xml_builder_1.XmlText(input.ResponseHeadersPolicyId))
|
|
12704
|
+
.withName("ResponseHeadersPolicyId");
|
|
12705
|
+
bodyNode.addChildNode(node);
|
|
12706
|
+
}
|
|
11797
12707
|
if (input.ForwardedValues !== undefined && input.ForwardedValues !== null) {
|
|
11798
12708
|
const node = serializeAws_restXmlForwardedValues(input.ForwardedValues, context).withName("ForwardedValues");
|
|
11799
12709
|
bodyNode.addChildNode(node);
|
|
@@ -12199,6 +13109,12 @@ const serializeAws_restXmlDefaultCacheBehavior = (input, context) => {
|
|
|
12199
13109
|
.withName("OriginRequestPolicyId");
|
|
12200
13110
|
bodyNode.addChildNode(node);
|
|
12201
13111
|
}
|
|
13112
|
+
if (input.ResponseHeadersPolicyId !== undefined && input.ResponseHeadersPolicyId !== null) {
|
|
13113
|
+
const node = new xml_builder_1.XmlNode("string")
|
|
13114
|
+
.addChildNode(new xml_builder_1.XmlText(input.ResponseHeadersPolicyId))
|
|
13115
|
+
.withName("ResponseHeadersPolicyId");
|
|
13116
|
+
bodyNode.addChildNode(node);
|
|
13117
|
+
}
|
|
12202
13118
|
if (input.ForwardedValues !== undefined && input.ForwardedValues !== null) {
|
|
12203
13119
|
const node = serializeAws_restXmlForwardedValues(input.ForwardedValues, context).withName("ForwardedValues");
|
|
12204
13120
|
bodyNode.addChildNode(node);
|
|
@@ -12765,7 +13681,9 @@ const serializeAws_restXmlOriginCustomHeader = (input, context) => {
|
|
|
12765
13681
|
bodyNode.addChildNode(node);
|
|
12766
13682
|
}
|
|
12767
13683
|
if (input.HeaderValue !== undefined && input.HeaderValue !== null) {
|
|
12768
|
-
const node = new xml_builder_1.XmlNode("
|
|
13684
|
+
const node = new xml_builder_1.XmlNode("sensitiveStringType")
|
|
13685
|
+
.addChildNode(new xml_builder_1.XmlText(input.HeaderValue))
|
|
13686
|
+
.withName("HeaderValue");
|
|
12769
13687
|
bodyNode.addChildNode(node);
|
|
12770
13688
|
}
|
|
12771
13689
|
return bodyNode;
|
|
@@ -13193,6 +14111,297 @@ const serializeAws_restXmlRealtimeMetricsSubscriptionConfig = (input, context) =
|
|
|
13193
14111
|
}
|
|
13194
14112
|
return bodyNode;
|
|
13195
14113
|
};
|
|
14114
|
+
const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders = (input, context) => {
|
|
14115
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlAllowHeaders");
|
|
14116
|
+
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
14117
|
+
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
14118
|
+
bodyNode.addChildNode(node);
|
|
14119
|
+
}
|
|
14120
|
+
if (input.Items !== undefined && input.Items !== null) {
|
|
14121
|
+
const nodes = serializeAws_restXmlAccessControlAllowHeadersList(input.Items, context);
|
|
14122
|
+
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
14123
|
+
nodes.map((node) => {
|
|
14124
|
+
containerNode.addChildNode(node);
|
|
14125
|
+
});
|
|
14126
|
+
bodyNode.addChildNode(containerNode);
|
|
14127
|
+
}
|
|
14128
|
+
return bodyNode;
|
|
14129
|
+
};
|
|
14130
|
+
const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods = (input, context) => {
|
|
14131
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlAllowMethods");
|
|
14132
|
+
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
14133
|
+
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
14134
|
+
bodyNode.addChildNode(node);
|
|
14135
|
+
}
|
|
14136
|
+
if (input.Items !== undefined && input.Items !== null) {
|
|
14137
|
+
const nodes = serializeAws_restXmlAccessControlAllowMethodsList(input.Items, context);
|
|
14138
|
+
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
14139
|
+
nodes.map((node) => {
|
|
14140
|
+
containerNode.addChildNode(node);
|
|
14141
|
+
});
|
|
14142
|
+
bodyNode.addChildNode(containerNode);
|
|
14143
|
+
}
|
|
14144
|
+
return bodyNode;
|
|
14145
|
+
};
|
|
14146
|
+
const serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins = (input, context) => {
|
|
14147
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlAllowOrigins");
|
|
14148
|
+
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
14149
|
+
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
14150
|
+
bodyNode.addChildNode(node);
|
|
14151
|
+
}
|
|
14152
|
+
if (input.Items !== undefined && input.Items !== null) {
|
|
14153
|
+
const nodes = serializeAws_restXmlAccessControlAllowOriginsList(input.Items, context);
|
|
14154
|
+
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
14155
|
+
nodes.map((node) => {
|
|
14156
|
+
containerNode.addChildNode(node);
|
|
14157
|
+
});
|
|
14158
|
+
bodyNode.addChildNode(containerNode);
|
|
14159
|
+
}
|
|
14160
|
+
return bodyNode;
|
|
14161
|
+
};
|
|
14162
|
+
const serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders = (input, context) => {
|
|
14163
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyAccessControlExposeHeaders");
|
|
14164
|
+
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
14165
|
+
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
14166
|
+
bodyNode.addChildNode(node);
|
|
14167
|
+
}
|
|
14168
|
+
if (input.Items !== undefined && input.Items !== null) {
|
|
14169
|
+
const nodes = serializeAws_restXmlAccessControlExposeHeadersList(input.Items, context);
|
|
14170
|
+
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
14171
|
+
nodes.map((node) => {
|
|
14172
|
+
containerNode.addChildNode(node);
|
|
14173
|
+
});
|
|
14174
|
+
bodyNode.addChildNode(containerNode);
|
|
14175
|
+
}
|
|
14176
|
+
return bodyNode;
|
|
14177
|
+
};
|
|
14178
|
+
const serializeAws_restXmlResponseHeadersPolicyConfig = (input, context) => {
|
|
14179
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyConfig");
|
|
14180
|
+
if (input.Comment !== undefined && input.Comment !== null) {
|
|
14181
|
+
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Comment)).withName("Comment");
|
|
14182
|
+
bodyNode.addChildNode(node);
|
|
14183
|
+
}
|
|
14184
|
+
if (input.Name !== undefined && input.Name !== null) {
|
|
14185
|
+
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
14186
|
+
bodyNode.addChildNode(node);
|
|
14187
|
+
}
|
|
14188
|
+
if (input.CorsConfig !== undefined && input.CorsConfig !== null) {
|
|
14189
|
+
const node = serializeAws_restXmlResponseHeadersPolicyCorsConfig(input.CorsConfig, context).withName("CorsConfig");
|
|
14190
|
+
bodyNode.addChildNode(node);
|
|
14191
|
+
}
|
|
14192
|
+
if (input.SecurityHeadersConfig !== undefined && input.SecurityHeadersConfig !== null) {
|
|
14193
|
+
const node = serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(input.SecurityHeadersConfig, context).withName("SecurityHeadersConfig");
|
|
14194
|
+
bodyNode.addChildNode(node);
|
|
14195
|
+
}
|
|
14196
|
+
if (input.CustomHeadersConfig !== undefined && input.CustomHeadersConfig !== null) {
|
|
14197
|
+
const node = serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(input.CustomHeadersConfig, context).withName("CustomHeadersConfig");
|
|
14198
|
+
bodyNode.addChildNode(node);
|
|
14199
|
+
}
|
|
14200
|
+
return bodyNode;
|
|
14201
|
+
};
|
|
14202
|
+
const serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = (input, context) => {
|
|
14203
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyContentSecurityPolicy");
|
|
14204
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
14205
|
+
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
14206
|
+
bodyNode.addChildNode(node);
|
|
14207
|
+
}
|
|
14208
|
+
if (input.ContentSecurityPolicy !== undefined && input.ContentSecurityPolicy !== null) {
|
|
14209
|
+
const node = new xml_builder_1.XmlNode("string")
|
|
14210
|
+
.addChildNode(new xml_builder_1.XmlText(input.ContentSecurityPolicy))
|
|
14211
|
+
.withName("ContentSecurityPolicy");
|
|
14212
|
+
bodyNode.addChildNode(node);
|
|
14213
|
+
}
|
|
14214
|
+
return bodyNode;
|
|
14215
|
+
};
|
|
14216
|
+
const serializeAws_restXmlResponseHeadersPolicyContentTypeOptions = (input, context) => {
|
|
14217
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyContentTypeOptions");
|
|
14218
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
14219
|
+
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
14220
|
+
bodyNode.addChildNode(node);
|
|
14221
|
+
}
|
|
14222
|
+
return bodyNode;
|
|
14223
|
+
};
|
|
14224
|
+
const serializeAws_restXmlResponseHeadersPolicyCorsConfig = (input, context) => {
|
|
14225
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyCorsConfig");
|
|
14226
|
+
if (input.AccessControlAllowOrigins !== undefined && input.AccessControlAllowOrigins !== null) {
|
|
14227
|
+
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins(input.AccessControlAllowOrigins, context).withName("AccessControlAllowOrigins");
|
|
14228
|
+
bodyNode.addChildNode(node);
|
|
14229
|
+
}
|
|
14230
|
+
if (input.AccessControlAllowHeaders !== undefined && input.AccessControlAllowHeaders !== null) {
|
|
14231
|
+
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders(input.AccessControlAllowHeaders, context).withName("AccessControlAllowHeaders");
|
|
14232
|
+
bodyNode.addChildNode(node);
|
|
14233
|
+
}
|
|
14234
|
+
if (input.AccessControlAllowMethods !== undefined && input.AccessControlAllowMethods !== null) {
|
|
14235
|
+
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods(input.AccessControlAllowMethods, context).withName("AccessControlAllowMethods");
|
|
14236
|
+
bodyNode.addChildNode(node);
|
|
14237
|
+
}
|
|
14238
|
+
if (input.AccessControlAllowCredentials !== undefined && input.AccessControlAllowCredentials !== null) {
|
|
14239
|
+
const node = new xml_builder_1.XmlNode("boolean")
|
|
14240
|
+
.addChildNode(new xml_builder_1.XmlText(String(input.AccessControlAllowCredentials)))
|
|
14241
|
+
.withName("AccessControlAllowCredentials");
|
|
14242
|
+
bodyNode.addChildNode(node);
|
|
14243
|
+
}
|
|
14244
|
+
if (input.AccessControlExposeHeaders !== undefined && input.AccessControlExposeHeaders !== null) {
|
|
14245
|
+
const node = serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders(input.AccessControlExposeHeaders, context).withName("AccessControlExposeHeaders");
|
|
14246
|
+
bodyNode.addChildNode(node);
|
|
14247
|
+
}
|
|
14248
|
+
if (input.AccessControlMaxAgeSec !== undefined && input.AccessControlMaxAgeSec !== null) {
|
|
14249
|
+
const node = new xml_builder_1.XmlNode("integer")
|
|
14250
|
+
.addChildNode(new xml_builder_1.XmlText(String(input.AccessControlMaxAgeSec)))
|
|
14251
|
+
.withName("AccessControlMaxAgeSec");
|
|
14252
|
+
bodyNode.addChildNode(node);
|
|
14253
|
+
}
|
|
14254
|
+
if (input.OriginOverride !== undefined && input.OriginOverride !== null) {
|
|
14255
|
+
const node = new xml_builder_1.XmlNode("boolean")
|
|
14256
|
+
.addChildNode(new xml_builder_1.XmlText(String(input.OriginOverride)))
|
|
14257
|
+
.withName("OriginOverride");
|
|
14258
|
+
bodyNode.addChildNode(node);
|
|
14259
|
+
}
|
|
14260
|
+
return bodyNode;
|
|
14261
|
+
};
|
|
14262
|
+
const serializeAws_restXmlResponseHeadersPolicyCustomHeader = (input, context) => {
|
|
14263
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyCustomHeader");
|
|
14264
|
+
if (input.Header !== undefined && input.Header !== null) {
|
|
14265
|
+
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Header)).withName("Header");
|
|
14266
|
+
bodyNode.addChildNode(node);
|
|
14267
|
+
}
|
|
14268
|
+
if (input.Value !== undefined && input.Value !== null) {
|
|
14269
|
+
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
|
|
14270
|
+
bodyNode.addChildNode(node);
|
|
14271
|
+
}
|
|
14272
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
14273
|
+
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
14274
|
+
bodyNode.addChildNode(node);
|
|
14275
|
+
}
|
|
14276
|
+
return bodyNode;
|
|
14277
|
+
};
|
|
14278
|
+
const serializeAws_restXmlResponseHeadersPolicyCustomHeaderList = (input, context) => {
|
|
14279
|
+
return input
|
|
14280
|
+
.filter((e) => e != null)
|
|
14281
|
+
.map((entry) => {
|
|
14282
|
+
if (entry === null) {
|
|
14283
|
+
return null;
|
|
14284
|
+
}
|
|
14285
|
+
const node = serializeAws_restXmlResponseHeadersPolicyCustomHeader(entry, context);
|
|
14286
|
+
return node.withName("ResponseHeadersPolicyCustomHeader");
|
|
14287
|
+
});
|
|
14288
|
+
};
|
|
14289
|
+
const serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig = (input, context) => {
|
|
14290
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyCustomHeadersConfig");
|
|
14291
|
+
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
14292
|
+
const node = new xml_builder_1.XmlNode("integer").addChildNode(new xml_builder_1.XmlText(String(input.Quantity))).withName("Quantity");
|
|
14293
|
+
bodyNode.addChildNode(node);
|
|
14294
|
+
}
|
|
14295
|
+
if (input.Items !== undefined && input.Items !== null) {
|
|
14296
|
+
const nodes = serializeAws_restXmlResponseHeadersPolicyCustomHeaderList(input.Items, context);
|
|
14297
|
+
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
14298
|
+
nodes.map((node) => {
|
|
14299
|
+
containerNode.addChildNode(node);
|
|
14300
|
+
});
|
|
14301
|
+
bodyNode.addChildNode(containerNode);
|
|
14302
|
+
}
|
|
14303
|
+
return bodyNode;
|
|
14304
|
+
};
|
|
14305
|
+
const serializeAws_restXmlResponseHeadersPolicyFrameOptions = (input, context) => {
|
|
14306
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyFrameOptions");
|
|
14307
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
14308
|
+
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
14309
|
+
bodyNode.addChildNode(node);
|
|
14310
|
+
}
|
|
14311
|
+
if (input.FrameOption !== undefined && input.FrameOption !== null) {
|
|
14312
|
+
const node = new xml_builder_1.XmlNode("FrameOptionsList")
|
|
14313
|
+
.addChildNode(new xml_builder_1.XmlText(input.FrameOption))
|
|
14314
|
+
.withName("FrameOption");
|
|
14315
|
+
bodyNode.addChildNode(node);
|
|
14316
|
+
}
|
|
14317
|
+
return bodyNode;
|
|
14318
|
+
};
|
|
14319
|
+
const serializeAws_restXmlResponseHeadersPolicyReferrerPolicy = (input, context) => {
|
|
14320
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyReferrerPolicy");
|
|
14321
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
14322
|
+
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
14323
|
+
bodyNode.addChildNode(node);
|
|
14324
|
+
}
|
|
14325
|
+
if (input.ReferrerPolicy !== undefined && input.ReferrerPolicy !== null) {
|
|
14326
|
+
const node = new xml_builder_1.XmlNode("ReferrerPolicyList")
|
|
14327
|
+
.addChildNode(new xml_builder_1.XmlText(input.ReferrerPolicy))
|
|
14328
|
+
.withName("ReferrerPolicy");
|
|
14329
|
+
bodyNode.addChildNode(node);
|
|
14330
|
+
}
|
|
14331
|
+
return bodyNode;
|
|
14332
|
+
};
|
|
14333
|
+
const serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig = (input, context) => {
|
|
14334
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicySecurityHeadersConfig");
|
|
14335
|
+
if (input.XSSProtection !== undefined && input.XSSProtection !== null) {
|
|
14336
|
+
const node = serializeAws_restXmlResponseHeadersPolicyXSSProtection(input.XSSProtection, context).withName("XSSProtection");
|
|
14337
|
+
bodyNode.addChildNode(node);
|
|
14338
|
+
}
|
|
14339
|
+
if (input.FrameOptions !== undefined && input.FrameOptions !== null) {
|
|
14340
|
+
const node = serializeAws_restXmlResponseHeadersPolicyFrameOptions(input.FrameOptions, context).withName("FrameOptions");
|
|
14341
|
+
bodyNode.addChildNode(node);
|
|
14342
|
+
}
|
|
14343
|
+
if (input.ReferrerPolicy !== undefined && input.ReferrerPolicy !== null) {
|
|
14344
|
+
const node = serializeAws_restXmlResponseHeadersPolicyReferrerPolicy(input.ReferrerPolicy, context).withName("ReferrerPolicy");
|
|
14345
|
+
bodyNode.addChildNode(node);
|
|
14346
|
+
}
|
|
14347
|
+
if (input.ContentSecurityPolicy !== undefined && input.ContentSecurityPolicy !== null) {
|
|
14348
|
+
const node = serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy(input.ContentSecurityPolicy, context).withName("ContentSecurityPolicy");
|
|
14349
|
+
bodyNode.addChildNode(node);
|
|
14350
|
+
}
|
|
14351
|
+
if (input.ContentTypeOptions !== undefined && input.ContentTypeOptions !== null) {
|
|
14352
|
+
const node = serializeAws_restXmlResponseHeadersPolicyContentTypeOptions(input.ContentTypeOptions, context).withName("ContentTypeOptions");
|
|
14353
|
+
bodyNode.addChildNode(node);
|
|
14354
|
+
}
|
|
14355
|
+
if (input.StrictTransportSecurity !== undefined && input.StrictTransportSecurity !== null) {
|
|
14356
|
+
const node = serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity(input.StrictTransportSecurity, context).withName("StrictTransportSecurity");
|
|
14357
|
+
bodyNode.addChildNode(node);
|
|
14358
|
+
}
|
|
14359
|
+
return bodyNode;
|
|
14360
|
+
};
|
|
14361
|
+
const serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity = (input, context) => {
|
|
14362
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyStrictTransportSecurity");
|
|
14363
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
14364
|
+
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
14365
|
+
bodyNode.addChildNode(node);
|
|
14366
|
+
}
|
|
14367
|
+
if (input.IncludeSubdomains !== undefined && input.IncludeSubdomains !== null) {
|
|
14368
|
+
const node = new xml_builder_1.XmlNode("boolean")
|
|
14369
|
+
.addChildNode(new xml_builder_1.XmlText(String(input.IncludeSubdomains)))
|
|
14370
|
+
.withName("IncludeSubdomains");
|
|
14371
|
+
bodyNode.addChildNode(node);
|
|
14372
|
+
}
|
|
14373
|
+
if (input.Preload !== undefined && input.Preload !== null) {
|
|
14374
|
+
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Preload))).withName("Preload");
|
|
14375
|
+
bodyNode.addChildNode(node);
|
|
14376
|
+
}
|
|
14377
|
+
if (input.AccessControlMaxAgeSec !== undefined && input.AccessControlMaxAgeSec !== null) {
|
|
14378
|
+
const node = new xml_builder_1.XmlNode("integer")
|
|
14379
|
+
.addChildNode(new xml_builder_1.XmlText(String(input.AccessControlMaxAgeSec)))
|
|
14380
|
+
.withName("AccessControlMaxAgeSec");
|
|
14381
|
+
bodyNode.addChildNode(node);
|
|
14382
|
+
}
|
|
14383
|
+
return bodyNode;
|
|
14384
|
+
};
|
|
14385
|
+
const serializeAws_restXmlResponseHeadersPolicyXSSProtection = (input, context) => {
|
|
14386
|
+
const bodyNode = new xml_builder_1.XmlNode("ResponseHeadersPolicyXSSProtection");
|
|
14387
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
14388
|
+
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Override))).withName("Override");
|
|
14389
|
+
bodyNode.addChildNode(node);
|
|
14390
|
+
}
|
|
14391
|
+
if (input.Protection !== undefined && input.Protection !== null) {
|
|
14392
|
+
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.Protection))).withName("Protection");
|
|
14393
|
+
bodyNode.addChildNode(node);
|
|
14394
|
+
}
|
|
14395
|
+
if (input.ModeBlock !== undefined && input.ModeBlock !== null) {
|
|
14396
|
+
const node = new xml_builder_1.XmlNode("boolean").addChildNode(new xml_builder_1.XmlText(String(input.ModeBlock))).withName("ModeBlock");
|
|
14397
|
+
bodyNode.addChildNode(node);
|
|
14398
|
+
}
|
|
14399
|
+
if (input.ReportUri !== undefined && input.ReportUri !== null) {
|
|
14400
|
+
const node = new xml_builder_1.XmlNode("string").addChildNode(new xml_builder_1.XmlText(input.ReportUri)).withName("ReportUri");
|
|
14401
|
+
bodyNode.addChildNode(node);
|
|
14402
|
+
}
|
|
14403
|
+
return bodyNode;
|
|
14404
|
+
};
|
|
13196
14405
|
const serializeAws_restXmlRestrictions = (input, context) => {
|
|
13197
14406
|
const bodyNode = new xml_builder_1.XmlNode("Restrictions");
|
|
13198
14407
|
if (input.GeoRestriction !== undefined && input.GeoRestriction !== null) {
|
|
@@ -13480,6 +14689,46 @@ const serializeAws_restXmlViewerCertificate = (input, context) => {
|
|
|
13480
14689
|
}
|
|
13481
14690
|
return bodyNode;
|
|
13482
14691
|
};
|
|
14692
|
+
const deserializeAws_restXmlAccessControlAllowHeadersList = (output, context) => {
|
|
14693
|
+
return (output || [])
|
|
14694
|
+
.filter((e) => e != null)
|
|
14695
|
+
.map((entry) => {
|
|
14696
|
+
if (entry === null) {
|
|
14697
|
+
return null;
|
|
14698
|
+
}
|
|
14699
|
+
return smithy_client_1.expectString(entry);
|
|
14700
|
+
});
|
|
14701
|
+
};
|
|
14702
|
+
const deserializeAws_restXmlAccessControlAllowMethodsList = (output, context) => {
|
|
14703
|
+
return (output || [])
|
|
14704
|
+
.filter((e) => e != null)
|
|
14705
|
+
.map((entry) => {
|
|
14706
|
+
if (entry === null) {
|
|
14707
|
+
return null;
|
|
14708
|
+
}
|
|
14709
|
+
return smithy_client_1.expectString(entry);
|
|
14710
|
+
});
|
|
14711
|
+
};
|
|
14712
|
+
const deserializeAws_restXmlAccessControlAllowOriginsList = (output, context) => {
|
|
14713
|
+
return (output || [])
|
|
14714
|
+
.filter((e) => e != null)
|
|
14715
|
+
.map((entry) => {
|
|
14716
|
+
if (entry === null) {
|
|
14717
|
+
return null;
|
|
14718
|
+
}
|
|
14719
|
+
return smithy_client_1.expectString(entry);
|
|
14720
|
+
});
|
|
14721
|
+
};
|
|
14722
|
+
const deserializeAws_restXmlAccessControlExposeHeadersList = (output, context) => {
|
|
14723
|
+
return (output || [])
|
|
14724
|
+
.filter((e) => e != null)
|
|
14725
|
+
.map((entry) => {
|
|
14726
|
+
if (entry === null) {
|
|
14727
|
+
return null;
|
|
14728
|
+
}
|
|
14729
|
+
return smithy_client_1.expectString(entry);
|
|
14730
|
+
});
|
|
14731
|
+
};
|
|
13483
14732
|
const deserializeAws_restXmlActiveTrustedKeyGroups = (output, context) => {
|
|
13484
14733
|
const contents = {
|
|
13485
14734
|
Enabled: undefined,
|
|
@@ -13615,6 +14864,7 @@ const deserializeAws_restXmlCacheBehavior = (output, context) => {
|
|
|
13615
14864
|
RealtimeLogConfigArn: undefined,
|
|
13616
14865
|
CachePolicyId: undefined,
|
|
13617
14866
|
OriginRequestPolicyId: undefined,
|
|
14867
|
+
ResponseHeadersPolicyId: undefined,
|
|
13618
14868
|
ForwardedValues: undefined,
|
|
13619
14869
|
MinTTL: undefined,
|
|
13620
14870
|
DefaultTTL: undefined,
|
|
@@ -13662,6 +14912,9 @@ const deserializeAws_restXmlCacheBehavior = (output, context) => {
|
|
|
13662
14912
|
if (output["OriginRequestPolicyId"] !== undefined) {
|
|
13663
14913
|
contents.OriginRequestPolicyId = smithy_client_1.expectString(output["OriginRequestPolicyId"]);
|
|
13664
14914
|
}
|
|
14915
|
+
if (output["ResponseHeadersPolicyId"] !== undefined) {
|
|
14916
|
+
contents.ResponseHeadersPolicyId = smithy_client_1.expectString(output["ResponseHeadersPolicyId"]);
|
|
14917
|
+
}
|
|
13665
14918
|
if (output["ForwardedValues"] !== undefined) {
|
|
13666
14919
|
contents.ForwardedValues = deserializeAws_restXmlForwardedValues(output["ForwardedValues"], context);
|
|
13667
14920
|
}
|
|
@@ -14192,6 +15445,7 @@ const deserializeAws_restXmlDefaultCacheBehavior = (output, context) => {
|
|
|
14192
15445
|
RealtimeLogConfigArn: undefined,
|
|
14193
15446
|
CachePolicyId: undefined,
|
|
14194
15447
|
OriginRequestPolicyId: undefined,
|
|
15448
|
+
ResponseHeadersPolicyId: undefined,
|
|
14195
15449
|
ForwardedValues: undefined,
|
|
14196
15450
|
MinTTL: undefined,
|
|
14197
15451
|
DefaultTTL: undefined,
|
|
@@ -14236,6 +15490,9 @@ const deserializeAws_restXmlDefaultCacheBehavior = (output, context) => {
|
|
|
14236
15490
|
if (output["OriginRequestPolicyId"] !== undefined) {
|
|
14237
15491
|
contents.OriginRequestPolicyId = smithy_client_1.expectString(output["OriginRequestPolicyId"]);
|
|
14238
15492
|
}
|
|
15493
|
+
if (output["ResponseHeadersPolicyId"] !== undefined) {
|
|
15494
|
+
contents.ResponseHeadersPolicyId = smithy_client_1.expectString(output["ResponseHeadersPolicyId"]);
|
|
15495
|
+
}
|
|
14239
15496
|
if (output["ForwardedValues"] !== undefined) {
|
|
14240
15497
|
contents.ForwardedValues = deserializeAws_restXmlForwardedValues(output["ForwardedValues"], context);
|
|
14241
15498
|
}
|
|
@@ -16046,6 +17303,354 @@ const deserializeAws_restXmlRealtimeMetricsSubscriptionConfig = (output, context
|
|
|
16046
17303
|
}
|
|
16047
17304
|
return contents;
|
|
16048
17305
|
};
|
|
17306
|
+
const deserializeAws_restXmlResponseHeadersPolicy = (output, context) => {
|
|
17307
|
+
const contents = {
|
|
17308
|
+
Id: undefined,
|
|
17309
|
+
LastModifiedTime: undefined,
|
|
17310
|
+
ResponseHeadersPolicyConfig: undefined,
|
|
17311
|
+
};
|
|
17312
|
+
if (output["Id"] !== undefined) {
|
|
17313
|
+
contents.Id = smithy_client_1.expectString(output["Id"]);
|
|
17314
|
+
}
|
|
17315
|
+
if (output["LastModifiedTime"] !== undefined) {
|
|
17316
|
+
contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["LastModifiedTime"]));
|
|
17317
|
+
}
|
|
17318
|
+
if (output["ResponseHeadersPolicyConfig"] !== undefined) {
|
|
17319
|
+
contents.ResponseHeadersPolicyConfig = deserializeAws_restXmlResponseHeadersPolicyConfig(output["ResponseHeadersPolicyConfig"], context);
|
|
17320
|
+
}
|
|
17321
|
+
return contents;
|
|
17322
|
+
};
|
|
17323
|
+
const deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders = (output, context) => {
|
|
17324
|
+
const contents = {
|
|
17325
|
+
Quantity: undefined,
|
|
17326
|
+
Items: undefined,
|
|
17327
|
+
};
|
|
17328
|
+
if (output["Quantity"] !== undefined) {
|
|
17329
|
+
contents.Quantity = smithy_client_1.strictParseInt32(output["Quantity"]);
|
|
17330
|
+
}
|
|
17331
|
+
if (output.Items === "") {
|
|
17332
|
+
contents.Items = [];
|
|
17333
|
+
}
|
|
17334
|
+
if (output["Items"] !== undefined && output["Items"]["Header"] !== undefined) {
|
|
17335
|
+
contents.Items = deserializeAws_restXmlAccessControlAllowHeadersList(smithy_client_1.getArrayIfSingleItem(output["Items"]["Header"]), context);
|
|
17336
|
+
}
|
|
17337
|
+
return contents;
|
|
17338
|
+
};
|
|
17339
|
+
const deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods = (output, context) => {
|
|
17340
|
+
const contents = {
|
|
17341
|
+
Quantity: undefined,
|
|
17342
|
+
Items: undefined,
|
|
17343
|
+
};
|
|
17344
|
+
if (output["Quantity"] !== undefined) {
|
|
17345
|
+
contents.Quantity = smithy_client_1.strictParseInt32(output["Quantity"]);
|
|
17346
|
+
}
|
|
17347
|
+
if (output.Items === "") {
|
|
17348
|
+
contents.Items = [];
|
|
17349
|
+
}
|
|
17350
|
+
if (output["Items"] !== undefined && output["Items"]["Method"] !== undefined) {
|
|
17351
|
+
contents.Items = deserializeAws_restXmlAccessControlAllowMethodsList(smithy_client_1.getArrayIfSingleItem(output["Items"]["Method"]), context);
|
|
17352
|
+
}
|
|
17353
|
+
return contents;
|
|
17354
|
+
};
|
|
17355
|
+
const deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins = (output, context) => {
|
|
17356
|
+
const contents = {
|
|
17357
|
+
Quantity: undefined,
|
|
17358
|
+
Items: undefined,
|
|
17359
|
+
};
|
|
17360
|
+
if (output["Quantity"] !== undefined) {
|
|
17361
|
+
contents.Quantity = smithy_client_1.strictParseInt32(output["Quantity"]);
|
|
17362
|
+
}
|
|
17363
|
+
if (output.Items === "") {
|
|
17364
|
+
contents.Items = [];
|
|
17365
|
+
}
|
|
17366
|
+
if (output["Items"] !== undefined && output["Items"]["Origin"] !== undefined) {
|
|
17367
|
+
contents.Items = deserializeAws_restXmlAccessControlAllowOriginsList(smithy_client_1.getArrayIfSingleItem(output["Items"]["Origin"]), context);
|
|
17368
|
+
}
|
|
17369
|
+
return contents;
|
|
17370
|
+
};
|
|
17371
|
+
const deserializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders = (output, context) => {
|
|
17372
|
+
const contents = {
|
|
17373
|
+
Quantity: undefined,
|
|
17374
|
+
Items: undefined,
|
|
17375
|
+
};
|
|
17376
|
+
if (output["Quantity"] !== undefined) {
|
|
17377
|
+
contents.Quantity = smithy_client_1.strictParseInt32(output["Quantity"]);
|
|
17378
|
+
}
|
|
17379
|
+
if (output.Items === "") {
|
|
17380
|
+
contents.Items = [];
|
|
17381
|
+
}
|
|
17382
|
+
if (output["Items"] !== undefined && output["Items"]["Header"] !== undefined) {
|
|
17383
|
+
contents.Items = deserializeAws_restXmlAccessControlExposeHeadersList(smithy_client_1.getArrayIfSingleItem(output["Items"]["Header"]), context);
|
|
17384
|
+
}
|
|
17385
|
+
return contents;
|
|
17386
|
+
};
|
|
17387
|
+
const deserializeAws_restXmlResponseHeadersPolicyConfig = (output, context) => {
|
|
17388
|
+
const contents = {
|
|
17389
|
+
Comment: undefined,
|
|
17390
|
+
Name: undefined,
|
|
17391
|
+
CorsConfig: undefined,
|
|
17392
|
+
SecurityHeadersConfig: undefined,
|
|
17393
|
+
CustomHeadersConfig: undefined,
|
|
17394
|
+
};
|
|
17395
|
+
if (output["Comment"] !== undefined) {
|
|
17396
|
+
contents.Comment = smithy_client_1.expectString(output["Comment"]);
|
|
17397
|
+
}
|
|
17398
|
+
if (output["Name"] !== undefined) {
|
|
17399
|
+
contents.Name = smithy_client_1.expectString(output["Name"]);
|
|
17400
|
+
}
|
|
17401
|
+
if (output["CorsConfig"] !== undefined) {
|
|
17402
|
+
contents.CorsConfig = deserializeAws_restXmlResponseHeadersPolicyCorsConfig(output["CorsConfig"], context);
|
|
17403
|
+
}
|
|
17404
|
+
if (output["SecurityHeadersConfig"] !== undefined) {
|
|
17405
|
+
contents.SecurityHeadersConfig = deserializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(output["SecurityHeadersConfig"], context);
|
|
17406
|
+
}
|
|
17407
|
+
if (output["CustomHeadersConfig"] !== undefined) {
|
|
17408
|
+
contents.CustomHeadersConfig = deserializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(output["CustomHeadersConfig"], context);
|
|
17409
|
+
}
|
|
17410
|
+
return contents;
|
|
17411
|
+
};
|
|
17412
|
+
const deserializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = (output, context) => {
|
|
17413
|
+
const contents = {
|
|
17414
|
+
Override: undefined,
|
|
17415
|
+
ContentSecurityPolicy: undefined,
|
|
17416
|
+
};
|
|
17417
|
+
if (output["Override"] !== undefined) {
|
|
17418
|
+
contents.Override = smithy_client_1.parseBoolean(output["Override"]);
|
|
17419
|
+
}
|
|
17420
|
+
if (output["ContentSecurityPolicy"] !== undefined) {
|
|
17421
|
+
contents.ContentSecurityPolicy = smithy_client_1.expectString(output["ContentSecurityPolicy"]);
|
|
17422
|
+
}
|
|
17423
|
+
return contents;
|
|
17424
|
+
};
|
|
17425
|
+
const deserializeAws_restXmlResponseHeadersPolicyContentTypeOptions = (output, context) => {
|
|
17426
|
+
const contents = {
|
|
17427
|
+
Override: undefined,
|
|
17428
|
+
};
|
|
17429
|
+
if (output["Override"] !== undefined) {
|
|
17430
|
+
contents.Override = smithy_client_1.parseBoolean(output["Override"]);
|
|
17431
|
+
}
|
|
17432
|
+
return contents;
|
|
17433
|
+
};
|
|
17434
|
+
const deserializeAws_restXmlResponseHeadersPolicyCorsConfig = (output, context) => {
|
|
17435
|
+
const contents = {
|
|
17436
|
+
AccessControlAllowOrigins: undefined,
|
|
17437
|
+
AccessControlAllowHeaders: undefined,
|
|
17438
|
+
AccessControlAllowMethods: undefined,
|
|
17439
|
+
AccessControlAllowCredentials: undefined,
|
|
17440
|
+
AccessControlExposeHeaders: undefined,
|
|
17441
|
+
AccessControlMaxAgeSec: undefined,
|
|
17442
|
+
OriginOverride: undefined,
|
|
17443
|
+
};
|
|
17444
|
+
if (output["AccessControlAllowOrigins"] !== undefined) {
|
|
17445
|
+
contents.AccessControlAllowOrigins = deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins(output["AccessControlAllowOrigins"], context);
|
|
17446
|
+
}
|
|
17447
|
+
if (output["AccessControlAllowHeaders"] !== undefined) {
|
|
17448
|
+
contents.AccessControlAllowHeaders = deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders(output["AccessControlAllowHeaders"], context);
|
|
17449
|
+
}
|
|
17450
|
+
if (output["AccessControlAllowMethods"] !== undefined) {
|
|
17451
|
+
contents.AccessControlAllowMethods = deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods(output["AccessControlAllowMethods"], context);
|
|
17452
|
+
}
|
|
17453
|
+
if (output["AccessControlAllowCredentials"] !== undefined) {
|
|
17454
|
+
contents.AccessControlAllowCredentials = smithy_client_1.parseBoolean(output["AccessControlAllowCredentials"]);
|
|
17455
|
+
}
|
|
17456
|
+
if (output["AccessControlExposeHeaders"] !== undefined) {
|
|
17457
|
+
contents.AccessControlExposeHeaders = deserializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders(output["AccessControlExposeHeaders"], context);
|
|
17458
|
+
}
|
|
17459
|
+
if (output["AccessControlMaxAgeSec"] !== undefined) {
|
|
17460
|
+
contents.AccessControlMaxAgeSec = smithy_client_1.strictParseInt32(output["AccessControlMaxAgeSec"]);
|
|
17461
|
+
}
|
|
17462
|
+
if (output["OriginOverride"] !== undefined) {
|
|
17463
|
+
contents.OriginOverride = smithy_client_1.parseBoolean(output["OriginOverride"]);
|
|
17464
|
+
}
|
|
17465
|
+
return contents;
|
|
17466
|
+
};
|
|
17467
|
+
const deserializeAws_restXmlResponseHeadersPolicyCustomHeader = (output, context) => {
|
|
17468
|
+
const contents = {
|
|
17469
|
+
Header: undefined,
|
|
17470
|
+
Value: undefined,
|
|
17471
|
+
Override: undefined,
|
|
17472
|
+
};
|
|
17473
|
+
if (output["Header"] !== undefined) {
|
|
17474
|
+
contents.Header = smithy_client_1.expectString(output["Header"]);
|
|
17475
|
+
}
|
|
17476
|
+
if (output["Value"] !== undefined) {
|
|
17477
|
+
contents.Value = smithy_client_1.expectString(output["Value"]);
|
|
17478
|
+
}
|
|
17479
|
+
if (output["Override"] !== undefined) {
|
|
17480
|
+
contents.Override = smithy_client_1.parseBoolean(output["Override"]);
|
|
17481
|
+
}
|
|
17482
|
+
return contents;
|
|
17483
|
+
};
|
|
17484
|
+
const deserializeAws_restXmlResponseHeadersPolicyCustomHeaderList = (output, context) => {
|
|
17485
|
+
return (output || [])
|
|
17486
|
+
.filter((e) => e != null)
|
|
17487
|
+
.map((entry) => {
|
|
17488
|
+
if (entry === null) {
|
|
17489
|
+
return null;
|
|
17490
|
+
}
|
|
17491
|
+
return deserializeAws_restXmlResponseHeadersPolicyCustomHeader(entry, context);
|
|
17492
|
+
});
|
|
17493
|
+
};
|
|
17494
|
+
const deserializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig = (output, context) => {
|
|
17495
|
+
const contents = {
|
|
17496
|
+
Quantity: undefined,
|
|
17497
|
+
Items: undefined,
|
|
17498
|
+
};
|
|
17499
|
+
if (output["Quantity"] !== undefined) {
|
|
17500
|
+
contents.Quantity = smithy_client_1.strictParseInt32(output["Quantity"]);
|
|
17501
|
+
}
|
|
17502
|
+
if (output.Items === "") {
|
|
17503
|
+
contents.Items = [];
|
|
17504
|
+
}
|
|
17505
|
+
if (output["Items"] !== undefined && output["Items"]["ResponseHeadersPolicyCustomHeader"] !== undefined) {
|
|
17506
|
+
contents.Items = deserializeAws_restXmlResponseHeadersPolicyCustomHeaderList(smithy_client_1.getArrayIfSingleItem(output["Items"]["ResponseHeadersPolicyCustomHeader"]), context);
|
|
17507
|
+
}
|
|
17508
|
+
return contents;
|
|
17509
|
+
};
|
|
17510
|
+
const deserializeAws_restXmlResponseHeadersPolicyFrameOptions = (output, context) => {
|
|
17511
|
+
const contents = {
|
|
17512
|
+
Override: undefined,
|
|
17513
|
+
FrameOption: undefined,
|
|
17514
|
+
};
|
|
17515
|
+
if (output["Override"] !== undefined) {
|
|
17516
|
+
contents.Override = smithy_client_1.parseBoolean(output["Override"]);
|
|
17517
|
+
}
|
|
17518
|
+
if (output["FrameOption"] !== undefined) {
|
|
17519
|
+
contents.FrameOption = smithy_client_1.expectString(output["FrameOption"]);
|
|
17520
|
+
}
|
|
17521
|
+
return contents;
|
|
17522
|
+
};
|
|
17523
|
+
const deserializeAws_restXmlResponseHeadersPolicyList = (output, context) => {
|
|
17524
|
+
const contents = {
|
|
17525
|
+
NextMarker: undefined,
|
|
17526
|
+
MaxItems: undefined,
|
|
17527
|
+
Quantity: undefined,
|
|
17528
|
+
Items: undefined,
|
|
17529
|
+
};
|
|
17530
|
+
if (output["NextMarker"] !== undefined) {
|
|
17531
|
+
contents.NextMarker = smithy_client_1.expectString(output["NextMarker"]);
|
|
17532
|
+
}
|
|
17533
|
+
if (output["MaxItems"] !== undefined) {
|
|
17534
|
+
contents.MaxItems = smithy_client_1.strictParseInt32(output["MaxItems"]);
|
|
17535
|
+
}
|
|
17536
|
+
if (output["Quantity"] !== undefined) {
|
|
17537
|
+
contents.Quantity = smithy_client_1.strictParseInt32(output["Quantity"]);
|
|
17538
|
+
}
|
|
17539
|
+
if (output.Items === "") {
|
|
17540
|
+
contents.Items = [];
|
|
17541
|
+
}
|
|
17542
|
+
if (output["Items"] !== undefined && output["Items"]["ResponseHeadersPolicySummary"] !== undefined) {
|
|
17543
|
+
contents.Items = deserializeAws_restXmlResponseHeadersPolicySummaryList(smithy_client_1.getArrayIfSingleItem(output["Items"]["ResponseHeadersPolicySummary"]), context);
|
|
17544
|
+
}
|
|
17545
|
+
return contents;
|
|
17546
|
+
};
|
|
17547
|
+
const deserializeAws_restXmlResponseHeadersPolicyReferrerPolicy = (output, context) => {
|
|
17548
|
+
const contents = {
|
|
17549
|
+
Override: undefined,
|
|
17550
|
+
ReferrerPolicy: undefined,
|
|
17551
|
+
};
|
|
17552
|
+
if (output["Override"] !== undefined) {
|
|
17553
|
+
contents.Override = smithy_client_1.parseBoolean(output["Override"]);
|
|
17554
|
+
}
|
|
17555
|
+
if (output["ReferrerPolicy"] !== undefined) {
|
|
17556
|
+
contents.ReferrerPolicy = smithy_client_1.expectString(output["ReferrerPolicy"]);
|
|
17557
|
+
}
|
|
17558
|
+
return contents;
|
|
17559
|
+
};
|
|
17560
|
+
const deserializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig = (output, context) => {
|
|
17561
|
+
const contents = {
|
|
17562
|
+
XSSProtection: undefined,
|
|
17563
|
+
FrameOptions: undefined,
|
|
17564
|
+
ReferrerPolicy: undefined,
|
|
17565
|
+
ContentSecurityPolicy: undefined,
|
|
17566
|
+
ContentTypeOptions: undefined,
|
|
17567
|
+
StrictTransportSecurity: undefined,
|
|
17568
|
+
};
|
|
17569
|
+
if (output["XSSProtection"] !== undefined) {
|
|
17570
|
+
contents.XSSProtection = deserializeAws_restXmlResponseHeadersPolicyXSSProtection(output["XSSProtection"], context);
|
|
17571
|
+
}
|
|
17572
|
+
if (output["FrameOptions"] !== undefined) {
|
|
17573
|
+
contents.FrameOptions = deserializeAws_restXmlResponseHeadersPolicyFrameOptions(output["FrameOptions"], context);
|
|
17574
|
+
}
|
|
17575
|
+
if (output["ReferrerPolicy"] !== undefined) {
|
|
17576
|
+
contents.ReferrerPolicy = deserializeAws_restXmlResponseHeadersPolicyReferrerPolicy(output["ReferrerPolicy"], context);
|
|
17577
|
+
}
|
|
17578
|
+
if (output["ContentSecurityPolicy"] !== undefined) {
|
|
17579
|
+
contents.ContentSecurityPolicy = deserializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy(output["ContentSecurityPolicy"], context);
|
|
17580
|
+
}
|
|
17581
|
+
if (output["ContentTypeOptions"] !== undefined) {
|
|
17582
|
+
contents.ContentTypeOptions = deserializeAws_restXmlResponseHeadersPolicyContentTypeOptions(output["ContentTypeOptions"], context);
|
|
17583
|
+
}
|
|
17584
|
+
if (output["StrictTransportSecurity"] !== undefined) {
|
|
17585
|
+
contents.StrictTransportSecurity = deserializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity(output["StrictTransportSecurity"], context);
|
|
17586
|
+
}
|
|
17587
|
+
return contents;
|
|
17588
|
+
};
|
|
17589
|
+
const deserializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity = (output, context) => {
|
|
17590
|
+
const contents = {
|
|
17591
|
+
Override: undefined,
|
|
17592
|
+
IncludeSubdomains: undefined,
|
|
17593
|
+
Preload: undefined,
|
|
17594
|
+
AccessControlMaxAgeSec: undefined,
|
|
17595
|
+
};
|
|
17596
|
+
if (output["Override"] !== undefined) {
|
|
17597
|
+
contents.Override = smithy_client_1.parseBoolean(output["Override"]);
|
|
17598
|
+
}
|
|
17599
|
+
if (output["IncludeSubdomains"] !== undefined) {
|
|
17600
|
+
contents.IncludeSubdomains = smithy_client_1.parseBoolean(output["IncludeSubdomains"]);
|
|
17601
|
+
}
|
|
17602
|
+
if (output["Preload"] !== undefined) {
|
|
17603
|
+
contents.Preload = smithy_client_1.parseBoolean(output["Preload"]);
|
|
17604
|
+
}
|
|
17605
|
+
if (output["AccessControlMaxAgeSec"] !== undefined) {
|
|
17606
|
+
contents.AccessControlMaxAgeSec = smithy_client_1.strictParseInt32(output["AccessControlMaxAgeSec"]);
|
|
17607
|
+
}
|
|
17608
|
+
return contents;
|
|
17609
|
+
};
|
|
17610
|
+
const deserializeAws_restXmlResponseHeadersPolicySummary = (output, context) => {
|
|
17611
|
+
const contents = {
|
|
17612
|
+
Type: undefined,
|
|
17613
|
+
ResponseHeadersPolicy: undefined,
|
|
17614
|
+
};
|
|
17615
|
+
if (output["Type"] !== undefined) {
|
|
17616
|
+
contents.Type = smithy_client_1.expectString(output["Type"]);
|
|
17617
|
+
}
|
|
17618
|
+
if (output["ResponseHeadersPolicy"] !== undefined) {
|
|
17619
|
+
contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(output["ResponseHeadersPolicy"], context);
|
|
17620
|
+
}
|
|
17621
|
+
return contents;
|
|
17622
|
+
};
|
|
17623
|
+
const deserializeAws_restXmlResponseHeadersPolicySummaryList = (output, context) => {
|
|
17624
|
+
return (output || [])
|
|
17625
|
+
.filter((e) => e != null)
|
|
17626
|
+
.map((entry) => {
|
|
17627
|
+
if (entry === null) {
|
|
17628
|
+
return null;
|
|
17629
|
+
}
|
|
17630
|
+
return deserializeAws_restXmlResponseHeadersPolicySummary(entry, context);
|
|
17631
|
+
});
|
|
17632
|
+
};
|
|
17633
|
+
const deserializeAws_restXmlResponseHeadersPolicyXSSProtection = (output, context) => {
|
|
17634
|
+
const contents = {
|
|
17635
|
+
Override: undefined,
|
|
17636
|
+
Protection: undefined,
|
|
17637
|
+
ModeBlock: undefined,
|
|
17638
|
+
ReportUri: undefined,
|
|
17639
|
+
};
|
|
17640
|
+
if (output["Override"] !== undefined) {
|
|
17641
|
+
contents.Override = smithy_client_1.parseBoolean(output["Override"]);
|
|
17642
|
+
}
|
|
17643
|
+
if (output["Protection"] !== undefined) {
|
|
17644
|
+
contents.Protection = smithy_client_1.parseBoolean(output["Protection"]);
|
|
17645
|
+
}
|
|
17646
|
+
if (output["ModeBlock"] !== undefined) {
|
|
17647
|
+
contents.ModeBlock = smithy_client_1.parseBoolean(output["ModeBlock"]);
|
|
17648
|
+
}
|
|
17649
|
+
if (output["ReportUri"] !== undefined) {
|
|
17650
|
+
contents.ReportUri = smithy_client_1.expectString(output["ReportUri"]);
|
|
17651
|
+
}
|
|
17652
|
+
return contents;
|
|
17653
|
+
};
|
|
16049
17654
|
const deserializeAws_restXmlRestrictions = (output, context) => {
|
|
16050
17655
|
const contents = {
|
|
16051
17656
|
GeoRestriction: undefined,
|