@aws-sdk/client-cloudfront 3.797.0 → 3.799.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 (204) hide show
  1. package/README.md +200 -0
  2. package/dist-cjs/index.js +2696 -655
  3. package/dist-cjs/runtimeConfig.js +1 -0
  4. package/dist-es/CloudFront.js +50 -0
  5. package/dist-es/commands/AssociateDistributionTenantWebACLCommand.js +22 -0
  6. package/dist-es/commands/AssociateDistributionWebACLCommand.js +22 -0
  7. package/dist-es/commands/CreateConnectionGroupCommand.js +22 -0
  8. package/dist-es/commands/CreateDistributionTenantCommand.js +22 -0
  9. package/dist-es/commands/CreateInvalidationForDistributionTenantCommand.js +22 -0
  10. package/dist-es/commands/DeleteConnectionGroupCommand.js +22 -0
  11. package/dist-es/commands/DeleteDistributionTenantCommand.js +22 -0
  12. package/dist-es/commands/DisassociateDistributionTenantWebACLCommand.js +22 -0
  13. package/dist-es/commands/DisassociateDistributionWebACLCommand.js +22 -0
  14. package/dist-es/commands/GetConnectionGroupByRoutingEndpointCommand.js +22 -0
  15. package/dist-es/commands/GetConnectionGroupCommand.js +22 -0
  16. package/dist-es/commands/GetDistributionTenantByDomainCommand.js +22 -0
  17. package/dist-es/commands/GetDistributionTenantCommand.js +22 -0
  18. package/dist-es/commands/GetInvalidationForDistributionTenantCommand.js +22 -0
  19. package/dist-es/commands/GetManagedCertificateDetailsCommand.js +22 -0
  20. package/dist-es/commands/ListConnectionGroupsCommand.js +22 -0
  21. package/dist-es/commands/ListDistributionTenantsByCustomizationCommand.js +22 -0
  22. package/dist-es/commands/ListDistributionTenantsCommand.js +22 -0
  23. package/dist-es/commands/ListDistributionsByConnectionModeCommand.js +23 -0
  24. package/dist-es/commands/ListDomainConflictsCommand.js +22 -0
  25. package/dist-es/commands/ListInvalidationsForDistributionTenantCommand.js +22 -0
  26. package/dist-es/commands/TestFunctionCommand.js +1 -1
  27. package/dist-es/commands/UpdateConnectionGroupCommand.js +22 -0
  28. package/dist-es/commands/UpdateDistributionCommand.js +1 -1
  29. package/dist-es/commands/UpdateDistributionTenantCommand.js +22 -0
  30. package/dist-es/commands/UpdateDistributionWithStagingConfigCommand.js +1 -1
  31. package/dist-es/commands/UpdateDomainAssociationCommand.js +22 -0
  32. package/dist-es/commands/UpdateFunctionCommand.js +1 -1
  33. package/dist-es/commands/VerifyDnsConfigurationCommand.js +22 -0
  34. package/dist-es/commands/index.js +26 -1
  35. package/dist-es/models/index.js +1 -0
  36. package/dist-es/models/models_0.js +77 -201
  37. package/dist-es/models/models_1.js +203 -58
  38. package/dist-es/models/models_2.js +52 -0
  39. package/dist-es/pagination/ListConnectionGroupsPaginator.js +4 -0
  40. package/dist-es/pagination/ListDistributionTenantsByCustomizationPaginator.js +4 -0
  41. package/dist-es/pagination/ListDistributionTenantsPaginator.js +4 -0
  42. package/dist-es/pagination/ListDistributionsByConnectionModePaginator.js +4 -0
  43. package/dist-es/pagination/ListDomainConflictsPaginator.js +4 -0
  44. package/dist-es/pagination/ListInvalidationsForDistributionTenantPaginator.js +4 -0
  45. package/dist-es/pagination/index.js +6 -0
  46. package/dist-es/protocols/Aws_restXml.js +1907 -460
  47. package/dist-es/runtimeConfig.js +2 -1
  48. package/dist-es/waiters/index.js +1 -0
  49. package/dist-es/waiters/waitForInvalidationForDistributionTenantCompleted.js +31 -0
  50. package/dist-types/CloudFront.d.ts +178 -0
  51. package/dist-types/CloudFrontClient.d.ts +27 -2
  52. package/dist-types/commands/AssociateDistributionTenantWebACLCommand.d.ts +92 -0
  53. package/dist-types/commands/AssociateDistributionWebACLCommand.d.ts +92 -0
  54. package/dist-types/commands/CopyDistributionCommand.d.ts +16 -1
  55. package/dist-types/commands/CreateConnectionGroupCommand.d.ts +123 -0
  56. package/dist-types/commands/CreateDistributionCommand.d.ts +35 -2
  57. package/dist-types/commands/CreateDistributionTenantCommand.d.ts +185 -0
  58. package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +32 -2
  59. package/dist-types/commands/CreateInvalidationForDistributionTenantCommand.d.ts +119 -0
  60. package/dist-types/commands/CreateOriginRequestPolicyCommand.d.ts +1 -1
  61. package/dist-types/commands/CreatePublicKeyCommand.d.ts +1 -1
  62. package/dist-types/commands/CreateRealtimeLogConfigCommand.d.ts +1 -1
  63. package/dist-types/commands/CreateStreamingDistributionCommand.d.ts +2 -2
  64. package/dist-types/commands/CreateStreamingDistributionWithTagsCommand.d.ts +2 -2
  65. package/dist-types/commands/DeleteConnectionGroupCommand.d.ts +90 -0
  66. package/dist-types/commands/DeleteDistributionCommand.d.ts +3 -0
  67. package/dist-types/commands/DeleteDistributionTenantCommand.d.ts +88 -0
  68. package/dist-types/commands/DisassociateDistributionTenantWebACLCommand.d.ts +90 -0
  69. package/dist-types/commands/DisassociateDistributionWebACLCommand.d.ts +90 -0
  70. package/dist-types/commands/GetConnectionGroupByRoutingEndpointCommand.d.ts +99 -0
  71. package/dist-types/commands/GetConnectionGroupCommand.d.ts +99 -0
  72. package/dist-types/commands/GetDistributionCommand.d.ts +16 -1
  73. package/dist-types/commands/GetDistributionConfigCommand.d.ts +16 -1
  74. package/dist-types/commands/GetDistributionTenantByDomainCommand.d.ts +124 -0
  75. package/dist-types/commands/GetDistributionTenantCommand.d.ts +124 -0
  76. package/dist-types/commands/GetInvalidationForDistributionTenantCommand.d.ts +95 -0
  77. package/dist-types/commands/GetManagedCertificateDetailsCommand.d.ts +89 -0
  78. package/dist-types/commands/GetStreamingDistributionCommand.d.ts +1 -1
  79. package/dist-types/commands/GetStreamingDistributionConfigCommand.d.ts +1 -1
  80. package/dist-types/commands/ListConnectionGroupsCommand.d.ts +100 -0
  81. package/dist-types/commands/ListDistributionTenantsByCustomizationCommand.d.ts +120 -0
  82. package/dist-types/commands/ListDistributionTenantsCommand.d.ts +121 -0
  83. package/dist-types/commands/ListDistributionsByAnycastIpListIdCommand.d.ts +3 -1
  84. package/dist-types/commands/ListDistributionsByConnectionModeCommand.d.ts +392 -0
  85. package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +3 -1
  86. package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +3 -1
  87. package/dist-types/commands/ListDistributionsCommand.d.ts +3 -1
  88. package/dist-types/commands/ListDomainConflictsCommand.d.ts +96 -0
  89. package/dist-types/commands/ListInvalidationsForDistributionTenantCommand.d.ts +96 -0
  90. package/dist-types/commands/ListStreamingDistributionsCommand.d.ts +3 -2
  91. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  92. package/dist-types/commands/ListVpcOriginsCommand.d.ts +1 -1
  93. package/dist-types/commands/PublishFunctionCommand.d.ts +1 -1
  94. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  95. package/dist-types/commands/TestFunctionCommand.d.ts +1 -1
  96. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  97. package/dist-types/commands/UpdateCachePolicyCommand.d.ts +1 -1
  98. package/dist-types/commands/UpdateCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  99. package/dist-types/commands/UpdateConnectionGroupCommand.d.ts +123 -0
  100. package/dist-types/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +1 -1
  101. package/dist-types/commands/UpdateDistributionCommand.d.ts +33 -3
  102. package/dist-types/commands/UpdateDistributionTenantCommand.d.ts +182 -0
  103. package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +17 -2
  104. package/dist-types/commands/UpdateDomainAssociationCommand.d.ts +98 -0
  105. package/dist-types/commands/UpdateFieldLevelEncryptionConfigCommand.d.ts +1 -1
  106. package/dist-types/commands/UpdateFieldLevelEncryptionProfileCommand.d.ts +1 -1
  107. package/dist-types/commands/UpdateFunctionCommand.d.ts +1 -1
  108. package/dist-types/commands/UpdateKeyGroupCommand.d.ts +1 -1
  109. package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +1 -1
  110. package/dist-types/commands/UpdateOriginAccessControlCommand.d.ts +1 -1
  111. package/dist-types/commands/UpdateOriginRequestPolicyCommand.d.ts +1 -1
  112. package/dist-types/commands/UpdatePublicKeyCommand.d.ts +1 -1
  113. package/dist-types/commands/UpdateRealtimeLogConfigCommand.d.ts +1 -1
  114. package/dist-types/commands/UpdateResponseHeadersPolicyCommand.d.ts +1 -1
  115. package/dist-types/commands/UpdateStreamingDistributionCommand.d.ts +3 -3
  116. package/dist-types/commands/UpdateVpcOriginCommand.d.ts +1 -1
  117. package/dist-types/commands/VerifyDnsConfigurationCommand.d.ts +88 -0
  118. package/dist-types/commands/index.d.ts +26 -1
  119. package/dist-types/models/index.d.ts +1 -0
  120. package/dist-types/models/models_0.d.ts +830 -869
  121. package/dist-types/models/models_1.d.ts +2571 -2123
  122. package/dist-types/models/models_2.d.ts +1244 -0
  123. package/dist-types/pagination/ListConnectionGroupsPaginator.d.ts +7 -0
  124. package/dist-types/pagination/ListDistributionTenantsByCustomizationPaginator.d.ts +7 -0
  125. package/dist-types/pagination/ListDistributionTenantsPaginator.d.ts +7 -0
  126. package/dist-types/pagination/ListDistributionsByConnectionModePaginator.d.ts +7 -0
  127. package/dist-types/pagination/ListDomainConflictsPaginator.d.ts +7 -0
  128. package/dist-types/pagination/ListInvalidationsForDistributionTenantPaginator.d.ts +7 -0
  129. package/dist-types/pagination/index.d.ts +6 -0
  130. package/dist-types/protocols/Aws_restXml.d.ts +225 -0
  131. package/dist-types/runtimeConfig.d.ts +1 -1
  132. package/dist-types/ts3.4/CloudFront.d.ts +476 -0
  133. package/dist-types/ts3.4/CloudFrontClient.d.ts +152 -2
  134. package/dist-types/ts3.4/commands/AssociateDistributionTenantWebACLCommand.d.ts +51 -0
  135. package/dist-types/ts3.4/commands/AssociateDistributionWebACLCommand.d.ts +51 -0
  136. package/dist-types/ts3.4/commands/CreateConnectionGroupCommand.d.ts +51 -0
  137. package/dist-types/ts3.4/commands/CreateDistributionTenantCommand.d.ts +51 -0
  138. package/dist-types/ts3.4/commands/CreateInvalidationForDistributionTenantCommand.d.ts +51 -0
  139. package/dist-types/ts3.4/commands/CreateOriginRequestPolicyCommand.d.ts +1 -1
  140. package/dist-types/ts3.4/commands/CreatePublicKeyCommand.d.ts +1 -1
  141. package/dist-types/ts3.4/commands/CreateRealtimeLogConfigCommand.d.ts +1 -1
  142. package/dist-types/ts3.4/commands/DeleteConnectionGroupCommand.d.ts +46 -0
  143. package/dist-types/ts3.4/commands/DeleteDistributionTenantCommand.d.ts +47 -0
  144. package/dist-types/ts3.4/commands/DisassociateDistributionTenantWebACLCommand.d.ts +51 -0
  145. package/dist-types/ts3.4/commands/DisassociateDistributionWebACLCommand.d.ts +51 -0
  146. package/dist-types/ts3.4/commands/GetConnectionGroupByRoutingEndpointCommand.d.ts +51 -0
  147. package/dist-types/ts3.4/commands/GetConnectionGroupCommand.d.ts +51 -0
  148. package/dist-types/ts3.4/commands/GetDistributionTenantByDomainCommand.d.ts +51 -0
  149. package/dist-types/ts3.4/commands/GetDistributionTenantCommand.d.ts +51 -0
  150. package/dist-types/ts3.4/commands/GetInvalidationForDistributionTenantCommand.d.ts +51 -0
  151. package/dist-types/ts3.4/commands/GetManagedCertificateDetailsCommand.d.ts +51 -0
  152. package/dist-types/ts3.4/commands/ListConnectionGroupsCommand.d.ts +51 -0
  153. package/dist-types/ts3.4/commands/ListDistributionTenantsByCustomizationCommand.d.ts +51 -0
  154. package/dist-types/ts3.4/commands/ListDistributionTenantsCommand.d.ts +51 -0
  155. package/dist-types/ts3.4/commands/ListDistributionsByConnectionModeCommand.d.ts +51 -0
  156. package/dist-types/ts3.4/commands/ListDomainConflictsCommand.d.ts +51 -0
  157. package/dist-types/ts3.4/commands/ListInvalidationsForDistributionTenantCommand.d.ts +51 -0
  158. package/dist-types/ts3.4/commands/ListStreamingDistributionsCommand.d.ts +2 -4
  159. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  160. package/dist-types/ts3.4/commands/ListVpcOriginsCommand.d.ts +1 -1
  161. package/dist-types/ts3.4/commands/PublishFunctionCommand.d.ts +1 -1
  162. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  163. package/dist-types/ts3.4/commands/TestFunctionCommand.d.ts +1 -1
  164. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  165. package/dist-types/ts3.4/commands/UpdateCachePolicyCommand.d.ts +1 -1
  166. package/dist-types/ts3.4/commands/UpdateCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  167. package/dist-types/ts3.4/commands/UpdateConnectionGroupCommand.d.ts +51 -0
  168. package/dist-types/ts3.4/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +1 -1
  169. package/dist-types/ts3.4/commands/UpdateDistributionCommand.d.ts +1 -1
  170. package/dist-types/ts3.4/commands/UpdateDistributionTenantCommand.d.ts +51 -0
  171. package/dist-types/ts3.4/commands/UpdateDistributionWithStagingConfigCommand.d.ts +1 -1
  172. package/dist-types/ts3.4/commands/UpdateDomainAssociationCommand.d.ts +51 -0
  173. package/dist-types/ts3.4/commands/UpdateFieldLevelEncryptionConfigCommand.d.ts +1 -1
  174. package/dist-types/ts3.4/commands/UpdateFieldLevelEncryptionProfileCommand.d.ts +1 -1
  175. package/dist-types/ts3.4/commands/UpdateFunctionCommand.d.ts +1 -1
  176. package/dist-types/ts3.4/commands/UpdateKeyGroupCommand.d.ts +1 -1
  177. package/dist-types/ts3.4/commands/UpdateKeyValueStoreCommand.d.ts +1 -1
  178. package/dist-types/ts3.4/commands/UpdateOriginAccessControlCommand.d.ts +1 -1
  179. package/dist-types/ts3.4/commands/UpdateOriginRequestPolicyCommand.d.ts +1 -1
  180. package/dist-types/ts3.4/commands/UpdatePublicKeyCommand.d.ts +1 -1
  181. package/dist-types/ts3.4/commands/UpdateRealtimeLogConfigCommand.d.ts +1 -1
  182. package/dist-types/ts3.4/commands/UpdateResponseHeadersPolicyCommand.d.ts +1 -1
  183. package/dist-types/ts3.4/commands/UpdateStreamingDistributionCommand.d.ts +1 -1
  184. package/dist-types/ts3.4/commands/UpdateVpcOriginCommand.d.ts +1 -1
  185. package/dist-types/ts3.4/commands/VerifyDnsConfigurationCommand.d.ts +51 -0
  186. package/dist-types/ts3.4/commands/index.d.ts +26 -1
  187. package/dist-types/ts3.4/models/index.d.ts +1 -0
  188. package/dist-types/ts3.4/models/models_0.d.ts +190 -214
  189. package/dist-types/ts3.4/models/models_1.d.ts +413 -275
  190. package/dist-types/ts3.4/models/models_2.d.ts +363 -0
  191. package/dist-types/ts3.4/pagination/ListConnectionGroupsPaginator.d.ts +11 -0
  192. package/dist-types/ts3.4/pagination/ListDistributionTenantsByCustomizationPaginator.d.ts +11 -0
  193. package/dist-types/ts3.4/pagination/ListDistributionTenantsPaginator.d.ts +11 -0
  194. package/dist-types/ts3.4/pagination/ListDistributionsByConnectionModePaginator.d.ts +11 -0
  195. package/dist-types/ts3.4/pagination/ListDomainConflictsPaginator.d.ts +11 -0
  196. package/dist-types/ts3.4/pagination/ListInvalidationsForDistributionTenantPaginator.d.ts +11 -0
  197. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  198. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +300 -0
  199. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -4
  200. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  201. package/dist-types/ts3.4/waiters/waitForInvalidationForDistributionTenantCompleted.d.ts +11 -0
  202. package/dist-types/waiters/index.d.ts +1 -0
  203. package/dist-types/waiters/waitForInvalidationForDistributionTenantCompleted.d.ts +14 -0
  204. package/package.json +11 -11
@@ -94,6 +94,48 @@ export class TooManyDistributionCNAMEs extends __BaseException {
94
94
  this.Message = opts.Message;
95
95
  }
96
96
  }
97
+ export class EntityNotFound extends __BaseException {
98
+ name = "EntityNotFound";
99
+ $fault = "client";
100
+ Message;
101
+ constructor(opts) {
102
+ super({
103
+ name: "EntityNotFound",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, EntityNotFound.prototype);
108
+ this.Message = opts.Message;
109
+ }
110
+ }
111
+ export class InvalidIfMatchVersion extends __BaseException {
112
+ name = "InvalidIfMatchVersion";
113
+ $fault = "client";
114
+ Message;
115
+ constructor(opts) {
116
+ super({
117
+ name: "InvalidIfMatchVersion",
118
+ $fault: "client",
119
+ ...opts,
120
+ });
121
+ Object.setPrototypeOf(this, InvalidIfMatchVersion.prototype);
122
+ this.Message = opts.Message;
123
+ }
124
+ }
125
+ export class PreconditionFailed extends __BaseException {
126
+ name = "PreconditionFailed";
127
+ $fault = "client";
128
+ Message;
129
+ constructor(opts) {
130
+ super({
131
+ name: "PreconditionFailed",
132
+ $fault: "client",
133
+ ...opts,
134
+ });
135
+ Object.setPrototypeOf(this, PreconditionFailed.prototype);
136
+ this.Message = opts.Message;
137
+ }
138
+ }
97
139
  export class BatchTooLarge extends __BaseException {
98
140
  name = "BatchTooLarge";
99
141
  $fault = "client";
@@ -219,6 +261,10 @@ export const CertificateSource = {
219
261
  cloudfront: "cloudfront",
220
262
  iam: "iam",
221
263
  };
264
+ export const CertificateTransparencyLoggingPreference = {
265
+ Disabled: "disabled",
266
+ Enabled: "enabled",
267
+ };
222
268
  export class CNAMEAlreadyExists extends __BaseException {
223
269
  name = "CNAMEAlreadyExists";
224
270
  $fault = "client";
@@ -233,6 +279,10 @@ export class CNAMEAlreadyExists extends __BaseException {
233
279
  this.Message = opts.Message;
234
280
  }
235
281
  }
282
+ export const ConnectionMode = {
283
+ Direct: "direct",
284
+ TenantOnly: "tenant-only",
285
+ };
236
286
  export const HttpVersion = {
237
287
  http1_1: "http1.1",
238
288
  http2: "http2",
@@ -255,6 +305,7 @@ export const SslProtocol = {
255
305
  TLSv1_2: "TLSv1.2",
256
306
  };
257
307
  export const PriceClass = {
308
+ None: "None",
258
309
  PriceClass_100: "PriceClass_100",
259
310
  PriceClass_200: "PriceClass_200",
260
311
  PriceClass_All: "PriceClass_All",
@@ -404,20 +455,6 @@ export class InvalidHeadersForS3Origin extends __BaseException {
404
455
  this.Message = opts.Message;
405
456
  }
406
457
  }
407
- export class InvalidIfMatchVersion extends __BaseException {
408
- name = "InvalidIfMatchVersion";
409
- $fault = "client";
410
- Message;
411
- constructor(opts) {
412
- super({
413
- name: "InvalidIfMatchVersion",
414
- $fault: "client",
415
- ...opts,
416
- });
417
- Object.setPrototypeOf(this, InvalidIfMatchVersion.prototype);
418
- this.Message = opts.Message;
419
- }
420
- }
421
458
  export class InvalidLambdaFunctionAssociation extends __BaseException {
422
459
  name = "InvalidLambdaFunctionAssociation";
423
460
  $fault = "client";
@@ -740,20 +777,6 @@ export class NoSuchResponseHeadersPolicy extends __BaseException {
740
777
  this.Message = opts.Message;
741
778
  }
742
779
  }
743
- export class PreconditionFailed extends __BaseException {
744
- name = "PreconditionFailed";
745
- $fault = "client";
746
- Message;
747
- constructor(opts) {
748
- super({
749
- name: "PreconditionFailed",
750
- $fault: "client",
751
- ...opts,
752
- });
753
- Object.setPrototypeOf(this, PreconditionFailed.prototype);
754
- this.Message = opts.Message;
755
- }
756
- }
757
780
  export class RealtimeLogConfigOwnerMismatch extends __BaseException {
758
781
  name = "RealtimeLogConfigOwnerMismatch";
759
782
  $fault = "client";
@@ -1304,20 +1327,6 @@ export class ContinuousDeploymentPolicyInUse extends __BaseException {
1304
1327
  this.Message = opts.Message;
1305
1328
  }
1306
1329
  }
1307
- export class EntityNotFound extends __BaseException {
1308
- name = "EntityNotFound";
1309
- $fault = "client";
1310
- Message;
1311
- constructor(opts) {
1312
- super({
1313
- name: "EntityNotFound",
1314
- $fault: "client",
1315
- ...opts,
1316
- });
1317
- Object.setPrototypeOf(this, EntityNotFound.prototype);
1318
- this.Message = opts.Message;
1319
- }
1320
- }
1321
1330
  export class IllegalOriginAccessConfiguration extends __BaseException {
1322
1331
  name = "IllegalOriginAccessConfiguration";
1323
1332
  $fault = "client";
@@ -1360,6 +1369,32 @@ export class NoSuchContinuousDeploymentPolicy extends __BaseException {
1360
1369
  this.Message = opts.Message;
1361
1370
  }
1362
1371
  }
1372
+ export const CustomizationActionType = {
1373
+ disable: "disable",
1374
+ override: "override",
1375
+ };
1376
+ export const ValidationTokenHost = {
1377
+ CloudFront: "cloudfront",
1378
+ SelfHosted: "self-hosted",
1379
+ };
1380
+ export const DomainStatus = {
1381
+ Active: "active",
1382
+ Inactive: "inactive",
1383
+ };
1384
+ export class InvalidAssociation extends __BaseException {
1385
+ name = "InvalidAssociation";
1386
+ $fault = "client";
1387
+ Message;
1388
+ constructor(opts) {
1389
+ super({
1390
+ name: "InvalidAssociation",
1391
+ $fault: "client",
1392
+ ...opts,
1393
+ });
1394
+ Object.setPrototypeOf(this, InvalidAssociation.prototype);
1395
+ this.Message = opts.Message;
1396
+ }
1397
+ }
1363
1398
  export const Format = {
1364
1399
  URLEncoded: "URLEncoded",
1365
1400
  };
@@ -1700,165 +1735,6 @@ export class OriginAccessControlAlreadyExists extends __BaseException {
1700
1735
  this.Message = opts.Message;
1701
1736
  }
1702
1737
  }
1703
- export class TooManyOriginAccessControls extends __BaseException {
1704
- name = "TooManyOriginAccessControls";
1705
- $fault = "client";
1706
- Message;
1707
- constructor(opts) {
1708
- super({
1709
- name: "TooManyOriginAccessControls",
1710
- $fault: "client",
1711
- ...opts,
1712
- });
1713
- Object.setPrototypeOf(this, TooManyOriginAccessControls.prototype);
1714
- this.Message = opts.Message;
1715
- }
1716
- }
1717
- export const OriginRequestPolicyCookieBehavior = {
1718
- all: "all",
1719
- allExcept: "allExcept",
1720
- none: "none",
1721
- whitelist: "whitelist",
1722
- };
1723
- export const OriginRequestPolicyHeaderBehavior = {
1724
- allExcept: "allExcept",
1725
- allViewer: "allViewer",
1726
- allViewerAndWhitelistCloudFront: "allViewerAndWhitelistCloudFront",
1727
- none: "none",
1728
- whitelist: "whitelist",
1729
- };
1730
- export const OriginRequestPolicyQueryStringBehavior = {
1731
- all: "all",
1732
- allExcept: "allExcept",
1733
- none: "none",
1734
- whitelist: "whitelist",
1735
- };
1736
- export class OriginRequestPolicyAlreadyExists extends __BaseException {
1737
- name = "OriginRequestPolicyAlreadyExists";
1738
- $fault = "client";
1739
- Message;
1740
- constructor(opts) {
1741
- super({
1742
- name: "OriginRequestPolicyAlreadyExists",
1743
- $fault: "client",
1744
- ...opts,
1745
- });
1746
- Object.setPrototypeOf(this, OriginRequestPolicyAlreadyExists.prototype);
1747
- this.Message = opts.Message;
1748
- }
1749
- }
1750
- export class TooManyCookiesInOriginRequestPolicy extends __BaseException {
1751
- name = "TooManyCookiesInOriginRequestPolicy";
1752
- $fault = "client";
1753
- Message;
1754
- constructor(opts) {
1755
- super({
1756
- name: "TooManyCookiesInOriginRequestPolicy",
1757
- $fault: "client",
1758
- ...opts,
1759
- });
1760
- Object.setPrototypeOf(this, TooManyCookiesInOriginRequestPolicy.prototype);
1761
- this.Message = opts.Message;
1762
- }
1763
- }
1764
- export class TooManyHeadersInOriginRequestPolicy extends __BaseException {
1765
- name = "TooManyHeadersInOriginRequestPolicy";
1766
- $fault = "client";
1767
- Message;
1768
- constructor(opts) {
1769
- super({
1770
- name: "TooManyHeadersInOriginRequestPolicy",
1771
- $fault: "client",
1772
- ...opts,
1773
- });
1774
- Object.setPrototypeOf(this, TooManyHeadersInOriginRequestPolicy.prototype);
1775
- this.Message = opts.Message;
1776
- }
1777
- }
1778
- export class TooManyOriginRequestPolicies extends __BaseException {
1779
- name = "TooManyOriginRequestPolicies";
1780
- $fault = "client";
1781
- Message;
1782
- constructor(opts) {
1783
- super({
1784
- name: "TooManyOriginRequestPolicies",
1785
- $fault: "client",
1786
- ...opts,
1787
- });
1788
- Object.setPrototypeOf(this, TooManyOriginRequestPolicies.prototype);
1789
- this.Message = opts.Message;
1790
- }
1791
- }
1792
- export class TooManyQueryStringsInOriginRequestPolicy extends __BaseException {
1793
- name = "TooManyQueryStringsInOriginRequestPolicy";
1794
- $fault = "client";
1795
- Message;
1796
- constructor(opts) {
1797
- super({
1798
- name: "TooManyQueryStringsInOriginRequestPolicy",
1799
- $fault: "client",
1800
- ...opts,
1801
- });
1802
- Object.setPrototypeOf(this, TooManyQueryStringsInOriginRequestPolicy.prototype);
1803
- this.Message = opts.Message;
1804
- }
1805
- }
1806
- export class PublicKeyAlreadyExists extends __BaseException {
1807
- name = "PublicKeyAlreadyExists";
1808
- $fault = "client";
1809
- Message;
1810
- constructor(opts) {
1811
- super({
1812
- name: "PublicKeyAlreadyExists",
1813
- $fault: "client",
1814
- ...opts,
1815
- });
1816
- Object.setPrototypeOf(this, PublicKeyAlreadyExists.prototype);
1817
- this.Message = opts.Message;
1818
- }
1819
- }
1820
- export class TooManyPublicKeys extends __BaseException {
1821
- name = "TooManyPublicKeys";
1822
- $fault = "client";
1823
- Message;
1824
- constructor(opts) {
1825
- super({
1826
- name: "TooManyPublicKeys",
1827
- $fault: "client",
1828
- ...opts,
1829
- });
1830
- Object.setPrototypeOf(this, TooManyPublicKeys.prototype);
1831
- this.Message = opts.Message;
1832
- }
1833
- }
1834
- export class RealtimeLogConfigAlreadyExists extends __BaseException {
1835
- name = "RealtimeLogConfigAlreadyExists";
1836
- $fault = "client";
1837
- Message;
1838
- constructor(opts) {
1839
- super({
1840
- name: "RealtimeLogConfigAlreadyExists",
1841
- $fault: "client",
1842
- ...opts,
1843
- });
1844
- Object.setPrototypeOf(this, RealtimeLogConfigAlreadyExists.prototype);
1845
- this.Message = opts.Message;
1846
- }
1847
- }
1848
- export class TooManyRealtimeLogConfigs extends __BaseException {
1849
- name = "TooManyRealtimeLogConfigs";
1850
- $fault = "client";
1851
- Message;
1852
- constructor(opts) {
1853
- super({
1854
- name: "TooManyRealtimeLogConfigs",
1855
- $fault: "client",
1856
- ...opts,
1857
- });
1858
- Object.setPrototypeOf(this, TooManyRealtimeLogConfigs.prototype);
1859
- this.Message = opts.Message;
1860
- }
1861
- }
1862
1738
  export const OriginCustomHeaderFilterSensitiveLog = (obj) => ({
1863
1739
  ...obj,
1864
1740
  ...(obj.HeaderValue && { HeaderValue: SENSITIVE_STRING }),
@@ -1,6 +1,165 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { CloudFrontServiceException as __BaseException } from "./CloudFrontServiceException";
3
3
  import { DistributionConfigFilterSensitiveLog, DistributionFilterSensitiveLog, } from "./models_0";
4
+ export class TooManyOriginAccessControls extends __BaseException {
5
+ name = "TooManyOriginAccessControls";
6
+ $fault = "client";
7
+ Message;
8
+ constructor(opts) {
9
+ super({
10
+ name: "TooManyOriginAccessControls",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, TooManyOriginAccessControls.prototype);
15
+ this.Message = opts.Message;
16
+ }
17
+ }
18
+ export const OriginRequestPolicyCookieBehavior = {
19
+ all: "all",
20
+ allExcept: "allExcept",
21
+ none: "none",
22
+ whitelist: "whitelist",
23
+ };
24
+ export const OriginRequestPolicyHeaderBehavior = {
25
+ allExcept: "allExcept",
26
+ allViewer: "allViewer",
27
+ allViewerAndWhitelistCloudFront: "allViewerAndWhitelistCloudFront",
28
+ none: "none",
29
+ whitelist: "whitelist",
30
+ };
31
+ export const OriginRequestPolicyQueryStringBehavior = {
32
+ all: "all",
33
+ allExcept: "allExcept",
34
+ none: "none",
35
+ whitelist: "whitelist",
36
+ };
37
+ export class OriginRequestPolicyAlreadyExists extends __BaseException {
38
+ name = "OriginRequestPolicyAlreadyExists";
39
+ $fault = "client";
40
+ Message;
41
+ constructor(opts) {
42
+ super({
43
+ name: "OriginRequestPolicyAlreadyExists",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, OriginRequestPolicyAlreadyExists.prototype);
48
+ this.Message = opts.Message;
49
+ }
50
+ }
51
+ export class TooManyCookiesInOriginRequestPolicy extends __BaseException {
52
+ name = "TooManyCookiesInOriginRequestPolicy";
53
+ $fault = "client";
54
+ Message;
55
+ constructor(opts) {
56
+ super({
57
+ name: "TooManyCookiesInOriginRequestPolicy",
58
+ $fault: "client",
59
+ ...opts,
60
+ });
61
+ Object.setPrototypeOf(this, TooManyCookiesInOriginRequestPolicy.prototype);
62
+ this.Message = opts.Message;
63
+ }
64
+ }
65
+ export class TooManyHeadersInOriginRequestPolicy extends __BaseException {
66
+ name = "TooManyHeadersInOriginRequestPolicy";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "TooManyHeadersInOriginRequestPolicy",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, TooManyHeadersInOriginRequestPolicy.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ export class TooManyOriginRequestPolicies extends __BaseException {
80
+ name = "TooManyOriginRequestPolicies";
81
+ $fault = "client";
82
+ Message;
83
+ constructor(opts) {
84
+ super({
85
+ name: "TooManyOriginRequestPolicies",
86
+ $fault: "client",
87
+ ...opts,
88
+ });
89
+ Object.setPrototypeOf(this, TooManyOriginRequestPolicies.prototype);
90
+ this.Message = opts.Message;
91
+ }
92
+ }
93
+ export class TooManyQueryStringsInOriginRequestPolicy extends __BaseException {
94
+ name = "TooManyQueryStringsInOriginRequestPolicy";
95
+ $fault = "client";
96
+ Message;
97
+ constructor(opts) {
98
+ super({
99
+ name: "TooManyQueryStringsInOriginRequestPolicy",
100
+ $fault: "client",
101
+ ...opts,
102
+ });
103
+ Object.setPrototypeOf(this, TooManyQueryStringsInOriginRequestPolicy.prototype);
104
+ this.Message = opts.Message;
105
+ }
106
+ }
107
+ export class PublicKeyAlreadyExists extends __BaseException {
108
+ name = "PublicKeyAlreadyExists";
109
+ $fault = "client";
110
+ Message;
111
+ constructor(opts) {
112
+ super({
113
+ name: "PublicKeyAlreadyExists",
114
+ $fault: "client",
115
+ ...opts,
116
+ });
117
+ Object.setPrototypeOf(this, PublicKeyAlreadyExists.prototype);
118
+ this.Message = opts.Message;
119
+ }
120
+ }
121
+ export class TooManyPublicKeys extends __BaseException {
122
+ name = "TooManyPublicKeys";
123
+ $fault = "client";
124
+ Message;
125
+ constructor(opts) {
126
+ super({
127
+ name: "TooManyPublicKeys",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, TooManyPublicKeys.prototype);
132
+ this.Message = opts.Message;
133
+ }
134
+ }
135
+ export class RealtimeLogConfigAlreadyExists extends __BaseException {
136
+ name = "RealtimeLogConfigAlreadyExists";
137
+ $fault = "client";
138
+ Message;
139
+ constructor(opts) {
140
+ super({
141
+ name: "RealtimeLogConfigAlreadyExists",
142
+ $fault: "client",
143
+ ...opts,
144
+ });
145
+ Object.setPrototypeOf(this, RealtimeLogConfigAlreadyExists.prototype);
146
+ this.Message = opts.Message;
147
+ }
148
+ }
149
+ export class TooManyRealtimeLogConfigs extends __BaseException {
150
+ name = "TooManyRealtimeLogConfigs";
151
+ $fault = "client";
152
+ Message;
153
+ constructor(opts) {
154
+ super({
155
+ name: "TooManyRealtimeLogConfigs",
156
+ $fault: "client",
157
+ ...opts,
158
+ });
159
+ Object.setPrototypeOf(this, TooManyRealtimeLogConfigs.prototype);
160
+ this.Message = opts.Message;
161
+ }
162
+ }
4
163
  export const FrameOptionsList = {
5
164
  DENY: "DENY",
6
165
  SAMEORIGIN: "SAMEORIGIN",
@@ -169,6 +328,20 @@ export class NoSuchCloudFrontOriginAccessIdentity extends __BaseException {
169
328
  this.Message = opts.Message;
170
329
  }
171
330
  }
331
+ export class ResourceNotDisabled extends __BaseException {
332
+ name = "ResourceNotDisabled";
333
+ $fault = "client";
334
+ Message;
335
+ constructor(opts) {
336
+ super({
337
+ name: "ResourceNotDisabled",
338
+ $fault: "client",
339
+ ...opts,
340
+ });
341
+ Object.setPrototypeOf(this, ResourceNotDisabled.prototype);
342
+ this.Message = opts.Message;
343
+ }
344
+ }
172
345
  export class DistributionNotDisabled extends __BaseException {
173
346
  name = "DistributionNotDisabled";
174
347
  $fault = "client";
@@ -183,6 +356,20 @@ export class DistributionNotDisabled extends __BaseException {
183
356
  this.Message = opts.Message;
184
357
  }
185
358
  }
359
+ export class ResourceInUse extends __BaseException {
360
+ name = "ResourceInUse";
361
+ $fault = "client";
362
+ Message;
363
+ constructor(opts) {
364
+ super({
365
+ name: "ResourceInUse",
366
+ $fault: "client",
367
+ ...opts,
368
+ });
369
+ Object.setPrototypeOf(this, ResourceInUse.prototype);
370
+ this.Message = opts.Message;
371
+ }
372
+ }
186
373
  export class FieldLevelEncryptionConfigInUse extends __BaseException {
187
374
  name = "FieldLevelEncryptionConfigInUse";
188
375
  $fault = "client";
@@ -253,20 +440,6 @@ export class NoSuchResource extends __BaseException {
253
440
  this.Message = opts.Message;
254
441
  }
255
442
  }
256
- export class ResourceInUse extends __BaseException {
257
- name = "ResourceInUse";
258
- $fault = "client";
259
- Message;
260
- constructor(opts) {
261
- super({
262
- name: "ResourceInUse",
263
- $fault: "client",
264
- ...opts,
265
- });
266
- Object.setPrototypeOf(this, ResourceInUse.prototype);
267
- this.Message = opts.Message;
268
- }
269
- }
270
443
  export class NoSuchMonitoringSubscription extends __BaseException {
271
444
  name = "NoSuchMonitoringSubscription";
272
445
  $fault = "client";
@@ -407,6 +580,19 @@ export class NoSuchInvalidation extends __BaseException {
407
580
  this.Message = opts.Message;
408
581
  }
409
582
  }
583
+ export const ManagedCertificateStatus = {
584
+ Expired: "expired",
585
+ Failed: "failed",
586
+ Inactive: "inactive",
587
+ Issued: "issued",
588
+ PendingValidation: "pending-validation",
589
+ Revoked: "revoked",
590
+ ValidationTimedOut: "validation-timed-out",
591
+ };
592
+ export const DistributionResourceType = {
593
+ Distribution: "distribution",
594
+ DistributionTenant: "distribution-tenant",
595
+ };
410
596
  export const OriginRequestPolicyType = {
411
597
  custom: "custom",
412
598
  managed: "managed",
@@ -415,20 +601,6 @@ export const ResponseHeadersPolicyType = {
415
601
  custom: "custom",
416
602
  managed: "managed",
417
603
  };
418
- export class TestFunctionFailed extends __BaseException {
419
- name = "TestFunctionFailed";
420
- $fault = "server";
421
- Message;
422
- constructor(opts) {
423
- super({
424
- name: "TestFunctionFailed",
425
- $fault: "server",
426
- ...opts,
427
- });
428
- Object.setPrototypeOf(this, TestFunctionFailed.prototype);
429
- this.Message = opts.Message;
430
- }
431
- }
432
604
  export const GetDistributionResultFilterSensitiveLog = (obj) => ({
433
605
  ...obj,
434
606
  ...(obj.Distribution && { Distribution: DistributionFilterSensitiveLog(obj.Distribution) }),
@@ -453,39 +625,12 @@ export const ListDistributionsResultFilterSensitiveLog = (obj) => ({
453
625
  export const ListDistributionsByAnycastIpListIdResultFilterSensitiveLog = (obj) => ({
454
626
  ...obj,
455
627
  });
456
- export const ListDistributionsByRealtimeLogConfigResultFilterSensitiveLog = (obj) => ({
457
- ...obj,
458
- });
459
- export const ListDistributionsByWebACLIdResultFilterSensitiveLog = (obj) => ({
460
- ...obj,
461
- });
462
- export const TestFunctionRequestFilterSensitiveLog = (obj) => ({
463
- ...obj,
464
- ...(obj.EventObject && { EventObject: SENSITIVE_STRING }),
465
- });
466
- export const TestResultFilterSensitiveLog = (obj) => ({
467
- ...obj,
468
- ...(obj.FunctionExecutionLogs && { FunctionExecutionLogs: SENSITIVE_STRING }),
469
- ...(obj.FunctionErrorMessage && { FunctionErrorMessage: SENSITIVE_STRING }),
470
- ...(obj.FunctionOutput && { FunctionOutput: SENSITIVE_STRING }),
471
- });
472
- export const TestFunctionResultFilterSensitiveLog = (obj) => ({
628
+ export const ListDistributionsByConnectionModeResultFilterSensitiveLog = (obj) => ({
473
629
  ...obj,
474
- ...(obj.TestResult && { TestResult: TestResultFilterSensitiveLog(obj.TestResult) }),
475
630
  });
476
- export const UpdateDistributionRequestFilterSensitiveLog = (obj) => ({
477
- ...obj,
478
- ...(obj.DistributionConfig && { DistributionConfig: DistributionConfigFilterSensitiveLog(obj.DistributionConfig) }),
479
- });
480
- export const UpdateDistributionResultFilterSensitiveLog = (obj) => ({
481
- ...obj,
482
- ...(obj.Distribution && { Distribution: DistributionFilterSensitiveLog(obj.Distribution) }),
483
- });
484
- export const UpdateDistributionWithStagingConfigResultFilterSensitiveLog = (obj) => ({
631
+ export const ListDistributionsByRealtimeLogConfigResultFilterSensitiveLog = (obj) => ({
485
632
  ...obj,
486
- ...(obj.Distribution && { Distribution: DistributionFilterSensitiveLog(obj.Distribution) }),
487
633
  });
488
- export const UpdateFunctionRequestFilterSensitiveLog = (obj) => ({
634
+ export const ListDistributionsByWebACLIdResultFilterSensitiveLog = (obj) => ({
489
635
  ...obj,
490
- ...(obj.FunctionCode && { FunctionCode: SENSITIVE_STRING }),
491
636
  });
@@ -0,0 +1,52 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { CloudFrontServiceException as __BaseException } from "./CloudFrontServiceException";
3
+ import { DistributionConfigFilterSensitiveLog, DistributionFilterSensitiveLog, } from "./models_0";
4
+ export class TestFunctionFailed extends __BaseException {
5
+ name = "TestFunctionFailed";
6
+ $fault = "server";
7
+ Message;
8
+ constructor(opts) {
9
+ super({
10
+ name: "TestFunctionFailed",
11
+ $fault: "server",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, TestFunctionFailed.prototype);
15
+ this.Message = opts.Message;
16
+ }
17
+ }
18
+ export const DnsConfigurationStatus = {
19
+ Invalid: "invalid-configuration",
20
+ Unknown: "unknown-configuration",
21
+ Valid: "valid-configuration",
22
+ };
23
+ export const TestFunctionRequestFilterSensitiveLog = (obj) => ({
24
+ ...obj,
25
+ ...(obj.EventObject && { EventObject: SENSITIVE_STRING }),
26
+ });
27
+ export const TestResultFilterSensitiveLog = (obj) => ({
28
+ ...obj,
29
+ ...(obj.FunctionExecutionLogs && { FunctionExecutionLogs: SENSITIVE_STRING }),
30
+ ...(obj.FunctionErrorMessage && { FunctionErrorMessage: SENSITIVE_STRING }),
31
+ ...(obj.FunctionOutput && { FunctionOutput: SENSITIVE_STRING }),
32
+ });
33
+ export const TestFunctionResultFilterSensitiveLog = (obj) => ({
34
+ ...obj,
35
+ ...(obj.TestResult && { TestResult: TestResultFilterSensitiveLog(obj.TestResult) }),
36
+ });
37
+ export const UpdateDistributionRequestFilterSensitiveLog = (obj) => ({
38
+ ...obj,
39
+ ...(obj.DistributionConfig && { DistributionConfig: DistributionConfigFilterSensitiveLog(obj.DistributionConfig) }),
40
+ });
41
+ export const UpdateDistributionResultFilterSensitiveLog = (obj) => ({
42
+ ...obj,
43
+ ...(obj.Distribution && { Distribution: DistributionFilterSensitiveLog(obj.Distribution) }),
44
+ });
45
+ export const UpdateDistributionWithStagingConfigResultFilterSensitiveLog = (obj) => ({
46
+ ...obj,
47
+ ...(obj.Distribution && { Distribution: DistributionFilterSensitiveLog(obj.Distribution) }),
48
+ });
49
+ export const UpdateFunctionRequestFilterSensitiveLog = (obj) => ({
50
+ ...obj,
51
+ ...(obj.FunctionCode && { FunctionCode: SENSITIVE_STRING }),
52
+ });
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { CloudFrontClient } from "../CloudFrontClient";
3
+ import { ListConnectionGroupsCommand, } from "../commands/ListConnectionGroupsCommand";
4
+ export const paginateListConnectionGroups = createPaginator(CloudFrontClient, ListConnectionGroupsCommand, "Marker", "NextMarker", "MaxItems");