@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
@@ -42,19 +42,24 @@ export interface Aliases {
42
42
  Quantity: number | undefined;
43
43
  Items?: string[];
44
44
  }
45
- export declare type ICPRecordalStatus = "APPROVED" | "PENDING" | "SUSPENDED";
45
+ export declare enum ICPRecordalStatus {
46
+ APPROVED = "APPROVED",
47
+ PENDING = "PENDING",
48
+ SUSPENDED = "SUSPENDED",
49
+ }
46
50
  export interface AliasICPRecordal {
47
51
  CNAME?: string;
48
52
  ICPRecordalStatus?: ICPRecordalStatus | string;
49
53
  }
50
- export declare type Method =
51
- | "DELETE"
52
- | "GET"
53
- | "HEAD"
54
- | "OPTIONS"
55
- | "PATCH"
56
- | "POST"
57
- | "PUT";
54
+ export declare enum Method {
55
+ DELETE = "DELETE",
56
+ GET = "GET",
57
+ HEAD = "HEAD",
58
+ OPTIONS = "OPTIONS",
59
+ PATCH = "PATCH",
60
+ POST = "POST",
61
+ PUT = "PUT",
62
+ }
58
63
  export interface CachedMethods {
59
64
  Quantity: number | undefined;
60
65
  Items: (Method | string)[] | undefined;
@@ -100,7 +105,11 @@ export declare class BatchTooLarge extends __BaseException {
100
105
  Message?: string;
101
106
  constructor(opts: __ExceptionOptionType<BatchTooLarge, __BaseException>);
102
107
  }
103
- export declare type ItemSelection = "all" | "none" | "whitelist";
108
+ export declare enum ItemSelection {
109
+ all = "all",
110
+ none = "none",
111
+ whitelist = "whitelist",
112
+ }
104
113
  export interface CookieNames {
105
114
  Quantity: number | undefined;
106
115
  Items?: string[];
@@ -123,11 +132,12 @@ export interface ForwardedValues {
123
132
  Headers?: Headers;
124
133
  QueryStringCacheKeys?: QueryStringCacheKeys;
125
134
  }
126
- export declare type EventType =
127
- | "origin-request"
128
- | "origin-response"
129
- | "viewer-request"
130
- | "viewer-response";
135
+ export declare enum EventType {
136
+ origin_request = "origin-request",
137
+ origin_response = "origin-response",
138
+ viewer_request = "viewer-request",
139
+ viewer_response = "viewer-response",
140
+ }
131
141
  export interface FunctionAssociation {
132
142
  FunctionARN: string | undefined;
133
143
  EventType: EventType | string | undefined;
@@ -155,10 +165,11 @@ export interface TrustedSigners {
155
165
  Quantity: number | undefined;
156
166
  Items?: string[];
157
167
  }
158
- export declare type ViewerProtocolPolicy =
159
- | "allow-all"
160
- | "https-only"
161
- | "redirect-to-https";
168
+ export declare enum ViewerProtocolPolicy {
169
+ allow_all = "allow-all",
170
+ https_only = "https-only",
171
+ redirect_to_https = "redirect-to-https",
172
+ }
162
173
  export interface CacheBehavior {
163
174
  PathPattern: string | undefined;
164
175
  TargetOriginId: string | undefined;
@@ -184,25 +195,30 @@ export interface CacheBehaviors {
184
195
  Quantity: number | undefined;
185
196
  Items?: CacheBehavior[];
186
197
  }
187
- export declare type CachePolicyCookieBehavior =
188
- | "all"
189
- | "allExcept"
190
- | "none"
191
- | "whitelist";
198
+ export declare enum CachePolicyCookieBehavior {
199
+ all = "all",
200
+ allExcept = "allExcept",
201
+ none = "none",
202
+ whitelist = "whitelist",
203
+ }
192
204
  export interface CachePolicyCookiesConfig {
193
205
  CookieBehavior: CachePolicyCookieBehavior | string | undefined;
194
206
  Cookies?: CookieNames;
195
207
  }
196
- export declare type CachePolicyHeaderBehavior = "none" | "whitelist";
208
+ export declare enum CachePolicyHeaderBehavior {
209
+ none = "none",
210
+ whitelist = "whitelist",
211
+ }
197
212
  export interface CachePolicyHeadersConfig {
198
213
  HeaderBehavior: CachePolicyHeaderBehavior | string | undefined;
199
214
  Headers?: Headers;
200
215
  }
201
- export declare type CachePolicyQueryStringBehavior =
202
- | "all"
203
- | "allExcept"
204
- | "none"
205
- | "whitelist";
216
+ export declare enum CachePolicyQueryStringBehavior {
217
+ all = "all",
218
+ allExcept = "allExcept",
219
+ none = "none",
220
+ whitelist = "whitelist",
221
+ }
206
222
  export interface QueryStringNames {
207
223
  Quantity: number | undefined;
208
224
  Items?: string[];
@@ -245,7 +261,10 @@ export declare class CachePolicyInUse extends __BaseException {
245
261
  Message?: string;
246
262
  constructor(opts: __ExceptionOptionType<CachePolicyInUse, __BaseException>);
247
263
  }
248
- export declare type CachePolicyType = "custom" | "managed";
264
+ export declare enum CachePolicyType {
265
+ custom = "custom",
266
+ managed = "managed",
267
+ }
249
268
  export interface CachePolicySummary {
250
269
  Type: CachePolicyType | string | undefined;
251
270
  CachePolicy: CachePolicy | undefined;
@@ -267,104 +286,10 @@ export declare class CannotChangeImmutablePublicKeyFields extends __BaseExceptio
267
286
  >
268
287
  );
269
288
  }
270
- export declare type CertificateSource = "acm" | "cloudfront" | "iam";
271
- export interface CreateCachePolicyRequest {
272
- CachePolicyConfig: CachePolicyConfig | undefined;
273
- }
274
- export interface CreateCachePolicyResult {
275
- CachePolicy?: CachePolicy;
276
- Location?: string;
277
- ETag?: string;
278
- }
279
- export declare class InconsistentQuantities extends __BaseException {
280
- readonly name: "InconsistentQuantities";
281
- readonly $fault: "client";
282
- Message?: string;
283
- constructor(
284
- opts: __ExceptionOptionType<InconsistentQuantities, __BaseException>
285
- );
286
- }
287
- export declare class TooManyCachePolicies extends __BaseException {
288
- readonly name: "TooManyCachePolicies";
289
- readonly $fault: "client";
290
- Message?: string;
291
- constructor(
292
- opts: __ExceptionOptionType<TooManyCachePolicies, __BaseException>
293
- );
294
- }
295
- export declare class TooManyCookiesInCachePolicy extends __BaseException {
296
- readonly name: "TooManyCookiesInCachePolicy";
297
- readonly $fault: "client";
298
- Message?: string;
299
- constructor(
300
- opts: __ExceptionOptionType<TooManyCookiesInCachePolicy, __BaseException>
301
- );
302
- }
303
- export declare class TooManyHeadersInCachePolicy extends __BaseException {
304
- readonly name: "TooManyHeadersInCachePolicy";
305
- readonly $fault: "client";
306
- Message?: string;
307
- constructor(
308
- opts: __ExceptionOptionType<TooManyHeadersInCachePolicy, __BaseException>
309
- );
310
- }
311
- export declare class TooManyQueryStringsInCachePolicy extends __BaseException {
312
- readonly name: "TooManyQueryStringsInCachePolicy";
313
- readonly $fault: "client";
314
- Message?: string;
315
- constructor(
316
- opts: __ExceptionOptionType<
317
- TooManyQueryStringsInCachePolicy,
318
- __BaseException
319
- >
320
- );
321
- }
322
- export declare class CloudFrontOriginAccessIdentityAlreadyExists extends __BaseException {
323
- readonly name: "CloudFrontOriginAccessIdentityAlreadyExists";
324
- readonly $fault: "client";
325
- Message?: string;
326
- constructor(
327
- opts: __ExceptionOptionType<
328
- CloudFrontOriginAccessIdentityAlreadyExists,
329
- __BaseException
330
- >
331
- );
332
- }
333
- export interface CloudFrontOriginAccessIdentityConfig {
334
- CallerReference: string | undefined;
335
- Comment: string | undefined;
336
- }
337
- export interface CreateCloudFrontOriginAccessIdentityRequest {
338
- CloudFrontOriginAccessIdentityConfig:
339
- | CloudFrontOriginAccessIdentityConfig
340
- | undefined;
341
- }
342
- export interface CloudFrontOriginAccessIdentity {
343
- Id: string | undefined;
344
- S3CanonicalUserId: string | undefined;
345
- CloudFrontOriginAccessIdentityConfig?: CloudFrontOriginAccessIdentityConfig;
346
- }
347
- export interface CreateCloudFrontOriginAccessIdentityResult {
348
- CloudFrontOriginAccessIdentity?: CloudFrontOriginAccessIdentity;
349
- Location?: string;
350
- ETag?: string;
351
- }
352
- export declare class MissingBody extends __BaseException {
353
- readonly name: "MissingBody";
354
- readonly $fault: "client";
355
- Message?: string;
356
- constructor(opts: __ExceptionOptionType<MissingBody, __BaseException>);
357
- }
358
- export declare class TooManyCloudFrontOriginAccessIdentities extends __BaseException {
359
- readonly name: "TooManyCloudFrontOriginAccessIdentities";
360
- readonly $fault: "client";
361
- Message?: string;
362
- constructor(
363
- opts: __ExceptionOptionType<
364
- TooManyCloudFrontOriginAccessIdentities,
365
- __BaseException
366
- >
367
- );
289
+ export declare enum CertificateSource {
290
+ acm = "acm",
291
+ cloudfront = "cloudfront",
292
+ iam = "iam",
368
293
  }
369
294
  export declare class CNAMEAlreadyExists extends __BaseException {
370
295
  readonly name: "CNAMEAlreadyExists";
@@ -372,6 +297,12 @@ export declare class CNAMEAlreadyExists extends __BaseException {
372
297
  Message?: string;
373
298
  constructor(opts: __ExceptionOptionType<CNAMEAlreadyExists, __BaseException>);
374
299
  }
300
+ export interface CopyDistributionRequest {
301
+ PrimaryDistributionId: string | undefined;
302
+ Staging?: boolean;
303
+ IfMatch?: string;
304
+ CallerReference: string | undefined;
305
+ }
375
306
  export interface CustomErrorResponse {
376
307
  ErrorCode: number | undefined;
377
308
  ResponsePagePath?: string;
@@ -402,7 +333,12 @@ export interface DefaultCacheBehavior {
402
333
  DefaultTTL?: number;
403
334
  MaxTTL?: number;
404
335
  }
405
- export declare type HttpVersion = "http1.1" | "http2" | "http2and3" | "http3";
336
+ export declare enum HttpVersion {
337
+ http1_1 = "http1.1",
338
+ http2 = "http2",
339
+ http2and3 = "http2and3",
340
+ http3 = "http3",
341
+ }
406
342
  export interface LoggingConfig {
407
343
  Enabled: boolean | undefined;
408
344
  IncludeCookies: boolean | undefined;
@@ -440,11 +376,17 @@ export interface CustomHeaders {
440
376
  Quantity: number | undefined;
441
377
  Items?: OriginCustomHeader[];
442
378
  }
443
- export declare type OriginProtocolPolicy =
444
- | "http-only"
445
- | "https-only"
446
- | "match-viewer";
447
- export declare type SslProtocol = "SSLv3" | "TLSv1" | "TLSv1.1" | "TLSv1.2";
379
+ export declare enum OriginProtocolPolicy {
380
+ http_only = "http-only",
381
+ https_only = "https-only",
382
+ match_viewer = "match-viewer",
383
+ }
384
+ export declare enum SslProtocol {
385
+ SSLv3 = "SSLv3",
386
+ TLSv1 = "TLSv1",
387
+ TLSv1_1 = "TLSv1.1",
388
+ TLSv1_2 = "TLSv1.2",
389
+ }
448
390
  export interface OriginSslProtocols {
449
391
  Quantity: number | undefined;
450
392
  Items: (SslProtocol | string)[] | undefined;
@@ -480,11 +422,16 @@ export interface Origins {
480
422
  Quantity: number | undefined;
481
423
  Items: Origin[] | undefined;
482
424
  }
483
- export declare type PriceClass =
484
- | "PriceClass_100"
485
- | "PriceClass_200"
486
- | "PriceClass_All";
487
- export declare type GeoRestrictionType = "blacklist" | "none" | "whitelist";
425
+ export declare enum PriceClass {
426
+ PriceClass_100 = "PriceClass_100",
427
+ PriceClass_200 = "PriceClass_200",
428
+ PriceClass_All = "PriceClass_All",
429
+ }
430
+ export declare enum GeoRestrictionType {
431
+ blacklist = "blacklist",
432
+ none = "none",
433
+ whitelist = "whitelist",
434
+ }
488
435
  export interface GeoRestriction {
489
436
  RestrictionType: GeoRestrictionType | string | undefined;
490
437
  Quantity: number | undefined;
@@ -493,15 +440,20 @@ export interface GeoRestriction {
493
440
  export interface Restrictions {
494
441
  GeoRestriction: GeoRestriction | undefined;
495
442
  }
496
- export declare type MinimumProtocolVersion =
497
- | "SSLv3"
498
- | "TLSv1"
499
- | "TLSv1.1_2016"
500
- | "TLSv1.2_2018"
501
- | "TLSv1.2_2019"
502
- | "TLSv1.2_2021"
503
- | "TLSv1_2016";
504
- export declare type SSLSupportMethod = "sni-only" | "static-ip" | "vip";
443
+ export declare enum MinimumProtocolVersion {
444
+ SSLv3 = "SSLv3",
445
+ TLSv1 = "TLSv1",
446
+ TLSv1_1_2016 = "TLSv1.1_2016",
447
+ TLSv1_2016 = "TLSv1_2016",
448
+ TLSv1_2_2018 = "TLSv1.2_2018",
449
+ TLSv1_2_2019 = "TLSv1.2_2019",
450
+ TLSv1_2_2021 = "TLSv1.2_2021",
451
+ }
452
+ export declare enum SSLSupportMethod {
453
+ sni_only = "sni-only",
454
+ static_ip = "static-ip",
455
+ vip = "vip",
456
+ }
505
457
  export interface ViewerCertificate {
506
458
  CloudFrontDefaultCertificate?: boolean;
507
459
  IAMCertificateId?: string;
@@ -530,9 +482,6 @@ export interface DistributionConfig {
530
482
  HttpVersion?: HttpVersion | string;
531
483
  IsIPV6Enabled?: boolean;
532
484
  }
533
- export interface CreateDistributionRequest {
534
- DistributionConfig: DistributionConfig | undefined;
535
- }
536
485
  export interface Distribution {
537
486
  Id: string | undefined;
538
487
  ARN: string | undefined;
@@ -545,7 +494,7 @@ export interface Distribution {
545
494
  DistributionConfig: DistributionConfig | undefined;
546
495
  AliasICPRecordals?: AliasICPRecordal[];
547
496
  }
548
- export interface CreateDistributionResult {
497
+ export interface CopyDistributionResult {
549
498
  Distribution?: Distribution;
550
499
  Location?: string;
551
500
  ETag?: string;
@@ -569,15 +518,12 @@ export declare class IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavi
569
518
  >
570
519
  );
571
520
  }
572
- export declare class IllegalOriginAccessConfiguration extends __BaseException {
573
- readonly name: "IllegalOriginAccessConfiguration";
521
+ export declare class InconsistentQuantities extends __BaseException {
522
+ readonly name: "InconsistentQuantities";
574
523
  readonly $fault: "client";
575
524
  Message?: string;
576
525
  constructor(
577
- opts: __ExceptionOptionType<
578
- IllegalOriginAccessConfiguration,
579
- __BaseException
580
- >
526
+ opts: __ExceptionOptionType<InconsistentQuantities, __BaseException>
581
527
  );
582
528
  }
583
529
  export declare class InvalidDefaultRootObject extends __BaseException {
@@ -588,17 +534,6 @@ export declare class InvalidDefaultRootObject extends __BaseException {
588
534
  opts: __ExceptionOptionType<InvalidDefaultRootObject, __BaseException>
589
535
  );
590
536
  }
591
- export declare class InvalidDomainNameForOriginAccessControl extends __BaseException {
592
- readonly name: "InvalidDomainNameForOriginAccessControl";
593
- readonly $fault: "client";
594
- Message?: string;
595
- constructor(
596
- opts: __ExceptionOptionType<
597
- InvalidDomainNameForOriginAccessControl,
598
- __BaseException
599
- >
600
- );
601
- }
602
537
  export declare class InvalidErrorCode extends __BaseException {
603
538
  readonly name: "InvalidErrorCode";
604
539
  readonly $fault: "client";
@@ -637,6 +572,14 @@ export declare class InvalidHeadersForS3Origin extends __BaseException {
637
572
  opts: __ExceptionOptionType<InvalidHeadersForS3Origin, __BaseException>
638
573
  );
639
574
  }
575
+ export declare class InvalidIfMatchVersion extends __BaseException {
576
+ readonly name: "InvalidIfMatchVersion";
577
+ readonly $fault: "client";
578
+ Message?: string;
579
+ constructor(
580
+ opts: __ExceptionOptionType<InvalidIfMatchVersion, __BaseException>
581
+ );
582
+ }
640
583
  export declare class InvalidLambdaFunctionAssociation extends __BaseException {
641
584
  readonly name: "InvalidLambdaFunctionAssociation";
642
585
  readonly $fault: "client";
@@ -762,6 +705,12 @@ export declare class InvalidWebACLId extends __BaseException {
762
705
  Message?: string;
763
706
  constructor(opts: __ExceptionOptionType<InvalidWebACLId, __BaseException>);
764
707
  }
708
+ export declare class MissingBody extends __BaseException {
709
+ readonly name: "MissingBody";
710
+ readonly $fault: "client";
711
+ Message?: string;
712
+ constructor(opts: __ExceptionOptionType<MissingBody, __BaseException>);
713
+ }
765
714
  export declare class NoSuchCachePolicy extends __BaseException {
766
715
  readonly name: "NoSuchCachePolicy";
767
716
  readonly $fault: "client";
@@ -809,6 +758,12 @@ export declare class NoSuchResponseHeadersPolicy extends __BaseException {
809
758
  opts: __ExceptionOptionType<NoSuchResponseHeadersPolicy, __BaseException>
810
759
  );
811
760
  }
761
+ export declare class PreconditionFailed extends __BaseException {
762
+ readonly name: "PreconditionFailed";
763
+ readonly $fault: "client";
764
+ Message?: string;
765
+ constructor(opts: __ExceptionOptionType<PreconditionFailed, __BaseException>);
766
+ }
812
767
  export declare class RealtimeLogConfigOwnerMismatch extends __BaseException {
813
768
  readonly name: "RealtimeLogConfigOwnerMismatch";
814
769
  readonly $fault: "client";
@@ -882,17 +837,6 @@ export declare class TooManyDistributionsAssociatedToKeyGroup extends __BaseExce
882
837
  >
883
838
  );
884
839
  }
885
- export declare class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
886
- readonly name: "TooManyDistributionsAssociatedToOriginAccessControl";
887
- readonly $fault: "client";
888
- Message?: string;
889
- constructor(
890
- opts: __ExceptionOptionType<
891
- TooManyDistributionsAssociatedToOriginAccessControl,
892
- __BaseException
893
- >
894
- );
895
- }
896
840
  export declare class TooManyDistributionsAssociatedToOriginRequestPolicy extends __BaseException {
897
841
  readonly name: "TooManyDistributionsAssociatedToOriginRequestPolicy";
898
842
  readonly $fault: "client";
@@ -1046,6 +990,186 @@ export declare class TrustedSignerDoesNotExist extends __BaseException {
1046
990
  opts: __ExceptionOptionType<TrustedSignerDoesNotExist, __BaseException>
1047
991
  );
1048
992
  }
993
+ export interface CreateCachePolicyRequest {
994
+ CachePolicyConfig: CachePolicyConfig | undefined;
995
+ }
996
+ export interface CreateCachePolicyResult {
997
+ CachePolicy?: CachePolicy;
998
+ Location?: string;
999
+ ETag?: string;
1000
+ }
1001
+ export declare class TooManyCachePolicies extends __BaseException {
1002
+ readonly name: "TooManyCachePolicies";
1003
+ readonly $fault: "client";
1004
+ Message?: string;
1005
+ constructor(
1006
+ opts: __ExceptionOptionType<TooManyCachePolicies, __BaseException>
1007
+ );
1008
+ }
1009
+ export declare class TooManyCookiesInCachePolicy extends __BaseException {
1010
+ readonly name: "TooManyCookiesInCachePolicy";
1011
+ readonly $fault: "client";
1012
+ Message?: string;
1013
+ constructor(
1014
+ opts: __ExceptionOptionType<TooManyCookiesInCachePolicy, __BaseException>
1015
+ );
1016
+ }
1017
+ export declare class TooManyHeadersInCachePolicy extends __BaseException {
1018
+ readonly name: "TooManyHeadersInCachePolicy";
1019
+ readonly $fault: "client";
1020
+ Message?: string;
1021
+ constructor(
1022
+ opts: __ExceptionOptionType<TooManyHeadersInCachePolicy, __BaseException>
1023
+ );
1024
+ }
1025
+ export declare class TooManyQueryStringsInCachePolicy extends __BaseException {
1026
+ readonly name: "TooManyQueryStringsInCachePolicy";
1027
+ readonly $fault: "client";
1028
+ Message?: string;
1029
+ constructor(
1030
+ opts: __ExceptionOptionType<
1031
+ TooManyQueryStringsInCachePolicy,
1032
+ __BaseException
1033
+ >
1034
+ );
1035
+ }
1036
+ export declare class CloudFrontOriginAccessIdentityAlreadyExists extends __BaseException {
1037
+ readonly name: "CloudFrontOriginAccessIdentityAlreadyExists";
1038
+ readonly $fault: "client";
1039
+ Message?: string;
1040
+ constructor(
1041
+ opts: __ExceptionOptionType<
1042
+ CloudFrontOriginAccessIdentityAlreadyExists,
1043
+ __BaseException
1044
+ >
1045
+ );
1046
+ }
1047
+ export interface CloudFrontOriginAccessIdentityConfig {
1048
+ CallerReference: string | undefined;
1049
+ Comment: string | undefined;
1050
+ }
1051
+ export interface CreateCloudFrontOriginAccessIdentityRequest {
1052
+ CloudFrontOriginAccessIdentityConfig:
1053
+ | CloudFrontOriginAccessIdentityConfig
1054
+ | undefined;
1055
+ }
1056
+ export interface CloudFrontOriginAccessIdentity {
1057
+ Id: string | undefined;
1058
+ S3CanonicalUserId: string | undefined;
1059
+ CloudFrontOriginAccessIdentityConfig?: CloudFrontOriginAccessIdentityConfig;
1060
+ }
1061
+ export interface CreateCloudFrontOriginAccessIdentityResult {
1062
+ CloudFrontOriginAccessIdentity?: CloudFrontOriginAccessIdentity;
1063
+ Location?: string;
1064
+ ETag?: string;
1065
+ }
1066
+ export declare class TooManyCloudFrontOriginAccessIdentities extends __BaseException {
1067
+ readonly name: "TooManyCloudFrontOriginAccessIdentities";
1068
+ readonly $fault: "client";
1069
+ Message?: string;
1070
+ constructor(
1071
+ opts: __ExceptionOptionType<
1072
+ TooManyCloudFrontOriginAccessIdentities,
1073
+ __BaseException
1074
+ >
1075
+ );
1076
+ }
1077
+ export interface StagingDistributionDnsNames {
1078
+ Quantity: number | undefined;
1079
+ Items?: string[];
1080
+ }
1081
+ export interface ContinuousDeploymentSingleHeaderConfig {
1082
+ Header: string | undefined;
1083
+ Value: string | undefined;
1084
+ }
1085
+ export interface SessionStickinessConfig {
1086
+ IdleTTL: number | undefined;
1087
+ MaximumTTL: number | undefined;
1088
+ }
1089
+ export interface ContinuousDeploymentSingleWeightConfig {
1090
+ Weight: number | undefined;
1091
+ SessionStickinessConfig?: SessionStickinessConfig;
1092
+ }
1093
+ export declare enum ContinuousDeploymentPolicyType {
1094
+ SingleHeader = "SingleHeader",
1095
+ SingleWeight = "SingleWeight",
1096
+ }
1097
+ export interface TrafficConfig {
1098
+ SingleWeightConfig?: ContinuousDeploymentSingleWeightConfig;
1099
+ SingleHeaderConfig?: ContinuousDeploymentSingleHeaderConfig;
1100
+ Type: ContinuousDeploymentPolicyType | string | undefined;
1101
+ }
1102
+ export interface ContinuousDeploymentPolicyConfig {
1103
+ StagingDistributionDnsNames: StagingDistributionDnsNames | undefined;
1104
+ Enabled: boolean | undefined;
1105
+ TrafficConfig?: TrafficConfig;
1106
+ }
1107
+ export interface CreateContinuousDeploymentPolicyRequest {
1108
+ ContinuousDeploymentPolicyConfig:
1109
+ | ContinuousDeploymentPolicyConfig
1110
+ | undefined;
1111
+ }
1112
+ export interface ContinuousDeploymentPolicy {
1113
+ Id: string | undefined;
1114
+ LastModifiedTime: Date | undefined;
1115
+ ContinuousDeploymentPolicyConfig:
1116
+ | ContinuousDeploymentPolicyConfig
1117
+ | undefined;
1118
+ }
1119
+ export interface CreateContinuousDeploymentPolicyResult {
1120
+ ContinuousDeploymentPolicy?: ContinuousDeploymentPolicy;
1121
+ Location?: string;
1122
+ ETag?: string;
1123
+ }
1124
+ export declare class StagingDistributionInUse extends __BaseException {
1125
+ readonly name: "StagingDistributionInUse";
1126
+ readonly $fault: "client";
1127
+ Message?: string;
1128
+ constructor(
1129
+ opts: __ExceptionOptionType<StagingDistributionInUse, __BaseException>
1130
+ );
1131
+ }
1132
+ export interface CreateDistributionRequest {
1133
+ DistributionConfig: DistributionConfig | undefined;
1134
+ }
1135
+ export interface CreateDistributionResult {
1136
+ Distribution?: Distribution;
1137
+ Location?: string;
1138
+ ETag?: string;
1139
+ }
1140
+ export declare class IllegalOriginAccessConfiguration extends __BaseException {
1141
+ readonly name: "IllegalOriginAccessConfiguration";
1142
+ readonly $fault: "client";
1143
+ Message?: string;
1144
+ constructor(
1145
+ opts: __ExceptionOptionType<
1146
+ IllegalOriginAccessConfiguration,
1147
+ __BaseException
1148
+ >
1149
+ );
1150
+ }
1151
+ export declare class InvalidDomainNameForOriginAccessControl extends __BaseException {
1152
+ readonly name: "InvalidDomainNameForOriginAccessControl";
1153
+ readonly $fault: "client";
1154
+ Message?: string;
1155
+ constructor(
1156
+ opts: __ExceptionOptionType<
1157
+ InvalidDomainNameForOriginAccessControl,
1158
+ __BaseException
1159
+ >
1160
+ );
1161
+ }
1162
+ export declare class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
1163
+ readonly name: "TooManyDistributionsAssociatedToOriginAccessControl";
1164
+ readonly $fault: "client";
1165
+ Message?: string;
1166
+ constructor(
1167
+ opts: __ExceptionOptionType<
1168
+ TooManyDistributionsAssociatedToOriginAccessControl,
1169
+ __BaseException
1170
+ >
1171
+ );
1172
+ }
1049
1173
  export interface Tag {
1050
1174
  Key: string | undefined;
1051
1175
  Value?: string;
@@ -1071,7 +1195,9 @@ export declare class InvalidTagging extends __BaseException {
1071
1195
  Message?: string;
1072
1196
  constructor(opts: __ExceptionOptionType<InvalidTagging, __BaseException>);
1073
1197
  }
1074
- export declare type Format = "URLEncoded";
1198
+ export declare enum Format {
1199
+ URLEncoded = "URLEncoded",
1200
+ }
1075
1201
  export interface ContentTypeProfile {
1076
1202
  Format: Format | string | undefined;
1077
1203
  ProfileId?: string;
@@ -1453,7 +1579,7 @@ export declare enum OriginAccessControlSigningProtocols {
1453
1579
  }
1454
1580
  export interface OriginAccessControlConfig {
1455
1581
  Name: string | undefined;
1456
- Description: string | undefined;
1582
+ Description?: string;
1457
1583
  SigningProtocol: OriginAccessControlSigningProtocols | string | undefined;
1458
1584
  SigningBehavior: OriginAccessControlSigningBehaviors | string | undefined;
1459
1585
  OriginAccessControlOriginType:
@@ -1492,27 +1618,30 @@ export declare class TooManyOriginAccessControls extends __BaseException {
1492
1618
  opts: __ExceptionOptionType<TooManyOriginAccessControls, __BaseException>
1493
1619
  );
1494
1620
  }
1495
- export declare type OriginRequestPolicyCookieBehavior =
1496
- | "all"
1497
- | "none"
1498
- | "whitelist";
1621
+ export declare enum OriginRequestPolicyCookieBehavior {
1622
+ all = "all",
1623
+ none = "none",
1624
+ whitelist = "whitelist",
1625
+ }
1499
1626
  export interface OriginRequestPolicyCookiesConfig {
1500
1627
  CookieBehavior: OriginRequestPolicyCookieBehavior | string | undefined;
1501
1628
  Cookies?: CookieNames;
1502
1629
  }
1503
- export declare type OriginRequestPolicyHeaderBehavior =
1504
- | "allViewer"
1505
- | "allViewerAndWhitelistCloudFront"
1506
- | "none"
1507
- | "whitelist";
1630
+ export declare enum OriginRequestPolicyHeaderBehavior {
1631
+ allViewer = "allViewer",
1632
+ allViewerAndWhitelistCloudFront = "allViewerAndWhitelistCloudFront",
1633
+ none = "none",
1634
+ whitelist = "whitelist",
1635
+ }
1508
1636
  export interface OriginRequestPolicyHeadersConfig {
1509
1637
  HeaderBehavior: OriginRequestPolicyHeaderBehavior | string | undefined;
1510
1638
  Headers?: Headers;
1511
1639
  }
1512
- export declare type OriginRequestPolicyQueryStringBehavior =
1513
- | "all"
1514
- | "none"
1515
- | "whitelist";
1640
+ export declare enum OriginRequestPolicyQueryStringBehavior {
1641
+ all = "all",
1642
+ none = "none",
1643
+ whitelist = "whitelist",
1644
+ }
1516
1645
  export interface OriginRequestPolicyQueryStringsConfig {
1517
1646
  QueryStringBehavior:
1518
1647
  | OriginRequestPolicyQueryStringBehavior
@@ -1827,105 +1956,6 @@ export interface StreamingLoggingConfig {
1827
1956
  Bucket: string | undefined;
1828
1957
  Prefix: string | undefined;
1829
1958
  }
1830
- export interface S3Origin {
1831
- DomainName: string | undefined;
1832
- OriginAccessIdentity: string | undefined;
1833
- }
1834
- export interface StreamingDistributionConfig {
1835
- CallerReference: string | undefined;
1836
- S3Origin: S3Origin | undefined;
1837
- Aliases?: Aliases;
1838
- Comment: string | undefined;
1839
- Logging?: StreamingLoggingConfig;
1840
- TrustedSigners: TrustedSigners | undefined;
1841
- PriceClass?: PriceClass | string;
1842
- Enabled: boolean | undefined;
1843
- }
1844
- export interface CreateStreamingDistributionRequest {
1845
- StreamingDistributionConfig: StreamingDistributionConfig | undefined;
1846
- }
1847
- export interface StreamingDistribution {
1848
- Id: string | undefined;
1849
- ARN: string | undefined;
1850
- Status: string | undefined;
1851
- LastModifiedTime?: Date;
1852
- DomainName: string | undefined;
1853
- ActiveTrustedSigners: ActiveTrustedSigners | undefined;
1854
- StreamingDistributionConfig: StreamingDistributionConfig | undefined;
1855
- }
1856
- export interface CreateStreamingDistributionResult {
1857
- StreamingDistribution?: StreamingDistribution;
1858
- Location?: string;
1859
- ETag?: string;
1860
- }
1861
- export declare class StreamingDistributionAlreadyExists extends __BaseException {
1862
- readonly name: "StreamingDistributionAlreadyExists";
1863
- readonly $fault: "client";
1864
- Message?: string;
1865
- constructor(
1866
- opts: __ExceptionOptionType<
1867
- StreamingDistributionAlreadyExists,
1868
- __BaseException
1869
- >
1870
- );
1871
- }
1872
- export declare class TooManyStreamingDistributionCNAMEs extends __BaseException {
1873
- readonly name: "TooManyStreamingDistributionCNAMEs";
1874
- readonly $fault: "client";
1875
- Message?: string;
1876
- constructor(
1877
- opts: __ExceptionOptionType<
1878
- TooManyStreamingDistributionCNAMEs,
1879
- __BaseException
1880
- >
1881
- );
1882
- }
1883
- export declare class TooManyStreamingDistributions extends __BaseException {
1884
- readonly name: "TooManyStreamingDistributions";
1885
- readonly $fault: "client";
1886
- Message?: string;
1887
- constructor(
1888
- opts: __ExceptionOptionType<TooManyStreamingDistributions, __BaseException>
1889
- );
1890
- }
1891
- export interface StreamingDistributionConfigWithTags {
1892
- StreamingDistributionConfig: StreamingDistributionConfig | undefined;
1893
- Tags: Tags | undefined;
1894
- }
1895
- export interface CreateStreamingDistributionWithTagsRequest {
1896
- StreamingDistributionConfigWithTags:
1897
- | StreamingDistributionConfigWithTags
1898
- | undefined;
1899
- }
1900
- export interface CreateStreamingDistributionWithTagsResult {
1901
- StreamingDistribution?: StreamingDistribution;
1902
- Location?: string;
1903
- ETag?: string;
1904
- }
1905
- export interface DeleteCachePolicyRequest {
1906
- Id: string | undefined;
1907
- IfMatch?: string;
1908
- }
1909
- export declare class IllegalDelete extends __BaseException {
1910
- readonly name: "IllegalDelete";
1911
- readonly $fault: "client";
1912
- Message?: string;
1913
- constructor(opts: __ExceptionOptionType<IllegalDelete, __BaseException>);
1914
- }
1915
- export declare class InvalidIfMatchVersion extends __BaseException {
1916
- readonly name: "InvalidIfMatchVersion";
1917
- readonly $fault: "client";
1918
- Message?: string;
1919
- constructor(
1920
- opts: __ExceptionOptionType<InvalidIfMatchVersion, __BaseException>
1921
- );
1922
- }
1923
- export declare class PreconditionFailed extends __BaseException {
1924
- readonly name: "PreconditionFailed";
1925
- readonly $fault: "client";
1926
- Message?: string;
1927
- constructor(opts: __ExceptionOptionType<PreconditionFailed, __BaseException>);
1928
- }
1929
1959
  export declare const KeyPairIdsFilterSensitiveLog: (obj: KeyPairIds) => any;
1930
1960
  export declare const KGKeyPairIdsFilterSensitiveLog: (obj: KGKeyPairIds) => any;
1931
1961
  export declare const ActiveTrustedKeyGroupsFilterSensitiveLog: (
@@ -2008,23 +2038,8 @@ export declare const CachePolicySummaryFilterSensitiveLog: (
2008
2038
  export declare const CachePolicyListFilterSensitiveLog: (
2009
2039
  obj: CachePolicyList
2010
2040
  ) => any;
2011
- export declare const CreateCachePolicyRequestFilterSensitiveLog: (
2012
- obj: CreateCachePolicyRequest
2013
- ) => any;
2014
- export declare const CreateCachePolicyResultFilterSensitiveLog: (
2015
- obj: CreateCachePolicyResult
2016
- ) => any;
2017
- export declare const CloudFrontOriginAccessIdentityConfigFilterSensitiveLog: (
2018
- obj: CloudFrontOriginAccessIdentityConfig
2019
- ) => any;
2020
- export declare const CreateCloudFrontOriginAccessIdentityRequestFilterSensitiveLog: (
2021
- obj: CreateCloudFrontOriginAccessIdentityRequest
2022
- ) => any;
2023
- export declare const CloudFrontOriginAccessIdentityFilterSensitiveLog: (
2024
- obj: CloudFrontOriginAccessIdentity
2025
- ) => any;
2026
- export declare const CreateCloudFrontOriginAccessIdentityResultFilterSensitiveLog: (
2027
- obj: CreateCloudFrontOriginAccessIdentityResult
2041
+ export declare const CopyDistributionRequestFilterSensitiveLog: (
2042
+ obj: CopyDistributionRequest
2028
2043
  ) => any;
2029
2044
  export declare const CustomErrorResponseFilterSensitiveLog: (
2030
2045
  obj: CustomErrorResponse
@@ -2078,10 +2093,58 @@ export declare const ViewerCertificateFilterSensitiveLog: (
2078
2093
  export declare const DistributionConfigFilterSensitiveLog: (
2079
2094
  obj: DistributionConfig
2080
2095
  ) => any;
2096
+ export declare const DistributionFilterSensitiveLog: (obj: Distribution) => any;
2097
+ export declare const CopyDistributionResultFilterSensitiveLog: (
2098
+ obj: CopyDistributionResult
2099
+ ) => any;
2100
+ export declare const CreateCachePolicyRequestFilterSensitiveLog: (
2101
+ obj: CreateCachePolicyRequest
2102
+ ) => any;
2103
+ export declare const CreateCachePolicyResultFilterSensitiveLog: (
2104
+ obj: CreateCachePolicyResult
2105
+ ) => any;
2106
+ export declare const CloudFrontOriginAccessIdentityConfigFilterSensitiveLog: (
2107
+ obj: CloudFrontOriginAccessIdentityConfig
2108
+ ) => any;
2109
+ export declare const CreateCloudFrontOriginAccessIdentityRequestFilterSensitiveLog: (
2110
+ obj: CreateCloudFrontOriginAccessIdentityRequest
2111
+ ) => any;
2112
+ export declare const CloudFrontOriginAccessIdentityFilterSensitiveLog: (
2113
+ obj: CloudFrontOriginAccessIdentity
2114
+ ) => any;
2115
+ export declare const CreateCloudFrontOriginAccessIdentityResultFilterSensitiveLog: (
2116
+ obj: CreateCloudFrontOriginAccessIdentityResult
2117
+ ) => any;
2118
+ export declare const StagingDistributionDnsNamesFilterSensitiveLog: (
2119
+ obj: StagingDistributionDnsNames
2120
+ ) => any;
2121
+ export declare const ContinuousDeploymentSingleHeaderConfigFilterSensitiveLog: (
2122
+ obj: ContinuousDeploymentSingleHeaderConfig
2123
+ ) => any;
2124
+ export declare const SessionStickinessConfigFilterSensitiveLog: (
2125
+ obj: SessionStickinessConfig
2126
+ ) => any;
2127
+ export declare const ContinuousDeploymentSingleWeightConfigFilterSensitiveLog: (
2128
+ obj: ContinuousDeploymentSingleWeightConfig
2129
+ ) => any;
2130
+ export declare const TrafficConfigFilterSensitiveLog: (
2131
+ obj: TrafficConfig
2132
+ ) => any;
2133
+ export declare const ContinuousDeploymentPolicyConfigFilterSensitiveLog: (
2134
+ obj: ContinuousDeploymentPolicyConfig
2135
+ ) => any;
2136
+ export declare const CreateContinuousDeploymentPolicyRequestFilterSensitiveLog: (
2137
+ obj: CreateContinuousDeploymentPolicyRequest
2138
+ ) => any;
2139
+ export declare const ContinuousDeploymentPolicyFilterSensitiveLog: (
2140
+ obj: ContinuousDeploymentPolicy
2141
+ ) => any;
2142
+ export declare const CreateContinuousDeploymentPolicyResultFilterSensitiveLog: (
2143
+ obj: CreateContinuousDeploymentPolicyResult
2144
+ ) => any;
2081
2145
  export declare const CreateDistributionRequestFilterSensitiveLog: (
2082
2146
  obj: CreateDistributionRequest
2083
2147
  ) => any;
2084
- export declare const DistributionFilterSensitiveLog: (obj: Distribution) => any;
2085
2148
  export declare const CreateDistributionResultFilterSensitiveLog: (
2086
2149
  obj: CreateDistributionResult
2087
2150
  ) => any;
@@ -2311,28 +2374,3 @@ export declare const CreateResponseHeadersPolicyResultFilterSensitiveLog: (
2311
2374
  export declare const StreamingLoggingConfigFilterSensitiveLog: (
2312
2375
  obj: StreamingLoggingConfig
2313
2376
  ) => any;
2314
- export declare const S3OriginFilterSensitiveLog: (obj: S3Origin) => any;
2315
- export declare const StreamingDistributionConfigFilterSensitiveLog: (
2316
- obj: StreamingDistributionConfig
2317
- ) => any;
2318
- export declare const CreateStreamingDistributionRequestFilterSensitiveLog: (
2319
- obj: CreateStreamingDistributionRequest
2320
- ) => any;
2321
- export declare const StreamingDistributionFilterSensitiveLog: (
2322
- obj: StreamingDistribution
2323
- ) => any;
2324
- export declare const CreateStreamingDistributionResultFilterSensitiveLog: (
2325
- obj: CreateStreamingDistributionResult
2326
- ) => any;
2327
- export declare const StreamingDistributionConfigWithTagsFilterSensitiveLog: (
2328
- obj: StreamingDistributionConfigWithTags
2329
- ) => any;
2330
- export declare const CreateStreamingDistributionWithTagsRequestFilterSensitiveLog: (
2331
- obj: CreateStreamingDistributionWithTagsRequest
2332
- ) => any;
2333
- export declare const CreateStreamingDistributionWithTagsResultFilterSensitiveLog: (
2334
- obj: CreateStreamingDistributionWithTagsResult
2335
- ) => any;
2336
- export declare const DeleteCachePolicyRequestFilterSensitiveLog: (
2337
- obj: DeleteCachePolicyRequest
2338
- ) => any;