@aws-sdk/client-cloudfront 3.213.0 → 3.215.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 (75) hide show
  1. package/dist-cjs/CloudFront.js +105 -0
  2. package/dist-cjs/commands/CopyDistributionCommand.js +46 -0
  3. package/dist-cjs/commands/CreateContinuousDeploymentPolicyCommand.js +46 -0
  4. package/dist-cjs/commands/CreateStreamingDistributionCommand.js +3 -3
  5. package/dist-cjs/commands/CreateStreamingDistributionWithTagsCommand.js +3 -3
  6. package/dist-cjs/commands/DeleteCachePolicyCommand.js +2 -2
  7. package/dist-cjs/commands/DeleteContinuousDeploymentPolicyCommand.js +46 -0
  8. package/dist-cjs/commands/GetContinuousDeploymentPolicyCommand.js +46 -0
  9. package/dist-cjs/commands/GetContinuousDeploymentPolicyConfigCommand.js +46 -0
  10. package/dist-cjs/commands/ListContinuousDeploymentPoliciesCommand.js +46 -0
  11. package/dist-cjs/commands/UpdateContinuousDeploymentPolicyCommand.js +46 -0
  12. package/dist-cjs/commands/index.js +7 -0
  13. package/dist-cjs/endpoint/ruleset.js +11 -11
  14. package/dist-cjs/models/models_0.js +405 -297
  15. package/dist-cjs/models/models_1.js +146 -4
  16. package/dist-cjs/protocols/Aws_restXml.js +895 -16
  17. package/dist-es/CloudFront.js +105 -0
  18. package/dist-es/commands/CopyDistributionCommand.js +42 -0
  19. package/dist-es/commands/CreateContinuousDeploymentPolicyCommand.js +42 -0
  20. package/dist-es/commands/CreateStreamingDistributionCommand.js +1 -1
  21. package/dist-es/commands/CreateStreamingDistributionWithTagsCommand.js +1 -1
  22. package/dist-es/commands/DeleteCachePolicyCommand.js +1 -1
  23. package/dist-es/commands/DeleteContinuousDeploymentPolicyCommand.js +42 -0
  24. package/dist-es/commands/GetContinuousDeploymentPolicyCommand.js +42 -0
  25. package/dist-es/commands/GetContinuousDeploymentPolicyConfigCommand.js +42 -0
  26. package/dist-es/commands/ListContinuousDeploymentPoliciesCommand.js +42 -0
  27. package/dist-es/commands/UpdateContinuousDeploymentPolicyCommand.js +42 -0
  28. package/dist-es/commands/index.js +7 -0
  29. package/dist-es/endpoint/ruleset.js +11 -11
  30. package/dist-es/models/models_0.js +366 -257
  31. package/dist-es/models/models_1.js +117 -0
  32. package/dist-es/protocols/Aws_restXml.js +876 -12
  33. package/dist-types/CloudFront.d.ts +114 -76
  34. package/dist-types/CloudFrontClient.d.ts +9 -2
  35. package/dist-types/commands/CopyDistributionCommand.d.ts +43 -0
  36. package/dist-types/commands/CreateContinuousDeploymentPolicyCommand.d.ts +46 -0
  37. package/dist-types/commands/CreateDistributionCommand.d.ts +1 -13
  38. package/dist-types/commands/CreateStreamingDistributionCommand.d.ts +1 -1
  39. package/dist-types/commands/CreateStreamingDistributionWithTagsCommand.d.ts +1 -1
  40. package/dist-types/commands/DeleteCachePolicyCommand.d.ts +1 -1
  41. package/dist-types/commands/DeleteContinuousDeploymentPolicyCommand.d.ts +40 -0
  42. package/dist-types/commands/GetContinuousDeploymentPolicyCommand.d.ts +38 -0
  43. package/dist-types/commands/GetContinuousDeploymentPolicyConfigCommand.d.ts +37 -0
  44. package/dist-types/commands/ListContinuousDeploymentPoliciesCommand.d.ts +42 -0
  45. package/dist-types/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +57 -0
  46. package/dist-types/commands/UpdateDistributionCommand.d.ts +20 -63
  47. package/dist-types/commands/index.d.ts +7 -0
  48. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  49. package/dist-types/models/models_0.d.ts +824 -784
  50. package/dist-types/models/models_1.d.ts +458 -2
  51. package/dist-types/protocols/Aws_restXml.d.ts +21 -0
  52. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  53. package/dist-types/runtimeConfig.d.ts +1 -1
  54. package/dist-types/runtimeConfig.native.d.ts +1 -1
  55. package/dist-types/ts3.4/CloudFront.d.ts +125 -0
  56. package/dist-types/ts3.4/CloudFrontClient.d.ts +42 -0
  57. package/dist-types/ts3.4/commands/CopyDistributionCommand.d.ts +37 -0
  58. package/dist-types/ts3.4/commands/CreateContinuousDeploymentPolicyCommand.d.ts +41 -0
  59. package/dist-types/ts3.4/commands/CreateStreamingDistributionCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/CreateStreamingDistributionWithTagsCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/DeleteCachePolicyCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/DeleteContinuousDeploymentPolicyCommand.d.ts +37 -0
  63. package/dist-types/ts3.4/commands/GetContinuousDeploymentPolicyCommand.d.ts +41 -0
  64. package/dist-types/ts3.4/commands/GetContinuousDeploymentPolicyConfigCommand.d.ts +41 -0
  65. package/dist-types/ts3.4/commands/ListContinuousDeploymentPoliciesCommand.d.ts +41 -0
  66. package/dist-types/ts3.4/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +41 -0
  67. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  68. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  69. package/dist-types/ts3.4/models/models_0.d.ts +376 -338
  70. package/dist-types/ts3.4/models/models_1.d.ts +196 -4
  71. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +84 -0
  72. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  73. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -2
  74. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  75. package/package.json +29 -29
@@ -24,6 +24,22 @@ export class AccessDenied extends __BaseException {
24
24
  this.Message = opts.Message;
25
25
  }
26
26
  }
27
+ export var ICPRecordalStatus;
28
+ (function (ICPRecordalStatus) {
29
+ ICPRecordalStatus["APPROVED"] = "APPROVED";
30
+ ICPRecordalStatus["PENDING"] = "PENDING";
31
+ ICPRecordalStatus["SUSPENDED"] = "SUSPENDED";
32
+ })(ICPRecordalStatus || (ICPRecordalStatus = {}));
33
+ export var Method;
34
+ (function (Method) {
35
+ Method["DELETE"] = "DELETE";
36
+ Method["GET"] = "GET";
37
+ Method["HEAD"] = "HEAD";
38
+ Method["OPTIONS"] = "OPTIONS";
39
+ Method["PATCH"] = "PATCH";
40
+ Method["POST"] = "POST";
41
+ Method["PUT"] = "PUT";
42
+ })(Method || (Method = {}));
27
43
  export class IllegalUpdate extends __BaseException {
28
44
  constructor(opts) {
29
45
  super({
@@ -89,6 +105,44 @@ export class BatchTooLarge extends __BaseException {
89
105
  this.Message = opts.Message;
90
106
  }
91
107
  }
108
+ export var ItemSelection;
109
+ (function (ItemSelection) {
110
+ ItemSelection["all"] = "all";
111
+ ItemSelection["none"] = "none";
112
+ ItemSelection["whitelist"] = "whitelist";
113
+ })(ItemSelection || (ItemSelection = {}));
114
+ export var EventType;
115
+ (function (EventType) {
116
+ EventType["origin_request"] = "origin-request";
117
+ EventType["origin_response"] = "origin-response";
118
+ EventType["viewer_request"] = "viewer-request";
119
+ EventType["viewer_response"] = "viewer-response";
120
+ })(EventType || (EventType = {}));
121
+ export var ViewerProtocolPolicy;
122
+ (function (ViewerProtocolPolicy) {
123
+ ViewerProtocolPolicy["allow_all"] = "allow-all";
124
+ ViewerProtocolPolicy["https_only"] = "https-only";
125
+ ViewerProtocolPolicy["redirect_to_https"] = "redirect-to-https";
126
+ })(ViewerProtocolPolicy || (ViewerProtocolPolicy = {}));
127
+ export var CachePolicyCookieBehavior;
128
+ (function (CachePolicyCookieBehavior) {
129
+ CachePolicyCookieBehavior["all"] = "all";
130
+ CachePolicyCookieBehavior["allExcept"] = "allExcept";
131
+ CachePolicyCookieBehavior["none"] = "none";
132
+ CachePolicyCookieBehavior["whitelist"] = "whitelist";
133
+ })(CachePolicyCookieBehavior || (CachePolicyCookieBehavior = {}));
134
+ export var CachePolicyHeaderBehavior;
135
+ (function (CachePolicyHeaderBehavior) {
136
+ CachePolicyHeaderBehavior["none"] = "none";
137
+ CachePolicyHeaderBehavior["whitelist"] = "whitelist";
138
+ })(CachePolicyHeaderBehavior || (CachePolicyHeaderBehavior = {}));
139
+ export var CachePolicyQueryStringBehavior;
140
+ (function (CachePolicyQueryStringBehavior) {
141
+ CachePolicyQueryStringBehavior["all"] = "all";
142
+ CachePolicyQueryStringBehavior["allExcept"] = "allExcept";
143
+ CachePolicyQueryStringBehavior["none"] = "none";
144
+ CachePolicyQueryStringBehavior["whitelist"] = "whitelist";
145
+ })(CachePolicyQueryStringBehavior || (CachePolicyQueryStringBehavior = {}));
92
146
  export class CachePolicyAlreadyExists extends __BaseException {
93
147
  constructor(opts) {
94
148
  super({
@@ -115,6 +169,11 @@ export class CachePolicyInUse extends __BaseException {
115
169
  this.Message = opts.Message;
116
170
  }
117
171
  }
172
+ export var CachePolicyType;
173
+ (function (CachePolicyType) {
174
+ CachePolicyType["custom"] = "custom";
175
+ CachePolicyType["managed"] = "managed";
176
+ })(CachePolicyType || (CachePolicyType = {}));
118
177
  export class CannotChangeImmutablePublicKeyFields extends __BaseException {
119
178
  constructor(opts) {
120
179
  super({
@@ -128,110 +187,12 @@ export class CannotChangeImmutablePublicKeyFields extends __BaseException {
128
187
  this.Message = opts.Message;
129
188
  }
130
189
  }
131
- export class InconsistentQuantities extends __BaseException {
132
- constructor(opts) {
133
- super({
134
- name: "InconsistentQuantities",
135
- $fault: "client",
136
- ...opts,
137
- });
138
- this.name = "InconsistentQuantities";
139
- this.$fault = "client";
140
- Object.setPrototypeOf(this, InconsistentQuantities.prototype);
141
- this.Message = opts.Message;
142
- }
143
- }
144
- export class TooManyCachePolicies extends __BaseException {
145
- constructor(opts) {
146
- super({
147
- name: "TooManyCachePolicies",
148
- $fault: "client",
149
- ...opts,
150
- });
151
- this.name = "TooManyCachePolicies";
152
- this.$fault = "client";
153
- Object.setPrototypeOf(this, TooManyCachePolicies.prototype);
154
- this.Message = opts.Message;
155
- }
156
- }
157
- export class TooManyCookiesInCachePolicy extends __BaseException {
158
- constructor(opts) {
159
- super({
160
- name: "TooManyCookiesInCachePolicy",
161
- $fault: "client",
162
- ...opts,
163
- });
164
- this.name = "TooManyCookiesInCachePolicy";
165
- this.$fault = "client";
166
- Object.setPrototypeOf(this, TooManyCookiesInCachePolicy.prototype);
167
- this.Message = opts.Message;
168
- }
169
- }
170
- export class TooManyHeadersInCachePolicy extends __BaseException {
171
- constructor(opts) {
172
- super({
173
- name: "TooManyHeadersInCachePolicy",
174
- $fault: "client",
175
- ...opts,
176
- });
177
- this.name = "TooManyHeadersInCachePolicy";
178
- this.$fault = "client";
179
- Object.setPrototypeOf(this, TooManyHeadersInCachePolicy.prototype);
180
- this.Message = opts.Message;
181
- }
182
- }
183
- export class TooManyQueryStringsInCachePolicy extends __BaseException {
184
- constructor(opts) {
185
- super({
186
- name: "TooManyQueryStringsInCachePolicy",
187
- $fault: "client",
188
- ...opts,
189
- });
190
- this.name = "TooManyQueryStringsInCachePolicy";
191
- this.$fault = "client";
192
- Object.setPrototypeOf(this, TooManyQueryStringsInCachePolicy.prototype);
193
- this.Message = opts.Message;
194
- }
195
- }
196
- export class CloudFrontOriginAccessIdentityAlreadyExists extends __BaseException {
197
- constructor(opts) {
198
- super({
199
- name: "CloudFrontOriginAccessIdentityAlreadyExists",
200
- $fault: "client",
201
- ...opts,
202
- });
203
- this.name = "CloudFrontOriginAccessIdentityAlreadyExists";
204
- this.$fault = "client";
205
- Object.setPrototypeOf(this, CloudFrontOriginAccessIdentityAlreadyExists.prototype);
206
- this.Message = opts.Message;
207
- }
208
- }
209
- export class MissingBody extends __BaseException {
210
- constructor(opts) {
211
- super({
212
- name: "MissingBody",
213
- $fault: "client",
214
- ...opts,
215
- });
216
- this.name = "MissingBody";
217
- this.$fault = "client";
218
- Object.setPrototypeOf(this, MissingBody.prototype);
219
- this.Message = opts.Message;
220
- }
221
- }
222
- export class TooManyCloudFrontOriginAccessIdentities extends __BaseException {
223
- constructor(opts) {
224
- super({
225
- name: "TooManyCloudFrontOriginAccessIdentities",
226
- $fault: "client",
227
- ...opts,
228
- });
229
- this.name = "TooManyCloudFrontOriginAccessIdentities";
230
- this.$fault = "client";
231
- Object.setPrototypeOf(this, TooManyCloudFrontOriginAccessIdentities.prototype);
232
- this.Message = opts.Message;
233
- }
234
- }
190
+ export var CertificateSource;
191
+ (function (CertificateSource) {
192
+ CertificateSource["acm"] = "acm";
193
+ CertificateSource["cloudfront"] = "cloudfront";
194
+ CertificateSource["iam"] = "iam";
195
+ })(CertificateSource || (CertificateSource = {}));
235
196
  export class CNAMEAlreadyExists extends __BaseException {
236
197
  constructor(opts) {
237
198
  super({
@@ -245,6 +206,54 @@ export class CNAMEAlreadyExists extends __BaseException {
245
206
  this.Message = opts.Message;
246
207
  }
247
208
  }
209
+ export var HttpVersion;
210
+ (function (HttpVersion) {
211
+ HttpVersion["http1_1"] = "http1.1";
212
+ HttpVersion["http2"] = "http2";
213
+ HttpVersion["http2and3"] = "http2and3";
214
+ HttpVersion["http3"] = "http3";
215
+ })(HttpVersion || (HttpVersion = {}));
216
+ export var OriginProtocolPolicy;
217
+ (function (OriginProtocolPolicy) {
218
+ OriginProtocolPolicy["http_only"] = "http-only";
219
+ OriginProtocolPolicy["https_only"] = "https-only";
220
+ OriginProtocolPolicy["match_viewer"] = "match-viewer";
221
+ })(OriginProtocolPolicy || (OriginProtocolPolicy = {}));
222
+ export var SslProtocol;
223
+ (function (SslProtocol) {
224
+ SslProtocol["SSLv3"] = "SSLv3";
225
+ SslProtocol["TLSv1"] = "TLSv1";
226
+ SslProtocol["TLSv1_1"] = "TLSv1.1";
227
+ SslProtocol["TLSv1_2"] = "TLSv1.2";
228
+ })(SslProtocol || (SslProtocol = {}));
229
+ export var PriceClass;
230
+ (function (PriceClass) {
231
+ PriceClass["PriceClass_100"] = "PriceClass_100";
232
+ PriceClass["PriceClass_200"] = "PriceClass_200";
233
+ PriceClass["PriceClass_All"] = "PriceClass_All";
234
+ })(PriceClass || (PriceClass = {}));
235
+ export var GeoRestrictionType;
236
+ (function (GeoRestrictionType) {
237
+ GeoRestrictionType["blacklist"] = "blacklist";
238
+ GeoRestrictionType["none"] = "none";
239
+ GeoRestrictionType["whitelist"] = "whitelist";
240
+ })(GeoRestrictionType || (GeoRestrictionType = {}));
241
+ export var MinimumProtocolVersion;
242
+ (function (MinimumProtocolVersion) {
243
+ MinimumProtocolVersion["SSLv3"] = "SSLv3";
244
+ MinimumProtocolVersion["TLSv1"] = "TLSv1";
245
+ MinimumProtocolVersion["TLSv1_1_2016"] = "TLSv1.1_2016";
246
+ MinimumProtocolVersion["TLSv1_2016"] = "TLSv1_2016";
247
+ MinimumProtocolVersion["TLSv1_2_2018"] = "TLSv1.2_2018";
248
+ MinimumProtocolVersion["TLSv1_2_2019"] = "TLSv1.2_2019";
249
+ MinimumProtocolVersion["TLSv1_2_2021"] = "TLSv1.2_2021";
250
+ })(MinimumProtocolVersion || (MinimumProtocolVersion = {}));
251
+ export var SSLSupportMethod;
252
+ (function (SSLSupportMethod) {
253
+ SSLSupportMethod["sni_only"] = "sni-only";
254
+ SSLSupportMethod["static_ip"] = "static-ip";
255
+ SSLSupportMethod["vip"] = "vip";
256
+ })(SSLSupportMethod || (SSLSupportMethod = {}));
248
257
  export class DistributionAlreadyExists extends __BaseException {
249
258
  constructor(opts) {
250
259
  super({
@@ -271,16 +280,16 @@ export class IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior exten
271
280
  this.Message = opts.Message;
272
281
  }
273
282
  }
274
- export class IllegalOriginAccessConfiguration extends __BaseException {
283
+ export class InconsistentQuantities extends __BaseException {
275
284
  constructor(opts) {
276
285
  super({
277
- name: "IllegalOriginAccessConfiguration",
286
+ name: "InconsistentQuantities",
278
287
  $fault: "client",
279
288
  ...opts,
280
289
  });
281
- this.name = "IllegalOriginAccessConfiguration";
290
+ this.name = "InconsistentQuantities";
282
291
  this.$fault = "client";
283
- Object.setPrototypeOf(this, IllegalOriginAccessConfiguration.prototype);
292
+ Object.setPrototypeOf(this, InconsistentQuantities.prototype);
284
293
  this.Message = opts.Message;
285
294
  }
286
295
  }
@@ -297,19 +306,6 @@ export class InvalidDefaultRootObject extends __BaseException {
297
306
  this.Message = opts.Message;
298
307
  }
299
308
  }
300
- export class InvalidDomainNameForOriginAccessControl extends __BaseException {
301
- constructor(opts) {
302
- super({
303
- name: "InvalidDomainNameForOriginAccessControl",
304
- $fault: "client",
305
- ...opts,
306
- });
307
- this.name = "InvalidDomainNameForOriginAccessControl";
308
- this.$fault = "client";
309
- Object.setPrototypeOf(this, InvalidDomainNameForOriginAccessControl.prototype);
310
- this.Message = opts.Message;
311
- }
312
- }
313
309
  export class InvalidErrorCode extends __BaseException {
314
310
  constructor(opts) {
315
311
  super({
@@ -375,6 +371,19 @@ export class InvalidHeadersForS3Origin extends __BaseException {
375
371
  this.Message = opts.Message;
376
372
  }
377
373
  }
374
+ export class InvalidIfMatchVersion extends __BaseException {
375
+ constructor(opts) {
376
+ super({
377
+ name: "InvalidIfMatchVersion",
378
+ $fault: "client",
379
+ ...opts,
380
+ });
381
+ this.name = "InvalidIfMatchVersion";
382
+ this.$fault = "client";
383
+ Object.setPrototypeOf(this, InvalidIfMatchVersion.prototype);
384
+ this.Message = opts.Message;
385
+ }
386
+ }
378
387
  export class InvalidLambdaFunctionAssociation extends __BaseException {
379
388
  constructor(opts) {
380
389
  super({
@@ -583,6 +592,19 @@ export class InvalidWebACLId extends __BaseException {
583
592
  this.Message = opts.Message;
584
593
  }
585
594
  }
595
+ export class MissingBody extends __BaseException {
596
+ constructor(opts) {
597
+ super({
598
+ name: "MissingBody",
599
+ $fault: "client",
600
+ ...opts,
601
+ });
602
+ this.name = "MissingBody";
603
+ this.$fault = "client";
604
+ Object.setPrototypeOf(this, MissingBody.prototype);
605
+ this.Message = opts.Message;
606
+ }
607
+ }
586
608
  export class NoSuchCachePolicy extends __BaseException {
587
609
  constructor(opts) {
588
610
  super({
@@ -661,6 +683,19 @@ export class NoSuchResponseHeadersPolicy extends __BaseException {
661
683
  this.Message = opts.Message;
662
684
  }
663
685
  }
686
+ export class PreconditionFailed extends __BaseException {
687
+ constructor(opts) {
688
+ super({
689
+ name: "PreconditionFailed",
690
+ $fault: "client",
691
+ ...opts,
692
+ });
693
+ this.name = "PreconditionFailed";
694
+ this.$fault = "client";
695
+ Object.setPrototypeOf(this, PreconditionFailed.prototype);
696
+ this.Message = opts.Message;
697
+ }
698
+ }
664
699
  export class RealtimeLogConfigOwnerMismatch extends __BaseException {
665
700
  constructor(opts) {
666
701
  super({
@@ -765,19 +800,6 @@ export class TooManyDistributionsAssociatedToKeyGroup extends __BaseException {
765
800
  this.Message = opts.Message;
766
801
  }
767
802
  }
768
- export class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
769
- constructor(opts) {
770
- super({
771
- name: "TooManyDistributionsAssociatedToOriginAccessControl",
772
- $fault: "client",
773
- ...opts,
774
- });
775
- this.name = "TooManyDistributionsAssociatedToOriginAccessControl";
776
- this.$fault = "client";
777
- Object.setPrototypeOf(this, TooManyDistributionsAssociatedToOriginAccessControl.prototype);
778
- this.Message = opts.Message;
779
- }
780
- }
781
803
  export class TooManyDistributionsAssociatedToOriginRequestPolicy extends __BaseException {
782
804
  constructor(opts) {
783
805
  super({
@@ -986,6 +1008,141 @@ export class TrustedSignerDoesNotExist extends __BaseException {
986
1008
  this.Message = opts.Message;
987
1009
  }
988
1010
  }
1011
+ export class TooManyCachePolicies extends __BaseException {
1012
+ constructor(opts) {
1013
+ super({
1014
+ name: "TooManyCachePolicies",
1015
+ $fault: "client",
1016
+ ...opts,
1017
+ });
1018
+ this.name = "TooManyCachePolicies";
1019
+ this.$fault = "client";
1020
+ Object.setPrototypeOf(this, TooManyCachePolicies.prototype);
1021
+ this.Message = opts.Message;
1022
+ }
1023
+ }
1024
+ export class TooManyCookiesInCachePolicy extends __BaseException {
1025
+ constructor(opts) {
1026
+ super({
1027
+ name: "TooManyCookiesInCachePolicy",
1028
+ $fault: "client",
1029
+ ...opts,
1030
+ });
1031
+ this.name = "TooManyCookiesInCachePolicy";
1032
+ this.$fault = "client";
1033
+ Object.setPrototypeOf(this, TooManyCookiesInCachePolicy.prototype);
1034
+ this.Message = opts.Message;
1035
+ }
1036
+ }
1037
+ export class TooManyHeadersInCachePolicy extends __BaseException {
1038
+ constructor(opts) {
1039
+ super({
1040
+ name: "TooManyHeadersInCachePolicy",
1041
+ $fault: "client",
1042
+ ...opts,
1043
+ });
1044
+ this.name = "TooManyHeadersInCachePolicy";
1045
+ this.$fault = "client";
1046
+ Object.setPrototypeOf(this, TooManyHeadersInCachePolicy.prototype);
1047
+ this.Message = opts.Message;
1048
+ }
1049
+ }
1050
+ export class TooManyQueryStringsInCachePolicy extends __BaseException {
1051
+ constructor(opts) {
1052
+ super({
1053
+ name: "TooManyQueryStringsInCachePolicy",
1054
+ $fault: "client",
1055
+ ...opts,
1056
+ });
1057
+ this.name = "TooManyQueryStringsInCachePolicy";
1058
+ this.$fault = "client";
1059
+ Object.setPrototypeOf(this, TooManyQueryStringsInCachePolicy.prototype);
1060
+ this.Message = opts.Message;
1061
+ }
1062
+ }
1063
+ export class CloudFrontOriginAccessIdentityAlreadyExists extends __BaseException {
1064
+ constructor(opts) {
1065
+ super({
1066
+ name: "CloudFrontOriginAccessIdentityAlreadyExists",
1067
+ $fault: "client",
1068
+ ...opts,
1069
+ });
1070
+ this.name = "CloudFrontOriginAccessIdentityAlreadyExists";
1071
+ this.$fault = "client";
1072
+ Object.setPrototypeOf(this, CloudFrontOriginAccessIdentityAlreadyExists.prototype);
1073
+ this.Message = opts.Message;
1074
+ }
1075
+ }
1076
+ export class TooManyCloudFrontOriginAccessIdentities extends __BaseException {
1077
+ constructor(opts) {
1078
+ super({
1079
+ name: "TooManyCloudFrontOriginAccessIdentities",
1080
+ $fault: "client",
1081
+ ...opts,
1082
+ });
1083
+ this.name = "TooManyCloudFrontOriginAccessIdentities";
1084
+ this.$fault = "client";
1085
+ Object.setPrototypeOf(this, TooManyCloudFrontOriginAccessIdentities.prototype);
1086
+ this.Message = opts.Message;
1087
+ }
1088
+ }
1089
+ export var ContinuousDeploymentPolicyType;
1090
+ (function (ContinuousDeploymentPolicyType) {
1091
+ ContinuousDeploymentPolicyType["SingleHeader"] = "SingleHeader";
1092
+ ContinuousDeploymentPolicyType["SingleWeight"] = "SingleWeight";
1093
+ })(ContinuousDeploymentPolicyType || (ContinuousDeploymentPolicyType = {}));
1094
+ export class StagingDistributionInUse extends __BaseException {
1095
+ constructor(opts) {
1096
+ super({
1097
+ name: "StagingDistributionInUse",
1098
+ $fault: "client",
1099
+ ...opts,
1100
+ });
1101
+ this.name = "StagingDistributionInUse";
1102
+ this.$fault = "client";
1103
+ Object.setPrototypeOf(this, StagingDistributionInUse.prototype);
1104
+ this.Message = opts.Message;
1105
+ }
1106
+ }
1107
+ export class IllegalOriginAccessConfiguration extends __BaseException {
1108
+ constructor(opts) {
1109
+ super({
1110
+ name: "IllegalOriginAccessConfiguration",
1111
+ $fault: "client",
1112
+ ...opts,
1113
+ });
1114
+ this.name = "IllegalOriginAccessConfiguration";
1115
+ this.$fault = "client";
1116
+ Object.setPrototypeOf(this, IllegalOriginAccessConfiguration.prototype);
1117
+ this.Message = opts.Message;
1118
+ }
1119
+ }
1120
+ export class InvalidDomainNameForOriginAccessControl extends __BaseException {
1121
+ constructor(opts) {
1122
+ super({
1123
+ name: "InvalidDomainNameForOriginAccessControl",
1124
+ $fault: "client",
1125
+ ...opts,
1126
+ });
1127
+ this.name = "InvalidDomainNameForOriginAccessControl";
1128
+ this.$fault = "client";
1129
+ Object.setPrototypeOf(this, InvalidDomainNameForOriginAccessControl.prototype);
1130
+ this.Message = opts.Message;
1131
+ }
1132
+ }
1133
+ export class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
1134
+ constructor(opts) {
1135
+ super({
1136
+ name: "TooManyDistributionsAssociatedToOriginAccessControl",
1137
+ $fault: "client",
1138
+ ...opts,
1139
+ });
1140
+ this.name = "TooManyDistributionsAssociatedToOriginAccessControl";
1141
+ this.$fault = "client";
1142
+ Object.setPrototypeOf(this, TooManyDistributionsAssociatedToOriginAccessControl.prototype);
1143
+ this.Message = opts.Message;
1144
+ }
1145
+ }
989
1146
  export class InvalidTagging extends __BaseException {
990
1147
  constructor(opts) {
991
1148
  super({
@@ -999,6 +1156,10 @@ export class InvalidTagging extends __BaseException {
999
1156
  this.Message = opts.Message;
1000
1157
  }
1001
1158
  }
1159
+ export var Format;
1160
+ (function (Format) {
1161
+ Format["URLEncoded"] = "URLEncoded";
1162
+ })(Format || (Format = {}));
1002
1163
  export class FieldLevelEncryptionConfigAlreadyExists extends __BaseException {
1003
1164
  constructor(opts) {
1004
1165
  super({
@@ -1326,6 +1487,25 @@ export class TooManyOriginAccessControls extends __BaseException {
1326
1487
  this.Message = opts.Message;
1327
1488
  }
1328
1489
  }
1490
+ export var OriginRequestPolicyCookieBehavior;
1491
+ (function (OriginRequestPolicyCookieBehavior) {
1492
+ OriginRequestPolicyCookieBehavior["all"] = "all";
1493
+ OriginRequestPolicyCookieBehavior["none"] = "none";
1494
+ OriginRequestPolicyCookieBehavior["whitelist"] = "whitelist";
1495
+ })(OriginRequestPolicyCookieBehavior || (OriginRequestPolicyCookieBehavior = {}));
1496
+ export var OriginRequestPolicyHeaderBehavior;
1497
+ (function (OriginRequestPolicyHeaderBehavior) {
1498
+ OriginRequestPolicyHeaderBehavior["allViewer"] = "allViewer";
1499
+ OriginRequestPolicyHeaderBehavior["allViewerAndWhitelistCloudFront"] = "allViewerAndWhitelistCloudFront";
1500
+ OriginRequestPolicyHeaderBehavior["none"] = "none";
1501
+ OriginRequestPolicyHeaderBehavior["whitelist"] = "whitelist";
1502
+ })(OriginRequestPolicyHeaderBehavior || (OriginRequestPolicyHeaderBehavior = {}));
1503
+ export var OriginRequestPolicyQueryStringBehavior;
1504
+ (function (OriginRequestPolicyQueryStringBehavior) {
1505
+ OriginRequestPolicyQueryStringBehavior["all"] = "all";
1506
+ OriginRequestPolicyQueryStringBehavior["none"] = "none";
1507
+ OriginRequestPolicyQueryStringBehavior["whitelist"] = "whitelist";
1508
+ })(OriginRequestPolicyQueryStringBehavior || (OriginRequestPolicyQueryStringBehavior = {}));
1329
1509
  export class OriginRequestPolicyAlreadyExists extends __BaseException {
1330
1510
  constructor(opts) {
1331
1511
  super({
@@ -1511,84 +1691,6 @@ export class TooManyResponseHeadersPolicies extends __BaseException {
1511
1691
  this.Message = opts.Message;
1512
1692
  }
1513
1693
  }
1514
- export class StreamingDistributionAlreadyExists extends __BaseException {
1515
- constructor(opts) {
1516
- super({
1517
- name: "StreamingDistributionAlreadyExists",
1518
- $fault: "client",
1519
- ...opts,
1520
- });
1521
- this.name = "StreamingDistributionAlreadyExists";
1522
- this.$fault = "client";
1523
- Object.setPrototypeOf(this, StreamingDistributionAlreadyExists.prototype);
1524
- this.Message = opts.Message;
1525
- }
1526
- }
1527
- export class TooManyStreamingDistributionCNAMEs extends __BaseException {
1528
- constructor(opts) {
1529
- super({
1530
- name: "TooManyStreamingDistributionCNAMEs",
1531
- $fault: "client",
1532
- ...opts,
1533
- });
1534
- this.name = "TooManyStreamingDistributionCNAMEs";
1535
- this.$fault = "client";
1536
- Object.setPrototypeOf(this, TooManyStreamingDistributionCNAMEs.prototype);
1537
- this.Message = opts.Message;
1538
- }
1539
- }
1540
- export class TooManyStreamingDistributions extends __BaseException {
1541
- constructor(opts) {
1542
- super({
1543
- name: "TooManyStreamingDistributions",
1544
- $fault: "client",
1545
- ...opts,
1546
- });
1547
- this.name = "TooManyStreamingDistributions";
1548
- this.$fault = "client";
1549
- Object.setPrototypeOf(this, TooManyStreamingDistributions.prototype);
1550
- this.Message = opts.Message;
1551
- }
1552
- }
1553
- export class IllegalDelete extends __BaseException {
1554
- constructor(opts) {
1555
- super({
1556
- name: "IllegalDelete",
1557
- $fault: "client",
1558
- ...opts,
1559
- });
1560
- this.name = "IllegalDelete";
1561
- this.$fault = "client";
1562
- Object.setPrototypeOf(this, IllegalDelete.prototype);
1563
- this.Message = opts.Message;
1564
- }
1565
- }
1566
- export class InvalidIfMatchVersion extends __BaseException {
1567
- constructor(opts) {
1568
- super({
1569
- name: "InvalidIfMatchVersion",
1570
- $fault: "client",
1571
- ...opts,
1572
- });
1573
- this.name = "InvalidIfMatchVersion";
1574
- this.$fault = "client";
1575
- Object.setPrototypeOf(this, InvalidIfMatchVersion.prototype);
1576
- this.Message = opts.Message;
1577
- }
1578
- }
1579
- export class PreconditionFailed extends __BaseException {
1580
- constructor(opts) {
1581
- super({
1582
- name: "PreconditionFailed",
1583
- $fault: "client",
1584
- ...opts,
1585
- });
1586
- this.name = "PreconditionFailed";
1587
- this.$fault = "client";
1588
- Object.setPrototypeOf(this, PreconditionFailed.prototype);
1589
- this.Message = opts.Message;
1590
- }
1591
- }
1592
1694
  export const KeyPairIdsFilterSensitiveLog = (obj) => ({
1593
1695
  ...obj,
1594
1696
  });
@@ -1685,22 +1787,7 @@ export const CachePolicySummaryFilterSensitiveLog = (obj) => ({
1685
1787
  export const CachePolicyListFilterSensitiveLog = (obj) => ({
1686
1788
  ...obj,
1687
1789
  });
1688
- export const CreateCachePolicyRequestFilterSensitiveLog = (obj) => ({
1689
- ...obj,
1690
- });
1691
- export const CreateCachePolicyResultFilterSensitiveLog = (obj) => ({
1692
- ...obj,
1693
- });
1694
- export const CloudFrontOriginAccessIdentityConfigFilterSensitiveLog = (obj) => ({
1695
- ...obj,
1696
- });
1697
- export const CreateCloudFrontOriginAccessIdentityRequestFilterSensitiveLog = (obj) => ({
1698
- ...obj,
1699
- });
1700
- export const CloudFrontOriginAccessIdentityFilterSensitiveLog = (obj) => ({
1701
- ...obj,
1702
- });
1703
- export const CreateCloudFrontOriginAccessIdentityResultFilterSensitiveLog = (obj) => ({
1790
+ export const CopyDistributionRequestFilterSensitiveLog = (obj) => ({
1704
1791
  ...obj,
1705
1792
  });
1706
1793
  export const CustomErrorResponseFilterSensitiveLog = (obj) => ({
@@ -1773,11 +1860,60 @@ export const DistributionConfigFilterSensitiveLog = (obj) => ({
1773
1860
  ...obj,
1774
1861
  ...(obj.Comment && { Comment: SENSITIVE_STRING }),
1775
1862
  });
1776
- export const CreateDistributionRequestFilterSensitiveLog = (obj) => ({
1863
+ export const DistributionFilterSensitiveLog = (obj) => ({
1777
1864
  ...obj,
1778
1865
  ...(obj.DistributionConfig && { DistributionConfig: DistributionConfigFilterSensitiveLog(obj.DistributionConfig) }),
1779
1866
  });
1780
- export const DistributionFilterSensitiveLog = (obj) => ({
1867
+ export const CopyDistributionResultFilterSensitiveLog = (obj) => ({
1868
+ ...obj,
1869
+ ...(obj.Distribution && { Distribution: DistributionFilterSensitiveLog(obj.Distribution) }),
1870
+ });
1871
+ export const CreateCachePolicyRequestFilterSensitiveLog = (obj) => ({
1872
+ ...obj,
1873
+ });
1874
+ export const CreateCachePolicyResultFilterSensitiveLog = (obj) => ({
1875
+ ...obj,
1876
+ });
1877
+ export const CloudFrontOriginAccessIdentityConfigFilterSensitiveLog = (obj) => ({
1878
+ ...obj,
1879
+ });
1880
+ export const CreateCloudFrontOriginAccessIdentityRequestFilterSensitiveLog = (obj) => ({
1881
+ ...obj,
1882
+ });
1883
+ export const CloudFrontOriginAccessIdentityFilterSensitiveLog = (obj) => ({
1884
+ ...obj,
1885
+ });
1886
+ export const CreateCloudFrontOriginAccessIdentityResultFilterSensitiveLog = (obj) => ({
1887
+ ...obj,
1888
+ });
1889
+ export const StagingDistributionDnsNamesFilterSensitiveLog = (obj) => ({
1890
+ ...obj,
1891
+ });
1892
+ export const ContinuousDeploymentSingleHeaderConfigFilterSensitiveLog = (obj) => ({
1893
+ ...obj,
1894
+ });
1895
+ export const SessionStickinessConfigFilterSensitiveLog = (obj) => ({
1896
+ ...obj,
1897
+ });
1898
+ export const ContinuousDeploymentSingleWeightConfigFilterSensitiveLog = (obj) => ({
1899
+ ...obj,
1900
+ });
1901
+ export const TrafficConfigFilterSensitiveLog = (obj) => ({
1902
+ ...obj,
1903
+ });
1904
+ export const ContinuousDeploymentPolicyConfigFilterSensitiveLog = (obj) => ({
1905
+ ...obj,
1906
+ });
1907
+ export const CreateContinuousDeploymentPolicyRequestFilterSensitiveLog = (obj) => ({
1908
+ ...obj,
1909
+ });
1910
+ export const ContinuousDeploymentPolicyFilterSensitiveLog = (obj) => ({
1911
+ ...obj,
1912
+ });
1913
+ export const CreateContinuousDeploymentPolicyResultFilterSensitiveLog = (obj) => ({
1914
+ ...obj,
1915
+ });
1916
+ export const CreateDistributionRequestFilterSensitiveLog = (obj) => ({
1781
1917
  ...obj,
1782
1918
  ...(obj.DistributionConfig && { DistributionConfig: DistributionConfigFilterSensitiveLog(obj.DistributionConfig) }),
1783
1919
  });
@@ -2031,30 +2167,3 @@ export const CreateResponseHeadersPolicyResultFilterSensitiveLog = (obj) => ({
2031
2167
  export const StreamingLoggingConfigFilterSensitiveLog = (obj) => ({
2032
2168
  ...obj,
2033
2169
  });
2034
- export const S3OriginFilterSensitiveLog = (obj) => ({
2035
- ...obj,
2036
- });
2037
- export const StreamingDistributionConfigFilterSensitiveLog = (obj) => ({
2038
- ...obj,
2039
- });
2040
- export const CreateStreamingDistributionRequestFilterSensitiveLog = (obj) => ({
2041
- ...obj,
2042
- });
2043
- export const StreamingDistributionFilterSensitiveLog = (obj) => ({
2044
- ...obj,
2045
- });
2046
- export const CreateStreamingDistributionResultFilterSensitiveLog = (obj) => ({
2047
- ...obj,
2048
- });
2049
- export const StreamingDistributionConfigWithTagsFilterSensitiveLog = (obj) => ({
2050
- ...obj,
2051
- });
2052
- export const CreateStreamingDistributionWithTagsRequestFilterSensitiveLog = (obj) => ({
2053
- ...obj,
2054
- });
2055
- export const CreateStreamingDistributionWithTagsResultFilterSensitiveLog = (obj) => ({
2056
- ...obj,
2057
- });
2058
- export const DeleteCachePolicyRequestFilterSensitiveLog = (obj) => ({
2059
- ...obj,
2060
- });