@aws-sdk/client-cloudfront 3.224.0 → 3.226.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +4 -3
  2. package/dist-cjs/CloudFront.js +15 -0
  3. package/dist-cjs/commands/UpdateDistributionWithStagingConfigCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoint/ruleset.js +0 -9
  6. package/dist-cjs/models/models_0.js +61 -51
  7. package/dist-cjs/models/models_1.js +60 -5
  8. package/dist-cjs/protocols/Aws_restXml.js +351 -7
  9. package/dist-es/CloudFront.js +15 -0
  10. package/dist-es/commands/UpdateDistributionWithStagingConfigCommand.js +42 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/endpoint/ruleset.js +0 -9
  13. package/dist-es/models/models_0.js +52 -42
  14. package/dist-es/models/models_1.js +49 -0
  15. package/dist-es/protocols/Aws_restXml.js +344 -2
  16. package/dist-types/CloudFront.d.ts +252 -216
  17. package/dist-types/CloudFrontClient.d.ts +7 -5
  18. package/dist-types/commands/AssociateAliasCommand.d.ts +2 -2
  19. package/dist-types/commands/CopyDistributionCommand.d.ts +5 -5
  20. package/dist-types/commands/CreateCachePolicyCommand.d.ts +15 -13
  21. package/dist-types/commands/CreateCloudFrontOriginAccessIdentityCommand.d.ts +4 -3
  22. package/dist-types/commands/CreateContinuousDeploymentPolicyCommand.d.ts +9 -10
  23. package/dist-types/commands/CreateFunctionCommand.d.ts +4 -4
  24. package/dist-types/commands/CreateKeyGroupCommand.d.ts +8 -7
  25. package/dist-types/commands/CreateMonitoringSubscriptionCommand.d.ts +2 -2
  26. package/dist-types/commands/CreateOriginAccessControlCommand.d.ts +4 -4
  27. package/dist-types/commands/CreateOriginRequestPolicyCommand.d.ts +12 -10
  28. package/dist-types/commands/CreateRealtimeLogConfigCommand.d.ts +2 -1
  29. package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +4 -4
  30. package/dist-types/commands/CreateStreamingDistributionCommand.d.ts +3 -3
  31. package/dist-types/commands/CreateStreamingDistributionWithTagsCommand.d.ts +3 -3
  32. package/dist-types/commands/DeleteCachePolicyCommand.d.ts +5 -5
  33. package/dist-types/commands/DeleteFunctionCommand.d.ts +5 -5
  34. package/dist-types/commands/DeleteKeyGroupCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
  36. package/dist-types/commands/DeleteOriginAccessControlCommand.d.ts +3 -3
  37. package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +6 -6
  38. package/dist-types/commands/DeleteRealtimeLogConfigCommand.d.ts +2 -2
  39. package/dist-types/commands/DeleteStreamingDistributionCommand.d.ts +22 -20
  40. package/dist-types/commands/DescribeFunctionCommand.d.ts +2 -2
  41. package/dist-types/commands/GetCachePolicyCommand.d.ts +5 -5
  42. package/dist-types/commands/GetCachePolicyConfigCommand.d.ts +3 -3
  43. package/dist-types/commands/GetKeyGroupCommand.d.ts +3 -2
  44. package/dist-types/commands/GetKeyGroupConfigCommand.d.ts +1 -1
  45. package/dist-types/commands/GetMonitoringSubscriptionCommand.d.ts +2 -2
  46. package/dist-types/commands/GetOriginRequestPolicyCommand.d.ts +6 -5
  47. package/dist-types/commands/GetOriginRequestPolicyConfigCommand.d.ts +5 -5
  48. package/dist-types/commands/GetRealtimeLogConfigCommand.d.ts +3 -3
  49. package/dist-types/commands/GetResponseHeadersPolicyCommand.d.ts +2 -2
  50. package/dist-types/commands/GetResponseHeadersPolicyConfigCommand.d.ts +2 -2
  51. package/dist-types/commands/GetStreamingDistributionCommand.d.ts +2 -1
  52. package/dist-types/commands/ListCachePoliciesCommand.d.ts +2 -2
  53. package/dist-types/commands/ListConflictingAliasesCommand.d.ts +8 -8
  54. package/dist-types/commands/ListDistributionsByKeyGroupCommand.d.ts +2 -2
  55. package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +4 -4
  56. package/dist-types/commands/ListFieldLevelEncryptionConfigsCommand.d.ts +2 -1
  57. package/dist-types/commands/ListFieldLevelEncryptionProfilesCommand.d.ts +2 -1
  58. package/dist-types/commands/ListOriginAccessControlsCommand.d.ts +5 -5
  59. package/dist-types/commands/ListOriginRequestPoliciesCommand.d.ts +2 -2
  60. package/dist-types/commands/PublishFunctionCommand.d.ts +10 -9
  61. package/dist-types/commands/TestFunctionCommand.d.ts +9 -9
  62. package/dist-types/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +4 -3
  63. package/dist-types/commands/UpdateDistributionCommand.d.ts +14 -13
  64. package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +46 -0
  65. package/dist-types/commands/UpdateFunctionCommand.d.ts +3 -3
  66. package/dist-types/commands/UpdateKeyGroupCommand.d.ts +1 -1
  67. package/dist-types/commands/UpdateOriginRequestPolicyCommand.d.ts +2 -1
  68. package/dist-types/commands/UpdatePublicKeyCommand.d.ts +2 -1
  69. package/dist-types/commands/UpdateRealtimeLogConfigCommand.d.ts +1 -1
  70. package/dist-types/commands/index.d.ts +1 -0
  71. package/dist-types/models/models_0.d.ts +1291 -1191
  72. package/dist-types/models/models_1.d.ts +488 -325
  73. package/dist-types/protocols/Aws_restXml.d.ts +3 -0
  74. package/dist-types/ts3.4/CloudFront.d.ts +23 -0
  75. package/dist-types/ts3.4/CloudFrontClient.d.ts +6 -0
  76. package/dist-types/ts3.4/commands/UpdateDistributionWithStagingConfigCommand.d.ts +41 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  78. package/dist-types/ts3.4/models/models_0.d.ts +46 -38
  79. package/dist-types/ts3.4/models/models_1.d.ts +54 -1
  80. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +12 -0
  81. package/package.json +29 -29
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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_restXmlGetContinuousDeploymentPolicyConfigCommand = exports.serializeAws_restXmlGetContinuousDeploymentPolicyCommand = 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_restXmlDeleteOriginAccessControlCommand = exports.serializeAws_restXmlDeleteMonitoringSubscriptionCommand = exports.serializeAws_restXmlDeleteKeyGroupCommand = exports.serializeAws_restXmlDeleteFunctionCommand = exports.serializeAws_restXmlDeleteFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlDeleteFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlDeleteDistributionCommand = exports.serializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = 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_restXmlCreateOriginAccessControlCommand = 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_restXmlCreateContinuousDeploymentPolicyCommand = exports.serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = exports.serializeAws_restXmlCreateCachePolicyCommand = exports.serializeAws_restXmlCopyDistributionCommand = exports.serializeAws_restXmlAssociateAliasCommand = void 0;
4
- exports.serializeAws_restXmlUpdateOriginAccessControlCommand = exports.serializeAws_restXmlUpdateKeyGroupCommand = exports.serializeAws_restXmlUpdateFunctionCommand = exports.serializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlUpdateDistributionCommand = exports.serializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = 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_restXmlListOriginAccessControlsCommand = 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_restXmlListContinuousDeploymentPoliciesCommand = exports.serializeAws_restXmlListConflictingAliasesCommand = exports.serializeAws_restXmlListCloudFrontOriginAccessIdentitiesCommand = exports.serializeAws_restXmlListCachePoliciesCommand = exports.serializeAws_restXmlGetStreamingDistributionConfigCommand = exports.serializeAws_restXmlGetStreamingDistributionCommand = exports.serializeAws_restXmlGetResponseHeadersPolicyConfigCommand = exports.serializeAws_restXmlGetResponseHeadersPolicyCommand = exports.serializeAws_restXmlGetRealtimeLogConfigCommand = exports.serializeAws_restXmlGetPublicKeyConfigCommand = exports.serializeAws_restXmlGetPublicKeyCommand = exports.serializeAws_restXmlGetOriginRequestPolicyConfigCommand = exports.serializeAws_restXmlGetOriginRequestPolicyCommand = exports.serializeAws_restXmlGetOriginAccessControlConfigCommand = exports.serializeAws_restXmlGetOriginAccessControlCommand = exports.serializeAws_restXmlGetMonitoringSubscriptionCommand = exports.serializeAws_restXmlGetKeyGroupConfigCommand = exports.serializeAws_restXmlGetKeyGroupCommand = void 0;
5
- exports.deserializeAws_restXmlGetFieldLevelEncryptionCommand = exports.deserializeAws_restXmlGetDistributionConfigCommand = exports.deserializeAws_restXmlGetDistributionCommand = exports.deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand = exports.deserializeAws_restXmlGetContinuousDeploymentPolicyCommand = 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_restXmlDeleteOriginAccessControlCommand = exports.deserializeAws_restXmlDeleteMonitoringSubscriptionCommand = exports.deserializeAws_restXmlDeleteKeyGroupCommand = exports.deserializeAws_restXmlDeleteFunctionCommand = exports.deserializeAws_restXmlDeleteFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlDeleteFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlDeleteDistributionCommand = exports.deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = 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_restXmlCreateOriginAccessControlCommand = exports.deserializeAws_restXmlCreateMonitoringSubscriptionCommand = exports.deserializeAws_restXmlCreateKeyGroupCommand = exports.deserializeAws_restXmlCreateInvalidationCommand = exports.deserializeAws_restXmlCreateFunctionCommand = exports.deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlCreateDistributionWithTagsCommand = exports.deserializeAws_restXmlCreateDistributionCommand = exports.deserializeAws_restXmlCreateContinuousDeploymentPolicyCommand = exports.deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlCreateCachePolicyCommand = exports.deserializeAws_restXmlCopyDistributionCommand = exports.deserializeAws_restXmlAssociateAliasCommand = exports.serializeAws_restXmlUpdateStreamingDistributionCommand = exports.serializeAws_restXmlUpdateResponseHeadersPolicyCommand = exports.serializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.serializeAws_restXmlUpdatePublicKeyCommand = exports.serializeAws_restXmlUpdateOriginRequestPolicyCommand = void 0;
6
- exports.deserializeAws_restXmlUpdateDistributionCommand = exports.deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = 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_restXmlListOriginAccessControlsCommand = 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 = exports.deserializeAws_restXmlListContinuousDeploymentPoliciesCommand = 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_restXmlGetOriginAccessControlConfigCommand = exports.deserializeAws_restXmlGetOriginAccessControlCommand = exports.deserializeAws_restXmlGetMonitoringSubscriptionCommand = exports.deserializeAws_restXmlGetKeyGroupConfigCommand = exports.deserializeAws_restXmlGetKeyGroupCommand = exports.deserializeAws_restXmlGetInvalidationCommand = exports.deserializeAws_restXmlGetFunctionCommand = exports.deserializeAws_restXmlGetFieldLevelEncryptionProfileConfigCommand = exports.deserializeAws_restXmlGetFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlGetFieldLevelEncryptionConfigCommand = void 0;
7
- exports.deserializeAws_restXmlUpdateStreamingDistributionCommand = exports.deserializeAws_restXmlUpdateResponseHeadersPolicyCommand = exports.deserializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.deserializeAws_restXmlUpdatePublicKeyCommand = exports.deserializeAws_restXmlUpdateOriginRequestPolicyCommand = exports.deserializeAws_restXmlUpdateOriginAccessControlCommand = exports.deserializeAws_restXmlUpdateKeyGroupCommand = exports.deserializeAws_restXmlUpdateFunctionCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = void 0;
4
+ exports.serializeAws_restXmlUpdateKeyGroupCommand = exports.serializeAws_restXmlUpdateFunctionCommand = exports.serializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlUpdateDistributionWithStagingConfigCommand = exports.serializeAws_restXmlUpdateDistributionCommand = exports.serializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = 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_restXmlListOriginAccessControlsCommand = 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_restXmlListContinuousDeploymentPoliciesCommand = exports.serializeAws_restXmlListConflictingAliasesCommand = exports.serializeAws_restXmlListCloudFrontOriginAccessIdentitiesCommand = exports.serializeAws_restXmlListCachePoliciesCommand = exports.serializeAws_restXmlGetStreamingDistributionConfigCommand = exports.serializeAws_restXmlGetStreamingDistributionCommand = exports.serializeAws_restXmlGetResponseHeadersPolicyConfigCommand = exports.serializeAws_restXmlGetResponseHeadersPolicyCommand = exports.serializeAws_restXmlGetRealtimeLogConfigCommand = exports.serializeAws_restXmlGetPublicKeyConfigCommand = exports.serializeAws_restXmlGetPublicKeyCommand = exports.serializeAws_restXmlGetOriginRequestPolicyConfigCommand = exports.serializeAws_restXmlGetOriginRequestPolicyCommand = exports.serializeAws_restXmlGetOriginAccessControlConfigCommand = exports.serializeAws_restXmlGetOriginAccessControlCommand = exports.serializeAws_restXmlGetMonitoringSubscriptionCommand = exports.serializeAws_restXmlGetKeyGroupConfigCommand = exports.serializeAws_restXmlGetKeyGroupCommand = void 0;
5
+ exports.deserializeAws_restXmlGetDistributionConfigCommand = exports.deserializeAws_restXmlGetDistributionCommand = exports.deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand = exports.deserializeAws_restXmlGetContinuousDeploymentPolicyCommand = 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_restXmlDeleteOriginAccessControlCommand = exports.deserializeAws_restXmlDeleteMonitoringSubscriptionCommand = exports.deserializeAws_restXmlDeleteKeyGroupCommand = exports.deserializeAws_restXmlDeleteFunctionCommand = exports.deserializeAws_restXmlDeleteFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlDeleteFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlDeleteDistributionCommand = exports.deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = 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_restXmlCreateOriginAccessControlCommand = exports.deserializeAws_restXmlCreateMonitoringSubscriptionCommand = exports.deserializeAws_restXmlCreateKeyGroupCommand = exports.deserializeAws_restXmlCreateInvalidationCommand = exports.deserializeAws_restXmlCreateFunctionCommand = exports.deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlCreateDistributionWithTagsCommand = exports.deserializeAws_restXmlCreateDistributionCommand = exports.deserializeAws_restXmlCreateContinuousDeploymentPolicyCommand = exports.deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlCreateCachePolicyCommand = exports.deserializeAws_restXmlCopyDistributionCommand = exports.deserializeAws_restXmlAssociateAliasCommand = exports.serializeAws_restXmlUpdateStreamingDistributionCommand = exports.serializeAws_restXmlUpdateResponseHeadersPolicyCommand = exports.serializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.serializeAws_restXmlUpdatePublicKeyCommand = exports.serializeAws_restXmlUpdateOriginRequestPolicyCommand = exports.serializeAws_restXmlUpdateOriginAccessControlCommand = void 0;
6
+ exports.deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = 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_restXmlListOriginAccessControlsCommand = 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 = exports.deserializeAws_restXmlListContinuousDeploymentPoliciesCommand = 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_restXmlGetOriginAccessControlConfigCommand = exports.deserializeAws_restXmlGetOriginAccessControlCommand = 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 = void 0;
7
+ exports.deserializeAws_restXmlUpdateStreamingDistributionCommand = exports.deserializeAws_restXmlUpdateResponseHeadersPolicyCommand = exports.deserializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.deserializeAws_restXmlUpdatePublicKeyCommand = exports.deserializeAws_restXmlUpdateOriginRequestPolicyCommand = exports.deserializeAws_restXmlUpdateOriginAccessControlCommand = exports.deserializeAws_restXmlUpdateKeyGroupCommand = exports.deserializeAws_restXmlUpdateFunctionCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlUpdateDistributionWithStagingConfigCommand = exports.deserializeAws_restXmlUpdateDistributionCommand = void 0;
8
8
  const protocol_http_1 = require("@aws-sdk/protocol-http");
9
9
  const smithy_client_1 = require("@aws-sdk/smithy-client");
10
10
  const xml_builder_1 = require("@aws-sdk/xml-builder");
@@ -2191,6 +2191,30 @@ const serializeAws_restXmlUpdateDistributionCommand = async (input, context) =>
2191
2191
  });
2192
2192
  };
2193
2193
  exports.serializeAws_restXmlUpdateDistributionCommand = serializeAws_restXmlUpdateDistributionCommand;
2194
+ const serializeAws_restXmlUpdateDistributionWithStagingConfigCommand = async (input, context) => {
2195
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2196
+ const headers = map({}, isSerializableHeaderValue, {
2197
+ "if-match": input.IfMatch,
2198
+ });
2199
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2200
+ "/2020-05-31/distribution/{Id}/promote-staging-config";
2201
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
2202
+ const query = map({
2203
+ StagingDistributionId: [, input.StagingDistributionId],
2204
+ });
2205
+ let body;
2206
+ return new protocol_http_1.HttpRequest({
2207
+ protocol,
2208
+ hostname,
2209
+ port,
2210
+ method: "PUT",
2211
+ headers,
2212
+ path: resolvedPath,
2213
+ query,
2214
+ body,
2215
+ });
2216
+ };
2217
+ exports.serializeAws_restXmlUpdateDistributionWithStagingConfigCommand = serializeAws_restXmlUpdateDistributionWithStagingConfigCommand;
2194
2218
  const serializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = async (input, context) => {
2195
2219
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2196
2220
  const headers = map({}, isSerializableHeaderValue, {
@@ -2905,6 +2929,9 @@ const deserializeAws_restXmlCreateContinuousDeploymentPolicyCommandError = async
2905
2929
  case "AccessDenied":
2906
2930
  case "com.amazonaws.cloudfront#AccessDenied":
2907
2931
  throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
2932
+ case "ContinuousDeploymentPolicyAlreadyExists":
2933
+ case "com.amazonaws.cloudfront#ContinuousDeploymentPolicyAlreadyExists":
2934
+ throw await deserializeAws_restXmlContinuousDeploymentPolicyAlreadyExistsResponse(parsedOutput, context);
2908
2935
  case "InconsistentQuantities":
2909
2936
  case "com.amazonaws.cloudfront#InconsistentQuantities":
2910
2937
  throw await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context);
@@ -2914,6 +2941,9 @@ const deserializeAws_restXmlCreateContinuousDeploymentPolicyCommandError = async
2914
2941
  case "StagingDistributionInUse":
2915
2942
  case "com.amazonaws.cloudfront#StagingDistributionInUse":
2916
2943
  throw await deserializeAws_restXmlStagingDistributionInUseResponse(parsedOutput, context);
2944
+ case "TooManyContinuousDeploymentPolicies":
2945
+ case "com.amazonaws.cloudfront#TooManyContinuousDeploymentPolicies":
2946
+ throw await deserializeAws_restXmlTooManyContinuousDeploymentPoliciesResponse(parsedOutput, context);
2917
2947
  default:
2918
2948
  const parsedBody = parsedOutput.body;
2919
2949
  (0, smithy_client_1.throwDefaultError)({
@@ -2951,6 +2981,9 @@ const deserializeAws_restXmlCreateDistributionCommandError = async (output, cont
2951
2981
  case "CNAMEAlreadyExists":
2952
2982
  case "com.amazonaws.cloudfront#CNAMEAlreadyExists":
2953
2983
  throw await deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context);
2984
+ case "ContinuousDeploymentPolicyInUse":
2985
+ case "com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":
2986
+ throw await deserializeAws_restXmlContinuousDeploymentPolicyInUseResponse(parsedOutput, context);
2954
2987
  case "DistributionAlreadyExists":
2955
2988
  case "com.amazonaws.cloudfront#DistributionAlreadyExists":
2956
2989
  throw await deserializeAws_restXmlDistributionAlreadyExistsResponse(parsedOutput, context);
@@ -3041,6 +3074,9 @@ const deserializeAws_restXmlCreateDistributionCommandError = async (output, cont
3041
3074
  case "NoSuchCachePolicy":
3042
3075
  case "com.amazonaws.cloudfront#NoSuchCachePolicy":
3043
3076
  throw await deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context);
3077
+ case "NoSuchContinuousDeploymentPolicy":
3078
+ case "com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":
3079
+ throw await deserializeAws_restXmlNoSuchContinuousDeploymentPolicyResponse(parsedOutput, context);
3044
3080
  case "NoSuchFieldLevelEncryptionConfig":
3045
3081
  case "com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":
3046
3082
  throw await deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context);
@@ -3171,6 +3207,9 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (outp
3171
3207
  case "CNAMEAlreadyExists":
3172
3208
  case "com.amazonaws.cloudfront#CNAMEAlreadyExists":
3173
3209
  throw await deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context);
3210
+ case "ContinuousDeploymentPolicyInUse":
3211
+ case "com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":
3212
+ throw await deserializeAws_restXmlContinuousDeploymentPolicyInUseResponse(parsedOutput, context);
3174
3213
  case "DistributionAlreadyExists":
3175
3214
  case "com.amazonaws.cloudfront#DistributionAlreadyExists":
3176
3215
  throw await deserializeAws_restXmlDistributionAlreadyExistsResponse(parsedOutput, context);
@@ -3261,6 +3300,9 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (outp
3261
3300
  case "NoSuchCachePolicy":
3262
3301
  case "com.amazonaws.cloudfront#NoSuchCachePolicy":
3263
3302
  throw await deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context);
3303
+ case "NoSuchContinuousDeploymentPolicy":
3304
+ case "com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":
3305
+ throw await deserializeAws_restXmlNoSuchContinuousDeploymentPolicyResponse(parsedOutput, context);
3264
3306
  case "NoSuchFieldLevelEncryptionConfig":
3265
3307
  case "com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":
3266
3308
  throw await deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context);
@@ -4135,12 +4177,18 @@ const deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommandError = async
4135
4177
  case "AccessDenied":
4136
4178
  case "com.amazonaws.cloudfront#AccessDenied":
4137
4179
  throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
4180
+ case "ContinuousDeploymentPolicyInUse":
4181
+ case "com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":
4182
+ throw await deserializeAws_restXmlContinuousDeploymentPolicyInUseResponse(parsedOutput, context);
4138
4183
  case "InvalidArgument":
4139
4184
  case "com.amazonaws.cloudfront#InvalidArgument":
4140
4185
  throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
4141
4186
  case "InvalidIfMatchVersion":
4142
4187
  case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
4143
4188
  throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
4189
+ case "NoSuchContinuousDeploymentPolicy":
4190
+ case "com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":
4191
+ throw await deserializeAws_restXmlNoSuchContinuousDeploymentPolicyResponse(parsedOutput, context);
4144
4192
  case "PreconditionFailed":
4145
4193
  case "com.amazonaws.cloudfront#PreconditionFailed":
4146
4194
  throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
@@ -4870,6 +4918,9 @@ const deserializeAws_restXmlGetContinuousDeploymentPolicyCommandError = async (o
4870
4918
  case "AccessDenied":
4871
4919
  case "com.amazonaws.cloudfront#AccessDenied":
4872
4920
  throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
4921
+ case "NoSuchContinuousDeploymentPolicy":
4922
+ case "com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":
4923
+ throw await deserializeAws_restXmlNoSuchContinuousDeploymentPolicyResponse(parsedOutput, context);
4873
4924
  default:
4874
4925
  const parsedBody = parsedOutput.body;
4875
4926
  (0, smithy_client_1.throwDefaultError)({
@@ -4903,6 +4954,9 @@ const deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommandError = as
4903
4954
  case "AccessDenied":
4904
4955
  case "com.amazonaws.cloudfront#AccessDenied":
4905
4956
  throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
4957
+ case "NoSuchContinuousDeploymentPolicy":
4958
+ case "com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":
4959
+ throw await deserializeAws_restXmlNoSuchContinuousDeploymentPolicyResponse(parsedOutput, context);
4906
4960
  default:
4907
4961
  const parsedBody = parsedOutput.body;
4908
4962
  (0, smithy_client_1.throwDefaultError)({
@@ -5841,6 +5895,9 @@ const deserializeAws_restXmlListContinuousDeploymentPoliciesCommandError = async
5841
5895
  case "InvalidArgument":
5842
5896
  case "com.amazonaws.cloudfront#InvalidArgument":
5843
5897
  throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
5898
+ case "NoSuchContinuousDeploymentPolicy":
5899
+ case "com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":
5900
+ throw await deserializeAws_restXmlNoSuchContinuousDeploymentPolicyResponse(parsedOutput, context);
5844
5901
  default:
5845
5902
  const parsedBody = parsedOutput.body;
5846
5903
  (0, smithy_client_1.throwDefaultError)({
@@ -6836,6 +6893,9 @@ const deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommandError = async
6836
6893
  case "InvalidIfMatchVersion":
6837
6894
  case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
6838
6895
  throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
6896
+ case "NoSuchContinuousDeploymentPolicy":
6897
+ case "com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":
6898
+ throw await deserializeAws_restXmlNoSuchContinuousDeploymentPolicyResponse(parsedOutput, context);
6839
6899
  case "PreconditionFailed":
6840
6900
  case "com.amazonaws.cloudfront#PreconditionFailed":
6841
6901
  throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
@@ -6878,6 +6938,9 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
6878
6938
  case "CNAMEAlreadyExists":
6879
6939
  case "com.amazonaws.cloudfront#CNAMEAlreadyExists":
6880
6940
  throw await deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context);
6941
+ case "ContinuousDeploymentPolicyInUse":
6942
+ case "com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":
6943
+ throw await deserializeAws_restXmlContinuousDeploymentPolicyInUseResponse(parsedOutput, context);
6881
6944
  case "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
6882
6945
  case "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
6883
6946
  throw await deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context);
@@ -6965,6 +7028,9 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
6965
7028
  case "NoSuchCachePolicy":
6966
7029
  case "com.amazonaws.cloudfront#NoSuchCachePolicy":
6967
7030
  throw await deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context);
7031
+ case "NoSuchContinuousDeploymentPolicy":
7032
+ case "com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":
7033
+ throw await deserializeAws_restXmlNoSuchContinuousDeploymentPolicyResponse(parsedOutput, context);
6968
7034
  case "NoSuchDistribution":
6969
7035
  case "com.amazonaws.cloudfront#NoSuchDistribution":
6970
7036
  throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
@@ -7071,6 +7137,216 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
7071
7137
  });
7072
7138
  }
7073
7139
  };
7140
+ const deserializeAws_restXmlUpdateDistributionWithStagingConfigCommand = async (output, context) => {
7141
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7142
+ return deserializeAws_restXmlUpdateDistributionWithStagingConfigCommandError(output, context);
7143
+ }
7144
+ const contents = map({
7145
+ $metadata: deserializeMetadata(output),
7146
+ ETag: [, output.headers["etag"]],
7147
+ });
7148
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
7149
+ contents.Distribution = deserializeAws_restXmlDistribution(data, context);
7150
+ return contents;
7151
+ };
7152
+ exports.deserializeAws_restXmlUpdateDistributionWithStagingConfigCommand = deserializeAws_restXmlUpdateDistributionWithStagingConfigCommand;
7153
+ const deserializeAws_restXmlUpdateDistributionWithStagingConfigCommandError = async (output, context) => {
7154
+ const parsedOutput = {
7155
+ ...output,
7156
+ body: await parseErrorBody(output.body, context),
7157
+ };
7158
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
7159
+ switch (errorCode) {
7160
+ case "AccessDenied":
7161
+ case "com.amazonaws.cloudfront#AccessDenied":
7162
+ throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
7163
+ case "CNAMEAlreadyExists":
7164
+ case "com.amazonaws.cloudfront#CNAMEAlreadyExists":
7165
+ throw await deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context);
7166
+ case "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
7167
+ case "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
7168
+ throw await deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context);
7169
+ case "IllegalUpdate":
7170
+ case "com.amazonaws.cloudfront#IllegalUpdate":
7171
+ throw await deserializeAws_restXmlIllegalUpdateResponse(parsedOutput, context);
7172
+ case "InconsistentQuantities":
7173
+ case "com.amazonaws.cloudfront#InconsistentQuantities":
7174
+ throw await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context);
7175
+ case "InvalidArgument":
7176
+ case "com.amazonaws.cloudfront#InvalidArgument":
7177
+ throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
7178
+ case "InvalidDefaultRootObject":
7179
+ case "com.amazonaws.cloudfront#InvalidDefaultRootObject":
7180
+ throw await deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context);
7181
+ case "InvalidErrorCode":
7182
+ case "com.amazonaws.cloudfront#InvalidErrorCode":
7183
+ throw await deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context);
7184
+ case "InvalidForwardCookies":
7185
+ case "com.amazonaws.cloudfront#InvalidForwardCookies":
7186
+ throw await deserializeAws_restXmlInvalidForwardCookiesResponse(parsedOutput, context);
7187
+ case "InvalidFunctionAssociation":
7188
+ case "com.amazonaws.cloudfront#InvalidFunctionAssociation":
7189
+ throw await deserializeAws_restXmlInvalidFunctionAssociationResponse(parsedOutput, context);
7190
+ case "InvalidGeoRestrictionParameter":
7191
+ case "com.amazonaws.cloudfront#InvalidGeoRestrictionParameter":
7192
+ throw await deserializeAws_restXmlInvalidGeoRestrictionParameterResponse(parsedOutput, context);
7193
+ case "InvalidHeadersForS3Origin":
7194
+ case "com.amazonaws.cloudfront#InvalidHeadersForS3Origin":
7195
+ throw await deserializeAws_restXmlInvalidHeadersForS3OriginResponse(parsedOutput, context);
7196
+ case "InvalidIfMatchVersion":
7197
+ case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
7198
+ throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
7199
+ case "InvalidLambdaFunctionAssociation":
7200
+ case "com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation":
7201
+ throw await deserializeAws_restXmlInvalidLambdaFunctionAssociationResponse(parsedOutput, context);
7202
+ case "InvalidLocationCode":
7203
+ case "com.amazonaws.cloudfront#InvalidLocationCode":
7204
+ throw await deserializeAws_restXmlInvalidLocationCodeResponse(parsedOutput, context);
7205
+ case "InvalidMinimumProtocolVersion":
7206
+ case "com.amazonaws.cloudfront#InvalidMinimumProtocolVersion":
7207
+ throw await deserializeAws_restXmlInvalidMinimumProtocolVersionResponse(parsedOutput, context);
7208
+ case "InvalidOriginAccessControl":
7209
+ case "com.amazonaws.cloudfront#InvalidOriginAccessControl":
7210
+ throw await deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context);
7211
+ case "InvalidOriginAccessIdentity":
7212
+ case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
7213
+ throw await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context);
7214
+ case "InvalidOriginKeepaliveTimeout":
7215
+ case "com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout":
7216
+ throw await deserializeAws_restXmlInvalidOriginKeepaliveTimeoutResponse(parsedOutput, context);
7217
+ case "InvalidOriginReadTimeout":
7218
+ case "com.amazonaws.cloudfront#InvalidOriginReadTimeout":
7219
+ throw await deserializeAws_restXmlInvalidOriginReadTimeoutResponse(parsedOutput, context);
7220
+ case "InvalidQueryStringParameters":
7221
+ case "com.amazonaws.cloudfront#InvalidQueryStringParameters":
7222
+ throw await deserializeAws_restXmlInvalidQueryStringParametersResponse(parsedOutput, context);
7223
+ case "InvalidRelativePath":
7224
+ case "com.amazonaws.cloudfront#InvalidRelativePath":
7225
+ throw await deserializeAws_restXmlInvalidRelativePathResponse(parsedOutput, context);
7226
+ case "InvalidRequiredProtocol":
7227
+ case "com.amazonaws.cloudfront#InvalidRequiredProtocol":
7228
+ throw await deserializeAws_restXmlInvalidRequiredProtocolResponse(parsedOutput, context);
7229
+ case "InvalidResponseCode":
7230
+ case "com.amazonaws.cloudfront#InvalidResponseCode":
7231
+ throw await deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context);
7232
+ case "InvalidTTLOrder":
7233
+ case "com.amazonaws.cloudfront#InvalidTTLOrder":
7234
+ throw await deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context);
7235
+ case "InvalidViewerCertificate":
7236
+ case "com.amazonaws.cloudfront#InvalidViewerCertificate":
7237
+ throw await deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context);
7238
+ case "InvalidWebACLId":
7239
+ case "com.amazonaws.cloudfront#InvalidWebACLId":
7240
+ throw await deserializeAws_restXmlInvalidWebACLIdResponse(parsedOutput, context);
7241
+ case "MissingBody":
7242
+ case "com.amazonaws.cloudfront#MissingBody":
7243
+ throw await deserializeAws_restXmlMissingBodyResponse(parsedOutput, context);
7244
+ case "NoSuchCachePolicy":
7245
+ case "com.amazonaws.cloudfront#NoSuchCachePolicy":
7246
+ throw await deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context);
7247
+ case "NoSuchDistribution":
7248
+ case "com.amazonaws.cloudfront#NoSuchDistribution":
7249
+ throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
7250
+ case "NoSuchFieldLevelEncryptionConfig":
7251
+ case "com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":
7252
+ throw await deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context);
7253
+ case "NoSuchOrigin":
7254
+ case "com.amazonaws.cloudfront#NoSuchOrigin":
7255
+ throw await deserializeAws_restXmlNoSuchOriginResponse(parsedOutput, context);
7256
+ case "NoSuchOriginRequestPolicy":
7257
+ case "com.amazonaws.cloudfront#NoSuchOriginRequestPolicy":
7258
+ throw await deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context);
7259
+ case "NoSuchRealtimeLogConfig":
7260
+ case "com.amazonaws.cloudfront#NoSuchRealtimeLogConfig":
7261
+ throw await deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context);
7262
+ case "NoSuchResponseHeadersPolicy":
7263
+ case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
7264
+ throw await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context);
7265
+ case "PreconditionFailed":
7266
+ case "com.amazonaws.cloudfront#PreconditionFailed":
7267
+ throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
7268
+ case "RealtimeLogConfigOwnerMismatch":
7269
+ case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":
7270
+ throw await deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context);
7271
+ case "TooManyCacheBehaviors":
7272
+ case "com.amazonaws.cloudfront#TooManyCacheBehaviors":
7273
+ throw await deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context);
7274
+ case "TooManyCertificates":
7275
+ case "com.amazonaws.cloudfront#TooManyCertificates":
7276
+ throw await deserializeAws_restXmlTooManyCertificatesResponse(parsedOutput, context);
7277
+ case "TooManyCookieNamesInWhiteList":
7278
+ case "com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList":
7279
+ throw await deserializeAws_restXmlTooManyCookieNamesInWhiteListResponse(parsedOutput, context);
7280
+ case "TooManyDistributionCNAMEs":
7281
+ case "com.amazonaws.cloudfront#TooManyDistributionCNAMEs":
7282
+ throw await deserializeAws_restXmlTooManyDistributionCNAMEsResponse(parsedOutput, context);
7283
+ case "TooManyDistributionsAssociatedToCachePolicy":
7284
+ case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy":
7285
+ throw await deserializeAws_restXmlTooManyDistributionsAssociatedToCachePolicyResponse(parsedOutput, context);
7286
+ case "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":
7287
+ case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":
7288
+ throw await deserializeAws_restXmlTooManyDistributionsAssociatedToFieldLevelEncryptionConfigResponse(parsedOutput, context);
7289
+ case "TooManyDistributionsAssociatedToKeyGroup":
7290
+ case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
7291
+ throw await deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse(parsedOutput, context);
7292
+ case "TooManyDistributionsAssociatedToOriginRequestPolicy":
7293
+ case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
7294
+ throw await deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse(parsedOutput, context);
7295
+ case "TooManyDistributionsAssociatedToResponseHeadersPolicy":
7296
+ case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":
7297
+ throw await deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context);
7298
+ case "TooManyDistributionsWithFunctionAssociations":
7299
+ case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":
7300
+ throw await deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse(parsedOutput, context);
7301
+ case "TooManyDistributionsWithLambdaAssociations":
7302
+ case "com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations":
7303
+ throw await deserializeAws_restXmlTooManyDistributionsWithLambdaAssociationsResponse(parsedOutput, context);
7304
+ case "TooManyDistributionsWithSingleFunctionARN":
7305
+ case "com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN":
7306
+ throw await deserializeAws_restXmlTooManyDistributionsWithSingleFunctionARNResponse(parsedOutput, context);
7307
+ case "TooManyFunctionAssociations":
7308
+ case "com.amazonaws.cloudfront#TooManyFunctionAssociations":
7309
+ throw await deserializeAws_restXmlTooManyFunctionAssociationsResponse(parsedOutput, context);
7310
+ case "TooManyHeadersInForwardedValues":
7311
+ case "com.amazonaws.cloudfront#TooManyHeadersInForwardedValues":
7312
+ throw await deserializeAws_restXmlTooManyHeadersInForwardedValuesResponse(parsedOutput, context);
7313
+ case "TooManyKeyGroupsAssociatedToDistribution":
7314
+ case "com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution":
7315
+ throw await deserializeAws_restXmlTooManyKeyGroupsAssociatedToDistributionResponse(parsedOutput, context);
7316
+ case "TooManyLambdaFunctionAssociations":
7317
+ case "com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations":
7318
+ throw await deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse(parsedOutput, context);
7319
+ case "TooManyOriginCustomHeaders":
7320
+ case "com.amazonaws.cloudfront#TooManyOriginCustomHeaders":
7321
+ throw await deserializeAws_restXmlTooManyOriginCustomHeadersResponse(parsedOutput, context);
7322
+ case "TooManyOriginGroupsPerDistribution":
7323
+ case "com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution":
7324
+ throw await deserializeAws_restXmlTooManyOriginGroupsPerDistributionResponse(parsedOutput, context);
7325
+ case "TooManyOrigins":
7326
+ case "com.amazonaws.cloudfront#TooManyOrigins":
7327
+ throw await deserializeAws_restXmlTooManyOriginsResponse(parsedOutput, context);
7328
+ case "TooManyQueryStringParameters":
7329
+ case "com.amazonaws.cloudfront#TooManyQueryStringParameters":
7330
+ throw await deserializeAws_restXmlTooManyQueryStringParametersResponse(parsedOutput, context);
7331
+ case "TooManyTrustedSigners":
7332
+ case "com.amazonaws.cloudfront#TooManyTrustedSigners":
7333
+ throw await deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context);
7334
+ case "TrustedKeyGroupDoesNotExist":
7335
+ case "com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist":
7336
+ throw await deserializeAws_restXmlTrustedKeyGroupDoesNotExistResponse(parsedOutput, context);
7337
+ case "TrustedSignerDoesNotExist":
7338
+ case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist":
7339
+ throw await deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context);
7340
+ default:
7341
+ const parsedBody = parsedOutput.body;
7342
+ (0, smithy_client_1.throwDefaultError)({
7343
+ output,
7344
+ parsedBody: parsedBody.Error,
7345
+ exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
7346
+ errorCode,
7347
+ });
7348
+ }
7349
+ };
7074
7350
  const deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = async (output, context) => {
7075
7351
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7076
7352
  return deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommandError(output, context);
@@ -7730,6 +8006,30 @@ const deserializeAws_restXmlCNAMEAlreadyExistsResponse = async (parsedOutput, co
7730
8006
  });
7731
8007
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
7732
8008
  };
8009
+ const deserializeAws_restXmlContinuousDeploymentPolicyAlreadyExistsResponse = async (parsedOutput, context) => {
8010
+ const contents = map({});
8011
+ const data = parsedOutput.body.Error;
8012
+ if (data["Message"] !== undefined) {
8013
+ contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
8014
+ }
8015
+ const exception = new models_0_1.ContinuousDeploymentPolicyAlreadyExists({
8016
+ $metadata: deserializeMetadata(parsedOutput),
8017
+ ...contents,
8018
+ });
8019
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8020
+ };
8021
+ const deserializeAws_restXmlContinuousDeploymentPolicyInUseResponse = async (parsedOutput, context) => {
8022
+ const contents = map({});
8023
+ const data = parsedOutput.body.Error;
8024
+ if (data["Message"] !== undefined) {
8025
+ contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
8026
+ }
8027
+ const exception = new models_0_1.ContinuousDeploymentPolicyInUse({
8028
+ $metadata: deserializeMetadata(parsedOutput),
8029
+ ...contents,
8030
+ });
8031
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8032
+ };
7733
8033
  const deserializeAws_restXmlDistributionAlreadyExistsResponse = async (parsedOutput, context) => {
7734
8034
  const contents = map({});
7735
8035
  const data = parsedOutput.body.Error;
@@ -8282,6 +8582,18 @@ const deserializeAws_restXmlNoSuchCloudFrontOriginAccessIdentityResponse = async
8282
8582
  });
8283
8583
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8284
8584
  };
8585
+ const deserializeAws_restXmlNoSuchContinuousDeploymentPolicyResponse = async (parsedOutput, context) => {
8586
+ const contents = map({});
8587
+ const data = parsedOutput.body.Error;
8588
+ if (data["Message"] !== undefined) {
8589
+ contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
8590
+ }
8591
+ const exception = new models_0_1.NoSuchContinuousDeploymentPolicy({
8592
+ $metadata: deserializeMetadata(parsedOutput),
8593
+ ...contents,
8594
+ });
8595
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8596
+ };
8285
8597
  const deserializeAws_restXmlNoSuchDistributionResponse = async (parsedOutput, context) => {
8286
8598
  const contents = map({});
8287
8599
  const data = parsedOutput.body.Error;
@@ -8672,7 +8984,7 @@ const deserializeAws_restXmlTooLongCSPInResponseHeadersPolicyResponse = async (p
8672
8984
  if (data["Message"] !== undefined) {
8673
8985
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
8674
8986
  }
8675
- const exception = new models_0_1.TooLongCSPInResponseHeadersPolicy({
8987
+ const exception = new models_1_1.TooLongCSPInResponseHeadersPolicy({
8676
8988
  $metadata: deserializeMetadata(parsedOutput),
8677
8989
  ...contents,
8678
8990
  });
@@ -8726,6 +9038,18 @@ const deserializeAws_restXmlTooManyCloudFrontOriginAccessIdentitiesResponse = as
8726
9038
  });
8727
9039
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
8728
9040
  };
9041
+ const deserializeAws_restXmlTooManyContinuousDeploymentPoliciesResponse = async (parsedOutput, context) => {
9042
+ const contents = map({});
9043
+ const data = parsedOutput.body.Error;
9044
+ if (data["Message"] !== undefined) {
9045
+ contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
9046
+ }
9047
+ const exception = new models_0_1.TooManyContinuousDeploymentPolicies({
9048
+ $metadata: deserializeMetadata(parsedOutput),
9049
+ ...contents,
9050
+ });
9051
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
9052
+ };
8729
9053
  const deserializeAws_restXmlTooManyCookieNamesInWhiteListResponse = async (parsedOutput, context) => {
8730
9054
  const contents = map({});
8731
9055
  const data = parsedOutput.body.Error;
@@ -8768,7 +9092,7 @@ const deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse
8768
9092
  if (data["Message"] !== undefined) {
8769
9093
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
8770
9094
  }
8771
- const exception = new models_0_1.TooManyCustomHeadersInResponseHeadersPolicy({
9095
+ const exception = new models_1_1.TooManyCustomHeadersInResponseHeadersPolicy({
8772
9096
  $metadata: deserializeMetadata(parsedOutput),
8773
9097
  ...contents,
8774
9098
  });
@@ -9224,7 +9548,7 @@ const deserializeAws_restXmlTooManyResponseHeadersPoliciesResponse = async (pars
9224
9548
  if (data["Message"] !== undefined) {
9225
9549
  contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
9226
9550
  }
9227
- const exception = new models_0_1.TooManyResponseHeadersPolicies({
9551
+ const exception = new models_1_1.TooManyResponseHeadersPolicies({
9228
9552
  $metadata: deserializeMetadata(parsedOutput),
9229
9553
  ...contents,
9230
9554
  });
@@ -9948,6 +10272,14 @@ const serializeAws_restXmlDistributionConfig = (input, context) => {
9948
10272
  const node = xml_builder_1.XmlNode.of("boolean", String(input.IsIPV6Enabled)).withName("IsIPV6Enabled");
9949
10273
  bodyNode.addChildNode(node);
9950
10274
  }
10275
+ if (input.ContinuousDeploymentPolicyId != null) {
10276
+ const node = xml_builder_1.XmlNode.of("string", input.ContinuousDeploymentPolicyId).withName("ContinuousDeploymentPolicyId");
10277
+ bodyNode.addChildNode(node);
10278
+ }
10279
+ if (input.Staging != null) {
10280
+ const node = xml_builder_1.XmlNode.of("boolean", String(input.Staging)).withName("Staging");
10281
+ bodyNode.addChildNode(node);
10282
+ }
9951
10283
  return bodyNode;
9952
10284
  };
9953
10285
  const serializeAws_restXmlDistributionConfigWithTags = (input, context) => {
@@ -12350,6 +12682,8 @@ const deserializeAws_restXmlDistributionConfig = (output, context) => {
12350
12682
  WebACLId: undefined,
12351
12683
  HttpVersion: undefined,
12352
12684
  IsIPV6Enabled: undefined,
12685
+ ContinuousDeploymentPolicyId: undefined,
12686
+ Staging: undefined,
12353
12687
  };
12354
12688
  if (output["CallerReference"] !== undefined) {
12355
12689
  contents.CallerReference = (0, smithy_client_1.expectString)(output["CallerReference"]);
@@ -12402,6 +12736,12 @@ const deserializeAws_restXmlDistributionConfig = (output, context) => {
12402
12736
  if (output["IsIPV6Enabled"] !== undefined) {
12403
12737
  contents.IsIPV6Enabled = (0, smithy_client_1.parseBoolean)(output["IsIPV6Enabled"]);
12404
12738
  }
12739
+ if (output["ContinuousDeploymentPolicyId"] !== undefined) {
12740
+ contents.ContinuousDeploymentPolicyId = (0, smithy_client_1.expectString)(output["ContinuousDeploymentPolicyId"]);
12741
+ }
12742
+ if (output["Staging"] !== undefined) {
12743
+ contents.Staging = (0, smithy_client_1.parseBoolean)(output["Staging"]);
12744
+ }
12405
12745
  return contents;
12406
12746
  };
12407
12747
  const deserializeAws_restXmlDistributionIdList = (output, context) => {
@@ -12497,6 +12837,7 @@ const deserializeAws_restXmlDistributionSummary = (output, context) => {
12497
12837
  HttpVersion: undefined,
12498
12838
  IsIPV6Enabled: undefined,
12499
12839
  AliasICPRecordals: undefined,
12840
+ Staging: undefined,
12500
12841
  };
12501
12842
  if (output["Id"] !== undefined) {
12502
12843
  contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
@@ -12562,6 +12903,9 @@ const deserializeAws_restXmlDistributionSummary = (output, context) => {
12562
12903
  output["AliasICPRecordals"]["AliasICPRecordal"] !== undefined) {
12563
12904
  contents.AliasICPRecordals = deserializeAws_restXmlAliasICPRecordals((0, smithy_client_1.getArrayIfSingleItem)(output["AliasICPRecordals"]["AliasICPRecordal"]), context);
12564
12905
  }
12906
+ if (output["Staging"] !== undefined) {
12907
+ contents.Staging = (0, smithy_client_1.parseBoolean)(output["Staging"]);
12908
+ }
12565
12909
  return contents;
12566
12910
  };
12567
12911
  const deserializeAws_restXmlDistributionSummaryList = (output, context) => {
@@ -94,6 +94,7 @@ import { UpdateCachePolicyCommand, } from "./commands/UpdateCachePolicyCommand";
94
94
  import { UpdateCloudFrontOriginAccessIdentityCommand, } from "./commands/UpdateCloudFrontOriginAccessIdentityCommand";
95
95
  import { UpdateContinuousDeploymentPolicyCommand, } from "./commands/UpdateContinuousDeploymentPolicyCommand";
96
96
  import { UpdateDistributionCommand, } from "./commands/UpdateDistributionCommand";
97
+ import { UpdateDistributionWithStagingConfigCommand, } from "./commands/UpdateDistributionWithStagingConfigCommand";
97
98
  import { UpdateFieldLevelEncryptionConfigCommand, } from "./commands/UpdateFieldLevelEncryptionConfigCommand";
98
99
  import { UpdateFieldLevelEncryptionProfileCommand, } from "./commands/UpdateFieldLevelEncryptionProfileCommand";
99
100
  import { UpdateFunctionCommand, } from "./commands/UpdateFunctionCommand";
@@ -1435,6 +1436,20 @@ export class CloudFront extends CloudFrontClient {
1435
1436
  return this.send(command, optionsOrCb);
1436
1437
  }
1437
1438
  }
1439
+ updateDistributionWithStagingConfig(args, optionsOrCb, cb) {
1440
+ const command = new UpdateDistributionWithStagingConfigCommand(args);
1441
+ if (typeof optionsOrCb === "function") {
1442
+ this.send(command, optionsOrCb);
1443
+ }
1444
+ else if (typeof cb === "function") {
1445
+ if (typeof optionsOrCb !== "object")
1446
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1447
+ this.send(command, optionsOrCb || {}, cb);
1448
+ }
1449
+ else {
1450
+ return this.send(command, optionsOrCb);
1451
+ }
1452
+ }
1438
1453
  updateFieldLevelEncryptionConfig(args, optionsOrCb, cb) {
1439
1454
  const command = new UpdateFieldLevelEncryptionConfigCommand(args);
1440
1455
  if (typeof optionsOrCb === "function") {