@aws-sdk/client-cloudfront 3.213.0 → 3.214.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 (69) 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/ts3.4/CloudFront.d.ts +125 -0
  53. package/dist-types/ts3.4/CloudFrontClient.d.ts +42 -0
  54. package/dist-types/ts3.4/commands/CopyDistributionCommand.d.ts +37 -0
  55. package/dist-types/ts3.4/commands/CreateContinuousDeploymentPolicyCommand.d.ts +41 -0
  56. package/dist-types/ts3.4/commands/CreateStreamingDistributionCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/CreateStreamingDistributionWithTagsCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/DeleteCachePolicyCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/DeleteContinuousDeploymentPolicyCommand.d.ts +37 -0
  60. package/dist-types/ts3.4/commands/GetContinuousDeploymentPolicyCommand.d.ts +41 -0
  61. package/dist-types/ts3.4/commands/GetContinuousDeploymentPolicyConfigCommand.d.ts +41 -0
  62. package/dist-types/ts3.4/commands/ListContinuousDeploymentPoliciesCommand.d.ts +41 -0
  63. package/dist-types/ts3.4/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +41 -0
  64. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  65. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  66. package/dist-types/ts3.4/models/models_0.d.ts +376 -338
  67. package/dist-types/ts3.4/models/models_1.d.ts +196 -4
  68. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +84 -0
  69. package/package.json +1 -1
@@ -124,7 +124,11 @@ export interface Aliases {
124
124
  */
125
125
  Items?: string[];
126
126
  }
127
- export declare type ICPRecordalStatus = "APPROVED" | "PENDING" | "SUSPENDED";
127
+ export declare enum ICPRecordalStatus {
128
+ APPROVED = "APPROVED",
129
+ PENDING = "PENDING",
130
+ SUSPENDED = "SUSPENDED"
131
+ }
128
132
  /**
129
133
  * <p>Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content
130
134
  * publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP
@@ -164,7 +168,15 @@ export interface AliasICPRecordal {
164
168
  */
165
169
  ICPRecordalStatus?: ICPRecordalStatus | string;
166
170
  }
167
- export declare type Method = "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT";
171
+ export declare enum Method {
172
+ DELETE = "DELETE",
173
+ GET = "GET",
174
+ HEAD = "HEAD",
175
+ OPTIONS = "OPTIONS",
176
+ PATCH = "PATCH",
177
+ POST = "POST",
178
+ PUT = "PUT"
179
+ }
168
180
  /**
169
181
  * <p>A complex type that controls whether CloudFront caches the response to requests using the
170
182
  * specified HTTP methods. There are two choices:</p>
@@ -317,7 +329,11 @@ export declare class BatchTooLarge extends __BaseException {
317
329
  */
318
330
  constructor(opts: __ExceptionOptionType<BatchTooLarge, __BaseException>);
319
331
  }
320
- export declare type ItemSelection = "all" | "none" | "whitelist";
332
+ export declare enum ItemSelection {
333
+ all = "all",
334
+ none = "none",
335
+ whitelist = "whitelist"
336
+ }
321
337
  /**
322
338
  * <p>Contains a list of cookie names.</p>
323
339
  */
@@ -499,7 +515,12 @@ export interface ForwardedValues {
499
515
  */
500
516
  QueryStringCacheKeys?: QueryStringCacheKeys;
501
517
  }
502
- export declare type EventType = "origin-request" | "origin-response" | "viewer-request" | "viewer-response";
518
+ export declare enum EventType {
519
+ origin_request = "origin-request",
520
+ origin_response = "origin-response",
521
+ viewer_request = "viewer-request",
522
+ viewer_response = "viewer-response"
523
+ }
503
524
  /**
504
525
  * <p>A CloudFront function that is associated with a cache behavior in a CloudFront
505
526
  * distribution.</p>
@@ -644,7 +665,11 @@ export interface TrustedSigners {
644
665
  */
645
666
  Items?: string[];
646
667
  }
647
- export declare type ViewerProtocolPolicy = "allow-all" | "https-only" | "redirect-to-https";
668
+ export declare enum ViewerProtocolPolicy {
669
+ allow_all = "allow-all",
670
+ https_only = "https-only",
671
+ redirect_to_https = "redirect-to-https"
672
+ }
648
673
  /**
649
674
  * <p>A complex type that describes how CloudFront processes requests.</p>
650
675
  * <p>You must create at least as many cache behaviors (including the default cache behavior) as
@@ -898,7 +923,12 @@ export interface CacheBehaviors {
898
923
  */
899
924
  Items?: CacheBehavior[];
900
925
  }
901
- export declare type CachePolicyCookieBehavior = "all" | "allExcept" | "none" | "whitelist";
926
+ export declare enum CachePolicyCookieBehavior {
927
+ all = "all",
928
+ allExcept = "allExcept",
929
+ none = "none",
930
+ whitelist = "whitelist"
931
+ }
902
932
  /**
903
933
  * <p>An object that determines whether any cookies in viewer requests (and if so, which cookies)
904
934
  * are included in the cache key and automatically included in requests that CloudFront sends to
@@ -946,7 +976,10 @@ export interface CachePolicyCookiesConfig {
946
976
  */
947
977
  Cookies?: CookieNames;
948
978
  }
949
- export declare type CachePolicyHeaderBehavior = "none" | "whitelist";
979
+ export declare enum CachePolicyHeaderBehavior {
980
+ none = "none",
981
+ whitelist = "whitelist"
982
+ }
950
983
  /**
951
984
  * <p>An object that determines whether any HTTP headers (and if so, which headers) are included
952
985
  * in the cache key and automatically included in requests that CloudFront sends to the
@@ -980,7 +1013,12 @@ export interface CachePolicyHeadersConfig {
980
1013
  */
981
1014
  Headers?: Headers;
982
1015
  }
983
- export declare type CachePolicyQueryStringBehavior = "all" | "allExcept" | "none" | "whitelist";
1016
+ export declare enum CachePolicyQueryStringBehavior {
1017
+ all = "all",
1018
+ allExcept = "allExcept",
1019
+ none = "none",
1020
+ whitelist = "whitelist"
1021
+ }
984
1022
  /**
985
1023
  * <p>Contains a list of query string names.</p>
986
1024
  */
@@ -1279,7 +1317,10 @@ export declare class CachePolicyInUse extends __BaseException {
1279
1317
  */
1280
1318
  constructor(opts: __ExceptionOptionType<CachePolicyInUse, __BaseException>);
1281
1319
  }
1282
- export declare type CachePolicyType = "custom" | "managed";
1320
+ export declare enum CachePolicyType {
1321
+ custom = "custom",
1322
+ managed = "managed"
1323
+ }
1283
1324
  /**
1284
1325
  * <p>Contains a cache policy.</p>
1285
1326
  */
@@ -1329,220 +1370,46 @@ export declare class CannotChangeImmutablePublicKeyFields extends __BaseExceptio
1329
1370
  */
1330
1371
  constructor(opts: __ExceptionOptionType<CannotChangeImmutablePublicKeyFields, __BaseException>);
1331
1372
  }
1332
- export declare type CertificateSource = "acm" | "cloudfront" | "iam";
1333
- export interface CreateCachePolicyRequest {
1334
- /**
1335
- * <p>A cache policy configuration.</p>
1336
- */
1337
- CachePolicyConfig: CachePolicyConfig | undefined;
1338
- }
1339
- export interface CreateCachePolicyResult {
1340
- /**
1341
- * <p>A cache policy.</p>
1342
- */
1343
- CachePolicy?: CachePolicy;
1344
- /**
1345
- * <p>The fully qualified URI of the cache policy just created.</p>
1346
- */
1347
- Location?: string;
1348
- /**
1349
- * <p>The current version of the cache policy.</p>
1350
- */
1351
- ETag?: string;
1352
- }
1353
- /**
1354
- * <p>The value of <code>Quantity</code> and the size of <code>Items</code> don't match.</p>
1355
- */
1356
- export declare class InconsistentQuantities extends __BaseException {
1357
- readonly name: "InconsistentQuantities";
1358
- readonly $fault: "client";
1359
- Message?: string;
1360
- /**
1361
- * @internal
1362
- */
1363
- constructor(opts: __ExceptionOptionType<InconsistentQuantities, __BaseException>);
1364
- }
1365
- /**
1366
- * <p>You have reached the maximum number of cache policies for this Amazon Web Services account. For more
1367
- * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
1368
- * <i>Amazon CloudFront Developer Guide</i>.</p>
1369
- */
1370
- export declare class TooManyCachePolicies extends __BaseException {
1371
- readonly name: "TooManyCachePolicies";
1372
- readonly $fault: "client";
1373
- Message?: string;
1374
- /**
1375
- * @internal
1376
- */
1377
- constructor(opts: __ExceptionOptionType<TooManyCachePolicies, __BaseException>);
1373
+ export declare enum CertificateSource {
1374
+ acm = "acm",
1375
+ cloudfront = "cloudfront",
1376
+ iam = "iam"
1378
1377
  }
1379
1378
  /**
1380
- * <p>The number of cookies in the cache policy exceeds the maximum. For more information,
1381
- * see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
1382
- * <i>Amazon CloudFront Developer Guide</i>.</p>
1379
+ * <p>The CNAME specified is already defined for CloudFront.</p>
1383
1380
  */
1384
- export declare class TooManyCookiesInCachePolicy extends __BaseException {
1385
- readonly name: "TooManyCookiesInCachePolicy";
1381
+ export declare class CNAMEAlreadyExists extends __BaseException {
1382
+ readonly name: "CNAMEAlreadyExists";
1386
1383
  readonly $fault: "client";
1387
1384
  Message?: string;
1388
1385
  /**
1389
1386
  * @internal
1390
1387
  */
1391
- constructor(opts: __ExceptionOptionType<TooManyCookiesInCachePolicy, __BaseException>);
1388
+ constructor(opts: __ExceptionOptionType<CNAMEAlreadyExists, __BaseException>);
1392
1389
  }
1393
- /**
1394
- * <p>The number of headers in the cache policy exceeds the maximum. For more information,
1395
- * see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
1396
- * <i>Amazon CloudFront Developer Guide</i>.</p>
1397
- */
1398
- export declare class TooManyHeadersInCachePolicy extends __BaseException {
1399
- readonly name: "TooManyHeadersInCachePolicy";
1400
- readonly $fault: "client";
1401
- Message?: string;
1390
+ export interface CopyDistributionRequest {
1402
1391
  /**
1403
- * @internal
1392
+ * <p>The identifier of the primary distribution whose configuration you are copying. To get a
1393
+ * distribution ID, use <code>ListDistributions</code>.</p>
1404
1394
  */
1405
- constructor(opts: __ExceptionOptionType<TooManyHeadersInCachePolicy, __BaseException>);
1406
- }
1407
- /**
1408
- * <p>The number of query strings in the cache policy exceeds the maximum. For more
1409
- * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
1410
- * <i>Amazon CloudFront Developer Guide</i>.</p>
1411
- */
1412
- export declare class TooManyQueryStringsInCachePolicy extends __BaseException {
1413
- readonly name: "TooManyQueryStringsInCachePolicy";
1414
- readonly $fault: "client";
1415
- Message?: string;
1395
+ PrimaryDistributionId: string | undefined;
1416
1396
  /**
1417
- * @internal
1397
+ * <p>The type of distribution that your primary distribution will be copied to. The only valid
1398
+ * value is <code>True</code>, indicating that you are copying to a staging distribution.</p>
1418
1399
  */
1419
- constructor(opts: __ExceptionOptionType<TooManyQueryStringsInCachePolicy, __BaseException>);
1420
- }
1421
- /**
1422
- * <p>If the <code>CallerReference</code> is a value you already sent in a previous request to create an identity but the content
1423
- * of the <code>CloudFrontOriginAccessIdentityConfig</code> is different from the original request, CloudFront returns a
1424
- * <code>CloudFrontOriginAccessIdentityAlreadyExists</code> error. </p>
1425
- */
1426
- export declare class CloudFrontOriginAccessIdentityAlreadyExists extends __BaseException {
1427
- readonly name: "CloudFrontOriginAccessIdentityAlreadyExists";
1428
- readonly $fault: "client";
1429
- Message?: string;
1400
+ Staging?: boolean;
1430
1401
  /**
1431
- * @internal
1402
+ * <p>The version identifier of the primary distribution whose configuration you are copying. This
1403
+ * is the <code>ETag</code> value returned in the response to <code>GetDistribution</code>
1404
+ * and <code>GetDistributionConfig</code>.</p>
1432
1405
  */
1433
- constructor(opts: __ExceptionOptionType<CloudFrontOriginAccessIdentityAlreadyExists, __BaseException>);
1434
- }
1435
- /**
1436
- * <p>Origin access identity configuration. Send a <code>GET</code> request to the
1437
- * <code>/<i>CloudFront API version</i>/CloudFront/identity ID/config</code> resource.
1438
- * </p>
1439
- */
1440
- export interface CloudFrontOriginAccessIdentityConfig {
1406
+ IfMatch?: string;
1441
1407
  /**
1442
- * <p>A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.</p>
1443
- * <p>If the value of <code>CallerReference</code> is new (regardless of the content of the
1444
- * <code>CloudFrontOriginAccessIdentityConfig</code> object), a new origin access identity is
1445
- * created.</p>
1446
- * <p>If the <code>CallerReference</code> is a value already sent in a previous identity
1447
- * request, and the content of the <code>CloudFrontOriginAccessIdentityConfig</code> is identical
1448
- * to the original request (ignoring white space), the response includes the same information
1449
- * returned to the original request. </p>
1450
- * <p>If the <code>CallerReference</code> is a value you already sent in a previous request
1451
- * to create an identity, but the content of the
1452
- * <code>CloudFrontOriginAccessIdentityConfig</code> is different from the original request,
1453
- * CloudFront returns a <code>CloudFrontOriginAccessIdentityAlreadyExists</code> error. </p>
1408
+ * <p>A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront
1409
+ * from creating a duplicate resource if you accidentally resubmit an identical
1410
+ * request.</p>
1454
1411
  */
1455
1412
  CallerReference: string | undefined;
1456
- /**
1457
- * <p>A comment to describe the origin access identity. The comment cannot be longer
1458
- * than 128 characters.</p>
1459
- */
1460
- Comment: string | undefined;
1461
- }
1462
- /**
1463
- * <p>The request to create a new origin access identity (OAI). An origin access identity is a
1464
- * special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or
1465
- * just some of your Amazon S3 content. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html">
1466
- * Restricting Access to Amazon S3 Content by Using an Origin Access Identity</a> in the
1467
- * <i>Amazon CloudFront Developer Guide</i>. </p>
1468
- */
1469
- export interface CreateCloudFrontOriginAccessIdentityRequest {
1470
- /**
1471
- * <p>The current configuration information for the identity.</p>
1472
- */
1473
- CloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig | undefined;
1474
- }
1475
- /**
1476
- * <p>CloudFront origin access identity.</p>
1477
- */
1478
- export interface CloudFrontOriginAccessIdentity {
1479
- /**
1480
- * <p>The ID for the origin access identity, for example, <code>E74FTE3AJFJ256A</code>.
1481
- * </p>
1482
- */
1483
- Id: string | undefined;
1484
- /**
1485
- * <p>The Amazon S3 canonical user ID for the origin access identity, used when giving the origin
1486
- * access identity read permission to an object in Amazon S3. </p>
1487
- */
1488
- S3CanonicalUserId: string | undefined;
1489
- /**
1490
- * <p>The current configuration information for the identity. </p>
1491
- */
1492
- CloudFrontOriginAccessIdentityConfig?: CloudFrontOriginAccessIdentityConfig;
1493
- }
1494
- /**
1495
- * <p>The returned result of the corresponding request.</p>
1496
- */
1497
- export interface CreateCloudFrontOriginAccessIdentityResult {
1498
- /**
1499
- * <p>The origin access identity's information.</p>
1500
- */
1501
- CloudFrontOriginAccessIdentity?: CloudFrontOriginAccessIdentity;
1502
- /**
1503
- * <p>The fully qualified URI of the new origin access identity just created.</p>
1504
- */
1505
- Location?: string;
1506
- /**
1507
- * <p>The current version of the origin access identity created.</p>
1508
- */
1509
- ETag?: string;
1510
- }
1511
- /**
1512
- * <p>This operation requires a body. Ensure that the body is present and the <code>Content-Type</code> header is set.</p>
1513
- */
1514
- export declare class MissingBody extends __BaseException {
1515
- readonly name: "MissingBody";
1516
- readonly $fault: "client";
1517
- Message?: string;
1518
- /**
1519
- * @internal
1520
- */
1521
- constructor(opts: __ExceptionOptionType<MissingBody, __BaseException>);
1522
- }
1523
- /**
1524
- * <p>Processing your request would cause you to exceed the maximum number of origin access identities allowed.</p>
1525
- */
1526
- export declare class TooManyCloudFrontOriginAccessIdentities extends __BaseException {
1527
- readonly name: "TooManyCloudFrontOriginAccessIdentities";
1528
- readonly $fault: "client";
1529
- Message?: string;
1530
- /**
1531
- * @internal
1532
- */
1533
- constructor(opts: __ExceptionOptionType<TooManyCloudFrontOriginAccessIdentities, __BaseException>);
1534
- }
1535
- /**
1536
- * <p>The CNAME specified is already defined for CloudFront.</p>
1537
- */
1538
- export declare class CNAMEAlreadyExists extends __BaseException {
1539
- readonly name: "CNAMEAlreadyExists";
1540
- readonly $fault: "client";
1541
- Message?: string;
1542
- /**
1543
- * @internal
1544
- */
1545
- constructor(opts: __ExceptionOptionType<CNAMEAlreadyExists, __BaseException>);
1546
1413
  }
1547
1414
  /**
1548
1415
  * <p>A complex type that controls:</p>
@@ -1861,7 +1728,12 @@ export interface DefaultCacheBehavior {
1861
1728
  */
1862
1729
  MaxTTL?: number;
1863
1730
  }
1864
- export declare type HttpVersion = "http1.1" | "http2" | "http2and3" | "http3";
1731
+ export declare enum HttpVersion {
1732
+ http1_1 = "http1.1",
1733
+ http2 = "http2",
1734
+ http2and3 = "http2and3",
1735
+ http3 = "http3"
1736
+ }
1865
1737
  /**
1866
1738
  * <p>A complex type that controls whether access logs are written for the
1867
1739
  * distribution.</p>
@@ -2011,8 +1883,17 @@ export interface CustomHeaders {
2011
1883
  */
2012
1884
  Items?: OriginCustomHeader[];
2013
1885
  }
2014
- export declare type OriginProtocolPolicy = "http-only" | "https-only" | "match-viewer";
2015
- export declare type SslProtocol = "SSLv3" | "TLSv1" | "TLSv1.1" | "TLSv1.2";
1886
+ export declare enum OriginProtocolPolicy {
1887
+ http_only = "http-only",
1888
+ https_only = "https-only",
1889
+ match_viewer = "match-viewer"
1890
+ }
1891
+ export declare enum SslProtocol {
1892
+ SSLv3 = "SSLv3",
1893
+ TLSv1 = "TLSv1",
1894
+ TLSv1_1 = "TLSv1.1",
1895
+ TLSv1_2 = "TLSv1.2"
1896
+ }
2016
1897
  /**
2017
1898
  * <p>A complex type that contains information about the SSL/TLS protocols that CloudFront can use
2018
1899
  * when establishing an HTTPS connection with your origin. </p>
@@ -2267,8 +2148,16 @@ export interface Origins {
2267
2148
  */
2268
2149
  Items: Origin[] | undefined;
2269
2150
  }
2270
- export declare type PriceClass = "PriceClass_100" | "PriceClass_200" | "PriceClass_All";
2271
- export declare type GeoRestrictionType = "blacklist" | "none" | "whitelist";
2151
+ export declare enum PriceClass {
2152
+ PriceClass_100 = "PriceClass_100",
2153
+ PriceClass_200 = "PriceClass_200",
2154
+ PriceClass_All = "PriceClass_All"
2155
+ }
2156
+ export declare enum GeoRestrictionType {
2157
+ blacklist = "blacklist",
2158
+ none = "none",
2159
+ whitelist = "whitelist"
2160
+ }
2272
2161
  /**
2273
2162
  * <p>A complex type that controls the countries in which your content is distributed. CloudFront
2274
2163
  * determines the location of your users using <code>MaxMind</code> GeoIP databases. </p>
@@ -2328,8 +2217,20 @@ export interface Restrictions {
2328
2217
  */
2329
2218
  GeoRestriction: GeoRestriction | undefined;
2330
2219
  }
2331
- export declare type MinimumProtocolVersion = "SSLv3" | "TLSv1" | "TLSv1.1_2016" | "TLSv1.2_2018" | "TLSv1.2_2019" | "TLSv1.2_2021" | "TLSv1_2016";
2332
- export declare type SSLSupportMethod = "sni-only" | "static-ip" | "vip";
2220
+ export declare enum MinimumProtocolVersion {
2221
+ SSLv3 = "SSLv3",
2222
+ TLSv1 = "TLSv1",
2223
+ TLSv1_1_2016 = "TLSv1.1_2016",
2224
+ TLSv1_2016 = "TLSv1_2016",
2225
+ TLSv1_2_2018 = "TLSv1.2_2018",
2226
+ TLSv1_2_2019 = "TLSv1.2_2019",
2227
+ TLSv1_2_2021 = "TLSv1.2_2021"
2228
+ }
2229
+ export declare enum SSLSupportMethod {
2230
+ sni_only = "sni-only",
2231
+ static_ip = "static-ip",
2232
+ vip = "vip"
2233
+ }
2333
2234
  /**
2334
2235
  * <p>A complex type that determines the distribution’s SSL/TLS configuration for communicating
2335
2236
  * with viewers.</p>
@@ -2561,10 +2462,10 @@ export interface DistributionConfig {
2561
2462
  Aliases?: Aliases;
2562
2463
  /**
2563
2464
  * <p>The object that you want CloudFront to request from your origin (for example,
2564
- * <code>index.html</code>) when a viewer requests the root URL for your distribution
2565
- * (<code>http://www.example.com</code>) instead of an object in your distribution
2566
- * (<code>http://www.example.com/product-description.html</code>). Specifying a default root
2567
- * object avoids exposing the contents of your distribution.</p>
2465
+ * <code>index.html</code>) when a viewer requests the root URL for your distribution
2466
+ * (<code>https://www.example.com</code>) instead of an object in your distribution
2467
+ * (<code>https://www.example.com/product-description.html</code>). Specifying a default
2468
+ * root object avoids exposing the contents of your distribution.</p>
2568
2469
  * <p>Specify only the object name, for example, <code>index.html</code>. Don't add a
2569
2470
  * <code>/</code> before the object name.</p>
2570
2471
  * <p>If you don't want to specify a default root object when you create a distribution,
@@ -2718,39 +2619,26 @@ export interface DistributionConfig {
2718
2619
  */
2719
2620
  IsIPV6Enabled?: boolean;
2720
2621
  }
2721
- /**
2722
- * <p>The request to create a new distribution.</p>
2723
- */
2724
- export interface CreateDistributionRequest {
2725
- /**
2726
- * <p>The distribution's configuration information.</p>
2727
- */
2728
- DistributionConfig: DistributionConfig | undefined;
2729
- }
2730
2622
  /**
2731
2623
  * <p>A distribution tells CloudFront where you want content to be delivered from, and the details about how to
2732
2624
  * track and manage content delivery.</p>
2733
2625
  */
2734
2626
  export interface Distribution {
2735
2627
  /**
2736
- * <p>The identifier for the distribution. For example: <code>EDFDVBD632BHDS5</code>.
2737
- * </p>
2628
+ * <p>The distribution’s identifier. For example: <code>E1U5RQF7T870K0</code>.</p>
2738
2629
  */
2739
2630
  Id: string | undefined;
2740
2631
  /**
2741
- * <p>The ARN (Amazon Resource Name) for the distribution. For example:
2742
- * <code>arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5</code>, where
2743
- * <code>123456789012</code> is your Amazon Web Services account ID.</p>
2632
+ * <p>The distribution’s Amazon Resource Name (ARN).</p>
2744
2633
  */
2745
2634
  ARN: string | undefined;
2746
2635
  /**
2747
- * <p>This response element indicates the current status of the distribution. When the status
2748
- * is <code>Deployed</code>, the distribution's information is fully propagated to all CloudFront edge
2749
- * locations. </p>
2636
+ * <p>The distribution’s status. When the status is <code>Deployed</code>, the distribution’s
2637
+ * information is fully propagated to all CloudFront edge locations.</p>
2750
2638
  */
2751
2639
  Status: string | undefined;
2752
2640
  /**
2753
- * <p>The date and time the distribution was last modified. </p>
2641
+ * <p>The date and time when the distribution was last modified.</p>
2754
2642
  */
2755
2643
  LastModifiedTime: Date | undefined;
2756
2644
  /**
@@ -2758,7 +2646,7 @@ export interface Distribution {
2758
2646
  */
2759
2647
  InProgressInvalidationBatches: number | undefined;
2760
2648
  /**
2761
- * <p>The domain name corresponding to the distribution, for example, <code>d111111abcdef8.cloudfront.net</code>. </p>
2649
+ * <p>The distribution’s CloudFront domain name. For example: <code>d111111abcdef8.cloudfront.net</code>.</p>
2762
2650
  */
2763
2651
  DomainName: string | undefined;
2764
2652
  /**
@@ -2780,9 +2668,7 @@ export interface Distribution {
2780
2668
  */
2781
2669
  ActiveTrustedKeyGroups?: ActiveTrustedKeyGroups;
2782
2670
  /**
2783
- * <p>The current configuration information for the distribution. Send a <code>GET</code>
2784
- * request to the <code>/<i>CloudFront API version</i>/distribution ID/config</code>
2785
- * resource.</p>
2671
+ * <p>The distribution’s configuration.</p>
2786
2672
  */
2787
2673
  DistributionConfig: DistributionConfig | undefined;
2788
2674
  /**
@@ -2794,20 +2680,18 @@ export interface Distribution {
2794
2680
  */
2795
2681
  AliasICPRecordals?: AliasICPRecordal[];
2796
2682
  }
2797
- /**
2798
- * <p>The returned result of the corresponding request.</p>
2799
- */
2800
- export interface CreateDistributionResult {
2683
+ export interface CopyDistributionResult {
2801
2684
  /**
2802
- * <p>The distribution's information.</p>
2685
+ * <p>A distribution tells CloudFront where you want content to be delivered from, and the details about how to
2686
+ * track and manage content delivery.</p>
2803
2687
  */
2804
2688
  Distribution?: Distribution;
2805
2689
  /**
2806
- * <p>The fully qualified URI of the new distribution resource just created.</p>
2690
+ * <p>The URL of the staging distribution.</p>
2807
2691
  */
2808
2692
  Location?: string;
2809
2693
  /**
2810
- * <p>The current version of the distribution created.</p>
2694
+ * <p>The version identifier for the current version of the staging distribution.</p>
2811
2695
  */
2812
2696
  ETag?: string;
2813
2697
  }
@@ -2836,17 +2720,16 @@ export declare class IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavi
2836
2720
  constructor(opts: __ExceptionOptionType<IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior, __BaseException>);
2837
2721
  }
2838
2722
  /**
2839
- * <p>An origin cannot contain both an origin access control (OAC) and an origin access identity
2840
- * (OAI).</p>
2723
+ * <p>The value of <code>Quantity</code> and the size of <code>Items</code> don't match.</p>
2841
2724
  */
2842
- export declare class IllegalOriginAccessConfiguration extends __BaseException {
2843
- readonly name: "IllegalOriginAccessConfiguration";
2725
+ export declare class InconsistentQuantities extends __BaseException {
2726
+ readonly name: "InconsistentQuantities";
2844
2727
  readonly $fault: "client";
2845
2728
  Message?: string;
2846
2729
  /**
2847
2730
  * @internal
2848
2731
  */
2849
- constructor(opts: __ExceptionOptionType<IllegalOriginAccessConfiguration, __BaseException>);
2732
+ constructor(opts: __ExceptionOptionType<InconsistentQuantities, __BaseException>);
2850
2733
  }
2851
2734
  /**
2852
2735
  * <p>The default root object file name is too big or contains an invalid character.</p>
@@ -2861,23 +2744,10 @@ export declare class InvalidDefaultRootObject extends __BaseException {
2861
2744
  constructor(opts: __ExceptionOptionType<InvalidDefaultRootObject, __BaseException>);
2862
2745
  }
2863
2746
  /**
2864
- * <p>An origin access control is associated with an origin whose domain name is not
2865
- * supported.</p>
2747
+ * <p>An invalid error code was specified.</p>
2866
2748
  */
2867
- export declare class InvalidDomainNameForOriginAccessControl extends __BaseException {
2868
- readonly name: "InvalidDomainNameForOriginAccessControl";
2869
- readonly $fault: "client";
2870
- Message?: string;
2871
- /**
2872
- * @internal
2873
- */
2874
- constructor(opts: __ExceptionOptionType<InvalidDomainNameForOriginAccessControl, __BaseException>);
2875
- }
2876
- /**
2877
- * <p>An invalid error code was specified.</p>
2878
- */
2879
- export declare class InvalidErrorCode extends __BaseException {
2880
- readonly name: "InvalidErrorCode";
2749
+ export declare class InvalidErrorCode extends __BaseException {
2750
+ readonly name: "InvalidErrorCode";
2881
2751
  readonly $fault: "client";
2882
2752
  Message?: string;
2883
2753
  /**
@@ -2934,6 +2804,18 @@ export declare class InvalidHeadersForS3Origin extends __BaseException {
2934
2804
  */
2935
2805
  constructor(opts: __ExceptionOptionType<InvalidHeadersForS3Origin, __BaseException>);
2936
2806
  }
2807
+ /**
2808
+ * <p>The <code>If-Match</code> version is missing or not valid.</p>
2809
+ */
2810
+ export declare class InvalidIfMatchVersion extends __BaseException {
2811
+ readonly name: "InvalidIfMatchVersion";
2812
+ readonly $fault: "client";
2813
+ Message?: string;
2814
+ /**
2815
+ * @internal
2816
+ */
2817
+ constructor(opts: __ExceptionOptionType<InvalidIfMatchVersion, __BaseException>);
2818
+ }
2937
2819
  /**
2938
2820
  * <p>The specified Lambda@Edge function association is invalid.</p>
2939
2821
  */
@@ -3132,6 +3014,18 @@ export declare class InvalidWebACLId extends __BaseException {
3132
3014
  */
3133
3015
  constructor(opts: __ExceptionOptionType<InvalidWebACLId, __BaseException>);
3134
3016
  }
3017
+ /**
3018
+ * <p>This operation requires a body. Ensure that the body is present and the <code>Content-Type</code> header is set.</p>
3019
+ */
3020
+ export declare class MissingBody extends __BaseException {
3021
+ readonly name: "MissingBody";
3022
+ readonly $fault: "client";
3023
+ Message?: string;
3024
+ /**
3025
+ * @internal
3026
+ */
3027
+ constructor(opts: __ExceptionOptionType<MissingBody, __BaseException>);
3028
+ }
3135
3029
  /**
3136
3030
  * <p>The cache policy does not exist.</p>
3137
3031
  */
@@ -3204,6 +3098,19 @@ export declare class NoSuchResponseHeadersPolicy extends __BaseException {
3204
3098
  */
3205
3099
  constructor(opts: __ExceptionOptionType<NoSuchResponseHeadersPolicy, __BaseException>);
3206
3100
  }
3101
+ /**
3102
+ * <p>The precondition in one or more of the request fields evaluated to
3103
+ * <code>false</code>.</p>
3104
+ */
3105
+ export declare class PreconditionFailed extends __BaseException {
3106
+ readonly name: "PreconditionFailed";
3107
+ readonly $fault: "client";
3108
+ Message?: string;
3109
+ /**
3110
+ * @internal
3111
+ */
3112
+ constructor(opts: __ExceptionOptionType<PreconditionFailed, __BaseException>);
3113
+ }
3207
3114
  /**
3208
3115
  * <p>The specified real-time log configuration belongs to a different Amazon Web Services account.</p>
3209
3116
  */
@@ -3304,21 +3211,6 @@ export declare class TooManyDistributionsAssociatedToKeyGroup extends __BaseExce
3304
3211
  */
3305
3212
  constructor(opts: __ExceptionOptionType<TooManyDistributionsAssociatedToKeyGroup, __BaseException>);
3306
3213
  }
3307
- /**
3308
- * <p>The maximum number of distributions have been associated with the specified origin
3309
- * access control.</p>
3310
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
3311
- * <i>Amazon CloudFront Developer Guide</i>.</p>
3312
- */
3313
- export declare class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
3314
- readonly name: "TooManyDistributionsAssociatedToOriginAccessControl";
3315
- readonly $fault: "client";
3316
- Message?: string;
3317
- /**
3318
- * @internal
3319
- */
3320
- constructor(opts: __ExceptionOptionType<TooManyDistributionsAssociatedToOriginAccessControl, __BaseException>);
3321
- }
3322
3214
  /**
3323
3215
  * <p>The maximum number of distributions have been associated with the specified origin
3324
3216
  * request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
@@ -3524,152 +3416,557 @@ export declare class TrustedSignerDoesNotExist extends __BaseException {
3524
3416
  */
3525
3417
  constructor(opts: __ExceptionOptionType<TrustedSignerDoesNotExist, __BaseException>);
3526
3418
  }
3527
- /**
3528
- * <p> A complex type that contains <code>Tag</code> key and <code>Tag</code> value.</p>
3529
- */
3530
- export interface Tag {
3419
+ export interface CreateCachePolicyRequest {
3531
3420
  /**
3532
- * <p> A string that contains <code>Tag</code> key.</p>
3533
- * <p>The string length should be between 1 and 128 characters. Valid characters include
3534
- * <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, space, and the special characters
3535
- * <code>_ - . : / = + @</code>.</p>
3421
+ * <p>A cache policy configuration.</p>
3536
3422
  */
3537
- Key: string | undefined;
3423
+ CachePolicyConfig: CachePolicyConfig | undefined;
3424
+ }
3425
+ export interface CreateCachePolicyResult {
3538
3426
  /**
3539
- * <p> A string that contains an optional <code>Tag</code> value.</p>
3540
- * <p>The string length should be between 0 and 256 characters. Valid characters include
3541
- * <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, space, and the special characters
3542
- * <code>_ - . : / = + @</code>.</p>
3427
+ * <p>A cache policy.</p>
3543
3428
  */
3544
- Value?: string;
3429
+ CachePolicy?: CachePolicy;
3430
+ /**
3431
+ * <p>The fully qualified URI of the cache policy just created.</p>
3432
+ */
3433
+ Location?: string;
3434
+ /**
3435
+ * <p>The current version of the cache policy.</p>
3436
+ */
3437
+ ETag?: string;
3545
3438
  }
3546
3439
  /**
3547
- * <p> A complex type that contains zero or more <code>Tag</code> elements.</p>
3440
+ * <p>You have reached the maximum number of cache policies for this Amazon Web Services account. For more
3441
+ * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
3442
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
3548
3443
  */
3549
- export interface Tags {
3444
+ export declare class TooManyCachePolicies extends __BaseException {
3445
+ readonly name: "TooManyCachePolicies";
3446
+ readonly $fault: "client";
3447
+ Message?: string;
3550
3448
  /**
3551
- * <p> A complex type that contains <code>Tag</code> elements.</p>
3449
+ * @internal
3552
3450
  */
3553
- Items?: Tag[];
3451
+ constructor(opts: __ExceptionOptionType<TooManyCachePolicies, __BaseException>);
3554
3452
  }
3555
3453
  /**
3556
- * <p>A distribution Configuration and a list of tags to be associated with the
3557
- * distribution.</p>
3454
+ * <p>The number of cookies in the cache policy exceeds the maximum. For more information,
3455
+ * see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
3456
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
3558
3457
  */
3559
- export interface DistributionConfigWithTags {
3560
- /**
3561
- * <p>A distribution configuration.</p>
3562
- */
3563
- DistributionConfig: DistributionConfig | undefined;
3458
+ export declare class TooManyCookiesInCachePolicy extends __BaseException {
3459
+ readonly name: "TooManyCookiesInCachePolicy";
3460
+ readonly $fault: "client";
3461
+ Message?: string;
3564
3462
  /**
3565
- * <p>A complex type that contains zero or more <code>Tag</code> elements.</p>
3463
+ * @internal
3566
3464
  */
3567
- Tags: Tags | undefined;
3465
+ constructor(opts: __ExceptionOptionType<TooManyCookiesInCachePolicy, __BaseException>);
3568
3466
  }
3569
3467
  /**
3570
- * <p>The request to create a new distribution with tags. </p>
3468
+ * <p>The number of headers in the cache policy exceeds the maximum. For more information,
3469
+ * see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
3470
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
3571
3471
  */
3572
- export interface CreateDistributionWithTagsRequest {
3472
+ export declare class TooManyHeadersInCachePolicy extends __BaseException {
3473
+ readonly name: "TooManyHeadersInCachePolicy";
3474
+ readonly $fault: "client";
3475
+ Message?: string;
3573
3476
  /**
3574
- * <p>The distribution's configuration information. </p>
3477
+ * @internal
3575
3478
  */
3576
- DistributionConfigWithTags: DistributionConfigWithTags | undefined;
3479
+ constructor(opts: __ExceptionOptionType<TooManyHeadersInCachePolicy, __BaseException>);
3577
3480
  }
3578
3481
  /**
3579
- * <p>The returned result of the corresponding request. </p>
3482
+ * <p>The number of query strings in the cache policy exceeds the maximum. For more
3483
+ * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
3484
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
3580
3485
  */
3581
- export interface CreateDistributionWithTagsResult {
3582
- /**
3583
- * <p>The distribution's information. </p>
3584
- */
3585
- Distribution?: Distribution;
3586
- /**
3587
- * <p>The fully qualified URI of the new distribution resource just created.</p>
3588
- */
3589
- Location?: string;
3486
+ export declare class TooManyQueryStringsInCachePolicy extends __BaseException {
3487
+ readonly name: "TooManyQueryStringsInCachePolicy";
3488
+ readonly $fault: "client";
3489
+ Message?: string;
3590
3490
  /**
3591
- * <p>The current version of the distribution created.</p>
3491
+ * @internal
3592
3492
  */
3593
- ETag?: string;
3493
+ constructor(opts: __ExceptionOptionType<TooManyQueryStringsInCachePolicy, __BaseException>);
3594
3494
  }
3595
3495
  /**
3596
- * <p>The tagging specified is not valid.</p>
3496
+ * <p>If the <code>CallerReference</code> is a value you already sent in a previous request to create an identity but the content
3497
+ * of the <code>CloudFrontOriginAccessIdentityConfig</code> is different from the original request, CloudFront returns a
3498
+ * <code>CloudFrontOriginAccessIdentityAlreadyExists</code> error. </p>
3597
3499
  */
3598
- export declare class InvalidTagging extends __BaseException {
3599
- readonly name: "InvalidTagging";
3500
+ export declare class CloudFrontOriginAccessIdentityAlreadyExists extends __BaseException {
3501
+ readonly name: "CloudFrontOriginAccessIdentityAlreadyExists";
3600
3502
  readonly $fault: "client";
3601
3503
  Message?: string;
3602
3504
  /**
3603
3505
  * @internal
3604
3506
  */
3605
- constructor(opts: __ExceptionOptionType<InvalidTagging, __BaseException>);
3507
+ constructor(opts: __ExceptionOptionType<CloudFrontOriginAccessIdentityAlreadyExists, __BaseException>);
3606
3508
  }
3607
- export declare type Format = "URLEncoded";
3608
3509
  /**
3609
- * <p>A field-level encryption content type profile. </p>
3510
+ * <p>Origin access identity configuration. Send a <code>GET</code> request to the
3511
+ * <code>/<i>CloudFront API version</i>/CloudFront/identity ID/config</code> resource.
3512
+ * </p>
3610
3513
  */
3611
- export interface ContentTypeProfile {
3612
- /**
3613
- * <p>The format for a field-level encryption content type-profile mapping. </p>
3614
- */
3615
- Format: Format | string | undefined;
3514
+ export interface CloudFrontOriginAccessIdentityConfig {
3616
3515
  /**
3617
- * <p>The profile ID for a field-level encryption content type-profile mapping. </p>
3516
+ * <p>A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.</p>
3517
+ * <p>If the value of <code>CallerReference</code> is new (regardless of the content of the
3518
+ * <code>CloudFrontOriginAccessIdentityConfig</code> object), a new origin access identity is
3519
+ * created.</p>
3520
+ * <p>If the <code>CallerReference</code> is a value already sent in a previous identity
3521
+ * request, and the content of the <code>CloudFrontOriginAccessIdentityConfig</code> is identical
3522
+ * to the original request (ignoring white space), the response includes the same information
3523
+ * returned to the original request. </p>
3524
+ * <p>If the <code>CallerReference</code> is a value you already sent in a previous request
3525
+ * to create an identity, but the content of the
3526
+ * <code>CloudFrontOriginAccessIdentityConfig</code> is different from the original request,
3527
+ * CloudFront returns a <code>CloudFrontOriginAccessIdentityAlreadyExists</code> error. </p>
3618
3528
  */
3619
- ProfileId?: string;
3529
+ CallerReference: string | undefined;
3620
3530
  /**
3621
- * <p>The content type for a field-level encryption content type-profile mapping. </p>
3531
+ * <p>A comment to describe the origin access identity. The comment cannot be longer
3532
+ * than 128 characters.</p>
3622
3533
  */
3623
- ContentType: string | undefined;
3534
+ Comment: string | undefined;
3624
3535
  }
3625
3536
  /**
3626
- * <p>Field-level encryption content type-profile. </p>
3537
+ * <p>The request to create a new origin access identity (OAI). An origin access identity is a
3538
+ * special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or
3539
+ * just some of your Amazon S3 content. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html">
3540
+ * Restricting Access to Amazon S3 Content by Using an Origin Access Identity</a> in the
3541
+ * <i>Amazon CloudFront Developer Guide</i>. </p>
3627
3542
  */
3628
- export interface ContentTypeProfiles {
3629
- /**
3630
- * <p>The number of field-level encryption content type-profile mappings. </p>
3631
- */
3632
- Quantity: number | undefined;
3543
+ export interface CreateCloudFrontOriginAccessIdentityRequest {
3633
3544
  /**
3634
- * <p>Items in a field-level encryption content type-profile mapping. </p>
3545
+ * <p>The current configuration information for the identity.</p>
3635
3546
  */
3636
- Items?: ContentTypeProfile[];
3547
+ CloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig | undefined;
3637
3548
  }
3638
3549
  /**
3639
- * <p>The configuration for a field-level encryption content type-profile mapping. </p>
3550
+ * <p>CloudFront origin access identity.</p>
3640
3551
  */
3641
- export interface ContentTypeProfileConfig {
3552
+ export interface CloudFrontOriginAccessIdentity {
3642
3553
  /**
3643
- * <p>The setting in a field-level encryption content type-profile mapping that specifies what to do
3644
- * when an unknown content type is provided for the profile. If true, content is
3645
- * forwarded without being encrypted when the content type is unknown. If false (the
3646
- * default), an error is returned when the content type is unknown. </p>
3554
+ * <p>The ID for the origin access identity, for example, <code>E74FTE3AJFJ256A</code>.
3555
+ * </p>
3647
3556
  */
3648
- ForwardWhenContentTypeIsUnknown: boolean | undefined;
3557
+ Id: string | undefined;
3649
3558
  /**
3650
- * <p>The configuration for a field-level encryption content type-profile. </p>
3559
+ * <p>The Amazon S3 canonical user ID for the origin access identity, used when giving the origin
3560
+ * access identity read permission to an object in Amazon S3. </p>
3651
3561
  */
3652
- ContentTypeProfiles?: ContentTypeProfiles;
3562
+ S3CanonicalUserId: string | undefined;
3563
+ /**
3564
+ * <p>The current configuration information for the identity. </p>
3565
+ */
3566
+ CloudFrontOriginAccessIdentityConfig?: CloudFrontOriginAccessIdentityConfig;
3653
3567
  }
3654
3568
  /**
3655
- * <p>Query argument-profile mapping for field-level encryption.</p>
3569
+ * <p>The returned result of the corresponding request.</p>
3656
3570
  */
3657
- export interface QueryArgProfile {
3571
+ export interface CreateCloudFrontOriginAccessIdentityResult {
3658
3572
  /**
3659
- * <p>Query argument for field-level encryption query argument-profile mapping.</p>
3573
+ * <p>The origin access identity's information.</p>
3660
3574
  */
3661
- QueryArg: string | undefined;
3575
+ CloudFrontOriginAccessIdentity?: CloudFrontOriginAccessIdentity;
3662
3576
  /**
3663
- * <p>ID of profile to use for field-level encryption query argument-profile mapping</p>
3577
+ * <p>The fully qualified URI of the new origin access identity just created.</p>
3664
3578
  */
3665
- ProfileId: string | undefined;
3579
+ Location?: string;
3580
+ /**
3581
+ * <p>The current version of the origin access identity created.</p>
3582
+ */
3583
+ ETag?: string;
3666
3584
  }
3667
3585
  /**
3668
- * <p>Query argument-profile mapping for field-level encryption.</p>
3586
+ * <p>Processing your request would cause you to exceed the maximum number of origin access identities allowed.</p>
3669
3587
  */
3670
- export interface QueryArgProfiles {
3671
- /**
3672
- * <p>Number of profiles for query argument-profile mapping for field-level encryption.</p>
3588
+ export declare class TooManyCloudFrontOriginAccessIdentities extends __BaseException {
3589
+ readonly name: "TooManyCloudFrontOriginAccessIdentities";
3590
+ readonly $fault: "client";
3591
+ Message?: string;
3592
+ /**
3593
+ * @internal
3594
+ */
3595
+ constructor(opts: __ExceptionOptionType<TooManyCloudFrontOriginAccessIdentities, __BaseException>);
3596
+ }
3597
+ /**
3598
+ * <p>The CloudFront domain name of the staging distribution.</p>
3599
+ */
3600
+ export interface StagingDistributionDnsNames {
3601
+ /**
3602
+ * <p>The number of CloudFront domain names in your staging distribution.</p>
3603
+ */
3604
+ Quantity: number | undefined;
3605
+ /**
3606
+ * <p>The CloudFront domain name of the staging distribution.</p>
3607
+ */
3608
+ Items?: string[];
3609
+ }
3610
+ /**
3611
+ * <p>This configuration determines which HTTP requests are sent to the staging
3612
+ * distribution. If the HTTP request contains a header and value that matches what you
3613
+ * specify here, the request is sent to the staging distribution. Otherwise the request
3614
+ * is sent to the primary distribution.</p>
3615
+ */
3616
+ export interface ContinuousDeploymentSingleHeaderConfig {
3617
+ /**
3618
+ * <p>The request header name that you want CloudFront to send to your staging distribution.</p>
3619
+ */
3620
+ Header: string | undefined;
3621
+ /**
3622
+ * <p>The request header value.</p>
3623
+ */
3624
+ Value: string | undefined;
3625
+ }
3626
+ /**
3627
+ * <p>Session stickiness provides the ability to define multiple requests from a single viewer as
3628
+ * a single session. This prevents the potentially inconsistent experience of sending some
3629
+ * of a given user's requests to your staging distribution, while others are sent to your
3630
+ * primary distribution. Define the session duration using TTL values.</p>
3631
+ */
3632
+ export interface SessionStickinessConfig {
3633
+ /**
3634
+ * <p>The amount of time after which you want sessions to cease if no requests are
3635
+ * received.
3636
+ Allowed values are 300–3600 seconds (5–60 minutes).</p>
3637
+ * <p>The value must be less than or equal to <code>MaximumTTL</code>.</p>
3638
+ */
3639
+ IdleTTL: number | undefined;
3640
+ /**
3641
+ * <p>The maximum amount of time to consider requests from the viewer as being part of the same
3642
+ * session. Allowed values are 300–3600 seconds (5–60 minutes).</p>
3643
+ * <p>The value must be less than or equal to <code>IdleTTL</code>.</p>
3644
+ */
3645
+ MaximumTTL: number | undefined;
3646
+ }
3647
+ /**
3648
+ * <p>Contains the percentage of traffic to send to a staging distribution, expressed as a decimal
3649
+ * number between 0 and 1.</p>
3650
+ */
3651
+ export interface ContinuousDeploymentSingleWeightConfig {
3652
+ /**
3653
+ * <p>The percentage of traffic to send to the staging distribution, expressed as a decimal number
3654
+ * between 0 and 1.</p>
3655
+ */
3656
+ Weight: number | undefined;
3657
+ /**
3658
+ * <p>Session stickiness provides the ability to define multiple requests from a single viewer as
3659
+ * a single session. This prevents the potentially inconsistent experience of sending some
3660
+ * of a given user's requests to your staging distribution, while others are sent to your
3661
+ * primary distribution. Define the session duration using TTL values.</p>
3662
+ */
3663
+ SessionStickinessConfig?: SessionStickinessConfig;
3664
+ }
3665
+ export declare enum ContinuousDeploymentPolicyType {
3666
+ SingleHeader = "SingleHeader",
3667
+ SingleWeight = "SingleWeight"
3668
+ }
3669
+ /**
3670
+ * <p>The traffic configuration of your continuous deployment.</p>
3671
+ */
3672
+ export interface TrafficConfig {
3673
+ /**
3674
+ * <p>Contains the percentage of traffic to send to the staging distribution.</p>
3675
+ */
3676
+ SingleWeightConfig?: ContinuousDeploymentSingleWeightConfig;
3677
+ /**
3678
+ * <p>Determines which HTTP requests are sent to the staging distribution.</p>
3679
+ */
3680
+ SingleHeaderConfig?: ContinuousDeploymentSingleHeaderConfig;
3681
+ /**
3682
+ * <p>The type of traffic configuration.</p>
3683
+ */
3684
+ Type: ContinuousDeploymentPolicyType | string | undefined;
3685
+ }
3686
+ /**
3687
+ * <p>Contains the configuration for a continuous deployment policy.</p>
3688
+ */
3689
+ export interface ContinuousDeploymentPolicyConfig {
3690
+ /**
3691
+ * <p>The CloudFront domain name of the staging distribution. For example:
3692
+ * <code>d111111abcdef8.cloudfront.net</code>.</p>
3693
+ */
3694
+ StagingDistributionDnsNames: StagingDistributionDnsNames | undefined;
3695
+ /**
3696
+ * <p>A Boolean that indicates whether this continuous deployment policy is enabled (in effect).
3697
+ * When this value is <code>true</code>, this policy is enabled and in effect. When this
3698
+ * value is <code>false</code>, this policy is not enabled and has no effect.</p>
3699
+ */
3700
+ Enabled: boolean | undefined;
3701
+ /**
3702
+ * <p>Contains the parameters for routing production traffic from your primary to staging distributions.</p>
3703
+ */
3704
+ TrafficConfig?: TrafficConfig;
3705
+ }
3706
+ export interface CreateContinuousDeploymentPolicyRequest {
3707
+ /**
3708
+ * <p>Contains the configuration for a continuous deployment policy.</p>
3709
+ */
3710
+ ContinuousDeploymentPolicyConfig: ContinuousDeploymentPolicyConfig | undefined;
3711
+ }
3712
+ /**
3713
+ * <p>A continuous deployment policy.</p>
3714
+ */
3715
+ export interface ContinuousDeploymentPolicy {
3716
+ /**
3717
+ * <p>The identifier of the continuous deployment policy.</p>
3718
+ */
3719
+ Id: string | undefined;
3720
+ /**
3721
+ * <p>The date and time the continuous deployment policy was last modified.</p>
3722
+ */
3723
+ LastModifiedTime: Date | undefined;
3724
+ /**
3725
+ * <p>Contains the configuration for a continuous deployment policy.</p>
3726
+ */
3727
+ ContinuousDeploymentPolicyConfig: ContinuousDeploymentPolicyConfig | undefined;
3728
+ }
3729
+ export interface CreateContinuousDeploymentPolicyResult {
3730
+ /**
3731
+ * <p>A continuous deployment policy.</p>
3732
+ */
3733
+ ContinuousDeploymentPolicy?: ContinuousDeploymentPolicy;
3734
+ /**
3735
+ * <p>The location of the continuous deployment policy.</p>
3736
+ */
3737
+ Location?: string;
3738
+ /**
3739
+ * <p>The version identifier for the current version of the continuous deployment policy.</p>
3740
+ */
3741
+ ETag?: string;
3742
+ }
3743
+ /**
3744
+ * <p>A continuous deployment policy for this staging distribution already exists.</p>
3745
+ */
3746
+ export declare class StagingDistributionInUse extends __BaseException {
3747
+ readonly name: "StagingDistributionInUse";
3748
+ readonly $fault: "client";
3749
+ Message?: string;
3750
+ /**
3751
+ * @internal
3752
+ */
3753
+ constructor(opts: __ExceptionOptionType<StagingDistributionInUse, __BaseException>);
3754
+ }
3755
+ /**
3756
+ * <p>The request to create a new distribution.</p>
3757
+ */
3758
+ export interface CreateDistributionRequest {
3759
+ /**
3760
+ * <p>The distribution's configuration information.</p>
3761
+ */
3762
+ DistributionConfig: DistributionConfig | undefined;
3763
+ }
3764
+ /**
3765
+ * <p>The returned result of the corresponding request.</p>
3766
+ */
3767
+ export interface CreateDistributionResult {
3768
+ /**
3769
+ * <p>The distribution's information.</p>
3770
+ */
3771
+ Distribution?: Distribution;
3772
+ /**
3773
+ * <p>The fully qualified URI of the new distribution resource just created.</p>
3774
+ */
3775
+ Location?: string;
3776
+ /**
3777
+ * <p>The current version of the distribution created.</p>
3778
+ */
3779
+ ETag?: string;
3780
+ }
3781
+ /**
3782
+ * <p>An origin cannot contain both an origin access control (OAC) and an origin access identity
3783
+ * (OAI).</p>
3784
+ */
3785
+ export declare class IllegalOriginAccessConfiguration extends __BaseException {
3786
+ readonly name: "IllegalOriginAccessConfiguration";
3787
+ readonly $fault: "client";
3788
+ Message?: string;
3789
+ /**
3790
+ * @internal
3791
+ */
3792
+ constructor(opts: __ExceptionOptionType<IllegalOriginAccessConfiguration, __BaseException>);
3793
+ }
3794
+ /**
3795
+ * <p>An origin access control is associated with an origin whose domain name is not
3796
+ * supported.</p>
3797
+ */
3798
+ export declare class InvalidDomainNameForOriginAccessControl extends __BaseException {
3799
+ readonly name: "InvalidDomainNameForOriginAccessControl";
3800
+ readonly $fault: "client";
3801
+ Message?: string;
3802
+ /**
3803
+ * @internal
3804
+ */
3805
+ constructor(opts: __ExceptionOptionType<InvalidDomainNameForOriginAccessControl, __BaseException>);
3806
+ }
3807
+ /**
3808
+ * <p>The maximum number of distributions have been associated with the specified origin
3809
+ * access control.</p>
3810
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
3811
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
3812
+ */
3813
+ export declare class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
3814
+ readonly name: "TooManyDistributionsAssociatedToOriginAccessControl";
3815
+ readonly $fault: "client";
3816
+ Message?: string;
3817
+ /**
3818
+ * @internal
3819
+ */
3820
+ constructor(opts: __ExceptionOptionType<TooManyDistributionsAssociatedToOriginAccessControl, __BaseException>);
3821
+ }
3822
+ /**
3823
+ * <p> A complex type that contains <code>Tag</code> key and <code>Tag</code> value.</p>
3824
+ */
3825
+ export interface Tag {
3826
+ /**
3827
+ * <p> A string that contains <code>Tag</code> key.</p>
3828
+ * <p>The string length should be between 1 and 128 characters. Valid characters include
3829
+ * <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, space, and the special characters
3830
+ * <code>_ - . : / = + @</code>.</p>
3831
+ */
3832
+ Key: string | undefined;
3833
+ /**
3834
+ * <p> A string that contains an optional <code>Tag</code> value.</p>
3835
+ * <p>The string length should be between 0 and 256 characters. Valid characters include
3836
+ * <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, space, and the special characters
3837
+ * <code>_ - . : / = + @</code>.</p>
3838
+ */
3839
+ Value?: string;
3840
+ }
3841
+ /**
3842
+ * <p> A complex type that contains zero or more <code>Tag</code> elements.</p>
3843
+ */
3844
+ export interface Tags {
3845
+ /**
3846
+ * <p> A complex type that contains <code>Tag</code> elements.</p>
3847
+ */
3848
+ Items?: Tag[];
3849
+ }
3850
+ /**
3851
+ * <p>A distribution Configuration and a list of tags to be associated with the
3852
+ * distribution.</p>
3853
+ */
3854
+ export interface DistributionConfigWithTags {
3855
+ /**
3856
+ * <p>A distribution configuration.</p>
3857
+ */
3858
+ DistributionConfig: DistributionConfig | undefined;
3859
+ /**
3860
+ * <p>A complex type that contains zero or more <code>Tag</code> elements.</p>
3861
+ */
3862
+ Tags: Tags | undefined;
3863
+ }
3864
+ /**
3865
+ * <p>The request to create a new distribution with tags. </p>
3866
+ */
3867
+ export interface CreateDistributionWithTagsRequest {
3868
+ /**
3869
+ * <p>The distribution's configuration information. </p>
3870
+ */
3871
+ DistributionConfigWithTags: DistributionConfigWithTags | undefined;
3872
+ }
3873
+ /**
3874
+ * <p>The returned result of the corresponding request. </p>
3875
+ */
3876
+ export interface CreateDistributionWithTagsResult {
3877
+ /**
3878
+ * <p>The distribution's information. </p>
3879
+ */
3880
+ Distribution?: Distribution;
3881
+ /**
3882
+ * <p>The fully qualified URI of the new distribution resource just created.</p>
3883
+ */
3884
+ Location?: string;
3885
+ /**
3886
+ * <p>The current version of the distribution created.</p>
3887
+ */
3888
+ ETag?: string;
3889
+ }
3890
+ /**
3891
+ * <p>The tagging specified is not valid.</p>
3892
+ */
3893
+ export declare class InvalidTagging extends __BaseException {
3894
+ readonly name: "InvalidTagging";
3895
+ readonly $fault: "client";
3896
+ Message?: string;
3897
+ /**
3898
+ * @internal
3899
+ */
3900
+ constructor(opts: __ExceptionOptionType<InvalidTagging, __BaseException>);
3901
+ }
3902
+ export declare enum Format {
3903
+ URLEncoded = "URLEncoded"
3904
+ }
3905
+ /**
3906
+ * <p>A field-level encryption content type profile. </p>
3907
+ */
3908
+ export interface ContentTypeProfile {
3909
+ /**
3910
+ * <p>The format for a field-level encryption content type-profile mapping. </p>
3911
+ */
3912
+ Format: Format | string | undefined;
3913
+ /**
3914
+ * <p>The profile ID for a field-level encryption content type-profile mapping. </p>
3915
+ */
3916
+ ProfileId?: string;
3917
+ /**
3918
+ * <p>The content type for a field-level encryption content type-profile mapping. </p>
3919
+ */
3920
+ ContentType: string | undefined;
3921
+ }
3922
+ /**
3923
+ * <p>Field-level encryption content type-profile. </p>
3924
+ */
3925
+ export interface ContentTypeProfiles {
3926
+ /**
3927
+ * <p>The number of field-level encryption content type-profile mappings. </p>
3928
+ */
3929
+ Quantity: number | undefined;
3930
+ /**
3931
+ * <p>Items in a field-level encryption content type-profile mapping. </p>
3932
+ */
3933
+ Items?: ContentTypeProfile[];
3934
+ }
3935
+ /**
3936
+ * <p>The configuration for a field-level encryption content type-profile mapping. </p>
3937
+ */
3938
+ export interface ContentTypeProfileConfig {
3939
+ /**
3940
+ * <p>The setting in a field-level encryption content type-profile mapping that specifies what to do
3941
+ * when an unknown content type is provided for the profile. If true, content is
3942
+ * forwarded without being encrypted when the content type is unknown. If false (the
3943
+ * default), an error is returned when the content type is unknown. </p>
3944
+ */
3945
+ ForwardWhenContentTypeIsUnknown: boolean | undefined;
3946
+ /**
3947
+ * <p>The configuration for a field-level encryption content type-profile. </p>
3948
+ */
3949
+ ContentTypeProfiles?: ContentTypeProfiles;
3950
+ }
3951
+ /**
3952
+ * <p>Query argument-profile mapping for field-level encryption.</p>
3953
+ */
3954
+ export interface QueryArgProfile {
3955
+ /**
3956
+ * <p>Query argument for field-level encryption query argument-profile mapping.</p>
3957
+ */
3958
+ QueryArg: string | undefined;
3959
+ /**
3960
+ * <p>ID of profile to use for field-level encryption query argument-profile mapping</p>
3961
+ */
3962
+ ProfileId: string | undefined;
3963
+ }
3964
+ /**
3965
+ * <p>Query argument-profile mapping for field-level encryption.</p>
3966
+ */
3967
+ export interface QueryArgProfiles {
3968
+ /**
3969
+ * <p>Number of profiles for query argument-profile mapping for field-level encryption.</p>
3673
3970
  */
3674
3971
  Quantity: number | undefined;
3675
3972
  /**
@@ -4436,7 +4733,7 @@ export interface OriginAccessControlConfig {
4436
4733
  /**
4437
4734
  * <p>A description of the origin access control.</p>
4438
4735
  */
4439
- Description: string | undefined;
4736
+ Description?: string;
4440
4737
  /**
4441
4738
  * <p>The signing protocol of the origin access control, which determines how CloudFront signs
4442
4739
  * (authenticates) requests. The only valid value is <code>sigv4</code>.</p>
@@ -4540,7 +4837,11 @@ export declare class TooManyOriginAccessControls extends __BaseException {
4540
4837
  */
4541
4838
  constructor(opts: __ExceptionOptionType<TooManyOriginAccessControls, __BaseException>);
4542
4839
  }
4543
- export declare type OriginRequestPolicyCookieBehavior = "all" | "none" | "whitelist";
4840
+ export declare enum OriginRequestPolicyCookieBehavior {
4841
+ all = "all",
4842
+ none = "none",
4843
+ whitelist = "whitelist"
4844
+ }
4544
4845
  /**
4545
4846
  * <p>An object that determines whether any cookies in viewer requests (and if so, which cookies)
4546
4847
  * are included in requests that CloudFront sends to the origin.</p>
@@ -4577,7 +4878,12 @@ export interface OriginRequestPolicyCookiesConfig {
4577
4878
  */
4578
4879
  Cookies?: CookieNames;
4579
4880
  }
4580
- export declare type OriginRequestPolicyHeaderBehavior = "allViewer" | "allViewerAndWhitelistCloudFront" | "none" | "whitelist";
4881
+ export declare enum OriginRequestPolicyHeaderBehavior {
4882
+ allViewer = "allViewer",
4883
+ allViewerAndWhitelistCloudFront = "allViewerAndWhitelistCloudFront",
4884
+ none = "none",
4885
+ whitelist = "whitelist"
4886
+ }
4581
4887
  /**
4582
4888
  * <p>An object that determines whether any HTTP headers (and if so, which headers) are included
4583
4889
  * in requests that CloudFront sends to the origin.</p>
@@ -4620,7 +4926,11 @@ export interface OriginRequestPolicyHeadersConfig {
4620
4926
  */
4621
4927
  Headers?: Headers;
4622
4928
  }
4623
- export declare type OriginRequestPolicyQueryStringBehavior = "all" | "none" | "whitelist";
4929
+ export declare enum OriginRequestPolicyQueryStringBehavior {
4930
+ all = "all",
4931
+ none = "none",
4932
+ whitelist = "whitelist"
4933
+ }
4624
4934
  /**
4625
4935
  * <p>An object that determines whether any URL query strings in viewer requests (and if so, which
4626
4936
  * query strings) are included in requests that CloudFront sends to the origin.</p>
@@ -5543,426 +5853,148 @@ export interface ResponseHeadersPolicyConfig {
5543
5853
  /**
5544
5854
  * <p>A configuration for a set of security-related HTTP response headers.</p>
5545
5855
  */
5546
- SecurityHeadersConfig?: ResponseHeadersPolicySecurityHeadersConfig;
5547
- /**
5548
- * <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP responses
5549
- * sent from CloudFront.</p>
5550
- */
5551
- ServerTimingHeadersConfig?: ResponseHeadersPolicyServerTimingHeadersConfig;
5552
- /**
5553
- * <p>A configuration for a set of custom HTTP response headers.</p>
5554
- */
5555
- CustomHeadersConfig?: ResponseHeadersPolicyCustomHeadersConfig;
5556
- }
5557
- export interface CreateResponseHeadersPolicyRequest {
5558
- /**
5559
- * <p>Contains metadata about the response headers policy, and a set of configurations that
5560
- * specify the response headers.</p>
5561
- */
5562
- ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfig | undefined;
5563
- }
5564
- /**
5565
- * <p>A response headers policy.</p>
5566
- * <p>A response headers policy contains information about a set of HTTP response headers
5567
- * and their values.</p>
5568
- * <p>After you create a response headers policy, you can use its ID to attach it to one or more
5569
- * cache behaviors in a CloudFront distribution. When it’s attached to a cache behavior, CloudFront
5570
- * adds the headers in the policy to HTTP responses that it sends for requests that match
5571
- * the cache behavior.</p>
5572
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/adding-response-headers.html">Adding HTTP headers to CloudFront responses</a> in the
5573
- * <i>Amazon CloudFront Developer Guide</i>.</p>
5574
- */
5575
- export interface ResponseHeadersPolicy {
5576
- /**
5577
- * <p>The identifier for the response headers policy.</p>
5578
- */
5579
- Id: string | undefined;
5580
- /**
5581
- * <p>The date and time when the response headers policy was last modified.</p>
5582
- */
5583
- LastModifiedTime: Date | undefined;
5584
- /**
5585
- * <p>A response headers policy configuration.</p>
5586
- * <p>A response headers policy contains information about a set of HTTP response headers and
5587
- * their values. CloudFront adds the headers in the policy to HTTP responses that it sends for
5588
- * requests that match a cache behavior that’s associated with the policy.</p>
5589
- */
5590
- ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfig | undefined;
5591
- }
5592
- export interface CreateResponseHeadersPolicyResult {
5593
- /**
5594
- * <p>Contains a response headers policy.</p>
5595
- */
5596
- ResponseHeadersPolicy?: ResponseHeadersPolicy;
5597
- /**
5598
- * <p>The URL of the response headers policy.</p>
5599
- */
5600
- Location?: string;
5601
- /**
5602
- * <p>The version identifier for the current version of the response headers policy.</p>
5603
- */
5604
- ETag?: string;
5605
- }
5606
- /**
5607
- * <p>A response headers policy with this name already exists. You must provide a unique name. To
5608
- * modify an existing response headers policy, use
5609
- * <code>UpdateResponseHeadersPolicy</code>.</p>
5610
- */
5611
- export declare class ResponseHeadersPolicyAlreadyExists extends __BaseException {
5612
- readonly name: "ResponseHeadersPolicyAlreadyExists";
5613
- readonly $fault: "client";
5614
- Message?: string;
5615
- /**
5616
- * @internal
5617
- */
5618
- constructor(opts: __ExceptionOptionType<ResponseHeadersPolicyAlreadyExists, __BaseException>);
5619
- }
5620
- /**
5621
- * <p>The length of the <code>Content-Security-Policy</code> header value in the response headers
5622
- * policy exceeds the maximum.</p>
5623
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
5624
- * <i>Amazon CloudFront Developer Guide</i>.</p>
5625
- */
5626
- export declare class TooLongCSPInResponseHeadersPolicy extends __BaseException {
5627
- readonly name: "TooLongCSPInResponseHeadersPolicy";
5628
- readonly $fault: "client";
5629
- Message?: string;
5630
- /**
5631
- * @internal
5632
- */
5633
- constructor(opts: __ExceptionOptionType<TooLongCSPInResponseHeadersPolicy, __BaseException>);
5634
- }
5635
- /**
5636
- * <p>The number of custom headers in the response headers policy exceeds the maximum.</p>
5637
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
5638
- * <i>Amazon CloudFront Developer Guide</i>.</p>
5639
- */
5640
- export declare class TooManyCustomHeadersInResponseHeadersPolicy extends __BaseException {
5641
- readonly name: "TooManyCustomHeadersInResponseHeadersPolicy";
5642
- readonly $fault: "client";
5643
- Message?: string;
5644
- /**
5645
- * @internal
5646
- */
5647
- constructor(opts: __ExceptionOptionType<TooManyCustomHeadersInResponseHeadersPolicy, __BaseException>);
5648
- }
5649
- /**
5650
- * <p>You have reached the maximum number of response headers policies for this
5651
- * Amazon Web Services account.</p>
5652
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
5653
- * <i>Amazon CloudFront Developer Guide</i>.</p>
5654
- */
5655
- export declare class TooManyResponseHeadersPolicies extends __BaseException {
5656
- readonly name: "TooManyResponseHeadersPolicies";
5657
- readonly $fault: "client";
5658
- Message?: string;
5659
- /**
5660
- * @internal
5661
- */
5662
- constructor(opts: __ExceptionOptionType<TooManyResponseHeadersPolicies, __BaseException>);
5663
- }
5664
- /**
5665
- * <p>A complex type that controls whether access logs are written for this streaming distribution.</p>
5666
- */
5667
- export interface StreamingLoggingConfig {
5668
- /**
5669
- * <p>Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't
5670
- * want to enable logging when you create a streaming distribution or if you want to disable
5671
- * logging for an existing streaming distribution, specify <code>false</code> for
5672
- * <code>Enabled</code>, and specify <code>empty Bucket</code> and <code>Prefix</code>
5673
- * elements. If you specify <code>false</code> for <code>Enabled</code> but you specify values
5674
- * for <code>Bucket</code> and <code>Prefix</code>, the values are automatically deleted.
5675
- * </p>
5676
- */
5677
- Enabled: boolean | undefined;
5678
- /**
5679
- * <p>The Amazon S3 bucket to store the access logs in, for example, <code>myawslogbucket.s3.amazonaws.com</code>.</p>
5680
- */
5681
- Bucket: string | undefined;
5682
- /**
5683
- * <p>An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example,
5684
- * <code>myprefix/</code>. If you want to enable logging, but you don't want to specify a prefix, you still must include
5685
- * an empty <code>Prefix</code> element in the <code>Logging</code> element.</p>
5686
- */
5687
- Prefix: string | undefined;
5688
- }
5689
- /**
5690
- * <p>A complex type that contains information about the Amazon S3 bucket from which you want
5691
- * CloudFront to get your media files for distribution.</p>
5692
- */
5693
- export interface S3Origin {
5694
- /**
5695
- * <p>The DNS name of the Amazon S3 origin. </p>
5696
- */
5697
- DomainName: string | undefined;
5698
- /**
5699
- * <p>The CloudFront origin access identity to associate with the distribution. Use an origin
5700
- * access identity to configure the distribution so that end users can only access objects in an
5701
- * Amazon S3 bucket through CloudFront.</p>
5702
- * <p>If you want end users to be able to access objects using either the CloudFront URL or the
5703
- * Amazon S3 URL, specify an empty <code>OriginAccessIdentity</code> element.</p>
5704
- * <p>To delete the origin access identity from an existing distribution, update the
5705
- * distribution configuration and include an empty <code>OriginAccessIdentity</code>
5706
- * element.</p>
5707
- * <p>To replace the origin access identity, update the distribution configuration and
5708
- * specify the new origin access identity.</p>
5709
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html">Using an Origin Access
5710
- * Identity to Restrict Access to Your Amazon S3 Content</a> in the <i>
5711
- * Amazon CloudFront Developer Guide</i>.</p>
5712
- */
5713
- OriginAccessIdentity: string | undefined;
5714
- }
5715
- /**
5716
- * <p>The RTMP distribution's configuration information.</p>
5717
- */
5718
- export interface StreamingDistributionConfig {
5719
- /**
5720
- * <p>A unique value (for example, a date-time stamp) that ensures that the request can't be
5721
- * replayed.</p>
5722
- * <p>If the value of <code>CallerReference</code> is new (regardless of the content of the
5723
- * <code>StreamingDistributionConfig</code> object), CloudFront creates a new distribution.</p>
5724
- * <p>If <code>CallerReference</code> is a value that you already sent in a previous request to
5725
- * create a distribution, CloudFront returns a <code>DistributionAlreadyExists</code> error.</p>
5726
- */
5727
- CallerReference: string | undefined;
5728
- /**
5729
- * <p>A complex type that contains information about the Amazon S3 bucket from which you want
5730
- * CloudFront to get your media files for distribution. </p>
5731
- */
5732
- S3Origin: S3Origin | undefined;
5733
- /**
5734
- * <p>A complex type that contains information about CNAMEs (alternate domain names), if any,
5735
- * for this streaming distribution. </p>
5736
- */
5737
- Aliases?: Aliases;
5738
- /**
5739
- * <p>Any comments you want to include about the streaming distribution. </p>
5740
- */
5741
- Comment: string | undefined;
5742
- /**
5743
- * <p>A complex type that controls whether access logs are written for the streaming
5744
- * distribution. </p>
5745
- */
5746
- Logging?: StreamingLoggingConfig;
5747
- /**
5748
- * <p>A complex type that specifies any Amazon Web Services accounts that you want to permit to create signed
5749
- * URLs for private content. If you want the distribution to use signed URLs, include this
5750
- * element; if you want the distribution to use public URLs, remove this element. For more
5751
- * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving Private Content through
5752
- * CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. </p>
5753
- */
5754
- TrustedSigners: TrustedSigners | undefined;
5856
+ SecurityHeadersConfig?: ResponseHeadersPolicySecurityHeadersConfig;
5755
5857
  /**
5756
- * <p>A complex type that contains information about price class for this streaming
5757
- * distribution. </p>
5858
+ * <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP responses
5859
+ * sent from CloudFront.</p>
5758
5860
  */
5759
- PriceClass?: PriceClass | string;
5861
+ ServerTimingHeadersConfig?: ResponseHeadersPolicyServerTimingHeadersConfig;
5760
5862
  /**
5761
- * <p>Whether the streaming distribution is enabled to accept user requests for
5762
- * content.</p>
5863
+ * <p>A configuration for a set of custom HTTP response headers.</p>
5763
5864
  */
5764
- Enabled: boolean | undefined;
5865
+ CustomHeadersConfig?: ResponseHeadersPolicyCustomHeadersConfig;
5765
5866
  }
5766
- /**
5767
- * <p>The request to create a new streaming distribution.</p>
5768
- */
5769
- export interface CreateStreamingDistributionRequest {
5867
+ export interface CreateResponseHeadersPolicyRequest {
5770
5868
  /**
5771
- * <p>The streaming distribution's configuration information.</p>
5869
+ * <p>Contains metadata about the response headers policy, and a set of configurations that
5870
+ * specify the response headers.</p>
5772
5871
  */
5773
- StreamingDistributionConfig: StreamingDistributionConfig | undefined;
5872
+ ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfig | undefined;
5774
5873
  }
5775
5874
  /**
5776
- * <p>A streaming distribution tells CloudFront where you want RTMP content to be delivered from, and the details about how to
5777
- * track and manage content delivery.</p>
5875
+ * <p>A response headers policy.</p>
5876
+ * <p>A response headers policy contains information about a set of HTTP response headers
5877
+ * and their values.</p>
5878
+ * <p>After you create a response headers policy, you can use its ID to attach it to one or more
5879
+ * cache behaviors in a CloudFront distribution. When it’s attached to a cache behavior, CloudFront
5880
+ * adds the headers in the policy to HTTP responses that it sends for requests that match
5881
+ * the cache behavior.</p>
5882
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/adding-response-headers.html">Adding HTTP headers to CloudFront responses</a> in the
5883
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
5778
5884
  */
5779
- export interface StreamingDistribution {
5885
+ export interface ResponseHeadersPolicy {
5780
5886
  /**
5781
- * <p>The identifier for the RTMP distribution. For example:
5782
- * <code>EGTXBD79EXAMPLE</code>.</p>
5887
+ * <p>The identifier for the response headers policy.</p>
5783
5888
  */
5784
5889
  Id: string | undefined;
5785
5890
  /**
5786
- * <p>The ARN (Amazon Resource Name) for the distribution. For example:
5787
- * <code>arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5</code>, where
5788
- * <code>123456789012</code> is your Amazon Web Services account ID.</p>
5789
- */
5790
- ARN: string | undefined;
5791
- /**
5792
- * <p>The current status of the RTMP distribution. When the status is <code>Deployed</code>,
5793
- * the distribution's information is propagated to all CloudFront edge locations.</p>
5794
- */
5795
- Status: string | undefined;
5796
- /**
5797
- * <p>The date and time that the distribution was last modified. </p>
5798
- */
5799
- LastModifiedTime?: Date;
5800
- /**
5801
- * <p>The domain name that corresponds to the streaming distribution, for example, <code>s5c39gqb8ow64r.cloudfront.net</code>. </p>
5802
- */
5803
- DomainName: string | undefined;
5804
- /**
5805
- * <p>A complex type that lists the Amazon Web Services accounts, if any, that you included in the
5806
- * <code>TrustedSigners</code> complex type for this distribution. These are the accounts that
5807
- * you want to allow to create signed URLs for private content.</p>
5808
- * <p>The <code>Signer</code> complex type lists the Amazon Web Services account number of the trusted
5809
- * signer or <code>self</code> if the signer is the Amazon Web Services account that created the distribution.
5810
- * The <code>Signer</code> element also includes the IDs of any active CloudFront key pairs that are
5811
- * associated with the trusted signer's Amazon Web Services account. If no <code>KeyPairId</code> element
5812
- * appears for a <code>Signer</code>, that signer can't create signed URLs.</p>
5813
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving Private
5814
- * Content through CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. </p>
5891
+ * <p>The date and time when the response headers policy was last modified.</p>
5815
5892
  */
5816
- ActiveTrustedSigners: ActiveTrustedSigners | undefined;
5893
+ LastModifiedTime: Date | undefined;
5817
5894
  /**
5818
- * <p>The current configuration information for the RTMP distribution.</p>
5895
+ * <p>A response headers policy configuration.</p>
5896
+ * <p>A response headers policy contains information about a set of HTTP response headers and
5897
+ * their values. CloudFront adds the headers in the policy to HTTP responses that it sends for
5898
+ * requests that match a cache behavior that’s associated with the policy.</p>
5819
5899
  */
5820
- StreamingDistributionConfig: StreamingDistributionConfig | undefined;
5900
+ ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfig | undefined;
5821
5901
  }
5822
- /**
5823
- * <p>The returned result of the corresponding request.</p>
5824
- */
5825
- export interface CreateStreamingDistributionResult {
5902
+ export interface CreateResponseHeadersPolicyResult {
5826
5903
  /**
5827
- * <p>The streaming distribution's information.</p>
5904
+ * <p>Contains a response headers policy.</p>
5828
5905
  */
5829
- StreamingDistribution?: StreamingDistribution;
5906
+ ResponseHeadersPolicy?: ResponseHeadersPolicy;
5830
5907
  /**
5831
- * <p>The fully qualified URI of the new streaming distribution resource just created.</p>
5908
+ * <p>The URL of the response headers policy.</p>
5832
5909
  */
5833
5910
  Location?: string;
5834
5911
  /**
5835
- * <p>The current version of the streaming distribution created.</p>
5912
+ * <p>The version identifier for the current version of the response headers policy.</p>
5836
5913
  */
5837
5914
  ETag?: string;
5838
5915
  }
5839
5916
  /**
5840
- * <p>The caller reference you attempted to create the streaming distribution with
5841
- * is associated with another distribution</p>
5917
+ * <p>A response headers policy with this name already exists. You must provide a unique name. To
5918
+ * modify an existing response headers policy, use
5919
+ * <code>UpdateResponseHeadersPolicy</code>.</p>
5842
5920
  */
5843
- export declare class StreamingDistributionAlreadyExists extends __BaseException {
5844
- readonly name: "StreamingDistributionAlreadyExists";
5921
+ export declare class ResponseHeadersPolicyAlreadyExists extends __BaseException {
5922
+ readonly name: "ResponseHeadersPolicyAlreadyExists";
5845
5923
  readonly $fault: "client";
5846
5924
  Message?: string;
5847
5925
  /**
5848
5926
  * @internal
5849
5927
  */
5850
- constructor(opts: __ExceptionOptionType<StreamingDistributionAlreadyExists, __BaseException>);
5928
+ constructor(opts: __ExceptionOptionType<ResponseHeadersPolicyAlreadyExists, __BaseException>);
5851
5929
  }
5852
5930
  /**
5853
- * <p>Your request contains more CNAMEs than are allowed per distribution.</p>
5931
+ * <p>The length of the <code>Content-Security-Policy</code> header value in the response headers
5932
+ * policy exceeds the maximum.</p>
5933
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
5934
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
5854
5935
  */
5855
- export declare class TooManyStreamingDistributionCNAMEs extends __BaseException {
5856
- readonly name: "TooManyStreamingDistributionCNAMEs";
5936
+ export declare class TooLongCSPInResponseHeadersPolicy extends __BaseException {
5937
+ readonly name: "TooLongCSPInResponseHeadersPolicy";
5857
5938
  readonly $fault: "client";
5858
5939
  Message?: string;
5859
5940
  /**
5860
5941
  * @internal
5861
5942
  */
5862
- constructor(opts: __ExceptionOptionType<TooManyStreamingDistributionCNAMEs, __BaseException>);
5943
+ constructor(opts: __ExceptionOptionType<TooLongCSPInResponseHeadersPolicy, __BaseException>);
5863
5944
  }
5864
5945
  /**
5865
- * <p>Processing your request would cause you to exceed the maximum number of streaming distributions allowed.</p>
5946
+ * <p>The number of custom headers in the response headers policy exceeds the maximum.</p>
5947
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
5948
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
5866
5949
  */
5867
- export declare class TooManyStreamingDistributions extends __BaseException {
5868
- readonly name: "TooManyStreamingDistributions";
5950
+ export declare class TooManyCustomHeadersInResponseHeadersPolicy extends __BaseException {
5951
+ readonly name: "TooManyCustomHeadersInResponseHeadersPolicy";
5869
5952
  readonly $fault: "client";
5870
5953
  Message?: string;
5871
5954
  /**
5872
5955
  * @internal
5873
5956
  */
5874
- constructor(opts: __ExceptionOptionType<TooManyStreamingDistributions, __BaseException>);
5875
- }
5876
- /**
5877
- * <p>A streaming distribution Configuration and a list of tags to be associated with the
5878
- * streaming distribution.</p>
5879
- */
5880
- export interface StreamingDistributionConfigWithTags {
5881
- /**
5882
- * <p>A streaming distribution Configuration.</p>
5883
- */
5884
- StreamingDistributionConfig: StreamingDistributionConfig | undefined;
5885
- /**
5886
- * <p>A complex type that contains zero or more <code>Tag</code> elements.</p>
5887
- */
5888
- Tags: Tags | undefined;
5889
- }
5890
- /**
5891
- * <p>The request to create a new streaming distribution with tags.</p>
5892
- */
5893
- export interface CreateStreamingDistributionWithTagsRequest {
5894
- /**
5895
- * <p> The streaming distribution's configuration information. </p>
5896
- */
5897
- StreamingDistributionConfigWithTags: StreamingDistributionConfigWithTags | undefined;
5898
- }
5899
- /**
5900
- * <p>The returned result of the corresponding request. </p>
5901
- */
5902
- export interface CreateStreamingDistributionWithTagsResult {
5903
- /**
5904
- * <p>The streaming distribution's information. </p>
5905
- */
5906
- StreamingDistribution?: StreamingDistribution;
5907
- /**
5908
- * <p>The fully qualified URI of the new streaming distribution resource just created.</p>
5909
- */
5910
- Location?: string;
5911
- /**
5912
- * <p>The current version of the distribution created.</p>
5913
- */
5914
- ETag?: string;
5915
- }
5916
- export interface DeleteCachePolicyRequest {
5917
- /**
5918
- * <p>The unique identifier for the cache policy that you are deleting. To get the
5919
- * identifier, you can use <code>ListCachePolicies</code>.</p>
5920
- */
5921
- Id: string | undefined;
5922
- /**
5923
- * <p>The version of the cache policy that you are deleting. The version is the cache
5924
- * policy’s <code>ETag</code> value, which you can get using
5925
- * <code>ListCachePolicies</code>, <code>GetCachePolicy</code>, or
5926
- * <code>GetCachePolicyConfig</code>.</p>
5927
- */
5928
- IfMatch?: string;
5957
+ constructor(opts: __ExceptionOptionType<TooManyCustomHeadersInResponseHeadersPolicy, __BaseException>);
5929
5958
  }
5930
5959
  /**
5931
- * <p>You cannot delete a managed policy.</p>
5960
+ * <p>You have reached the maximum number of response headers policies for this
5961
+ * Amazon Web Services account.</p>
5962
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
5963
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
5932
5964
  */
5933
- export declare class IllegalDelete extends __BaseException {
5934
- readonly name: "IllegalDelete";
5965
+ export declare class TooManyResponseHeadersPolicies extends __BaseException {
5966
+ readonly name: "TooManyResponseHeadersPolicies";
5935
5967
  readonly $fault: "client";
5936
5968
  Message?: string;
5937
5969
  /**
5938
5970
  * @internal
5939
5971
  */
5940
- constructor(opts: __ExceptionOptionType<IllegalDelete, __BaseException>);
5972
+ constructor(opts: __ExceptionOptionType<TooManyResponseHeadersPolicies, __BaseException>);
5941
5973
  }
5942
5974
  /**
5943
- * <p>The <code>If-Match</code> version is missing or not valid.</p>
5975
+ * <p>A complex type that controls whether access logs are written for this streaming distribution.</p>
5944
5976
  */
5945
- export declare class InvalidIfMatchVersion extends __BaseException {
5946
- readonly name: "InvalidIfMatchVersion";
5947
- readonly $fault: "client";
5948
- Message?: string;
5977
+ export interface StreamingLoggingConfig {
5949
5978
  /**
5950
- * @internal
5979
+ * <p>Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't
5980
+ * want to enable logging when you create a streaming distribution or if you want to disable
5981
+ * logging for an existing streaming distribution, specify <code>false</code> for
5982
+ * <code>Enabled</code>, and specify <code>empty Bucket</code> and <code>Prefix</code>
5983
+ * elements. If you specify <code>false</code> for <code>Enabled</code> but you specify values
5984
+ * for <code>Bucket</code> and <code>Prefix</code>, the values are automatically deleted.
5985
+ * </p>
5951
5986
  */
5952
- constructor(opts: __ExceptionOptionType<InvalidIfMatchVersion, __BaseException>);
5953
- }
5954
- /**
5955
- * <p>The precondition in one or more of the request fields evaluated to
5956
- * <code>false</code>.</p>
5957
- */
5958
- export declare class PreconditionFailed extends __BaseException {
5959
- readonly name: "PreconditionFailed";
5960
- readonly $fault: "client";
5961
- Message?: string;
5987
+ Enabled: boolean | undefined;
5962
5988
  /**
5963
- * @internal
5989
+ * <p>The Amazon S3 bucket to store the access logs in, for example, <code>myawslogbucket.s3.amazonaws.com</code>.</p>
5964
5990
  */
5965
- constructor(opts: __ExceptionOptionType<PreconditionFailed, __BaseException>);
5991
+ Bucket: string | undefined;
5992
+ /**
5993
+ * <p>An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example,
5994
+ * <code>myprefix/</code>. If you want to enable logging, but you don't want to specify a prefix, you still must include
5995
+ * an empty <code>Prefix</code> element in the <code>Logging</code> element.</p>
5996
+ */
5997
+ Prefix: string | undefined;
5966
5998
  }
5967
5999
  /**
5968
6000
  * @internal
@@ -6095,27 +6127,7 @@ export declare const CachePolicyListFilterSensitiveLog: (obj: CachePolicyList) =
6095
6127
  /**
6096
6128
  * @internal
6097
6129
  */
6098
- export declare const CreateCachePolicyRequestFilterSensitiveLog: (obj: CreateCachePolicyRequest) => any;
6099
- /**
6100
- * @internal
6101
- */
6102
- export declare const CreateCachePolicyResultFilterSensitiveLog: (obj: CreateCachePolicyResult) => any;
6103
- /**
6104
- * @internal
6105
- */
6106
- export declare const CloudFrontOriginAccessIdentityConfigFilterSensitiveLog: (obj: CloudFrontOriginAccessIdentityConfig) => any;
6107
- /**
6108
- * @internal
6109
- */
6110
- export declare const CreateCloudFrontOriginAccessIdentityRequestFilterSensitiveLog: (obj: CreateCloudFrontOriginAccessIdentityRequest) => any;
6111
- /**
6112
- * @internal
6113
- */
6114
- export declare const CloudFrontOriginAccessIdentityFilterSensitiveLog: (obj: CloudFrontOriginAccessIdentity) => any;
6115
- /**
6116
- * @internal
6117
- */
6118
- export declare const CreateCloudFrontOriginAccessIdentityResultFilterSensitiveLog: (obj: CreateCloudFrontOriginAccessIdentityResult) => any;
6130
+ export declare const CopyDistributionRequestFilterSensitiveLog: (obj: CopyDistributionRequest) => any;
6119
6131
  /**
6120
6132
  * @internal
6121
6133
  */
@@ -6207,11 +6219,75 @@ export declare const DistributionConfigFilterSensitiveLog: (obj: DistributionCon
6207
6219
  /**
6208
6220
  * @internal
6209
6221
  */
6210
- export declare const CreateDistributionRequestFilterSensitiveLog: (obj: CreateDistributionRequest) => any;
6222
+ export declare const DistributionFilterSensitiveLog: (obj: Distribution) => any;
6211
6223
  /**
6212
6224
  * @internal
6213
6225
  */
6214
- export declare const DistributionFilterSensitiveLog: (obj: Distribution) => any;
6226
+ export declare const CopyDistributionResultFilterSensitiveLog: (obj: CopyDistributionResult) => any;
6227
+ /**
6228
+ * @internal
6229
+ */
6230
+ export declare const CreateCachePolicyRequestFilterSensitiveLog: (obj: CreateCachePolicyRequest) => any;
6231
+ /**
6232
+ * @internal
6233
+ */
6234
+ export declare const CreateCachePolicyResultFilterSensitiveLog: (obj: CreateCachePolicyResult) => any;
6235
+ /**
6236
+ * @internal
6237
+ */
6238
+ export declare const CloudFrontOriginAccessIdentityConfigFilterSensitiveLog: (obj: CloudFrontOriginAccessIdentityConfig) => any;
6239
+ /**
6240
+ * @internal
6241
+ */
6242
+ export declare const CreateCloudFrontOriginAccessIdentityRequestFilterSensitiveLog: (obj: CreateCloudFrontOriginAccessIdentityRequest) => any;
6243
+ /**
6244
+ * @internal
6245
+ */
6246
+ export declare const CloudFrontOriginAccessIdentityFilterSensitiveLog: (obj: CloudFrontOriginAccessIdentity) => any;
6247
+ /**
6248
+ * @internal
6249
+ */
6250
+ export declare const CreateCloudFrontOriginAccessIdentityResultFilterSensitiveLog: (obj: CreateCloudFrontOriginAccessIdentityResult) => any;
6251
+ /**
6252
+ * @internal
6253
+ */
6254
+ export declare const StagingDistributionDnsNamesFilterSensitiveLog: (obj: StagingDistributionDnsNames) => any;
6255
+ /**
6256
+ * @internal
6257
+ */
6258
+ export declare const ContinuousDeploymentSingleHeaderConfigFilterSensitiveLog: (obj: ContinuousDeploymentSingleHeaderConfig) => any;
6259
+ /**
6260
+ * @internal
6261
+ */
6262
+ export declare const SessionStickinessConfigFilterSensitiveLog: (obj: SessionStickinessConfig) => any;
6263
+ /**
6264
+ * @internal
6265
+ */
6266
+ export declare const ContinuousDeploymentSingleWeightConfigFilterSensitiveLog: (obj: ContinuousDeploymentSingleWeightConfig) => any;
6267
+ /**
6268
+ * @internal
6269
+ */
6270
+ export declare const TrafficConfigFilterSensitiveLog: (obj: TrafficConfig) => any;
6271
+ /**
6272
+ * @internal
6273
+ */
6274
+ export declare const ContinuousDeploymentPolicyConfigFilterSensitiveLog: (obj: ContinuousDeploymentPolicyConfig) => any;
6275
+ /**
6276
+ * @internal
6277
+ */
6278
+ export declare const CreateContinuousDeploymentPolicyRequestFilterSensitiveLog: (obj: CreateContinuousDeploymentPolicyRequest) => any;
6279
+ /**
6280
+ * @internal
6281
+ */
6282
+ export declare const ContinuousDeploymentPolicyFilterSensitiveLog: (obj: ContinuousDeploymentPolicy) => any;
6283
+ /**
6284
+ * @internal
6285
+ */
6286
+ export declare const CreateContinuousDeploymentPolicyResultFilterSensitiveLog: (obj: CreateContinuousDeploymentPolicyResult) => any;
6287
+ /**
6288
+ * @internal
6289
+ */
6290
+ export declare const CreateDistributionRequestFilterSensitiveLog: (obj: CreateDistributionRequest) => any;
6215
6291
  /**
6216
6292
  * @internal
6217
6293
  */
@@ -6536,39 +6612,3 @@ export declare const CreateResponseHeadersPolicyResultFilterSensitiveLog: (obj:
6536
6612
  * @internal
6537
6613
  */
6538
6614
  export declare const StreamingLoggingConfigFilterSensitiveLog: (obj: StreamingLoggingConfig) => any;
6539
- /**
6540
- * @internal
6541
- */
6542
- export declare const S3OriginFilterSensitiveLog: (obj: S3Origin) => any;
6543
- /**
6544
- * @internal
6545
- */
6546
- export declare const StreamingDistributionConfigFilterSensitiveLog: (obj: StreamingDistributionConfig) => any;
6547
- /**
6548
- * @internal
6549
- */
6550
- export declare const CreateStreamingDistributionRequestFilterSensitiveLog: (obj: CreateStreamingDistributionRequest) => any;
6551
- /**
6552
- * @internal
6553
- */
6554
- export declare const StreamingDistributionFilterSensitiveLog: (obj: StreamingDistribution) => any;
6555
- /**
6556
- * @internal
6557
- */
6558
- export declare const CreateStreamingDistributionResultFilterSensitiveLog: (obj: CreateStreamingDistributionResult) => any;
6559
- /**
6560
- * @internal
6561
- */
6562
- export declare const StreamingDistributionConfigWithTagsFilterSensitiveLog: (obj: StreamingDistributionConfigWithTags) => any;
6563
- /**
6564
- * @internal
6565
- */
6566
- export declare const CreateStreamingDistributionWithTagsRequestFilterSensitiveLog: (obj: CreateStreamingDistributionWithTagsRequest) => any;
6567
- /**
6568
- * @internal
6569
- */
6570
- export declare const CreateStreamingDistributionWithTagsResultFilterSensitiveLog: (obj: CreateStreamingDistributionWithTagsResult) => any;
6571
- /**
6572
- * @internal
6573
- */
6574
- export declare const DeleteCachePolicyRequestFilterSensitiveLog: (obj: DeleteCachePolicyRequest) => any;