@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
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListDistributionsByResponseHeadersPolicyIdCommand = 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 ListDistributionsByResponseHeadersPolicyIdCommand 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 = "ListDistributionsByResponseHeadersPolicyIdCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.ListDistributionsByResponseHeadersPolicyIdRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListDistributionsByResponseHeadersPolicyIdResult.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_restXmlListDistributionsByResponseHeadersPolicyIdCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restXml_1.deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListDistributionsByResponseHeadersPolicyIdCommand = ListDistributionsByResponseHeadersPolicyIdCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListResponseHeadersPoliciesCommand = 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 ListResponseHeadersPoliciesCommand 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 = "ListResponseHeadersPoliciesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.ListResponseHeadersPoliciesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListResponseHeadersPoliciesResult.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_restXmlListResponseHeadersPoliciesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restXml_1.deserializeAws_restXmlListResponseHeadersPoliciesCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListResponseHeadersPoliciesCommand = ListResponseHeadersPoliciesCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateResponseHeadersPolicyCommand = 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 UpdateResponseHeadersPolicyCommand 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 = "UpdateResponseHeadersPolicyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.UpdateResponseHeadersPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.UpdateResponseHeadersPolicyResult.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_restXmlUpdateResponseHeadersPolicyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restXml_1.deserializeAws_restXmlUpdateResponseHeadersPolicyCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateResponseHeadersPolicyCommand = UpdateResponseHeadersPolicyCommand;
@@ -15,6 +15,7 @@ tslib_1.__exportStar(require("./CreateMonitoringSubscriptionCommand"), exports);
15
15
  tslib_1.__exportStar(require("./CreateOriginRequestPolicyCommand"), exports);
16
16
  tslib_1.__exportStar(require("./CreatePublicKeyCommand"), exports);
17
17
  tslib_1.__exportStar(require("./CreateRealtimeLogConfigCommand"), exports);
18
+ tslib_1.__exportStar(require("./CreateResponseHeadersPolicyCommand"), exports);
18
19
  tslib_1.__exportStar(require("./CreateStreamingDistributionCommand"), exports);
19
20
  tslib_1.__exportStar(require("./CreateStreamingDistributionWithTagsCommand"), exports);
20
21
  tslib_1.__exportStar(require("./DeleteCachePolicyCommand"), exports);
@@ -28,6 +29,7 @@ tslib_1.__exportStar(require("./DeleteMonitoringSubscriptionCommand"), exports);
28
29
  tslib_1.__exportStar(require("./DeleteOriginRequestPolicyCommand"), exports);
29
30
  tslib_1.__exportStar(require("./DeletePublicKeyCommand"), exports);
30
31
  tslib_1.__exportStar(require("./DeleteRealtimeLogConfigCommand"), exports);
32
+ tslib_1.__exportStar(require("./DeleteResponseHeadersPolicyCommand"), exports);
31
33
  tslib_1.__exportStar(require("./DeleteStreamingDistributionCommand"), exports);
32
34
  tslib_1.__exportStar(require("./DescribeFunctionCommand"), exports);
33
35
  tslib_1.__exportStar(require("./GetCachePolicyCommand"), exports);
@@ -50,6 +52,8 @@ tslib_1.__exportStar(require("./GetOriginRequestPolicyConfigCommand"), exports);
50
52
  tslib_1.__exportStar(require("./GetPublicKeyCommand"), exports);
51
53
  tslib_1.__exportStar(require("./GetPublicKeyConfigCommand"), exports);
52
54
  tslib_1.__exportStar(require("./GetRealtimeLogConfigCommand"), exports);
55
+ tslib_1.__exportStar(require("./GetResponseHeadersPolicyCommand"), exports);
56
+ tslib_1.__exportStar(require("./GetResponseHeadersPolicyConfigCommand"), exports);
53
57
  tslib_1.__exportStar(require("./GetStreamingDistributionCommand"), exports);
54
58
  tslib_1.__exportStar(require("./GetStreamingDistributionConfigCommand"), exports);
55
59
  tslib_1.__exportStar(require("./ListCachePoliciesCommand"), exports);
@@ -59,6 +63,7 @@ tslib_1.__exportStar(require("./ListDistributionsByCachePolicyIdCommand"), expor
59
63
  tslib_1.__exportStar(require("./ListDistributionsByKeyGroupCommand"), exports);
60
64
  tslib_1.__exportStar(require("./ListDistributionsByOriginRequestPolicyIdCommand"), exports);
61
65
  tslib_1.__exportStar(require("./ListDistributionsByRealtimeLogConfigCommand"), exports);
66
+ tslib_1.__exportStar(require("./ListDistributionsByResponseHeadersPolicyIdCommand"), exports);
62
67
  tslib_1.__exportStar(require("./ListDistributionsByWebACLIdCommand"), exports);
63
68
  tslib_1.__exportStar(require("./ListDistributionsCommand"), exports);
64
69
  tslib_1.__exportStar(require("./ListFieldLevelEncryptionConfigsCommand"), exports);
@@ -69,6 +74,7 @@ tslib_1.__exportStar(require("./ListKeyGroupsCommand"), exports);
69
74
  tslib_1.__exportStar(require("./ListOriginRequestPoliciesCommand"), exports);
70
75
  tslib_1.__exportStar(require("./ListPublicKeysCommand"), exports);
71
76
  tslib_1.__exportStar(require("./ListRealtimeLogConfigsCommand"), exports);
77
+ tslib_1.__exportStar(require("./ListResponseHeadersPoliciesCommand"), exports);
72
78
  tslib_1.__exportStar(require("./ListStreamingDistributionsCommand"), exports);
73
79
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
74
80
  tslib_1.__exportStar(require("./PublishFunctionCommand"), exports);
@@ -85,4 +91,5 @@ tslib_1.__exportStar(require("./UpdateKeyGroupCommand"), exports);
85
91
  tslib_1.__exportStar(require("./UpdateOriginRequestPolicyCommand"), exports);
86
92
  tslib_1.__exportStar(require("./UpdatePublicKeyCommand"), exports);
87
93
  tslib_1.__exportStar(require("./UpdateRealtimeLogConfigCommand"), exports);
94
+ tslib_1.__exportStar(require("./UpdateResponseHeadersPolicyCommand"), exports);
88
95
  tslib_1.__exportStar(require("./UpdateStreamingDistributionCommand"), exports);
@@ -4,11 +4,21 @@ exports.defaultRegionInfoProvider = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "aws-cn-global": {
7
- hostname: "cloudfront.cn-northwest-1.amazonaws.com.cn",
7
+ variants: [
8
+ {
9
+ hostname: "cloudfront.cn-northwest-1.amazonaws.com.cn",
10
+ tags: [],
11
+ },
12
+ ],
8
13
  signingRegion: "cn-northwest-1",
9
14
  },
10
15
  "aws-global": {
11
- hostname: "cloudfront.amazonaws.com",
16
+ variants: [
17
+ {
18
+ hostname: "cloudfront.amazonaws.com",
19
+ tags: [],
20
+ },
21
+ ],
12
22
  signingRegion: "us-east-1",
13
23
  },
14
24
  };
@@ -39,27 +49,98 @@ const partitionHash = {
39
49
  "us-west-2",
40
50
  ],
41
51
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
52
+ variants: [
53
+ {
54
+ hostname: "cloudfront.{region}.amazonaws.com",
55
+ tags: [],
56
+ },
57
+ {
58
+ hostname: "cloudfront-fips.{region}.amazonaws.com",
59
+ tags: ["fips"],
60
+ },
61
+ {
62
+ hostname: "cloudfront-fips.{region}.api.aws",
63
+ tags: ["dualstack", "fips"],
64
+ },
65
+ {
66
+ hostname: "cloudfront.{region}.api.aws",
67
+ tags: ["dualstack"],
68
+ },
69
+ ],
42
70
  endpoint: "aws-global",
43
71
  },
44
72
  "aws-cn": {
45
73
  regions: ["aws-cn-global", "cn-north-1", "cn-northwest-1"],
46
74
  regionRegex: "^cn\\-\\w+\\-\\d+$",
75
+ variants: [
76
+ {
77
+ hostname: "cloudfront.{region}.amazonaws.com.cn",
78
+ tags: [],
79
+ },
80
+ {
81
+ hostname: "cloudfront-fips.{region}.amazonaws.com.cn",
82
+ tags: ["fips"],
83
+ },
84
+ {
85
+ hostname: "cloudfront-fips.{region}.api.amazonwebservices.com.cn",
86
+ tags: ["dualstack", "fips"],
87
+ },
88
+ {
89
+ hostname: "cloudfront.{region}.api.amazonwebservices.com.cn",
90
+ tags: ["dualstack"],
91
+ },
92
+ ],
47
93
  endpoint: "aws-cn-global",
48
94
  },
49
95
  "aws-iso": {
50
96
  regions: ["us-iso-east-1", "us-iso-west-1"],
51
97
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
52
- hostname: "cloudfront.{region}.c2s.ic.gov",
98
+ variants: [
99
+ {
100
+ hostname: "cloudfront.{region}.c2s.ic.gov",
101
+ tags: [],
102
+ },
103
+ {
104
+ hostname: "cloudfront-fips.{region}.c2s.ic.gov",
105
+ tags: ["fips"],
106
+ },
107
+ ],
53
108
  },
54
109
  "aws-iso-b": {
55
110
  regions: ["us-isob-east-1"],
56
111
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
57
- hostname: "cloudfront.{region}.sc2s.sgov.gov",
112
+ variants: [
113
+ {
114
+ hostname: "cloudfront.{region}.sc2s.sgov.gov",
115
+ tags: [],
116
+ },
117
+ {
118
+ hostname: "cloudfront-fips.{region}.sc2s.sgov.gov",
119
+ tags: ["fips"],
120
+ },
121
+ ],
58
122
  },
59
123
  "aws-us-gov": {
60
124
  regions: ["us-gov-east-1", "us-gov-west-1"],
61
125
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
62
- hostname: "cloudfront.{region}.amazonaws.com",
126
+ variants: [
127
+ {
128
+ hostname: "cloudfront.{region}.amazonaws.com",
129
+ tags: [],
130
+ },
131
+ {
132
+ hostname: "cloudfront-fips.{region}.amazonaws.com",
133
+ tags: ["fips"],
134
+ },
135
+ {
136
+ hostname: "cloudfront-fips.{region}.api.aws",
137
+ tags: ["dualstack", "fips"],
138
+ },
139
+ {
140
+ hostname: "cloudfront.{region}.api.aws",
141
+ tags: ["dualstack"],
142
+ },
143
+ ],
63
144
  },
64
145
  };
65
146
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {