@aws-sdk/client-cloudfront 3.39.0 → 3.43.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 (188) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist-cjs/CloudFront.js +105 -0
  3. package/dist-cjs/commands/CreateResponseHeadersPolicyCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js +2 -1
  5. package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js +2 -2
  6. package/dist-cjs/commands/DeletePublicKeyCommand.js +2 -2
  7. package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js +2 -2
  8. package/dist-cjs/commands/DeleteResponseHeadersPolicyCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteStreamingDistributionCommand.js +2 -2
  10. package/dist-cjs/commands/DescribeFunctionCommand.js +3 -3
  11. package/dist-cjs/commands/GetCachePolicyCommand.js +3 -3
  12. package/dist-cjs/commands/GetCachePolicyConfigCommand.js +3 -3
  13. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js +3 -3
  14. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +3 -3
  15. package/dist-cjs/commands/GetDistributionCommand.js +3 -3
  16. package/dist-cjs/commands/GetDistributionConfigCommand.js +3 -3
  17. package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js +3 -3
  18. package/dist-cjs/commands/GetResponseHeadersPolicyCommand.js +36 -0
  19. package/dist-cjs/commands/GetResponseHeadersPolicyConfigCommand.js +36 -0
  20. package/dist-cjs/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +36 -0
  21. package/dist-cjs/commands/ListResponseHeadersPoliciesCommand.js +36 -0
  22. package/dist-cjs/commands/UpdateResponseHeadersPolicyCommand.js +36 -0
  23. package/dist-cjs/commands/index.js +7 -0
  24. package/dist-cjs/endpoints.js +86 -5
  25. package/dist-cjs/models/models_0.js +174 -166
  26. package/dist-cjs/models/models_1.js +257 -3
  27. package/dist-cjs/protocols/Aws_restXml.js +1725 -120
  28. package/dist-cjs/runtimeConfig.browser.js +6 -3
  29. package/dist-cjs/runtimeConfig.js +5 -3
  30. package/dist-es/CloudFront.js +105 -0
  31. package/dist-es/commands/CreateResponseHeadersPolicyCommand.js +39 -0
  32. package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js +2 -1
  33. package/dist-es/commands/DeleteOriginRequestPolicyCommand.js +1 -1
  34. package/dist-es/commands/DeletePublicKeyCommand.js +1 -1
  35. package/dist-es/commands/DeleteRealtimeLogConfigCommand.js +1 -1
  36. package/dist-es/commands/DeleteResponseHeadersPolicyCommand.js +39 -0
  37. package/dist-es/commands/DeleteStreamingDistributionCommand.js +1 -1
  38. package/dist-es/commands/DescribeFunctionCommand.js +1 -1
  39. package/dist-es/commands/GetCachePolicyCommand.js +1 -1
  40. package/dist-es/commands/GetCachePolicyConfigCommand.js +1 -1
  41. package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js +1 -1
  42. package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +1 -1
  43. package/dist-es/commands/GetDistributionCommand.js +1 -1
  44. package/dist-es/commands/GetDistributionConfigCommand.js +1 -1
  45. package/dist-es/commands/GetFieldLevelEncryptionCommand.js +1 -1
  46. package/dist-es/commands/GetResponseHeadersPolicyCommand.js +39 -0
  47. package/dist-es/commands/GetResponseHeadersPolicyConfigCommand.js +39 -0
  48. package/dist-es/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +39 -0
  49. package/dist-es/commands/ListResponseHeadersPoliciesCommand.js +39 -0
  50. package/dist-es/commands/UpdateResponseHeadersPolicyCommand.js +39 -0
  51. package/dist-es/commands/index.js +7 -0
  52. package/dist-es/endpoints.js +86 -5
  53. package/dist-es/models/models_0.js +122 -109
  54. package/dist-es/models/models_1.js +169 -2
  55. package/dist-es/protocols/Aws_restXml.js +2398 -664
  56. package/dist-es/runtimeConfig.browser.js +3 -2
  57. package/dist-es/runtimeConfig.js +3 -3
  58. package/dist-types/CloudFront.d.ts +109 -3
  59. package/dist-types/CloudFrontClient.d.ts +17 -2
  60. package/dist-types/commands/AssociateAliasCommand.d.ts +1 -1
  61. package/dist-types/commands/CreateCachePolicyCommand.d.ts +1 -1
  62. package/dist-types/commands/CreateCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  63. package/dist-types/commands/CreateDistributionCommand.d.ts +1 -1
  64. package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +1 -1
  65. package/dist-types/commands/CreateFieldLevelEncryptionConfigCommand.d.ts +1 -1
  66. package/dist-types/commands/CreateFieldLevelEncryptionProfileCommand.d.ts +1 -1
  67. package/dist-types/commands/CreateFunctionCommand.d.ts +1 -1
  68. package/dist-types/commands/CreateInvalidationCommand.d.ts +1 -1
  69. package/dist-types/commands/CreateKeyGroupCommand.d.ts +1 -1
  70. package/dist-types/commands/CreateMonitoringSubscriptionCommand.d.ts +1 -1
  71. package/dist-types/commands/CreateOriginRequestPolicyCommand.d.ts +1 -1
  72. package/dist-types/commands/CreatePublicKeyCommand.d.ts +1 -1
  73. package/dist-types/commands/CreateRealtimeLogConfigCommand.d.ts +1 -1
  74. package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +42 -0
  75. package/dist-types/commands/CreateStreamingDistributionCommand.d.ts +1 -1
  76. package/dist-types/commands/CreateStreamingDistributionWithTagsCommand.d.ts +1 -1
  77. package/dist-types/commands/DeleteCachePolicyCommand.d.ts +1 -1
  78. package/dist-types/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  79. package/dist-types/commands/DeleteDistributionCommand.d.ts +1 -1
  80. package/dist-types/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +1 -1
  81. package/dist-types/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +1 -1
  82. package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
  83. package/dist-types/commands/DeleteKeyGroupCommand.d.ts +1 -1
  84. package/dist-types/commands/DeleteMonitoringSubscriptionCommand.d.ts +3 -2
  85. package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +2 -2
  86. package/dist-types/commands/DeletePublicKeyCommand.d.ts +2 -2
  87. package/dist-types/commands/DeleteRealtimeLogConfigCommand.d.ts +2 -2
  88. package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +41 -0
  89. package/dist-types/commands/DeleteStreamingDistributionCommand.d.ts +2 -2
  90. package/dist-types/commands/DescribeFunctionCommand.d.ts +2 -2
  91. package/dist-types/commands/GetCachePolicyCommand.d.ts +2 -2
  92. package/dist-types/commands/GetCachePolicyConfigCommand.d.ts +2 -2
  93. package/dist-types/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +2 -2
  94. package/dist-types/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +2 -2
  95. package/dist-types/commands/GetDistributionCommand.d.ts +2 -2
  96. package/dist-types/commands/GetDistributionConfigCommand.d.ts +2 -2
  97. package/dist-types/commands/GetFieldLevelEncryptionCommand.d.ts +2 -2
  98. package/dist-types/commands/GetFieldLevelEncryptionConfigCommand.d.ts +1 -1
  99. package/dist-types/commands/GetFieldLevelEncryptionProfileCommand.d.ts +1 -1
  100. package/dist-types/commands/GetFieldLevelEncryptionProfileConfigCommand.d.ts +1 -1
  101. package/dist-types/commands/GetFunctionCommand.d.ts +1 -1
  102. package/dist-types/commands/GetInvalidationCommand.d.ts +1 -1
  103. package/dist-types/commands/GetKeyGroupCommand.d.ts +1 -1
  104. package/dist-types/commands/GetKeyGroupConfigCommand.d.ts +1 -1
  105. package/dist-types/commands/GetMonitoringSubscriptionCommand.d.ts +1 -1
  106. package/dist-types/commands/GetOriginRequestPolicyCommand.d.ts +1 -1
  107. package/dist-types/commands/GetOriginRequestPolicyConfigCommand.d.ts +1 -1
  108. package/dist-types/commands/GetPublicKeyCommand.d.ts +1 -1
  109. package/dist-types/commands/GetPublicKeyConfigCommand.d.ts +1 -1
  110. package/dist-types/commands/GetRealtimeLogConfigCommand.d.ts +1 -1
  111. package/dist-types/commands/GetResponseHeadersPolicyCommand.d.ts +42 -0
  112. package/dist-types/commands/GetResponseHeadersPolicyConfigCommand.d.ts +41 -0
  113. package/dist-types/commands/GetStreamingDistributionCommand.d.ts +1 -1
  114. package/dist-types/commands/GetStreamingDistributionConfigCommand.d.ts +1 -1
  115. package/dist-types/commands/ListCachePoliciesCommand.d.ts +2 -2
  116. package/dist-types/commands/ListCloudFrontOriginAccessIdentitiesCommand.d.ts +1 -1
  117. package/dist-types/commands/ListConflictingAliasesCommand.d.ts +1 -1
  118. package/dist-types/commands/ListDistributionsByCachePolicyIdCommand.d.ts +1 -1
  119. package/dist-types/commands/ListDistributionsByKeyGroupCommand.d.ts +1 -1
  120. package/dist-types/commands/ListDistributionsByOriginRequestPolicyIdCommand.d.ts +1 -1
  121. package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +1 -1
  122. package/dist-types/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +41 -0
  123. package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +1 -1
  124. package/dist-types/commands/ListDistributionsCommand.d.ts +1 -1
  125. package/dist-types/commands/ListFieldLevelEncryptionConfigsCommand.d.ts +1 -1
  126. package/dist-types/commands/ListFieldLevelEncryptionProfilesCommand.d.ts +1 -1
  127. package/dist-types/commands/ListFunctionsCommand.d.ts +2 -2
  128. package/dist-types/commands/ListInvalidationsCommand.d.ts +1 -1
  129. package/dist-types/commands/ListKeyGroupsCommand.d.ts +1 -1
  130. package/dist-types/commands/ListOriginRequestPoliciesCommand.d.ts +2 -2
  131. package/dist-types/commands/ListPublicKeysCommand.d.ts +1 -1
  132. package/dist-types/commands/ListRealtimeLogConfigsCommand.d.ts +1 -1
  133. package/dist-types/commands/ListResponseHeadersPoliciesCommand.d.ts +42 -0
  134. package/dist-types/commands/ListStreamingDistributionsCommand.d.ts +1 -1
  135. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  136. package/dist-types/commands/PublishFunctionCommand.d.ts +1 -1
  137. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  138. package/dist-types/commands/TestFunctionCommand.d.ts +1 -1
  139. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  140. package/dist-types/commands/UpdateCachePolicyCommand.d.ts +1 -1
  141. package/dist-types/commands/UpdateCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  142. package/dist-types/commands/UpdateDistributionCommand.d.ts +1 -1
  143. package/dist-types/commands/UpdateFieldLevelEncryptionConfigCommand.d.ts +1 -1
  144. package/dist-types/commands/UpdateFieldLevelEncryptionProfileCommand.d.ts +1 -1
  145. package/dist-types/commands/UpdateFunctionCommand.d.ts +1 -1
  146. package/dist-types/commands/UpdateKeyGroupCommand.d.ts +1 -1
  147. package/dist-types/commands/UpdateOriginRequestPolicyCommand.d.ts +1 -1
  148. package/dist-types/commands/UpdatePublicKeyCommand.d.ts +1 -1
  149. package/dist-types/commands/UpdateRealtimeLogConfigCommand.d.ts +1 -1
  150. package/dist-types/commands/UpdateResponseHeadersPolicyCommand.d.ts +53 -0
  151. package/dist-types/commands/UpdateStreamingDistributionCommand.d.ts +1 -1
  152. package/dist-types/commands/index.d.ts +7 -0
  153. package/dist-types/models/models_0.d.ts +990 -676
  154. package/dist-types/models/models_1.d.ts +746 -51
  155. package/dist-types/protocols/Aws_restXml.d.ts +21 -0
  156. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  157. package/dist-types/runtimeConfig.d.ts +2 -0
  158. package/dist-types/runtimeConfig.native.d.ts +2 -0
  159. package/dist-types/ts3.4/CloudFront.d.ts +35 -0
  160. package/dist-types/ts3.4/CloudFrontClient.d.ts +13 -2
  161. package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +17 -0
  162. package/dist-types/ts3.4/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
  163. package/dist-types/ts3.4/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
  164. package/dist-types/ts3.4/commands/DeletePublicKeyCommand.d.ts +1 -1
  165. package/dist-types/ts3.4/commands/DeleteRealtimeLogConfigCommand.d.ts +1 -1
  166. package/dist-types/ts3.4/commands/DeleteResponseHeadersPolicyCommand.d.ts +17 -0
  167. package/dist-types/ts3.4/commands/DeleteStreamingDistributionCommand.d.ts +1 -1
  168. package/dist-types/ts3.4/commands/DescribeFunctionCommand.d.ts +1 -1
  169. package/dist-types/ts3.4/commands/GetCachePolicyCommand.d.ts +1 -1
  170. package/dist-types/ts3.4/commands/GetCachePolicyConfigCommand.d.ts +1 -1
  171. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  172. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +1 -1
  173. package/dist-types/ts3.4/commands/GetDistributionCommand.d.ts +1 -1
  174. package/dist-types/ts3.4/commands/GetDistributionConfigCommand.d.ts +1 -1
  175. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionCommand.d.ts +1 -1
  176. package/dist-types/ts3.4/commands/GetResponseHeadersPolicyCommand.d.ts +17 -0
  177. package/dist-types/ts3.4/commands/GetResponseHeadersPolicyConfigCommand.d.ts +17 -0
  178. package/dist-types/ts3.4/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +17 -0
  179. package/dist-types/ts3.4/commands/ListResponseHeadersPoliciesCommand.d.ts +17 -0
  180. package/dist-types/ts3.4/commands/UpdateResponseHeadersPolicyCommand.d.ts +17 -0
  181. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  182. package/dist-types/ts3.4/models/models_0.d.ts +10 -0
  183. package/dist-types/ts3.4/models/models_1.d.ts +418 -19
  184. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +21 -0
  185. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  186. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  187. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  188. package/package.json +24 -24
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -14,6 +14,7 @@ import { CreateMonitoringSubscriptionCommand, } from "./commands/CreateMonitorin
14
14
  import { CreateOriginRequestPolicyCommand, } from "./commands/CreateOriginRequestPolicyCommand";
15
15
  import { CreatePublicKeyCommand, } from "./commands/CreatePublicKeyCommand";
16
16
  import { CreateRealtimeLogConfigCommand, } from "./commands/CreateRealtimeLogConfigCommand";
17
+ import { CreateResponseHeadersPolicyCommand, } from "./commands/CreateResponseHeadersPolicyCommand";
17
18
  import { CreateStreamingDistributionCommand, } from "./commands/CreateStreamingDistributionCommand";
18
19
  import { CreateStreamingDistributionWithTagsCommand, } from "./commands/CreateStreamingDistributionWithTagsCommand";
19
20
  import { DeleteCachePolicyCommand, } from "./commands/DeleteCachePolicyCommand";
@@ -27,6 +28,7 @@ import { DeleteMonitoringSubscriptionCommand, } from "./commands/DeleteMonitorin
27
28
  import { DeleteOriginRequestPolicyCommand, } from "./commands/DeleteOriginRequestPolicyCommand";
28
29
  import { DeletePublicKeyCommand, } from "./commands/DeletePublicKeyCommand";
29
30
  import { DeleteRealtimeLogConfigCommand, } from "./commands/DeleteRealtimeLogConfigCommand";
31
+ import { DeleteResponseHeadersPolicyCommand, } from "./commands/DeleteResponseHeadersPolicyCommand";
30
32
  import { DeleteStreamingDistributionCommand, } from "./commands/DeleteStreamingDistributionCommand";
31
33
  import { DescribeFunctionCommand, } from "./commands/DescribeFunctionCommand";
32
34
  import { GetCachePolicyCommand, } from "./commands/GetCachePolicyCommand";
@@ -49,6 +51,8 @@ import { GetOriginRequestPolicyConfigCommand, } from "./commands/GetOriginReques
49
51
  import { GetPublicKeyCommand, } from "./commands/GetPublicKeyCommand";
50
52
  import { GetPublicKeyConfigCommand, } from "./commands/GetPublicKeyConfigCommand";
51
53
  import { GetRealtimeLogConfigCommand, } from "./commands/GetRealtimeLogConfigCommand";
54
+ import { GetResponseHeadersPolicyCommand, } from "./commands/GetResponseHeadersPolicyCommand";
55
+ import { GetResponseHeadersPolicyConfigCommand, } from "./commands/GetResponseHeadersPolicyConfigCommand";
52
56
  import { GetStreamingDistributionCommand, } from "./commands/GetStreamingDistributionCommand";
53
57
  import { GetStreamingDistributionConfigCommand, } from "./commands/GetStreamingDistributionConfigCommand";
54
58
  import { ListCachePoliciesCommand, } from "./commands/ListCachePoliciesCommand";
@@ -58,6 +62,7 @@ import { ListDistributionsByCachePolicyIdCommand, } from "./commands/ListDistrib
58
62
  import { ListDistributionsByKeyGroupCommand, } from "./commands/ListDistributionsByKeyGroupCommand";
59
63
  import { ListDistributionsByOriginRequestPolicyIdCommand, } from "./commands/ListDistributionsByOriginRequestPolicyIdCommand";
60
64
  import { ListDistributionsByRealtimeLogConfigCommand, } from "./commands/ListDistributionsByRealtimeLogConfigCommand";
65
+ import { ListDistributionsByResponseHeadersPolicyIdCommand, } from "./commands/ListDistributionsByResponseHeadersPolicyIdCommand";
61
66
  import { ListDistributionsByWebACLIdCommand, } from "./commands/ListDistributionsByWebACLIdCommand";
62
67
  import { ListDistributionsCommand, } from "./commands/ListDistributionsCommand";
63
68
  import { ListFieldLevelEncryptionConfigsCommand, } from "./commands/ListFieldLevelEncryptionConfigsCommand";
@@ -68,6 +73,7 @@ import { ListKeyGroupsCommand, } from "./commands/ListKeyGroupsCommand";
68
73
  import { ListOriginRequestPoliciesCommand, } from "./commands/ListOriginRequestPoliciesCommand";
69
74
  import { ListPublicKeysCommand, } from "./commands/ListPublicKeysCommand";
70
75
  import { ListRealtimeLogConfigsCommand, } from "./commands/ListRealtimeLogConfigsCommand";
76
+ import { ListResponseHeadersPoliciesCommand, } from "./commands/ListResponseHeadersPoliciesCommand";
71
77
  import { ListStreamingDistributionsCommand, } from "./commands/ListStreamingDistributionsCommand";
72
78
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
73
79
  import { PublishFunctionCommand, } from "./commands/PublishFunctionCommand";
@@ -84,6 +90,7 @@ import { UpdateKeyGroupCommand, } from "./commands/UpdateKeyGroupCommand";
84
90
  import { UpdateOriginRequestPolicyCommand, } from "./commands/UpdateOriginRequestPolicyCommand";
85
91
  import { UpdatePublicKeyCommand, } from "./commands/UpdatePublicKeyCommand";
86
92
  import { UpdateRealtimeLogConfigCommand, } from "./commands/UpdateRealtimeLogConfigCommand";
93
+ import { UpdateResponseHeadersPolicyCommand, } from "./commands/UpdateResponseHeadersPolicyCommand";
87
94
  import { UpdateStreamingDistributionCommand, } from "./commands/UpdateStreamingDistributionCommand";
88
95
  var CloudFront = (function (_super) {
89
96
  __extends(CloudFront, _super);
@@ -286,6 +293,20 @@ var CloudFront = (function (_super) {
286
293
  return this.send(command, optionsOrCb);
287
294
  }
288
295
  };
296
+ CloudFront.prototype.createResponseHeadersPolicy = function (args, optionsOrCb, cb) {
297
+ var command = new CreateResponseHeadersPolicyCommand(args);
298
+ if (typeof optionsOrCb === "function") {
299
+ this.send(command, optionsOrCb);
300
+ }
301
+ else if (typeof cb === "function") {
302
+ if (typeof optionsOrCb !== "object")
303
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
304
+ this.send(command, optionsOrCb || {}, cb);
305
+ }
306
+ else {
307
+ return this.send(command, optionsOrCb);
308
+ }
309
+ };
289
310
  CloudFront.prototype.createStreamingDistribution = function (args, optionsOrCb, cb) {
290
311
  var command = new CreateStreamingDistributionCommand(args);
291
312
  if (typeof optionsOrCb === "function") {
@@ -468,6 +489,20 @@ var CloudFront = (function (_super) {
468
489
  return this.send(command, optionsOrCb);
469
490
  }
470
491
  };
492
+ CloudFront.prototype.deleteResponseHeadersPolicy = function (args, optionsOrCb, cb) {
493
+ var command = new DeleteResponseHeadersPolicyCommand(args);
494
+ if (typeof optionsOrCb === "function") {
495
+ this.send(command, optionsOrCb);
496
+ }
497
+ else if (typeof cb === "function") {
498
+ if (typeof optionsOrCb !== "object")
499
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
500
+ this.send(command, optionsOrCb || {}, cb);
501
+ }
502
+ else {
503
+ return this.send(command, optionsOrCb);
504
+ }
505
+ };
471
506
  CloudFront.prototype.deleteStreamingDistribution = function (args, optionsOrCb, cb) {
472
507
  var command = new DeleteStreamingDistributionCommand(args);
473
508
  if (typeof optionsOrCb === "function") {
@@ -776,6 +811,34 @@ var CloudFront = (function (_super) {
776
811
  return this.send(command, optionsOrCb);
777
812
  }
778
813
  };
814
+ CloudFront.prototype.getResponseHeadersPolicy = function (args, optionsOrCb, cb) {
815
+ var command = new GetResponseHeadersPolicyCommand(args);
816
+ if (typeof optionsOrCb === "function") {
817
+ this.send(command, optionsOrCb);
818
+ }
819
+ else if (typeof cb === "function") {
820
+ if (typeof optionsOrCb !== "object")
821
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
822
+ this.send(command, optionsOrCb || {}, cb);
823
+ }
824
+ else {
825
+ return this.send(command, optionsOrCb);
826
+ }
827
+ };
828
+ CloudFront.prototype.getResponseHeadersPolicyConfig = function (args, optionsOrCb, cb) {
829
+ var command = new GetResponseHeadersPolicyConfigCommand(args);
830
+ if (typeof optionsOrCb === "function") {
831
+ this.send(command, optionsOrCb);
832
+ }
833
+ else if (typeof cb === "function") {
834
+ if (typeof optionsOrCb !== "object")
835
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
836
+ this.send(command, optionsOrCb || {}, cb);
837
+ }
838
+ else {
839
+ return this.send(command, optionsOrCb);
840
+ }
841
+ };
779
842
  CloudFront.prototype.getStreamingDistribution = function (args, optionsOrCb, cb) {
780
843
  var command = new GetStreamingDistributionCommand(args);
781
844
  if (typeof optionsOrCb === "function") {
@@ -916,6 +979,20 @@ var CloudFront = (function (_super) {
916
979
  return this.send(command, optionsOrCb);
917
980
  }
918
981
  };
982
+ CloudFront.prototype.listDistributionsByResponseHeadersPolicyId = function (args, optionsOrCb, cb) {
983
+ var command = new ListDistributionsByResponseHeadersPolicyIdCommand(args);
984
+ if (typeof optionsOrCb === "function") {
985
+ this.send(command, optionsOrCb);
986
+ }
987
+ else if (typeof cb === "function") {
988
+ if (typeof optionsOrCb !== "object")
989
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
990
+ this.send(command, optionsOrCb || {}, cb);
991
+ }
992
+ else {
993
+ return this.send(command, optionsOrCb);
994
+ }
995
+ };
919
996
  CloudFront.prototype.listDistributionsByWebACLId = function (args, optionsOrCb, cb) {
920
997
  var command = new ListDistributionsByWebACLIdCommand(args);
921
998
  if (typeof optionsOrCb === "function") {
@@ -1042,6 +1119,20 @@ var CloudFront = (function (_super) {
1042
1119
  return this.send(command, optionsOrCb);
1043
1120
  }
1044
1121
  };
1122
+ CloudFront.prototype.listResponseHeadersPolicies = function (args, optionsOrCb, cb) {
1123
+ var command = new ListResponseHeadersPoliciesCommand(args);
1124
+ if (typeof optionsOrCb === "function") {
1125
+ this.send(command, optionsOrCb);
1126
+ }
1127
+ else if (typeof cb === "function") {
1128
+ if (typeof optionsOrCb !== "object")
1129
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
1130
+ this.send(command, optionsOrCb || {}, cb);
1131
+ }
1132
+ else {
1133
+ return this.send(command, optionsOrCb);
1134
+ }
1135
+ };
1045
1136
  CloudFront.prototype.listStreamingDistributions = function (args, optionsOrCb, cb) {
1046
1137
  var command = new ListStreamingDistributionsCommand(args);
1047
1138
  if (typeof optionsOrCb === "function") {
@@ -1266,6 +1357,20 @@ var CloudFront = (function (_super) {
1266
1357
  return this.send(command, optionsOrCb);
1267
1358
  }
1268
1359
  };
1360
+ CloudFront.prototype.updateResponseHeadersPolicy = function (args, optionsOrCb, cb) {
1361
+ var command = new UpdateResponseHeadersPolicyCommand(args);
1362
+ if (typeof optionsOrCb === "function") {
1363
+ this.send(command, optionsOrCb);
1364
+ }
1365
+ else if (typeof cb === "function") {
1366
+ if (typeof optionsOrCb !== "object")
1367
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
1368
+ this.send(command, optionsOrCb || {}, cb);
1369
+ }
1370
+ else {
1371
+ return this.send(command, optionsOrCb);
1372
+ }
1373
+ };
1269
1374
  CloudFront.prototype.updateStreamingDistribution = function (args, optionsOrCb, cb) {
1270
1375
  var command = new UpdateStreamingDistributionCommand(args);
1271
1376
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateResponseHeadersPolicyRequest, CreateResponseHeadersPolicyResult } from "../models/models_0";
5
+ import { deserializeAws_restXmlCreateResponseHeadersPolicyCommand, serializeAws_restXmlCreateResponseHeadersPolicyCommand, } from "../protocols/Aws_restXml";
6
+ var CreateResponseHeadersPolicyCommand = (function (_super) {
7
+ __extends(CreateResponseHeadersPolicyCommand, _super);
8
+ function CreateResponseHeadersPolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateResponseHeadersPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "CreateResponseHeadersPolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateResponseHeadersPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateResponseHeadersPolicyResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateResponseHeadersPolicyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlCreateResponseHeadersPolicyCommand(input, context);
33
+ };
34
+ CreateResponseHeadersPolicyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlCreateResponseHeadersPolicyCommand(output, context);
36
+ };
37
+ return CreateResponseHeadersPolicyCommand;
38
+ }($Command));
39
+ export { CreateResponseHeadersPolicyCommand };
@@ -1,7 +1,8 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteMonitoringSubscriptionRequest, DeleteMonitoringSubscriptionResult } from "../models/models_0";
4
+ import { DeleteMonitoringSubscriptionRequest } from "../models/models_0";
5
+ import { DeleteMonitoringSubscriptionResult } from "../models/models_1";
5
6
  import { deserializeAws_restXmlDeleteMonitoringSubscriptionCommand, serializeAws_restXmlDeleteMonitoringSubscriptionCommand, } from "../protocols/Aws_restXml";
6
7
  var DeleteMonitoringSubscriptionCommand = (function (_super) {
7
8
  __extends(DeleteMonitoringSubscriptionCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteOriginRequestPolicyRequest } from "../models/models_0";
4
+ import { DeleteOriginRequestPolicyRequest } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDeleteOriginRequestPolicyCommand, serializeAws_restXmlDeleteOriginRequestPolicyCommand, } from "../protocols/Aws_restXml";
6
6
  var DeleteOriginRequestPolicyCommand = (function (_super) {
7
7
  __extends(DeleteOriginRequestPolicyCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeletePublicKeyRequest } from "../models/models_0";
4
+ import { DeletePublicKeyRequest } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDeletePublicKeyCommand, serializeAws_restXmlDeletePublicKeyCommand, } from "../protocols/Aws_restXml";
6
6
  var DeletePublicKeyCommand = (function (_super) {
7
7
  __extends(DeletePublicKeyCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteRealtimeLogConfigRequest } from "../models/models_0";
4
+ import { DeleteRealtimeLogConfigRequest } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDeleteRealtimeLogConfigCommand, serializeAws_restXmlDeleteRealtimeLogConfigCommand, } from "../protocols/Aws_restXml";
6
6
  var DeleteRealtimeLogConfigCommand = (function (_super) {
7
7
  __extends(DeleteRealtimeLogConfigCommand, _super);
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteResponseHeadersPolicyRequest } from "../models/models_1";
5
+ import { deserializeAws_restXmlDeleteResponseHeadersPolicyCommand, serializeAws_restXmlDeleteResponseHeadersPolicyCommand, } from "../protocols/Aws_restXml";
6
+ var DeleteResponseHeadersPolicyCommand = (function (_super) {
7
+ __extends(DeleteResponseHeadersPolicyCommand, _super);
8
+ function DeleteResponseHeadersPolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteResponseHeadersPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "DeleteResponseHeadersPolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteResponseHeadersPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: function (output) { return output; },
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteResponseHeadersPolicyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlDeleteResponseHeadersPolicyCommand(input, context);
33
+ };
34
+ DeleteResponseHeadersPolicyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlDeleteResponseHeadersPolicyCommand(output, context);
36
+ };
37
+ return DeleteResponseHeadersPolicyCommand;
38
+ }($Command));
39
+ export { DeleteResponseHeadersPolicyCommand };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteStreamingDistributionRequest } from "../models/models_0";
4
+ import { DeleteStreamingDistributionRequest } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDeleteStreamingDistributionCommand, serializeAws_restXmlDeleteStreamingDistributionCommand, } from "../protocols/Aws_restXml";
6
6
  var DeleteStreamingDistributionCommand = (function (_super) {
7
7
  __extends(DeleteStreamingDistributionCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeFunctionRequest, DescribeFunctionResult } from "../models/models_0";
4
+ import { DescribeFunctionRequest, DescribeFunctionResult } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDescribeFunctionCommand, serializeAws_restXmlDescribeFunctionCommand, } from "../protocols/Aws_restXml";
6
6
  var DescribeFunctionCommand = (function (_super) {
7
7
  __extends(DescribeFunctionCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetCachePolicyRequest, GetCachePolicyResult } from "../models/models_0";
4
+ import { GetCachePolicyRequest, GetCachePolicyResult } from "../models/models_1";
5
5
  import { deserializeAws_restXmlGetCachePolicyCommand, serializeAws_restXmlGetCachePolicyCommand, } from "../protocols/Aws_restXml";
6
6
  var GetCachePolicyCommand = (function (_super) {
7
7
  __extends(GetCachePolicyCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetCachePolicyConfigRequest, GetCachePolicyConfigResult } from "../models/models_0";
4
+ import { GetCachePolicyConfigRequest, GetCachePolicyConfigResult } from "../models/models_1";
5
5
  import { deserializeAws_restXmlGetCachePolicyConfigCommand, serializeAws_restXmlGetCachePolicyConfigCommand, } from "../protocols/Aws_restXml";
6
6
  var GetCachePolicyConfigCommand = (function (_super) {
7
7
  __extends(GetCachePolicyConfigCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetCloudFrontOriginAccessIdentityRequest, GetCloudFrontOriginAccessIdentityResult } from "../models/models_0";
4
+ import { GetCloudFrontOriginAccessIdentityRequest, GetCloudFrontOriginAccessIdentityResult } from "../models/models_1";
5
5
  import { deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommand, serializeAws_restXmlGetCloudFrontOriginAccessIdentityCommand, } from "../protocols/Aws_restXml";
6
6
  var GetCloudFrontOriginAccessIdentityCommand = (function (_super) {
7
7
  __extends(GetCloudFrontOriginAccessIdentityCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetCloudFrontOriginAccessIdentityConfigRequest, GetCloudFrontOriginAccessIdentityConfigResult, } from "../models/models_0";
4
+ import { GetCloudFrontOriginAccessIdentityConfigRequest, GetCloudFrontOriginAccessIdentityConfigResult, } from "../models/models_1";
5
5
  import { deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand, serializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand, } from "../protocols/Aws_restXml";
6
6
  var GetCloudFrontOriginAccessIdentityConfigCommand = (function (_super) {
7
7
  __extends(GetCloudFrontOriginAccessIdentityConfigCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetDistributionRequest, GetDistributionResult } from "../models/models_0";
4
+ import { GetDistributionRequest, GetDistributionResult } from "../models/models_1";
5
5
  import { deserializeAws_restXmlGetDistributionCommand, serializeAws_restXmlGetDistributionCommand, } from "../protocols/Aws_restXml";
6
6
  var GetDistributionCommand = (function (_super) {
7
7
  __extends(GetDistributionCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetDistributionConfigRequest, GetDistributionConfigResult } from "../models/models_0";
4
+ import { GetDistributionConfigRequest, GetDistributionConfigResult } from "../models/models_1";
5
5
  import { deserializeAws_restXmlGetDistributionConfigCommand, serializeAws_restXmlGetDistributionConfigCommand, } from "../protocols/Aws_restXml";
6
6
  var GetDistributionConfigCommand = (function (_super) {
7
7
  __extends(GetDistributionConfigCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetFieldLevelEncryptionRequest, GetFieldLevelEncryptionResult } from "../models/models_0";
4
+ import { GetFieldLevelEncryptionRequest, GetFieldLevelEncryptionResult } from "../models/models_1";
5
5
  import { deserializeAws_restXmlGetFieldLevelEncryptionCommand, serializeAws_restXmlGetFieldLevelEncryptionCommand, } from "../protocols/Aws_restXml";
6
6
  var GetFieldLevelEncryptionCommand = (function (_super) {
7
7
  __extends(GetFieldLevelEncryptionCommand, _super);
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetResponseHeadersPolicyRequest, GetResponseHeadersPolicyResult } from "../models/models_1";
5
+ import { deserializeAws_restXmlGetResponseHeadersPolicyCommand, serializeAws_restXmlGetResponseHeadersPolicyCommand, } from "../protocols/Aws_restXml";
6
+ var GetResponseHeadersPolicyCommand = (function (_super) {
7
+ __extends(GetResponseHeadersPolicyCommand, _super);
8
+ function GetResponseHeadersPolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetResponseHeadersPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "GetResponseHeadersPolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetResponseHeadersPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetResponseHeadersPolicyResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetResponseHeadersPolicyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlGetResponseHeadersPolicyCommand(input, context);
33
+ };
34
+ GetResponseHeadersPolicyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlGetResponseHeadersPolicyCommand(output, context);
36
+ };
37
+ return GetResponseHeadersPolicyCommand;
38
+ }($Command));
39
+ export { GetResponseHeadersPolicyCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetResponseHeadersPolicyConfigRequest, GetResponseHeadersPolicyConfigResult } from "../models/models_1";
5
+ import { deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand, serializeAws_restXmlGetResponseHeadersPolicyConfigCommand, } from "../protocols/Aws_restXml";
6
+ var GetResponseHeadersPolicyConfigCommand = (function (_super) {
7
+ __extends(GetResponseHeadersPolicyConfigCommand, _super);
8
+ function GetResponseHeadersPolicyConfigCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetResponseHeadersPolicyConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "GetResponseHeadersPolicyConfigCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetResponseHeadersPolicyConfigRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetResponseHeadersPolicyConfigResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetResponseHeadersPolicyConfigCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlGetResponseHeadersPolicyConfigCommand(input, context);
33
+ };
34
+ GetResponseHeadersPolicyConfigCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand(output, context);
36
+ };
37
+ return GetResponseHeadersPolicyConfigCommand;
38
+ }($Command));
39
+ export { GetResponseHeadersPolicyConfigCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListDistributionsByResponseHeadersPolicyIdRequest, ListDistributionsByResponseHeadersPolicyIdResult, } from "../models/models_1";
5
+ import { deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand, serializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand, } from "../protocols/Aws_restXml";
6
+ var ListDistributionsByResponseHeadersPolicyIdCommand = (function (_super) {
7
+ __extends(ListDistributionsByResponseHeadersPolicyIdCommand, _super);
8
+ function ListDistributionsByResponseHeadersPolicyIdCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListDistributionsByResponseHeadersPolicyIdCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "ListDistributionsByResponseHeadersPolicyIdCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListDistributionsByResponseHeadersPolicyIdRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListDistributionsByResponseHeadersPolicyIdResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListDistributionsByResponseHeadersPolicyIdCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand(input, context);
33
+ };
34
+ ListDistributionsByResponseHeadersPolicyIdCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand(output, context);
36
+ };
37
+ return ListDistributionsByResponseHeadersPolicyIdCommand;
38
+ }($Command));
39
+ export { ListDistributionsByResponseHeadersPolicyIdCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListResponseHeadersPoliciesRequest, ListResponseHeadersPoliciesResult } from "../models/models_1";
5
+ import { deserializeAws_restXmlListResponseHeadersPoliciesCommand, serializeAws_restXmlListResponseHeadersPoliciesCommand, } from "../protocols/Aws_restXml";
6
+ var ListResponseHeadersPoliciesCommand = (function (_super) {
7
+ __extends(ListResponseHeadersPoliciesCommand, _super);
8
+ function ListResponseHeadersPoliciesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListResponseHeadersPoliciesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "ListResponseHeadersPoliciesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListResponseHeadersPoliciesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListResponseHeadersPoliciesResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListResponseHeadersPoliciesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlListResponseHeadersPoliciesCommand(input, context);
33
+ };
34
+ ListResponseHeadersPoliciesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlListResponseHeadersPoliciesCommand(output, context);
36
+ };
37
+ return ListResponseHeadersPoliciesCommand;
38
+ }($Command));
39
+ export { ListResponseHeadersPoliciesCommand };