@aws-sdk/client-cloudfront 3.39.0 → 3.40.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 (119) hide show
  1. package/CHANGELOG.md +12 -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 +78 -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 +78 -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/CreateResponseHeadersPolicyCommand.d.ts +42 -0
  61. package/dist-types/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
  62. package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
  63. package/dist-types/commands/DeletePublicKeyCommand.d.ts +1 -1
  64. package/dist-types/commands/DeleteRealtimeLogConfigCommand.d.ts +1 -1
  65. package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +41 -0
  66. package/dist-types/commands/DeleteStreamingDistributionCommand.d.ts +1 -1
  67. package/dist-types/commands/DescribeFunctionCommand.d.ts +1 -1
  68. package/dist-types/commands/GetCachePolicyCommand.d.ts +1 -1
  69. package/dist-types/commands/GetCachePolicyConfigCommand.d.ts +1 -1
  70. package/dist-types/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  71. package/dist-types/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +1 -1
  72. package/dist-types/commands/GetDistributionCommand.d.ts +1 -1
  73. package/dist-types/commands/GetDistributionConfigCommand.d.ts +1 -1
  74. package/dist-types/commands/GetFieldLevelEncryptionCommand.d.ts +1 -1
  75. package/dist-types/commands/GetResponseHeadersPolicyCommand.d.ts +42 -0
  76. package/dist-types/commands/GetResponseHeadersPolicyConfigCommand.d.ts +41 -0
  77. package/dist-types/commands/ListCachePoliciesCommand.d.ts +1 -1
  78. package/dist-types/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +41 -0
  79. package/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
  80. package/dist-types/commands/ListOriginRequestPoliciesCommand.d.ts +1 -1
  81. package/dist-types/commands/ListResponseHeadersPoliciesCommand.d.ts +42 -0
  82. package/dist-types/commands/UpdateResponseHeadersPolicyCommand.d.ts +53 -0
  83. package/dist-types/commands/index.d.ts +7 -0
  84. package/dist-types/models/models_0.d.ts +990 -676
  85. package/dist-types/models/models_1.d.ts +746 -51
  86. package/dist-types/protocols/Aws_restXml.d.ts +21 -0
  87. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  88. package/dist-types/runtimeConfig.d.ts +2 -0
  89. package/dist-types/runtimeConfig.native.d.ts +2 -0
  90. package/dist-types/ts3.4/CloudFront.d.ts +35 -0
  91. package/dist-types/ts3.4/CloudFrontClient.d.ts +13 -2
  92. package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
  94. package/dist-types/ts3.4/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/DeletePublicKeyCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/DeleteRealtimeLogConfigCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/DeleteResponseHeadersPolicyCommand.d.ts +17 -0
  98. package/dist-types/ts3.4/commands/DeleteStreamingDistributionCommand.d.ts +1 -1
  99. package/dist-types/ts3.4/commands/DescribeFunctionCommand.d.ts +1 -1
  100. package/dist-types/ts3.4/commands/GetCachePolicyCommand.d.ts +1 -1
  101. package/dist-types/ts3.4/commands/GetCachePolicyConfigCommand.d.ts +1 -1
  102. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  103. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/GetDistributionCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/GetDistributionConfigCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/GetResponseHeadersPolicyCommand.d.ts +17 -0
  108. package/dist-types/ts3.4/commands/GetResponseHeadersPolicyConfigCommand.d.ts +17 -0
  109. package/dist-types/ts3.4/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +17 -0
  110. package/dist-types/ts3.4/commands/ListResponseHeadersPoliciesCommand.d.ts +17 -0
  111. package/dist-types/ts3.4/commands/UpdateResponseHeadersPolicyCommand.d.ts +17 -0
  112. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  113. package/dist-types/ts3.4/models/models_0.d.ts +10 -0
  114. package/dist-types/ts3.4/models/models_1.d.ts +418 -19
  115. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +21 -0
  116. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  117. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  118. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  119. package/package.json +24 -24
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
12
+ * **clients:** update clients as of 2021/11/05 ([#2994](https://github.com/aws/aws-sdk-js-v3/issues/2994)) ([f5ecc31](https://github.com/aws/aws-sdk-js-v3/commit/f5ecc3147035a1f3d2d74cfed147999927ea8256))
13
+
14
+
15
+
16
+
17
+
6
18
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
19
 
8
20
  **Note:** Version bump only for package @aws-sdk/client-cloudfront
@@ -16,6 +16,7 @@ const CreateMonitoringSubscriptionCommand_1 = require("./commands/CreateMonitori
16
16
  const CreateOriginRequestPolicyCommand_1 = require("./commands/CreateOriginRequestPolicyCommand");
17
17
  const CreatePublicKeyCommand_1 = require("./commands/CreatePublicKeyCommand");
18
18
  const CreateRealtimeLogConfigCommand_1 = require("./commands/CreateRealtimeLogConfigCommand");
19
+ const CreateResponseHeadersPolicyCommand_1 = require("./commands/CreateResponseHeadersPolicyCommand");
19
20
  const CreateStreamingDistributionCommand_1 = require("./commands/CreateStreamingDistributionCommand");
20
21
  const CreateStreamingDistributionWithTagsCommand_1 = require("./commands/CreateStreamingDistributionWithTagsCommand");
21
22
  const DeleteCachePolicyCommand_1 = require("./commands/DeleteCachePolicyCommand");
@@ -29,6 +30,7 @@ const DeleteMonitoringSubscriptionCommand_1 = require("./commands/DeleteMonitori
29
30
  const DeleteOriginRequestPolicyCommand_1 = require("./commands/DeleteOriginRequestPolicyCommand");
30
31
  const DeletePublicKeyCommand_1 = require("./commands/DeletePublicKeyCommand");
31
32
  const DeleteRealtimeLogConfigCommand_1 = require("./commands/DeleteRealtimeLogConfigCommand");
33
+ const DeleteResponseHeadersPolicyCommand_1 = require("./commands/DeleteResponseHeadersPolicyCommand");
32
34
  const DeleteStreamingDistributionCommand_1 = require("./commands/DeleteStreamingDistributionCommand");
33
35
  const DescribeFunctionCommand_1 = require("./commands/DescribeFunctionCommand");
34
36
  const GetCachePolicyCommand_1 = require("./commands/GetCachePolicyCommand");
@@ -51,6 +53,8 @@ const GetOriginRequestPolicyConfigCommand_1 = require("./commands/GetOriginReque
51
53
  const GetPublicKeyCommand_1 = require("./commands/GetPublicKeyCommand");
52
54
  const GetPublicKeyConfigCommand_1 = require("./commands/GetPublicKeyConfigCommand");
53
55
  const GetRealtimeLogConfigCommand_1 = require("./commands/GetRealtimeLogConfigCommand");
56
+ const GetResponseHeadersPolicyCommand_1 = require("./commands/GetResponseHeadersPolicyCommand");
57
+ const GetResponseHeadersPolicyConfigCommand_1 = require("./commands/GetResponseHeadersPolicyConfigCommand");
54
58
  const GetStreamingDistributionCommand_1 = require("./commands/GetStreamingDistributionCommand");
55
59
  const GetStreamingDistributionConfigCommand_1 = require("./commands/GetStreamingDistributionConfigCommand");
56
60
  const ListCachePoliciesCommand_1 = require("./commands/ListCachePoliciesCommand");
@@ -60,6 +64,7 @@ const ListDistributionsByCachePolicyIdCommand_1 = require("./commands/ListDistri
60
64
  const ListDistributionsByKeyGroupCommand_1 = require("./commands/ListDistributionsByKeyGroupCommand");
61
65
  const ListDistributionsByOriginRequestPolicyIdCommand_1 = require("./commands/ListDistributionsByOriginRequestPolicyIdCommand");
62
66
  const ListDistributionsByRealtimeLogConfigCommand_1 = require("./commands/ListDistributionsByRealtimeLogConfigCommand");
67
+ const ListDistributionsByResponseHeadersPolicyIdCommand_1 = require("./commands/ListDistributionsByResponseHeadersPolicyIdCommand");
63
68
  const ListDistributionsByWebACLIdCommand_1 = require("./commands/ListDistributionsByWebACLIdCommand");
64
69
  const ListDistributionsCommand_1 = require("./commands/ListDistributionsCommand");
65
70
  const ListFieldLevelEncryptionConfigsCommand_1 = require("./commands/ListFieldLevelEncryptionConfigsCommand");
@@ -70,6 +75,7 @@ const ListKeyGroupsCommand_1 = require("./commands/ListKeyGroupsCommand");
70
75
  const ListOriginRequestPoliciesCommand_1 = require("./commands/ListOriginRequestPoliciesCommand");
71
76
  const ListPublicKeysCommand_1 = require("./commands/ListPublicKeysCommand");
72
77
  const ListRealtimeLogConfigsCommand_1 = require("./commands/ListRealtimeLogConfigsCommand");
78
+ const ListResponseHeadersPoliciesCommand_1 = require("./commands/ListResponseHeadersPoliciesCommand");
73
79
  const ListStreamingDistributionsCommand_1 = require("./commands/ListStreamingDistributionsCommand");
74
80
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
75
81
  const PublishFunctionCommand_1 = require("./commands/PublishFunctionCommand");
@@ -86,6 +92,7 @@ const UpdateKeyGroupCommand_1 = require("./commands/UpdateKeyGroupCommand");
86
92
  const UpdateOriginRequestPolicyCommand_1 = require("./commands/UpdateOriginRequestPolicyCommand");
87
93
  const UpdatePublicKeyCommand_1 = require("./commands/UpdatePublicKeyCommand");
88
94
  const UpdateRealtimeLogConfigCommand_1 = require("./commands/UpdateRealtimeLogConfigCommand");
95
+ const UpdateResponseHeadersPolicyCommand_1 = require("./commands/UpdateResponseHeadersPolicyCommand");
89
96
  const UpdateStreamingDistributionCommand_1 = require("./commands/UpdateStreamingDistributionCommand");
90
97
  class CloudFront extends CloudFrontClient_1.CloudFrontClient {
91
98
  associateAlias(args, optionsOrCb, cb) {
@@ -284,6 +291,20 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
284
291
  return this.send(command, optionsOrCb);
285
292
  }
286
293
  }
294
+ createResponseHeadersPolicy(args, optionsOrCb, cb) {
295
+ const command = new CreateResponseHeadersPolicyCommand_1.CreateResponseHeadersPolicyCommand(args);
296
+ if (typeof optionsOrCb === "function") {
297
+ this.send(command, optionsOrCb);
298
+ }
299
+ else if (typeof cb === "function") {
300
+ if (typeof optionsOrCb !== "object")
301
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
+ this.send(command, optionsOrCb || {}, cb);
303
+ }
304
+ else {
305
+ return this.send(command, optionsOrCb);
306
+ }
307
+ }
287
308
  createStreamingDistribution(args, optionsOrCb, cb) {
288
309
  const command = new CreateStreamingDistributionCommand_1.CreateStreamingDistributionCommand(args);
289
310
  if (typeof optionsOrCb === "function") {
@@ -466,6 +487,20 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
466
487
  return this.send(command, optionsOrCb);
467
488
  }
468
489
  }
490
+ deleteResponseHeadersPolicy(args, optionsOrCb, cb) {
491
+ const command = new DeleteResponseHeadersPolicyCommand_1.DeleteResponseHeadersPolicyCommand(args);
492
+ if (typeof optionsOrCb === "function") {
493
+ this.send(command, optionsOrCb);
494
+ }
495
+ else if (typeof cb === "function") {
496
+ if (typeof optionsOrCb !== "object")
497
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
498
+ this.send(command, optionsOrCb || {}, cb);
499
+ }
500
+ else {
501
+ return this.send(command, optionsOrCb);
502
+ }
503
+ }
469
504
  deleteStreamingDistribution(args, optionsOrCb, cb) {
470
505
  const command = new DeleteStreamingDistributionCommand_1.DeleteStreamingDistributionCommand(args);
471
506
  if (typeof optionsOrCb === "function") {
@@ -774,6 +809,34 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
774
809
  return this.send(command, optionsOrCb);
775
810
  }
776
811
  }
812
+ getResponseHeadersPolicy(args, optionsOrCb, cb) {
813
+ const command = new GetResponseHeadersPolicyCommand_1.GetResponseHeadersPolicyCommand(args);
814
+ if (typeof optionsOrCb === "function") {
815
+ this.send(command, optionsOrCb);
816
+ }
817
+ else if (typeof cb === "function") {
818
+ if (typeof optionsOrCb !== "object")
819
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
820
+ this.send(command, optionsOrCb || {}, cb);
821
+ }
822
+ else {
823
+ return this.send(command, optionsOrCb);
824
+ }
825
+ }
826
+ getResponseHeadersPolicyConfig(args, optionsOrCb, cb) {
827
+ const command = new GetResponseHeadersPolicyConfigCommand_1.GetResponseHeadersPolicyConfigCommand(args);
828
+ if (typeof optionsOrCb === "function") {
829
+ this.send(command, optionsOrCb);
830
+ }
831
+ else if (typeof cb === "function") {
832
+ if (typeof optionsOrCb !== "object")
833
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
834
+ this.send(command, optionsOrCb || {}, cb);
835
+ }
836
+ else {
837
+ return this.send(command, optionsOrCb);
838
+ }
839
+ }
777
840
  getStreamingDistribution(args, optionsOrCb, cb) {
778
841
  const command = new GetStreamingDistributionCommand_1.GetStreamingDistributionCommand(args);
779
842
  if (typeof optionsOrCb === "function") {
@@ -914,6 +977,20 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
914
977
  return this.send(command, optionsOrCb);
915
978
  }
916
979
  }
980
+ listDistributionsByResponseHeadersPolicyId(args, optionsOrCb, cb) {
981
+ const command = new ListDistributionsByResponseHeadersPolicyIdCommand_1.ListDistributionsByResponseHeadersPolicyIdCommand(args);
982
+ if (typeof optionsOrCb === "function") {
983
+ this.send(command, optionsOrCb);
984
+ }
985
+ else if (typeof cb === "function") {
986
+ if (typeof optionsOrCb !== "object")
987
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
988
+ this.send(command, optionsOrCb || {}, cb);
989
+ }
990
+ else {
991
+ return this.send(command, optionsOrCb);
992
+ }
993
+ }
917
994
  listDistributionsByWebACLId(args, optionsOrCb, cb) {
918
995
  const command = new ListDistributionsByWebACLIdCommand_1.ListDistributionsByWebACLIdCommand(args);
919
996
  if (typeof optionsOrCb === "function") {
@@ -1040,6 +1117,20 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
1040
1117
  return this.send(command, optionsOrCb);
1041
1118
  }
1042
1119
  }
1120
+ listResponseHeadersPolicies(args, optionsOrCb, cb) {
1121
+ const command = new ListResponseHeadersPoliciesCommand_1.ListResponseHeadersPoliciesCommand(args);
1122
+ if (typeof optionsOrCb === "function") {
1123
+ this.send(command, optionsOrCb);
1124
+ }
1125
+ else if (typeof cb === "function") {
1126
+ if (typeof optionsOrCb !== "object")
1127
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1128
+ this.send(command, optionsOrCb || {}, cb);
1129
+ }
1130
+ else {
1131
+ return this.send(command, optionsOrCb);
1132
+ }
1133
+ }
1043
1134
  listStreamingDistributions(args, optionsOrCb, cb) {
1044
1135
  const command = new ListStreamingDistributionsCommand_1.ListStreamingDistributionsCommand(args);
1045
1136
  if (typeof optionsOrCb === "function") {
@@ -1264,6 +1355,20 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
1264
1355
  return this.send(command, optionsOrCb);
1265
1356
  }
1266
1357
  }
1358
+ updateResponseHeadersPolicy(args, optionsOrCb, cb) {
1359
+ const command = new UpdateResponseHeadersPolicyCommand_1.UpdateResponseHeadersPolicyCommand(args);
1360
+ if (typeof optionsOrCb === "function") {
1361
+ this.send(command, optionsOrCb);
1362
+ }
1363
+ else if (typeof cb === "function") {
1364
+ if (typeof optionsOrCb !== "object")
1365
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1366
+ this.send(command, optionsOrCb || {}, cb);
1367
+ }
1368
+ else {
1369
+ return this.send(command, optionsOrCb);
1370
+ }
1371
+ }
1267
1372
  updateStreamingDistribution(args, optionsOrCb, cb) {
1268
1373
  const command = new UpdateStreamingDistributionCommand_1.UpdateStreamingDistributionCommand(args);
1269
1374
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateResponseHeadersPolicyCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
+ class CreateResponseHeadersPolicyCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudFrontClient";
18
+ const commandName = "CreateResponseHeadersPolicyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateResponseHeadersPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateResponseHeadersPolicyResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restXml_1.serializeAws_restXmlCreateResponseHeadersPolicyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restXml_1.deserializeAws_restXmlCreateResponseHeadersPolicyCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateResponseHeadersPolicyCommand = CreateResponseHeadersPolicyCommand;
@@ -4,6 +4,7 @@ exports.DeleteMonitoringSubscriptionCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
7
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
9
  class DeleteMonitoringSubscriptionCommand extends smithy_client_1.Command {
9
10
  constructor(input) {
@@ -21,7 +22,7 @@ class DeleteMonitoringSubscriptionCommand extends smithy_client_1.Command {
21
22
  clientName,
22
23
  commandName,
23
24
  inputFilterSensitiveLog: models_0_1.DeleteMonitoringSubscriptionRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.DeleteMonitoringSubscriptionResult.filterSensitiveLog,
25
+ outputFilterSensitiveLog: models_1_1.DeleteMonitoringSubscriptionResult.filterSensitiveLog,
25
26
  };
26
27
  const { requestHandler } = configuration;
27
28
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteOriginRequestPolicyCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DeleteOriginRequestPolicyCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class DeleteOriginRequestPolicyCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DeleteOriginRequestPolicyRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DeleteOriginRequestPolicyRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeletePublicKeyCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DeletePublicKeyCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class DeletePublicKeyCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DeletePublicKeyRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DeletePublicKeyRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteRealtimeLogConfigCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DeleteRealtimeLogConfigCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class DeleteRealtimeLogConfigCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DeleteRealtimeLogConfigRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DeleteRealtimeLogConfigRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteResponseHeadersPolicyCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_1_1 = require("../models/models_1");
7
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
+ class DeleteResponseHeadersPolicyCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudFrontClient";
18
+ const commandName = "DeleteResponseHeadersPolicyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.DeleteResponseHeadersPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restXml_1.serializeAws_restXmlDeleteResponseHeadersPolicyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restXml_1.deserializeAws_restXmlDeleteResponseHeadersPolicyCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteResponseHeadersPolicyCommand = DeleteResponseHeadersPolicyCommand;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteStreamingDistributionCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DeleteStreamingDistributionCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class DeleteStreamingDistributionCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DeleteStreamingDistributionRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DeleteStreamingDistributionRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DescribeFunctionCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DescribeFunctionCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class DescribeFunctionCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DescribeFunctionRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.DescribeFunctionResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DescribeFunctionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.DescribeFunctionResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetCachePolicyCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class GetCachePolicyCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class GetCachePolicyCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetCachePolicyRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetCachePolicyResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.GetCachePolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetCachePolicyResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetCachePolicyConfigCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class GetCachePolicyConfigCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class GetCachePolicyConfigCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetCachePolicyConfigRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetCachePolicyConfigResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.GetCachePolicyConfigRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetCachePolicyConfigResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetCloudFrontOriginAccessIdentityCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class GetCloudFrontOriginAccessIdentityCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class GetCloudFrontOriginAccessIdentityCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetCloudFrontOriginAccessIdentityRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetCloudFrontOriginAccessIdentityResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.GetCloudFrontOriginAccessIdentityRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetCloudFrontOriginAccessIdentityResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetCloudFrontOriginAccessIdentityConfigCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class GetCloudFrontOriginAccessIdentityConfigCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class GetCloudFrontOriginAccessIdentityConfigCommand extends smithy_client_1.Com
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetCloudFrontOriginAccessIdentityConfigRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetCloudFrontOriginAccessIdentityConfigResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.GetCloudFrontOriginAccessIdentityConfigRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetCloudFrontOriginAccessIdentityConfigResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetDistributionCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class GetDistributionCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class GetDistributionCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetDistributionRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetDistributionResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.GetDistributionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetDistributionResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetDistributionConfigCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class GetDistributionConfigCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class GetDistributionConfigCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetDistributionConfigRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetDistributionConfigResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.GetDistributionConfigRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetDistributionConfigResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetFieldLevelEncryptionCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class GetFieldLevelEncryptionCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class GetFieldLevelEncryptionCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetFieldLevelEncryptionRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetFieldLevelEncryptionResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.GetFieldLevelEncryptionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetFieldLevelEncryptionResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetResponseHeadersPolicyCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_1_1 = require("../models/models_1");
7
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
+ class GetResponseHeadersPolicyCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudFrontClient";
18
+ const commandName = "GetResponseHeadersPolicyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.GetResponseHeadersPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetResponseHeadersPolicyResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restXml_1.serializeAws_restXmlGetResponseHeadersPolicyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restXml_1.deserializeAws_restXmlGetResponseHeadersPolicyCommand(output, context);
34
+ }
35
+ }
36
+ exports.GetResponseHeadersPolicyCommand = GetResponseHeadersPolicyCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetResponseHeadersPolicyConfigCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_1_1 = require("../models/models_1");
7
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
+ class GetResponseHeadersPolicyConfigCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudFrontClient";
18
+ const commandName = "GetResponseHeadersPolicyConfigCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.GetResponseHeadersPolicyConfigRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetResponseHeadersPolicyConfigResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restXml_1.serializeAws_restXmlGetResponseHeadersPolicyConfigCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restXml_1.deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand(output, context);
34
+ }
35
+ }
36
+ exports.GetResponseHeadersPolicyConfigCommand = GetResponseHeadersPolicyConfigCommand;