@aws-sdk/client-cloudfront 3.36.1 → 3.40.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 (131) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist-cjs/CloudFront.js +105 -0
  3. package/dist-cjs/commands/CreateResponseHeadersPolicyCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js +2 -1
  5. package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js +2 -2
  6. package/dist-cjs/commands/DeletePublicKeyCommand.js +2 -2
  7. package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js +2 -2
  8. package/dist-cjs/commands/DeleteResponseHeadersPolicyCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteStreamingDistributionCommand.js +2 -2
  10. package/dist-cjs/commands/DescribeFunctionCommand.js +3 -3
  11. package/dist-cjs/commands/GetCachePolicyCommand.js +3 -3
  12. package/dist-cjs/commands/GetCachePolicyConfigCommand.js +3 -3
  13. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js +3 -3
  14. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +3 -3
  15. package/dist-cjs/commands/GetDistributionCommand.js +3 -3
  16. package/dist-cjs/commands/GetDistributionConfigCommand.js +3 -3
  17. package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js +3 -3
  18. package/dist-cjs/commands/GetResponseHeadersPolicyCommand.js +36 -0
  19. package/dist-cjs/commands/GetResponseHeadersPolicyConfigCommand.js +36 -0
  20. package/dist-cjs/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +36 -0
  21. package/dist-cjs/commands/ListResponseHeadersPoliciesCommand.js +36 -0
  22. package/dist-cjs/commands/UpdateResponseHeadersPolicyCommand.js +36 -0
  23. package/dist-cjs/commands/index.js +95 -0
  24. package/dist-cjs/endpoints.js +84 -6
  25. package/dist-cjs/index.js +5 -95
  26. package/dist-cjs/models/models_0.js +174 -166
  27. package/dist-cjs/models/models_1.js +257 -3
  28. package/dist-cjs/pagination/index.js +8 -0
  29. package/dist-cjs/protocols/Aws_restXml.js +1725 -120
  30. package/dist-cjs/runtimeConfig.browser.js +6 -3
  31. package/dist-cjs/runtimeConfig.js +5 -3
  32. package/dist-cjs/waiters/index.js +6 -0
  33. package/dist-es/CloudFront.js +105 -0
  34. package/dist-es/commands/CreateResponseHeadersPolicyCommand.js +39 -0
  35. package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js +2 -1
  36. package/dist-es/commands/DeleteOriginRequestPolicyCommand.js +1 -1
  37. package/dist-es/commands/DeletePublicKeyCommand.js +1 -1
  38. package/dist-es/commands/DeleteRealtimeLogConfigCommand.js +1 -1
  39. package/dist-es/commands/DeleteResponseHeadersPolicyCommand.js +39 -0
  40. package/dist-es/commands/DeleteStreamingDistributionCommand.js +1 -1
  41. package/dist-es/commands/DescribeFunctionCommand.js +1 -1
  42. package/dist-es/commands/GetCachePolicyCommand.js +1 -1
  43. package/dist-es/commands/GetCachePolicyConfigCommand.js +1 -1
  44. package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js +1 -1
  45. package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +1 -1
  46. package/dist-es/commands/GetDistributionCommand.js +1 -1
  47. package/dist-es/commands/GetDistributionConfigCommand.js +1 -1
  48. package/dist-es/commands/GetFieldLevelEncryptionCommand.js +1 -1
  49. package/dist-es/commands/GetResponseHeadersPolicyCommand.js +39 -0
  50. package/dist-es/commands/GetResponseHeadersPolicyConfigCommand.js +39 -0
  51. package/dist-es/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +39 -0
  52. package/dist-es/commands/ListResponseHeadersPoliciesCommand.js +39 -0
  53. package/dist-es/commands/UpdateResponseHeadersPolicyCommand.js +39 -0
  54. package/dist-es/commands/index.js +92 -0
  55. package/dist-es/endpoints.js +84 -6
  56. package/dist-es/index.js +5 -95
  57. package/dist-es/models/models_0.js +122 -109
  58. package/dist-es/models/models_1.js +169 -2
  59. package/dist-es/pagination/index.js +5 -0
  60. package/dist-es/protocols/Aws_restXml.js +2398 -664
  61. package/dist-es/runtimeConfig.browser.js +3 -2
  62. package/dist-es/runtimeConfig.js +3 -3
  63. package/dist-es/waiters/index.js +3 -0
  64. package/dist-types/CloudFront.d.ts +109 -3
  65. package/dist-types/CloudFrontClient.d.ts +17 -2
  66. package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +42 -0
  67. package/dist-types/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
  68. package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
  69. package/dist-types/commands/DeletePublicKeyCommand.d.ts +1 -1
  70. package/dist-types/commands/DeleteRealtimeLogConfigCommand.d.ts +1 -1
  71. package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +41 -0
  72. package/dist-types/commands/DeleteStreamingDistributionCommand.d.ts +1 -1
  73. package/dist-types/commands/DescribeFunctionCommand.d.ts +1 -1
  74. package/dist-types/commands/GetCachePolicyCommand.d.ts +1 -1
  75. package/dist-types/commands/GetCachePolicyConfigCommand.d.ts +1 -1
  76. package/dist-types/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  77. package/dist-types/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +1 -1
  78. package/dist-types/commands/GetDistributionCommand.d.ts +1 -1
  79. package/dist-types/commands/GetDistributionConfigCommand.d.ts +1 -1
  80. package/dist-types/commands/GetFieldLevelEncryptionCommand.d.ts +1 -1
  81. package/dist-types/commands/GetResponseHeadersPolicyCommand.d.ts +42 -0
  82. package/dist-types/commands/GetResponseHeadersPolicyConfigCommand.d.ts +41 -0
  83. package/dist-types/commands/ListCachePoliciesCommand.d.ts +1 -1
  84. package/dist-types/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +41 -0
  85. package/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
  86. package/dist-types/commands/ListOriginRequestPoliciesCommand.d.ts +1 -1
  87. package/dist-types/commands/ListResponseHeadersPoliciesCommand.d.ts +42 -0
  88. package/dist-types/commands/UpdateResponseHeadersPolicyCommand.d.ts +53 -0
  89. package/dist-types/commands/index.d.ts +92 -0
  90. package/dist-types/index.d.ts +5 -95
  91. package/dist-types/models/models_0.d.ts +990 -676
  92. package/dist-types/models/models_1.d.ts +746 -51
  93. package/dist-types/pagination/index.d.ts +5 -0
  94. package/dist-types/protocols/Aws_restXml.d.ts +21 -0
  95. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  96. package/dist-types/runtimeConfig.d.ts +2 -0
  97. package/dist-types/runtimeConfig.native.d.ts +2 -0
  98. package/dist-types/ts3.4/CloudFront.d.ts +35 -0
  99. package/dist-types/ts3.4/CloudFrontClient.d.ts +13 -2
  100. package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +17 -0
  101. package/dist-types/ts3.4/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
  102. package/dist-types/ts3.4/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
  103. package/dist-types/ts3.4/commands/DeletePublicKeyCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/DeleteRealtimeLogConfigCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/DeleteResponseHeadersPolicyCommand.d.ts +17 -0
  106. package/dist-types/ts3.4/commands/DeleteStreamingDistributionCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/DescribeFunctionCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/GetCachePolicyCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/GetCachePolicyConfigCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/GetDistributionCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/GetDistributionConfigCommand.d.ts +1 -1
  114. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionCommand.d.ts +1 -1
  115. package/dist-types/ts3.4/commands/GetResponseHeadersPolicyCommand.d.ts +17 -0
  116. package/dist-types/ts3.4/commands/GetResponseHeadersPolicyConfigCommand.d.ts +17 -0
  117. package/dist-types/ts3.4/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +17 -0
  118. package/dist-types/ts3.4/commands/ListResponseHeadersPoliciesCommand.d.ts +17 -0
  119. package/dist-types/ts3.4/commands/UpdateResponseHeadersPolicyCommand.d.ts +17 -0
  120. package/dist-types/ts3.4/commands/index.d.ts +92 -0
  121. package/dist-types/ts3.4/index.d.ts +5 -95
  122. package/dist-types/ts3.4/models/models_0.d.ts +10 -0
  123. package/dist-types/ts3.4/models/models_1.d.ts +418 -19
  124. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  125. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +21 -0
  126. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  127. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  128. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  129. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  130. package/dist-types/waiters/index.d.ts +3 -0
  131. package/package.json +34 -34
@@ -1,4 +1,14 @@
1
1
  import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ export declare enum ResponseHeadersPolicyAccessControlAllowMethodsValues {
3
+ ALL = "ALL",
4
+ DELETE = "DELETE",
5
+ GET = "GET",
6
+ HEAD = "HEAD",
7
+ OPTIONS = "OPTIONS",
8
+ PATCH = "PATCH",
9
+ POST = "POST",
10
+ PUT = "PUT"
11
+ }
2
12
  /**
3
13
  * <p>Access denied.</p>
4
14
  */
@@ -80,13 +90,13 @@ export declare namespace ActiveTrustedKeyGroups {
80
90
  const filterSensitiveLog: (obj: ActiveTrustedKeyGroups) => any;
81
91
  }
82
92
  /**
83
- * <p>A list of accounts and the active CloudFront key pairs in each account that CloudFront can use to
93
+ * <p>A list of Amazon Web Services accounts and the active CloudFront key pairs in each account that CloudFront can use to
84
94
  * verify the signatures of signed URLs and signed cookies.</p>
85
95
  */
86
96
  export interface Signer {
87
97
  /**
88
- * <p>An account number that contains active CloudFront key pairs that CloudFront can use to verify the
89
- * signatures of signed URLs and signed cookies. If the account that owns the key pairs
98
+ * <p>An Amazon Web Services account number that contains active CloudFront key pairs that CloudFront can use to verify the
99
+ * signatures of signed URLs and signed cookies. If the Amazon Web Services account that owns the key pairs
90
100
  * is the same account that owns the CloudFront distribution, the value of this field is
91
101
  * <code>self</code>.</p>
92
102
  */
@@ -103,22 +113,22 @@ export declare namespace Signer {
103
113
  const filterSensitiveLog: (obj: Signer) => any;
104
114
  }
105
115
  /**
106
- * <p>A list of accounts and the active CloudFront key pairs in each account that CloudFront can use
116
+ * <p>A list of Amazon Web Services accounts and the active CloudFront key pairs in each account that CloudFront can use
107
117
  * to verify the signatures of signed URLs and signed cookies.</p>
108
118
  */
109
119
  export interface ActiveTrustedSigners {
110
120
  /**
111
- * <p>This field is <code>true</code> if any of the accounts in the list have active CloudFront
121
+ * <p>This field is <code>true</code> if any of the Amazon Web Services accounts in the list have active CloudFront
112
122
  * key pairs that CloudFront can use to verify the signatures of signed URLs and signed cookies.
113
123
  * If not, this field is <code>false</code>.</p>
114
124
  */
115
125
  Enabled: boolean | undefined;
116
126
  /**
117
- * <p>The number of accounts in the list.</p>
127
+ * <p>The number of Amazon Web Services accounts in the list.</p>
118
128
  */
119
129
  Quantity: number | undefined;
120
130
  /**
121
- * <p>A list of accounts and the identifiers of active CloudFront key pairs in each account that
131
+ * <p>A list of Amazon Web Services accounts and the identifiers of active CloudFront key pairs in each account that
122
132
  * CloudFront can use to verify the signatures of signed URLs and signed cookies.</p>
123
133
  */
124
134
  Items?: Signer[];
@@ -746,22 +756,22 @@ export declare namespace TrustedKeyGroups {
746
756
  const filterSensitiveLog: (obj: TrustedKeyGroups) => any;
747
757
  }
748
758
  /**
749
- * <p>A list of accounts whose public keys CloudFront can use to verify the signatures of signed
759
+ * <p>A list of Amazon Web Services accounts whose public keys CloudFront can use to verify the signatures of signed
750
760
  * URLs and signed cookies.</p>
751
761
  */
752
762
  export interface TrustedSigners {
753
763
  /**
754
- * <p>This field is <code>true</code> if any of the accounts have public keys that CloudFront can
764
+ * <p>This field is <code>true</code> if any of the Amazon Web Services accounts have public keys that CloudFront can
755
765
  * use to verify the signatures of signed URLs and signed cookies. If not, this field is
756
766
  * <code>false</code>.</p>
757
767
  */
758
768
  Enabled: boolean | undefined;
759
769
  /**
760
- * <p>The number of accounts in the list.</p>
770
+ * <p>The number of Amazon Web Services accounts in the list.</p>
761
771
  */
762
772
  Quantity: number | undefined;
763
773
  /**
764
- * <p>A list of account identifiers.</p>
774
+ * <p>A list of Amazon Web Services account identifiers.</p>
765
775
  */
766
776
  Items?: string[];
767
777
  }
@@ -819,11 +829,11 @@ export interface CacheBehavior {
819
829
  * <p>We recommend using <code>TrustedKeyGroups</code> instead of
820
830
  * <code>TrustedSigners</code>.</p>
821
831
  * </important>
822
- * <p>A list of account IDs whose public keys CloudFront can use to validate signed URLs or signed
832
+ * <p>A list of Amazon Web Services account IDs whose public keys CloudFront can use to validate signed URLs or signed
823
833
  * cookies.</p>
824
834
  * <p>When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies
825
835
  * for all requests that match the cache behavior. The URLs or cookies must be signed with
826
- * the private key of a CloudFront key pair in the trusted signer’s account. The signed URL
836
+ * the private key of a CloudFront key pair in the trusted signer’s Amazon Web Services account. The signed URL
827
837
  * or cookie contains information about which public key CloudFront should use to verify the
828
838
  * signature. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving private content</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
829
839
  */
@@ -943,6 +953,10 @@ export interface CacheBehavior {
943
953
  * <i>Amazon CloudFront Developer Guide</i>.</p>
944
954
  */
945
955
  OriginRequestPolicyId?: string;
956
+ /**
957
+ * <p>The identifier for a response headers policy.</p>
958
+ */
959
+ ResponseHeadersPolicyId?: string;
946
960
  /**
947
961
  * @deprecated
948
962
  *
@@ -1467,7 +1481,7 @@ export declare type CachePolicyType = "custom" | "managed";
1467
1481
  export interface CachePolicySummary {
1468
1482
  /**
1469
1483
  * <p>The type of cache policy, either <code>managed</code> (created by Amazon Web Services) or
1470
- * <code>custom</code> (created in this account).</p>
1484
+ * <code>custom</code> (created in this Amazon Web Services account).</p>
1471
1485
  */
1472
1486
  Type: CachePolicyType | string | undefined;
1473
1487
  /**
@@ -1572,7 +1586,7 @@ export declare namespace InconsistentQuantities {
1572
1586
  const filterSensitiveLog: (obj: InconsistentQuantities) => any;
1573
1587
  }
1574
1588
  /**
1575
- * <p>You have reached the maximum number of cache policies for this account. For more
1589
+ * <p>You have reached the maximum number of cache policies for this Amazon Web Services account. For more
1576
1590
  * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
1577
1591
  * <i>Amazon CloudFront Developer Guide</i>.</p>
1578
1592
  */
@@ -1930,11 +1944,11 @@ export interface DefaultCacheBehavior {
1930
1944
  * <p>We recommend using <code>TrustedKeyGroups</code> instead of
1931
1945
  * <code>TrustedSigners</code>.</p>
1932
1946
  * </important>
1933
- * <p>A list of account IDs whose public keys CloudFront can use to validate signed URLs or signed
1947
+ * <p>A list of Amazon Web Services account IDs whose public keys CloudFront can use to validate signed URLs or signed
1934
1948
  * cookies.</p>
1935
1949
  * <p>When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies
1936
1950
  * for all requests that match the cache behavior. The URLs or cookies must be signed with
1937
- * the private key of a CloudFront key pair in a trusted signer’s account. The signed URL or
1951
+ * the private key of a CloudFront key pair in a trusted signer’s Amazon Web Services account. The signed URL or
1938
1952
  * cookie contains information about which public key CloudFront should use to verify the
1939
1953
  * signature. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving private content</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
1940
1954
  */
@@ -2056,6 +2070,10 @@ export interface DefaultCacheBehavior {
2056
2070
  * <i>Amazon CloudFront Developer Guide</i>.</p>
2057
2071
  */
2058
2072
  OriginRequestPolicyId?: string;
2073
+ /**
2074
+ * <p>The identifier for a response headers policy.</p>
2075
+ */
2076
+ ResponseHeadersPolicyId?: string;
2059
2077
  /**
2060
2078
  * @deprecated
2061
2079
  *
@@ -2436,13 +2454,13 @@ export interface OriginShield {
2436
2454
  */
2437
2455
  Enabled: boolean | undefined;
2438
2456
  /**
2439
- * <p>The Region for Origin Shield.</p>
2440
- * <p>Specify the Region that has the lowest latency to your origin.
2457
+ * <p>The Amazon Web Services Region for Origin Shield.</p>
2458
+ * <p>Specify the Amazon Web Services Region that has the lowest latency to your origin.
2441
2459
  * To specify a region, use the region code, not the region name.
2442
2460
  * For example, specify the US East (Ohio) region as <code>us-east-2</code>.</p>
2443
- * <p>When you enable CloudFront Origin Shield, you must specify the Region for Origin
2444
- * Shield. For the list of Regions that you can specify, and for help choosing the best
2445
- * Region for your origin, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html#choose-origin-shield-region">Choosing the Region for Origin Shield</a> in the
2461
+ * <p>When you enable CloudFront Origin Shield, you must specify the Amazon Web Services Region for Origin
2462
+ * Shield. For the list of Amazon Web Services Regions that you can specify, and for help choosing the best
2463
+ * Region for your origin, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html#choose-origin-shield-region">Choosing the Amazon Web Services Region for Origin Shield</a> in the
2446
2464
  * <i>Amazon CloudFront Developer Guide</i>.</p>
2447
2465
  */
2448
2466
  OriginShieldRegion?: string;
@@ -3061,7 +3079,7 @@ export interface DistributionConfig {
3061
3079
  * content (or restrict access but not by IP address), you can create two distributions. For more
3062
3080
  * information, see
3063
3081
  * <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html">Creating a Signed URL Using a Custom Policy</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
3064
- * <p>If you're using an Route 53 Amazon Web Services Integration alias resource record set to route traffic to your CloudFront
3082
+ * <p>If you're using an Route 53 Amazon Web Services Integration alias resource record set to route traffic to your CloudFront
3065
3083
  * distribution, you need to create a second alias resource record set when both of the following
3066
3084
  * are true:</p>
3067
3085
  * <ul>
@@ -3073,9 +3091,9 @@ export interface DistributionConfig {
3073
3091
  * </li>
3074
3092
  * </ul>
3075
3093
  * <p>For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html">Routing Traffic
3076
- * to an Amazon CloudFront Web Distribution by Using Your Domain Name</a> in the <i>Route 53 Amazon Web Services Integration
3094
+ * to an Amazon CloudFront Web Distribution by Using Your Domain Name</a> in the <i>Route 53 Amazon Web Services Integration
3077
3095
  * Developer Guide</i>.</p>
3078
- * <p>If you created a CNAME resource record set, either with Route 53 Amazon Web Services Integration or with another DNS
3096
+ * <p>If you created a CNAME resource record set, either with Route 53 Amazon Web Services Integration or with another DNS
3079
3097
  * service, you don't need to make any changes. A CNAME record will route traffic to your
3080
3098
  * distribution regardless of the IP address format of the viewer request.</p>
3081
3099
  */
@@ -3115,7 +3133,7 @@ export interface Distribution {
3115
3133
  /**
3116
3134
  * <p>The ARN (Amazon Resource Name) for the distribution. For example:
3117
3135
  * <code>arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5</code>, where
3118
- * <code>123456789012</code> is your account ID.</p>
3136
+ * <code>123456789012</code> is your Amazon Web Services account ID.</p>
3119
3137
  */
3120
3138
  ARN: string | undefined;
3121
3139
  /**
@@ -3143,7 +3161,7 @@ export interface Distribution {
3143
3161
  * </important>
3144
3162
  * <p>CloudFront automatically adds this field to the response if you’ve configured a cache behavior in
3145
3163
  * this distribution to serve private content using trusted signers. This field contains a
3146
- * list of account IDs and the active CloudFront key pairs in each account that CloudFront can use
3164
+ * list of Amazon Web Services account IDs and the active CloudFront key pairs in each account that CloudFront can use
3147
3165
  * to verify the signatures of signed URLs or signed cookies.</p>
3148
3166
  */
3149
3167
  ActiveTrustedSigners?: ActiveTrustedSigners;
@@ -3598,7 +3616,21 @@ export declare namespace NoSuchRealtimeLogConfig {
3598
3616
  const filterSensitiveLog: (obj: NoSuchRealtimeLogConfig) => any;
3599
3617
  }
3600
3618
  /**
3601
- * <p>The specified real-time log configuration belongs to a different account.</p>
3619
+ * <p>The response headers policy does not exist.</p>
3620
+ */
3621
+ export interface NoSuchResponseHeadersPolicy extends __SmithyException, $MetadataBearer {
3622
+ name: "NoSuchResponseHeadersPolicy";
3623
+ $fault: "client";
3624
+ Message?: string;
3625
+ }
3626
+ export declare namespace NoSuchResponseHeadersPolicy {
3627
+ /**
3628
+ * @internal
3629
+ */
3630
+ const filterSensitiveLog: (obj: NoSuchResponseHeadersPolicy) => any;
3631
+ }
3632
+ /**
3633
+ * <p>The specified real-time log configuration belongs to a different Amazon Web Services account.</p>
3602
3634
  */
3603
3635
  export interface RealtimeLogConfigOwnerMismatch extends __SmithyException, $MetadataBearer {
3604
3636
  name: "RealtimeLogConfigOwnerMismatch";
@@ -3729,6 +3761,23 @@ export declare namespace TooManyDistributionsAssociatedToOriginRequestPolicy {
3729
3761
  */
3730
3762
  const filterSensitiveLog: (obj: TooManyDistributionsAssociatedToOriginRequestPolicy) => any;
3731
3763
  }
3764
+ /**
3765
+ * <p>The maximum number of distributions have been associated with the specified response headers
3766
+ * policy.</p>
3767
+ * <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
3768
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
3769
+ */
3770
+ export interface TooManyDistributionsAssociatedToResponseHeadersPolicy extends __SmithyException, $MetadataBearer {
3771
+ name: "TooManyDistributionsAssociatedToResponseHeadersPolicy";
3772
+ $fault: "client";
3773
+ Message?: string;
3774
+ }
3775
+ export declare namespace TooManyDistributionsAssociatedToResponseHeadersPolicy {
3776
+ /**
3777
+ * @internal
3778
+ */
3779
+ const filterSensitiveLog: (obj: TooManyDistributionsAssociatedToResponseHeadersPolicy) => any;
3780
+ }
3732
3781
  /**
3733
3782
  * <p>You have reached the maximum number of distributions that are associated with a CloudFront
3734
3783
  * function. 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
@@ -4703,7 +4752,7 @@ export declare namespace CreateFunctionResult {
4703
4752
  const filterSensitiveLog: (obj: CreateFunctionResult) => any;
4704
4753
  }
4705
4754
  /**
4706
- * <p>A function with the same name already exists in this account. To create a
4755
+ * <p>A function with the same name already exists in this Amazon Web Services account. To create a
4707
4756
  * function, you must provide a unique name. To update an existing function, use
4708
4757
  * <code>UpdateFunction</code>.</p>
4709
4758
  */
@@ -4734,7 +4783,7 @@ export declare namespace FunctionSizeLimitExceeded {
4734
4783
  const filterSensitiveLog: (obj: FunctionSizeLimitExceeded) => any;
4735
4784
  }
4736
4785
  /**
4737
- * <p>You have reached the maximum number of CloudFront functions for this account. For more
4786
+ * <p>You have reached the maximum number of CloudFront functions for this Amazon Web Services account. For more
4738
4787
  * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
4739
4788
  * <i>Amazon CloudFront Developer Guide</i>.</p>
4740
4789
  */
@@ -4996,7 +5045,7 @@ export declare namespace KeyGroupAlreadyExists {
4996
5045
  const filterSensitiveLog: (obj: KeyGroupAlreadyExists) => any;
4997
5046
  }
4998
5047
  /**
4999
- * <p>You have reached the maximum number of key groups for this account. For more
5048
+ * <p>You have reached the maximum number of key groups for this Amazon Web Services account. For more
5000
5049
  * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
5001
5050
  * <i>Amazon CloudFront Developer Guide</i>.</p>
5002
5051
  */
@@ -5408,7 +5457,7 @@ export declare namespace TooManyHeadersInOriginRequestPolicy {
5408
5457
  const filterSensitiveLog: (obj: TooManyHeadersInOriginRequestPolicy) => any;
5409
5458
  }
5410
5459
  /**
5411
- * <p>You have reached the maximum number of origin request policies for this account.
5460
+ * <p>You have reached the maximum number of origin request policies for this Amazon Web Services account.
5412
5461
  * 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
5413
5462
  * <i>Amazon CloudFront Developer Guide</i>.</p>
5414
5463
  */
@@ -5693,7 +5742,7 @@ export declare namespace RealtimeLogConfigAlreadyExists {
5693
5742
  const filterSensitiveLog: (obj: RealtimeLogConfigAlreadyExists) => any;
5694
5743
  }
5695
5744
  /**
5696
- * <p>You have reached the maximum number of real-time log configurations for this account.
5745
+ * <p>You have reached the maximum number of real-time log configurations for this Amazon Web Services account.
5697
5746
  * 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
5698
5747
  * <i>Amazon CloudFront Developer Guide</i>.</p>
5699
5748
  */
@@ -5709,1092 +5758,1357 @@ export declare namespace TooManyRealtimeLogConfigs {
5709
5758
  const filterSensitiveLog: (obj: TooManyRealtimeLogConfigs) => any;
5710
5759
  }
5711
5760
  /**
5712
- * <p>A complex type that controls whether access logs are written for this streaming distribution.</p>
5761
+ * <p>A list of HTTP header names that CloudFront includes as values for the
5762
+ * <code>Access-Control-Allow-Headers</code> HTTP response header.</p>
5763
+ * <p>For more information about the <code>Access-Control-Allow-Headers</code> HTTP response
5764
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers">Access-Control-Allow-Headers</a> in the MDN Web Docs.</p>
5713
5765
  */
5714
- export interface StreamingLoggingConfig {
5715
- /**
5716
- * <p>Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't
5717
- * want to enable logging when you create a streaming distribution or if you want to disable
5718
- * logging for an existing streaming distribution, specify <code>false</code> for
5719
- * <code>Enabled</code>, and specify <code>empty Bucket</code> and <code>Prefix</code>
5720
- * elements. If you specify <code>false</code> for <code>Enabled</code> but you specify values
5721
- * for <code>Bucket</code> and <code>Prefix</code>, the values are automatically deleted.
5722
- * </p>
5723
- */
5724
- Enabled: boolean | undefined;
5766
+ export interface ResponseHeadersPolicyAccessControlAllowHeaders {
5725
5767
  /**
5726
- * <p>The Amazon S3 bucket to store the access logs in, for example, <code>myawslogbucket.s3.amazonaws.com</code>.</p>
5768
+ * <p>The number of HTTP header names in the list.</p>
5727
5769
  */
5728
- Bucket: string | undefined;
5770
+ Quantity: number | undefined;
5729
5771
  /**
5730
- * <p>An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example,
5731
- * <code>myprefix/</code>. If you want to enable logging, but you don't want to specify a prefix, you still must include
5732
- * an empty <code>Prefix</code> element in the <code>Logging</code> element.</p>
5772
+ * <p>The list of HTTP header names. You can specify <code>*</code> to allow all headers.</p>
5733
5773
  */
5734
- Prefix: string | undefined;
5774
+ Items: string[] | undefined;
5735
5775
  }
5736
- export declare namespace StreamingLoggingConfig {
5776
+ export declare namespace ResponseHeadersPolicyAccessControlAllowHeaders {
5737
5777
  /**
5738
5778
  * @internal
5739
5779
  */
5740
- const filterSensitiveLog: (obj: StreamingLoggingConfig) => any;
5780
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyAccessControlAllowHeaders) => any;
5741
5781
  }
5742
5782
  /**
5743
- * <p>A complex type that contains information about the Amazon S3 bucket from which you want
5744
- * CloudFront to get your media files for distribution.</p>
5783
+ * <p>A list of HTTP methods that CloudFront includes as values for the
5784
+ * <code>Access-Control-Allow-Methods</code> HTTP response header.</p>
5785
+ * <p>For more information about the <code>Access-Control-Allow-Methods</code> HTTP response
5786
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods">Access-Control-Allow-Methods</a> in the MDN Web Docs.</p>
5745
5787
  */
5746
- export interface S3Origin {
5788
+ export interface ResponseHeadersPolicyAccessControlAllowMethods {
5747
5789
  /**
5748
- * <p>The DNS name of the Amazon S3 origin. </p>
5790
+ * <p>The number of HTTP methods in the list.</p>
5749
5791
  */
5750
- DomainName: string | undefined;
5792
+ Quantity: number | undefined;
5751
5793
  /**
5752
- * <p>The CloudFront origin access identity to associate with the distribution. Use an origin
5753
- * access identity to configure the distribution so that end users can only access objects in an
5754
- * Amazon S3 bucket through CloudFront.</p>
5755
- * <p>If you want end users to be able to access objects using either the CloudFront URL or the
5756
- * Amazon S3 URL, specify an empty <code>OriginAccessIdentity</code> element.</p>
5757
- * <p>To delete the origin access identity from an existing distribution, update the
5758
- * distribution configuration and include an empty <code>OriginAccessIdentity</code>
5759
- * element.</p>
5760
- * <p>To replace the origin access identity, update the distribution configuration and
5761
- * specify the new origin access identity.</p>
5762
- * <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
5763
- * Identity to Restrict Access to Your Amazon S3 Content</a> in the <i>
5764
- * Amazon CloudFront Developer Guide</i>.</p>
5794
+ * <p>The list of HTTP methods. Valid values are:</p>
5795
+ * <ul>
5796
+ * <li>
5797
+ * <p>
5798
+ * <code>GET</code>
5799
+ * </p>
5800
+ * </li>
5801
+ * <li>
5802
+ * <p>
5803
+ * <code>DELETE</code>
5804
+ * </p>
5805
+ * </li>
5806
+ * <li>
5807
+ * <p>
5808
+ * <code>HEAD</code>
5809
+ * </p>
5810
+ * </li>
5811
+ * <li>
5812
+ * <p>
5813
+ * <code>OPTIONS</code>
5814
+ * </p>
5815
+ * </li>
5816
+ * <li>
5817
+ * <p>
5818
+ * <code>PATCH</code>
5819
+ * </p>
5820
+ * </li>
5821
+ * <li>
5822
+ * <p>
5823
+ * <code>POST</code>
5824
+ * </p>
5825
+ * </li>
5826
+ * <li>
5827
+ * <p>
5828
+ * <code>PUT</code>
5829
+ * </p>
5830
+ * </li>
5831
+ * <li>
5832
+ * <p>
5833
+ * <code>ALL</code>
5834
+ * </p>
5835
+ * </li>
5836
+ * </ul>
5837
+ * <p>
5838
+ * <code>ALL</code> is a special value that includes all of the listed HTTP
5839
+ * methods.</p>
5765
5840
  */
5766
- OriginAccessIdentity: string | undefined;
5841
+ Items: (ResponseHeadersPolicyAccessControlAllowMethodsValues | string)[] | undefined;
5767
5842
  }
5768
- export declare namespace S3Origin {
5843
+ export declare namespace ResponseHeadersPolicyAccessControlAllowMethods {
5769
5844
  /**
5770
5845
  * @internal
5771
5846
  */
5772
- const filterSensitiveLog: (obj: S3Origin) => any;
5847
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyAccessControlAllowMethods) => any;
5773
5848
  }
5774
5849
  /**
5775
- * <p>The RTMP distribution's configuration information.</p>
5850
+ * <p>A list of origins (domain names) that CloudFront can use as the value for the
5851
+ * <code>Access-Control-Allow-Origin</code> HTTP response header.</p>
5852
+ * <p>For more information about the <code>Access-Control-Allow-Origin</code> HTTP response
5853
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin">Access-Control-Allow-Origin</a> in the MDN Web Docs.</p>
5776
5854
  */
5777
- export interface StreamingDistributionConfig {
5778
- /**
5779
- * <p>A unique value (for example, a date-time stamp) that ensures that the request can't be
5780
- * replayed.</p>
5781
- * <p>If the value of <code>CallerReference</code> is new (regardless of the content of the
5782
- * <code>StreamingDistributionConfig</code> object), CloudFront creates a new distribution.</p>
5783
- * <p>If <code>CallerReference</code> is a value that you already sent in a previous request to
5784
- * create a distribution, CloudFront returns a <code>DistributionAlreadyExists</code> error.</p>
5785
- */
5786
- CallerReference: string | undefined;
5787
- /**
5788
- * <p>A complex type that contains information about the Amazon S3 bucket from which you want
5789
- * CloudFront to get your media files for distribution. </p>
5790
- */
5791
- S3Origin: S3Origin | undefined;
5792
- /**
5793
- * <p>A complex type that contains information about CNAMEs (alternate domain names), if any,
5794
- * for this streaming distribution. </p>
5795
- */
5796
- Aliases?: Aliases;
5797
- /**
5798
- * <p>Any comments you want to include about the streaming distribution. </p>
5799
- */
5800
- Comment: string | undefined;
5801
- /**
5802
- * <p>A complex type that controls whether access logs are written for the streaming
5803
- * distribution. </p>
5804
- */
5805
- Logging?: StreamingLoggingConfig;
5806
- /**
5807
- * <p>A complex type that specifies any accounts that you want to permit to create signed
5808
- * URLs for private content. If you want the distribution to use signed URLs, include this
5809
- * element; if you want the distribution to use public URLs, remove this element. For more
5810
- * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving Private Content through
5811
- * CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. </p>
5812
- */
5813
- TrustedSigners: TrustedSigners | undefined;
5855
+ export interface ResponseHeadersPolicyAccessControlAllowOrigins {
5814
5856
  /**
5815
- * <p>A complex type that contains information about price class for this streaming
5816
- * distribution. </p>
5857
+ * <p>The number of origins in the list.</p>
5817
5858
  */
5818
- PriceClass?: PriceClass | string;
5859
+ Quantity: number | undefined;
5819
5860
  /**
5820
- * <p>Whether the streaming distribution is enabled to accept user requests for
5821
- * content.</p>
5861
+ * <p>The list of origins (domain names). You can specify <code>*</code> to allow all
5862
+ * origins.</p>
5822
5863
  */
5823
- Enabled: boolean | undefined;
5864
+ Items: string[] | undefined;
5824
5865
  }
5825
- export declare namespace StreamingDistributionConfig {
5866
+ export declare namespace ResponseHeadersPolicyAccessControlAllowOrigins {
5826
5867
  /**
5827
5868
  * @internal
5828
5869
  */
5829
- const filterSensitiveLog: (obj: StreamingDistributionConfig) => any;
5870
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyAccessControlAllowOrigins) => any;
5830
5871
  }
5831
5872
  /**
5832
- * <p>The request to create a new streaming distribution.</p>
5873
+ * <p>A list of HTTP headers that CloudFront includes as values for the
5874
+ * <code>Access-Control-Expose-Headers</code> HTTP response header.</p>
5875
+ * <p>For more information about the <code>Access-Control-Expose-Headers</code> HTTP
5876
+ * response header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers">Access-Control-Expose-Headers</a> in the MDN Web Docs.</p>
5833
5877
  */
5834
- export interface CreateStreamingDistributionRequest {
5878
+ export interface ResponseHeadersPolicyAccessControlExposeHeaders {
5835
5879
  /**
5836
- * <p>The streaming distribution's configuration information.</p>
5880
+ * <p>The number of HTTP headers in the list.</p>
5837
5881
  */
5838
- StreamingDistributionConfig: StreamingDistributionConfig | undefined;
5882
+ Quantity: number | undefined;
5883
+ /**
5884
+ * <p>The list of HTTP headers. You can specify <code>*</code> to expose all headers.</p>
5885
+ */
5886
+ Items?: string[];
5839
5887
  }
5840
- export declare namespace CreateStreamingDistributionRequest {
5888
+ export declare namespace ResponseHeadersPolicyAccessControlExposeHeaders {
5841
5889
  /**
5842
5890
  * @internal
5843
5891
  */
5844
- const filterSensitiveLog: (obj: CreateStreamingDistributionRequest) => any;
5892
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyAccessControlExposeHeaders) => any;
5845
5893
  }
5846
5894
  /**
5847
- * <p>A streaming distribution tells CloudFront where you want RTMP content to be delivered from, and the details about how to
5848
- * track and manage content delivery.</p>
5895
+ * <p>A configuration for a set of HTTP response headers that are used for cross-origin resource
5896
+ * sharing (CORS). CloudFront adds these headers to HTTP responses that it sends for CORS
5897
+ * requests that match a cache behavior associated with this response headers
5898
+ * policy.</p>
5899
+ * <p>For more information about CORS, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">Cross-Origin Resource
5900
+ * Sharing (CORS)</a> in the MDN Web Docs.</p>
5849
5901
  */
5850
- export interface StreamingDistribution {
5902
+ export interface ResponseHeadersPolicyCorsConfig {
5851
5903
  /**
5852
- * <p>The identifier for the RTMP distribution. For example:
5853
- * <code>EGTXBD79EXAMPLE</code>.</p>
5904
+ * <p>A list of origins (domain names) that CloudFront can use as the value for the
5905
+ * <code>Access-Control-Allow-Origin</code> HTTP response header.</p>
5906
+ * <p>For more information about the <code>Access-Control-Allow-Origin</code> HTTP response
5907
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin">Access-Control-Allow-Origin</a> in the MDN Web Docs.</p>
5854
5908
  */
5855
- Id: string | undefined;
5909
+ AccessControlAllowOrigins: ResponseHeadersPolicyAccessControlAllowOrigins | undefined;
5856
5910
  /**
5857
- * <p>The ARN (Amazon Resource Name) for the distribution. For example:
5858
- * <code>arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5</code>, where
5859
- * <code>123456789012</code> is your account ID.</p>
5911
+ * <p>A list of HTTP header names that CloudFront includes as values for the
5912
+ * <code>Access-Control-Allow-Headers</code> HTTP response header.</p>
5913
+ * <p>For more information about the <code>Access-Control-Allow-Headers</code> HTTP response
5914
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers">Access-Control-Allow-Headers</a> in the MDN Web Docs.</p>
5860
5915
  */
5861
- ARN: string | undefined;
5916
+ AccessControlAllowHeaders: ResponseHeadersPolicyAccessControlAllowHeaders | undefined;
5862
5917
  /**
5863
- * <p>The current status of the RTMP distribution. When the status is <code>Deployed</code>,
5864
- * the distribution's information is propagated to all CloudFront edge locations.</p>
5918
+ * <p>A list of HTTP methods that CloudFront includes as values for the
5919
+ * <code>Access-Control-Allow-Methods</code> HTTP response header.</p>
5920
+ * <p>For more information about the <code>Access-Control-Allow-Methods</code> HTTP response
5921
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods">Access-Control-Allow-Methods</a> in the MDN Web Docs.</p>
5865
5922
  */
5866
- Status: string | undefined;
5923
+ AccessControlAllowMethods: ResponseHeadersPolicyAccessControlAllowMethods | undefined;
5867
5924
  /**
5868
- * <p>The date and time that the distribution was last modified. </p>
5925
+ * <p>A Boolean that CloudFront uses as the value for the <code>Access-Control-Allow-Credentials</code>
5926
+ * HTTP response header.</p>
5927
+ * <p>For more information about the <code>Access-Control-Allow-Credentials</code> HTTP
5928
+ * response header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials">Access-Control-Allow-Credentials</a> in the MDN Web Docs.</p>
5869
5929
  */
5870
- LastModifiedTime?: Date;
5930
+ AccessControlAllowCredentials: boolean | undefined;
5871
5931
  /**
5872
- * <p>The domain name that corresponds to the streaming distribution, for example, <code>s5c39gqb8ow64r.cloudfront.net</code>. </p>
5932
+ * <p>A list of HTTP headers that CloudFront includes as values for the
5933
+ * <code>Access-Control-Expose-Headers</code> HTTP response header.</p>
5934
+ * <p>For more information about the <code>Access-Control-Expose-Headers</code> HTTP
5935
+ * response header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers">Access-Control-Expose-Headers</a> in the MDN Web Docs.</p>
5873
5936
  */
5874
- DomainName: string | undefined;
5937
+ AccessControlExposeHeaders?: ResponseHeadersPolicyAccessControlExposeHeaders;
5875
5938
  /**
5876
- * <p>A complex type that lists the accounts, if any, that you included in the
5877
- * <code>TrustedSigners</code> complex type for this distribution. These are the accounts that
5878
- * you want to allow to create signed URLs for private content.</p>
5879
- * <p>The <code>Signer</code> complex type lists the account number of the trusted
5880
- * signer or <code>self</code> if the signer is the account that created the distribution.
5881
- * The <code>Signer</code> element also includes the IDs of any active CloudFront key pairs that are
5882
- * associated with the trusted signer's account. If no <code>KeyPairId</code> element
5883
- * appears for a <code>Signer</code>, that signer can't create signed URLs.</p>
5884
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving Private
5885
- * Content through CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. </p>
5939
+ * <p>A number that CloudFront uses as the value for the <code>Access-Control-Max-Age</code> HTTP
5940
+ * response header.</p>
5941
+ * <p>For more information about the <code>Access-Control-Max-Age</code> HTTP response
5942
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age">Access-Control-Max-Age</a> in the MDN Web Docs.</p>
5886
5943
  */
5887
- ActiveTrustedSigners: ActiveTrustedSigners | undefined;
5944
+ AccessControlMaxAgeSec?: number;
5888
5945
  /**
5889
- * <p>The current configuration information for the RTMP distribution.</p>
5946
+ * <p>A Boolean that determines whether CloudFront overrides HTTP response headers received from the
5947
+ * origin with the ones specified in this response headers policy.</p>
5890
5948
  */
5891
- StreamingDistributionConfig: StreamingDistributionConfig | undefined;
5949
+ OriginOverride: boolean | undefined;
5892
5950
  }
5893
- export declare namespace StreamingDistribution {
5951
+ export declare namespace ResponseHeadersPolicyCorsConfig {
5894
5952
  /**
5895
5953
  * @internal
5896
5954
  */
5897
- const filterSensitiveLog: (obj: StreamingDistribution) => any;
5955
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyCorsConfig) => any;
5898
5956
  }
5899
5957
  /**
5900
- * <p>The returned result of the corresponding request.</p>
5958
+ * <p>An HTTP response header name and its value. CloudFront includes this header in HTTP responses that
5959
+ * it sends for requests that match a cache behavior that’s associated with this response
5960
+ * headers policy.</p>
5901
5961
  */
5902
- export interface CreateStreamingDistributionResult {
5962
+ export interface ResponseHeadersPolicyCustomHeader {
5903
5963
  /**
5904
- * <p>The streaming distribution's information.</p>
5964
+ * <p>The HTTP response header name.</p>
5905
5965
  */
5906
- StreamingDistribution?: StreamingDistribution;
5966
+ Header: string | undefined;
5907
5967
  /**
5908
- * <p>The fully qualified URI of the new streaming distribution resource just created.</p>
5968
+ * <p>The value for the HTTP response header.</p>
5909
5969
  */
5910
- Location?: string;
5970
+ Value: string | undefined;
5911
5971
  /**
5912
- * <p>The current version of the streaming distribution created.</p>
5972
+ * <p>A Boolean that determines whether CloudFront overrides a response header with the same name
5973
+ * received from the origin with the header specified here.</p>
5913
5974
  */
5914
- ETag?: string;
5975
+ Override: boolean | undefined;
5915
5976
  }
5916
- export declare namespace CreateStreamingDistributionResult {
5977
+ export declare namespace ResponseHeadersPolicyCustomHeader {
5917
5978
  /**
5918
5979
  * @internal
5919
5980
  */
5920
- const filterSensitiveLog: (obj: CreateStreamingDistributionResult) => any;
5981
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyCustomHeader) => any;
5921
5982
  }
5922
5983
  /**
5923
- * <p>The caller reference you attempted to create the streaming distribution with
5924
- * is associated with another distribution</p>
5984
+ * <p>A list of HTTP response header names and their values. CloudFront includes these headers in HTTP
5985
+ * responses that it sends for requests that match a cache behavior that’s associated with
5986
+ * this response headers policy.</p>
5925
5987
  */
5926
- export interface StreamingDistributionAlreadyExists extends __SmithyException, $MetadataBearer {
5927
- name: "StreamingDistributionAlreadyExists";
5928
- $fault: "client";
5929
- Message?: string;
5930
- }
5931
- export declare namespace StreamingDistributionAlreadyExists {
5988
+ export interface ResponseHeadersPolicyCustomHeadersConfig {
5932
5989
  /**
5933
- * @internal
5990
+ * <p>The number of HTTP response headers in the list.</p>
5934
5991
  */
5935
- const filterSensitiveLog: (obj: StreamingDistributionAlreadyExists) => any;
5936
- }
5937
- /**
5938
- * <p>Your request contains more CNAMEs than are allowed per distribution.</p>
5939
- */
5940
- export interface TooManyStreamingDistributionCNAMEs extends __SmithyException, $MetadataBearer {
5941
- name: "TooManyStreamingDistributionCNAMEs";
5942
- $fault: "client";
5943
- Message?: string;
5944
- }
5945
- export declare namespace TooManyStreamingDistributionCNAMEs {
5992
+ Quantity: number | undefined;
5946
5993
  /**
5947
- * @internal
5994
+ * <p>The list of HTTP response headers and their values.</p>
5948
5995
  */
5949
- const filterSensitiveLog: (obj: TooManyStreamingDistributionCNAMEs) => any;
5950
- }
5951
- /**
5952
- * <p>Processing your request would cause you to exceed the maximum number of streaming distributions allowed.</p>
5953
- */
5954
- export interface TooManyStreamingDistributions extends __SmithyException, $MetadataBearer {
5955
- name: "TooManyStreamingDistributions";
5956
- $fault: "client";
5957
- Message?: string;
5996
+ Items?: ResponseHeadersPolicyCustomHeader[];
5958
5997
  }
5959
- export declare namespace TooManyStreamingDistributions {
5998
+ export declare namespace ResponseHeadersPolicyCustomHeadersConfig {
5960
5999
  /**
5961
6000
  * @internal
5962
6001
  */
5963
- const filterSensitiveLog: (obj: TooManyStreamingDistributions) => any;
6002
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyCustomHeadersConfig) => any;
5964
6003
  }
5965
6004
  /**
5966
- * <p>A streaming distribution Configuration and a list of tags to be associated with the
5967
- * streaming distribution.</p>
6005
+ * <p>The policy directives and their values that CloudFront includes as values for the
6006
+ * <code>Content-Security-Policy</code> HTTP response header.</p>
6007
+ * <p>For more information about the <code>Content-Security-Policy</code> HTTP response
6008
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy">Content-Security-Policy</a> in the MDN Web Docs.</p>
5968
6009
  */
5969
- export interface StreamingDistributionConfigWithTags {
6010
+ export interface ResponseHeadersPolicyContentSecurityPolicy {
5970
6011
  /**
5971
- * <p>A streaming distribution Configuration.</p>
6012
+ * <p>A Boolean that determines whether CloudFront overrides the <code>Content-Security-Policy</code>
6013
+ * HTTP response header received from the origin with the one specified in this response
6014
+ * headers policy.</p>
5972
6015
  */
5973
- StreamingDistributionConfig: StreamingDistributionConfig | undefined;
6016
+ Override: boolean | undefined;
5974
6017
  /**
5975
- * <p>A complex type that contains zero or more <code>Tag</code> elements.</p>
6018
+ * <p>The policy directives and their values that CloudFront includes as values for the
6019
+ * <code>Content-Security-Policy</code> HTTP response header.</p>
5976
6020
  */
5977
- Tags: Tags | undefined;
6021
+ ContentSecurityPolicy: string | undefined;
5978
6022
  }
5979
- export declare namespace StreamingDistributionConfigWithTags {
6023
+ export declare namespace ResponseHeadersPolicyContentSecurityPolicy {
5980
6024
  /**
5981
6025
  * @internal
5982
6026
  */
5983
- const filterSensitiveLog: (obj: StreamingDistributionConfigWithTags) => any;
6027
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyContentSecurityPolicy) => any;
5984
6028
  }
5985
6029
  /**
5986
- * <p>The request to create a new streaming distribution with tags.</p>
6030
+ * <p>Determines whether CloudFront includes the <code>X-Content-Type-Options</code> HTTP response
6031
+ * header with its value set to <code>nosniff</code>.</p>
6032
+ * <p>For more information about the <code>X-Content-Type-Options</code> HTTP response
6033
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options">X-Content-Type-Options</a> in the MDN Web Docs.</p>
5987
6034
  */
5988
- export interface CreateStreamingDistributionWithTagsRequest {
6035
+ export interface ResponseHeadersPolicyContentTypeOptions {
5989
6036
  /**
5990
- * <p> The streaming distribution's configuration information. </p>
6037
+ * <p>A Boolean that determines whether CloudFront overrides the <code>X-Content-Type-Options</code>
6038
+ * HTTP response header received from the origin with the one specified in this response
6039
+ * headers policy.</p>
5991
6040
  */
5992
- StreamingDistributionConfigWithTags: StreamingDistributionConfigWithTags | undefined;
6041
+ Override: boolean | undefined;
5993
6042
  }
5994
- export declare namespace CreateStreamingDistributionWithTagsRequest {
6043
+ export declare namespace ResponseHeadersPolicyContentTypeOptions {
5995
6044
  /**
5996
6045
  * @internal
5997
6046
  */
5998
- const filterSensitiveLog: (obj: CreateStreamingDistributionWithTagsRequest) => any;
6047
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyContentTypeOptions) => any;
6048
+ }
6049
+ export declare enum FrameOptionsList {
6050
+ DENY = "DENY",
6051
+ SAMEORIGIN = "SAMEORIGIN"
5999
6052
  }
6000
6053
  /**
6001
- * <p>The returned result of the corresponding request. </p>
6054
+ * <p>Determines whether CloudFront includes the <code>X-Frame-Options</code> HTTP response header and
6055
+ * the header’s value.</p>
6056
+ * <p>For more information about the <code>X-Frame-Options</code> HTTP response header, see
6057
+ * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
6002
6058
  */
6003
- export interface CreateStreamingDistributionWithTagsResult {
6004
- /**
6005
- * <p>The streaming distribution's information. </p>
6006
- */
6007
- StreamingDistribution?: StreamingDistribution;
6059
+ export interface ResponseHeadersPolicyFrameOptions {
6008
6060
  /**
6009
- * <p>The fully qualified URI of the new streaming distribution resource just created.</p>
6061
+ * <p>A Boolean that determines whether CloudFront overrides the <code>X-Frame-Options</code> HTTP
6062
+ * response header received from the origin with the one specified in this response headers
6063
+ * policy.</p>
6010
6064
  */
6011
- Location?: string;
6065
+ Override: boolean | undefined;
6012
6066
  /**
6013
- * <p>The current version of the distribution created.</p>
6067
+ * <p>The value of the <code>X-Frame-Options</code> HTTP response header. Valid values are
6068
+ * <code>DENY</code> and <code>SAMEORIGIN</code>. </p>
6069
+ * <p>For more information about these values, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
6014
6070
  */
6015
- ETag?: string;
6071
+ FrameOption: FrameOptionsList | string | undefined;
6016
6072
  }
6017
- export declare namespace CreateStreamingDistributionWithTagsResult {
6073
+ export declare namespace ResponseHeadersPolicyFrameOptions {
6018
6074
  /**
6019
6075
  * @internal
6020
6076
  */
6021
- const filterSensitiveLog: (obj: CreateStreamingDistributionWithTagsResult) => any;
6077
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyFrameOptions) => any;
6022
6078
  }
6023
- export interface DeleteCachePolicyRequest {
6079
+ export declare enum ReferrerPolicyList {
6080
+ no_referrer = "no-referrer",
6081
+ no_referrer_when_downgrade = "no-referrer-when-downgrade",
6082
+ origin = "origin",
6083
+ origin_when_cross_origin = "origin-when-cross-origin",
6084
+ same_origin = "same-origin",
6085
+ strict_origin = "strict-origin",
6086
+ strict_origin_when_cross_origin = "strict-origin-when-cross-origin",
6087
+ unsafe_url = "unsafe-url"
6088
+ }
6089
+ /**
6090
+ * <p>Determines whether CloudFront includes the <code>Referrer-Policy</code> HTTP response header and
6091
+ * the header’s value.</p>
6092
+ * <p>For more information about the <code>Referrer-Policy</code> HTTP response header, see
6093
+ * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy">Referrer-Policy</a> in the MDN Web Docs.</p>
6094
+ */
6095
+ export interface ResponseHeadersPolicyReferrerPolicy {
6024
6096
  /**
6025
- * <p>The unique identifier for the cache policy that you are deleting. To get the
6026
- * identifier, you can use <code>ListCachePolicies</code>.</p>
6097
+ * <p>A Boolean that determines whether CloudFront overrides the <code>Referrer-Policy</code> HTTP
6098
+ * response header received from the origin with the one specified in this response headers
6099
+ * policy.</p>
6027
6100
  */
6028
- Id: string | undefined;
6101
+ Override: boolean | undefined;
6029
6102
  /**
6030
- * <p>The version of the cache policy that you are deleting. The version is the cache
6031
- * policy’s <code>ETag</code> value, which you can get using
6032
- * <code>ListCachePolicies</code>, <code>GetCachePolicy</code>, or
6033
- * <code>GetCachePolicyConfig</code>.</p>
6103
+ * <p>The value of the <code>Referrer-Policy</code> HTTP response header. Valid values
6104
+ * are:</p>
6105
+ * <ul>
6106
+ * <li>
6107
+ * <p>
6108
+ * <code>no-referrer</code>
6109
+ * </p>
6110
+ * </li>
6111
+ * <li>
6112
+ * <p>
6113
+ * <code>no-referrer-when-downgrade</code>
6114
+ * </p>
6115
+ * </li>
6116
+ * <li>
6117
+ * <p>
6118
+ * <code>origin</code>
6119
+ * </p>
6120
+ * </li>
6121
+ * <li>
6122
+ * <p>
6123
+ * <code>origin-when-cross-origin</code>
6124
+ * </p>
6125
+ * </li>
6126
+ * <li>
6127
+ * <p>
6128
+ * <code>same-origin</code>
6129
+ * </p>
6130
+ * </li>
6131
+ * <li>
6132
+ * <p>
6133
+ * <code>strict-origin</code>
6134
+ * </p>
6135
+ * </li>
6136
+ * <li>
6137
+ * <p>
6138
+ * <code>strict-origin-when-cross-origin</code>
6139
+ * </p>
6140
+ * </li>
6141
+ * <li>
6142
+ * <p>
6143
+ * <code>unsafe-url</code>
6144
+ * </p>
6145
+ * </li>
6146
+ * </ul>
6147
+ * <p>For more information about these values, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy">Referrer-Policy</a> in the MDN Web Docs.</p>
6034
6148
  */
6035
- IfMatch?: string;
6149
+ ReferrerPolicy: ReferrerPolicyList | string | undefined;
6036
6150
  }
6037
- export declare namespace DeleteCachePolicyRequest {
6151
+ export declare namespace ResponseHeadersPolicyReferrerPolicy {
6038
6152
  /**
6039
6153
  * @internal
6040
6154
  */
6041
- const filterSensitiveLog: (obj: DeleteCachePolicyRequest) => any;
6155
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyReferrerPolicy) => any;
6042
6156
  }
6043
6157
  /**
6044
- * <p>You cannot delete a managed policy.</p>
6158
+ * <p>Determines whether CloudFront includes the <code>Strict-Transport-Security</code> HTTP response
6159
+ * header and the header’s value.</p>
6160
+ * <p>For more information about the <code>Strict-Transport-Security</code> HTTP response
6161
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security">Strict-Transport-Security</a> in the MDN Web Docs.</p>
6045
6162
  */
6046
- export interface IllegalDelete extends __SmithyException, $MetadataBearer {
6047
- name: "IllegalDelete";
6048
- $fault: "client";
6049
- Message?: string;
6163
+ export interface ResponseHeadersPolicyStrictTransportSecurity {
6164
+ /**
6165
+ * <p>A Boolean that determines whether CloudFront overrides the <code>Strict-Transport-Security</code>
6166
+ * HTTP response header received from the origin with the one specified in this response
6167
+ * headers policy.</p>
6168
+ */
6169
+ Override: boolean | undefined;
6170
+ /**
6171
+ * <p>A Boolean that determines whether CloudFront includes the <code>includeSubDomains</code> directive
6172
+ * in the <code>Strict-Transport-Security</code> HTTP response header.</p>
6173
+ */
6174
+ IncludeSubdomains?: boolean;
6175
+ /**
6176
+ * <p>A Boolean that determines whether CloudFront includes the <code>preload</code> directive in the
6177
+ * <code>Strict-Transport-Security</code> HTTP response header.</p>
6178
+ */
6179
+ Preload?: boolean;
6180
+ /**
6181
+ * <p>A number that CloudFront uses as the value for the <code>max-age</code> directive in the
6182
+ * <code>Strict-Transport-Security</code> HTTP response header.</p>
6183
+ */
6184
+ AccessControlMaxAgeSec: number | undefined;
6050
6185
  }
6051
- export declare namespace IllegalDelete {
6186
+ export declare namespace ResponseHeadersPolicyStrictTransportSecurity {
6052
6187
  /**
6053
6188
  * @internal
6054
6189
  */
6055
- const filterSensitiveLog: (obj: IllegalDelete) => any;
6190
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyStrictTransportSecurity) => any;
6056
6191
  }
6057
6192
  /**
6058
- * <p>The <code>If-Match</code> version is missing or not valid.</p>
6193
+ * <p>Determines whether CloudFront includes the <code>X-XSS-Protection</code> HTTP response header and
6194
+ * the header’s value.</p>
6195
+ * <p>For more information about the <code>X-XSS-Protection</code> HTTP response header, see
6196
+ * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> in the MDN Web Docs.</p>
6059
6197
  */
6060
- export interface InvalidIfMatchVersion extends __SmithyException, $MetadataBearer {
6061
- name: "InvalidIfMatchVersion";
6062
- $fault: "client";
6063
- Message?: string;
6198
+ export interface ResponseHeadersPolicyXSSProtection {
6199
+ /**
6200
+ * <p>A Boolean that determines whether CloudFront overrides the <code>X-XSS-Protection</code> HTTP
6201
+ * response header received from the origin with the one specified in this response headers
6202
+ * policy.</p>
6203
+ */
6204
+ Override: boolean | undefined;
6205
+ /**
6206
+ * <p>A Boolean that determines the value of the <code>X-XSS-Protection</code> HTTP response
6207
+ * header. When this setting is <code>true</code>, the value of the
6208
+ * <code>X-XSS-Protection</code> header is <code>1</code>. When this setting is
6209
+ * <code>false</code>, the value of the <code>X-XSS-Protection</code> header is
6210
+ * <code>0</code>.</p>
6211
+ * <p>For more information about these settings, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> in the MDN Web Docs.</p>
6212
+ */
6213
+ Protection: boolean | undefined;
6214
+ /**
6215
+ * <p>A Boolean that determines whether CloudFront includes the <code>mode=block</code> directive in the
6216
+ * <code>X-XSS-Protection</code> header.</p>
6217
+ * <p>For more information about this directive, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> in the MDN Web Docs.</p>
6218
+ */
6219
+ ModeBlock?: boolean;
6220
+ /**
6221
+ * <p>A reporting URI, which CloudFront uses as the value of the <code>report</code> directive in the
6222
+ * <code>X-XSS-Protection</code> header.</p>
6223
+ * <p>You cannot specify a <code>ReportUri</code> when <code>ModeBlock</code> is
6224
+ * <code>true</code>.</p>
6225
+ * <p>For more information about using a reporting URL, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> in the MDN Web Docs.</p>
6226
+ */
6227
+ ReportUri?: string;
6064
6228
  }
6065
- export declare namespace InvalidIfMatchVersion {
6229
+ export declare namespace ResponseHeadersPolicyXSSProtection {
6066
6230
  /**
6067
6231
  * @internal
6068
6232
  */
6069
- const filterSensitiveLog: (obj: InvalidIfMatchVersion) => any;
6233
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyXSSProtection) => any;
6070
6234
  }
6071
6235
  /**
6072
- * <p>The precondition in one or more of the request fields evaluated to
6073
- * <code>false</code>.</p>
6236
+ * <p>A configuration for a set of security-related HTTP response headers. CloudFront adds these headers
6237
+ * to HTTP responses that it sends for requests that match a cache behavior associated with
6238
+ * this response headers policy.</p>
6074
6239
  */
6075
- export interface PreconditionFailed extends __SmithyException, $MetadataBearer {
6076
- name: "PreconditionFailed";
6077
- $fault: "client";
6078
- Message?: string;
6240
+ export interface ResponseHeadersPolicySecurityHeadersConfig {
6241
+ /**
6242
+ * <p>Determines whether CloudFront includes the <code>X-XSS-Protection</code> HTTP response header and
6243
+ * the header’s value.</p>
6244
+ * <p>For more information about the <code>X-XSS-Protection</code> HTTP response header, see
6245
+ * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> in the MDN Web Docs.</p>
6246
+ */
6247
+ XSSProtection?: ResponseHeadersPolicyXSSProtection;
6248
+ /**
6249
+ * <p>Determines whether CloudFront includes the <code>X-Frame-Options</code> HTTP response header and
6250
+ * the header’s value.</p>
6251
+ * <p>For more information about the <code>X-Frame-Options</code> HTTP response header, see
6252
+ * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
6253
+ */
6254
+ FrameOptions?: ResponseHeadersPolicyFrameOptions;
6255
+ /**
6256
+ * <p>Determines whether CloudFront includes the <code>Referrer-Policy</code> HTTP response header and
6257
+ * the header’s value.</p>
6258
+ * <p>For more information about the <code>Referrer-Policy</code> HTTP response header, see
6259
+ * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy">Referrer-Policy</a> in the MDN Web Docs.</p>
6260
+ */
6261
+ ReferrerPolicy?: ResponseHeadersPolicyReferrerPolicy;
6262
+ /**
6263
+ * <p>The policy directives and their values that CloudFront includes as values for the
6264
+ * <code>Content-Security-Policy</code> HTTP response header.</p>
6265
+ * <p>For more information about the <code>Content-Security-Policy</code> HTTP response
6266
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy">Content-Security-Policy</a> in the MDN Web Docs.</p>
6267
+ */
6268
+ ContentSecurityPolicy?: ResponseHeadersPolicyContentSecurityPolicy;
6269
+ /**
6270
+ * <p>Determines whether CloudFront includes the <code>X-Content-Type-Options</code> HTTP response
6271
+ * header with its value set to <code>nosniff</code>.</p>
6272
+ * <p>For more information about the <code>X-Content-Type-Options</code> HTTP response
6273
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options">X-Content-Type-Options</a> in the MDN Web Docs.</p>
6274
+ */
6275
+ ContentTypeOptions?: ResponseHeadersPolicyContentTypeOptions;
6276
+ /**
6277
+ * <p>Determines whether CloudFront includes the <code>Strict-Transport-Security</code> HTTP response
6278
+ * header and the header’s value.</p>
6279
+ * <p>For more information about the <code>Strict-Transport-Security</code> HTTP response
6280
+ * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security">Strict-Transport-Security</a> in the MDN Web Docs.</p>
6281
+ */
6282
+ StrictTransportSecurity?: ResponseHeadersPolicyStrictTransportSecurity;
6079
6283
  }
6080
- export declare namespace PreconditionFailed {
6284
+ export declare namespace ResponseHeadersPolicySecurityHeadersConfig {
6081
6285
  /**
6082
6286
  * @internal
6083
6287
  */
6084
- const filterSensitiveLog: (obj: PreconditionFailed) => any;
6288
+ const filterSensitiveLog: (obj: ResponseHeadersPolicySecurityHeadersConfig) => any;
6085
6289
  }
6086
6290
  /**
6087
- * <p>The Origin Access Identity specified is already in use.</p>
6291
+ * <p>A response headers policy configuration.</p>
6292
+ * <p>A response headers policy configuration contains metadata about the response headers policy,
6293
+ * and configurations for sets of HTTP response headers and their values. CloudFront adds the
6294
+ * headers in the policy to HTTP responses that it sends for requests that match a cache
6295
+ * behavior associated with the policy.</p>
6088
6296
  */
6089
- export interface CloudFrontOriginAccessIdentityInUse extends __SmithyException, $MetadataBearer {
6090
- name: "CloudFrontOriginAccessIdentityInUse";
6091
- $fault: "client";
6092
- Message?: string;
6297
+ export interface ResponseHeadersPolicyConfig {
6298
+ /**
6299
+ * <p>A comment to describe the response headers policy.</p>
6300
+ * <p>The comment cannot be longer than 128 characters.</p>
6301
+ */
6302
+ Comment?: string;
6303
+ /**
6304
+ * <p>A name to identify the response headers policy.</p>
6305
+ * <p>The name must be unique for response headers policies in this Amazon Web Services account.</p>
6306
+ */
6307
+ Name: string | undefined;
6308
+ /**
6309
+ * <p>A configuration for a set of HTTP response headers that are used for cross-origin
6310
+ * resource sharing (CORS).</p>
6311
+ */
6312
+ CorsConfig?: ResponseHeadersPolicyCorsConfig;
6313
+ /**
6314
+ * <p>A configuration for a set of security-related HTTP response headers.</p>
6315
+ */
6316
+ SecurityHeadersConfig?: ResponseHeadersPolicySecurityHeadersConfig;
6317
+ /**
6318
+ * <p>A configuration for a set of custom HTTP response headers.</p>
6319
+ */
6320
+ CustomHeadersConfig?: ResponseHeadersPolicyCustomHeadersConfig;
6093
6321
  }
6094
- export declare namespace CloudFrontOriginAccessIdentityInUse {
6322
+ export declare namespace ResponseHeadersPolicyConfig {
6095
6323
  /**
6096
6324
  * @internal
6097
6325
  */
6098
- const filterSensitiveLog: (obj: CloudFrontOriginAccessIdentityInUse) => any;
6326
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyConfig) => any;
6327
+ }
6328
+ export interface CreateResponseHeadersPolicyRequest {
6329
+ /**
6330
+ * <p>Contains metadata about the response headers policy, and a set of configurations that
6331
+ * specify the response headers.</p>
6332
+ */
6333
+ ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfig | undefined;
6334
+ }
6335
+ export declare namespace CreateResponseHeadersPolicyRequest {
6336
+ /**
6337
+ * @internal
6338
+ */
6339
+ const filterSensitiveLog: (obj: CreateResponseHeadersPolicyRequest) => any;
6099
6340
  }
6100
6341
  /**
6101
- * <p>Deletes a origin access identity.</p>
6342
+ * <p>A response headers policy.</p>
6343
+ * <p>A response headers policy contains information about a set of HTTP response headers
6344
+ * and their values.</p>
6345
+ * <p>After you create a response headers policy, you can use its ID to attach it to one or more
6346
+ * cache behaviors in a CloudFront distribution. When it’s attached to a cache behavior, CloudFront
6347
+ * adds the headers in the policy to HTTP responses that it sends for requests that match
6348
+ * the cache behavior.</p>
6349
+ * <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
6350
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
6102
6351
  */
6103
- export interface DeleteCloudFrontOriginAccessIdentityRequest {
6352
+ export interface ResponseHeadersPolicy {
6104
6353
  /**
6105
- * <p>The origin access identity's ID.</p>
6354
+ * <p>The identifier for the response headers policy.</p>
6106
6355
  */
6107
6356
  Id: string | undefined;
6108
6357
  /**
6109
- * <p>The value of the <code>ETag</code> header you received from a previous <code>GET</code>
6110
- * or <code>PUT</code> request. For example: <code>E2QWRUHAPOMQZL</code>.</p>
6358
+ * <p>The date and time when the response headers policy was last modified.</p>
6111
6359
  */
6112
- IfMatch?: string;
6360
+ LastModifiedTime: Date | undefined;
6361
+ /**
6362
+ * <p>A response headers policy configuration.</p>
6363
+ * <p>A response headers policy contains information about a set of HTTP response headers and
6364
+ * their values. CloudFront adds the headers in the policy to HTTP responses that it sends for
6365
+ * requests that match a cache behavior that’s associated with the policy.</p>
6366
+ */
6367
+ ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfig | undefined;
6113
6368
  }
6114
- export declare namespace DeleteCloudFrontOriginAccessIdentityRequest {
6369
+ export declare namespace ResponseHeadersPolicy {
6115
6370
  /**
6116
6371
  * @internal
6117
6372
  */
6118
- const filterSensitiveLog: (obj: DeleteCloudFrontOriginAccessIdentityRequest) => any;
6373
+ const filterSensitiveLog: (obj: ResponseHeadersPolicy) => any;
6374
+ }
6375
+ export interface CreateResponseHeadersPolicyResult {
6376
+ /**
6377
+ * <p>Contains a response headers policy.</p>
6378
+ */
6379
+ ResponseHeadersPolicy?: ResponseHeadersPolicy;
6380
+ /**
6381
+ * <p>The URL of the response headers policy.</p>
6382
+ */
6383
+ Location?: string;
6384
+ /**
6385
+ * <p>The version identifier for the current version of the response headers policy.</p>
6386
+ */
6387
+ ETag?: string;
6388
+ }
6389
+ export declare namespace CreateResponseHeadersPolicyResult {
6390
+ /**
6391
+ * @internal
6392
+ */
6393
+ const filterSensitiveLog: (obj: CreateResponseHeadersPolicyResult) => any;
6119
6394
  }
6120
6395
  /**
6121
- * <p>The specified origin access identity does not exist.</p>
6396
+ * <p>A response headers policy with this name already exists. You must provide a unique name. To
6397
+ * modify an existing response headers policy, use
6398
+ * <code>UpdateResponseHeadersPolicy</code>.</p>
6122
6399
  */
6123
- export interface NoSuchCloudFrontOriginAccessIdentity extends __SmithyException, $MetadataBearer {
6124
- name: "NoSuchCloudFrontOriginAccessIdentity";
6400
+ export interface ResponseHeadersPolicyAlreadyExists extends __SmithyException, $MetadataBearer {
6401
+ name: "ResponseHeadersPolicyAlreadyExists";
6125
6402
  $fault: "client";
6126
6403
  Message?: string;
6127
6404
  }
6128
- export declare namespace NoSuchCloudFrontOriginAccessIdentity {
6405
+ export declare namespace ResponseHeadersPolicyAlreadyExists {
6129
6406
  /**
6130
6407
  * @internal
6131
6408
  */
6132
- const filterSensitiveLog: (obj: NoSuchCloudFrontOriginAccessIdentity) => any;
6409
+ const filterSensitiveLog: (obj: ResponseHeadersPolicyAlreadyExists) => any;
6133
6410
  }
6134
6411
  /**
6135
- * <p>This action deletes a web distribution. To delete a web distribution using the CloudFront
6136
- * API, perform the following steps.</p>
6137
- * <p>
6138
- * <b>To delete a web distribution using the CloudFront API:</b>
6139
- * </p>
6140
- * <ol>
6141
- * <li>
6142
- * <p>Disable the web distribution </p>
6143
- * </li>
6144
- * <li>
6145
- * <p>Submit a <code>GET Distribution Config</code> request to get the current
6146
- * configuration and the <code>Etag</code> header for the distribution.</p>
6147
- * </li>
6148
- * <li>
6149
- * <p>Update the XML document that was returned in the response to your <code>GET
6150
- * Distribution Config</code> request to change the value of <code>Enabled</code> to
6151
- * <code>false</code>.</p>
6152
- * </li>
6153
- * <li>
6154
- * <p>Submit a <code>PUT Distribution Config</code> request to update the configuration
6155
- * for your distribution. In the request body, include the XML document that you updated in
6156
- * Step 3. Set the value of the HTTP <code>If-Match</code> header to the value of the
6157
- * <code>ETag</code> header that CloudFront returned when you submitted the <code>GET
6158
- * Distribution Config</code> request in Step 2.</p>
6159
- * </li>
6160
- * <li>
6161
- * <p>Review the response to the <code>PUT Distribution Config</code> request to confirm
6162
- * that the distribution was successfully disabled.</p>
6163
- * </li>
6164
- * <li>
6165
- * <p>Submit a <code>GET Distribution</code> request to confirm that your changes have
6166
- * propagated. When propagation is complete, the value of <code>Status</code> is
6167
- * <code>Deployed</code>.</p>
6168
- * </li>
6169
- * <li>
6170
- * <p>Submit a <code>DELETE Distribution</code> request. Set the value of the HTTP
6171
- * <code>If-Match</code> header to the value of the <code>ETag</code> header that CloudFront
6172
- * returned when you submitted the <code>GET Distribution Config</code> request in Step
6173
- * 6.</p>
6174
- * </li>
6175
- * <li>
6176
- * <p>Review the response to your <code>DELETE Distribution</code> request to confirm
6177
- * that the distribution was successfully deleted.</p>
6178
- * </li>
6179
- * </ol>
6180
- * <p>For information about deleting a distribution using the CloudFront console, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html">Deleting a Distribution</a> in the
6412
+ * <p>The number of custom headers in the response headers policy exceeds the maximum.</p>
6413
+ * <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
6181
6414
  * <i>Amazon CloudFront Developer Guide</i>.</p>
6182
6415
  */
6183
- export interface DeleteDistributionRequest {
6416
+ export interface TooManyCustomHeadersInResponseHeadersPolicy extends __SmithyException, $MetadataBearer {
6417
+ name: "TooManyCustomHeadersInResponseHeadersPolicy";
6418
+ $fault: "client";
6419
+ Message?: string;
6420
+ }
6421
+ export declare namespace TooManyCustomHeadersInResponseHeadersPolicy {
6184
6422
  /**
6185
- * <p>The distribution ID. </p>
6423
+ * @internal
6186
6424
  */
6187
- Id: string | undefined;
6425
+ const filterSensitiveLog: (obj: TooManyCustomHeadersInResponseHeadersPolicy) => any;
6426
+ }
6427
+ /**
6428
+ * <p>You have reached the maximum number of response headers policies for this
6429
+ * Amazon Web Services account.</p>
6430
+ * <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
6431
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
6432
+ */
6433
+ export interface TooManyResponseHeadersPolicies extends __SmithyException, $MetadataBearer {
6434
+ name: "TooManyResponseHeadersPolicies";
6435
+ $fault: "client";
6436
+ Message?: string;
6437
+ }
6438
+ export declare namespace TooManyResponseHeadersPolicies {
6188
6439
  /**
6189
- * <p>The value of the <code>ETag</code> header that you received when you disabled the
6190
- * distribution. For example: <code>E2QWRUHAPOMQZL</code>. </p>
6440
+ * @internal
6191
6441
  */
6192
- IfMatch?: string;
6442
+ const filterSensitiveLog: (obj: TooManyResponseHeadersPolicies) => any;
6193
6443
  }
6194
- export declare namespace DeleteDistributionRequest {
6444
+ /**
6445
+ * <p>A complex type that controls whether access logs are written for this streaming distribution.</p>
6446
+ */
6447
+ export interface StreamingLoggingConfig {
6448
+ /**
6449
+ * <p>Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't
6450
+ * want to enable logging when you create a streaming distribution or if you want to disable
6451
+ * logging for an existing streaming distribution, specify <code>false</code> for
6452
+ * <code>Enabled</code>, and specify <code>empty Bucket</code> and <code>Prefix</code>
6453
+ * elements. If you specify <code>false</code> for <code>Enabled</code> but you specify values
6454
+ * for <code>Bucket</code> and <code>Prefix</code>, the values are automatically deleted.
6455
+ * </p>
6456
+ */
6457
+ Enabled: boolean | undefined;
6458
+ /**
6459
+ * <p>The Amazon S3 bucket to store the access logs in, for example, <code>myawslogbucket.s3.amazonaws.com</code>.</p>
6460
+ */
6461
+ Bucket: string | undefined;
6462
+ /**
6463
+ * <p>An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example,
6464
+ * <code>myprefix/</code>. If you want to enable logging, but you don't want to specify a prefix, you still must include
6465
+ * an empty <code>Prefix</code> element in the <code>Logging</code> element.</p>
6466
+ */
6467
+ Prefix: string | undefined;
6468
+ }
6469
+ export declare namespace StreamingLoggingConfig {
6195
6470
  /**
6196
6471
  * @internal
6197
6472
  */
6198
- const filterSensitiveLog: (obj: DeleteDistributionRequest) => any;
6473
+ const filterSensitiveLog: (obj: StreamingLoggingConfig) => any;
6199
6474
  }
6200
6475
  /**
6201
- * <p>The specified CloudFront distribution is not disabled. You must disable
6202
- * the distribution before you can delete it.</p>
6476
+ * <p>A complex type that contains information about the Amazon S3 bucket from which you want
6477
+ * CloudFront to get your media files for distribution.</p>
6203
6478
  */
6204
- export interface DistributionNotDisabled extends __SmithyException, $MetadataBearer {
6205
- name: "DistributionNotDisabled";
6206
- $fault: "client";
6207
- Message?: string;
6479
+ export interface S3Origin {
6480
+ /**
6481
+ * <p>The DNS name of the Amazon S3 origin. </p>
6482
+ */
6483
+ DomainName: string | undefined;
6484
+ /**
6485
+ * <p>The CloudFront origin access identity to associate with the distribution. Use an origin
6486
+ * access identity to configure the distribution so that end users can only access objects in an
6487
+ * Amazon S3 bucket through CloudFront.</p>
6488
+ * <p>If you want end users to be able to access objects using either the CloudFront URL or the
6489
+ * Amazon S3 URL, specify an empty <code>OriginAccessIdentity</code> element.</p>
6490
+ * <p>To delete the origin access identity from an existing distribution, update the
6491
+ * distribution configuration and include an empty <code>OriginAccessIdentity</code>
6492
+ * element.</p>
6493
+ * <p>To replace the origin access identity, update the distribution configuration and
6494
+ * specify the new origin access identity.</p>
6495
+ * <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
6496
+ * Identity to Restrict Access to Your Amazon S3 Content</a> in the <i>
6497
+ * Amazon CloudFront Developer Guide</i>.</p>
6498
+ */
6499
+ OriginAccessIdentity: string | undefined;
6208
6500
  }
6209
- export declare namespace DistributionNotDisabled {
6501
+ export declare namespace S3Origin {
6210
6502
  /**
6211
6503
  * @internal
6212
6504
  */
6213
- const filterSensitiveLog: (obj: DistributionNotDisabled) => any;
6214
- }
6215
- export interface DeleteFieldLevelEncryptionConfigRequest {
6505
+ const filterSensitiveLog: (obj: S3Origin) => any;
6506
+ }
6507
+ /**
6508
+ * <p>The RTMP distribution's configuration information.</p>
6509
+ */
6510
+ export interface StreamingDistributionConfig {
6511
+ /**
6512
+ * <p>A unique value (for example, a date-time stamp) that ensures that the request can't be
6513
+ * replayed.</p>
6514
+ * <p>If the value of <code>CallerReference</code> is new (regardless of the content of the
6515
+ * <code>StreamingDistributionConfig</code> object), CloudFront creates a new distribution.</p>
6516
+ * <p>If <code>CallerReference</code> is a value that you already sent in a previous request to
6517
+ * create a distribution, CloudFront returns a <code>DistributionAlreadyExists</code> error.</p>
6518
+ */
6519
+ CallerReference: string | undefined;
6520
+ /**
6521
+ * <p>A complex type that contains information about the Amazon S3 bucket from which you want
6522
+ * CloudFront to get your media files for distribution. </p>
6523
+ */
6524
+ S3Origin: S3Origin | undefined;
6525
+ /**
6526
+ * <p>A complex type that contains information about CNAMEs (alternate domain names), if any,
6527
+ * for this streaming distribution. </p>
6528
+ */
6529
+ Aliases?: Aliases;
6530
+ /**
6531
+ * <p>Any comments you want to include about the streaming distribution. </p>
6532
+ */
6533
+ Comment: string | undefined;
6534
+ /**
6535
+ * <p>A complex type that controls whether access logs are written for the streaming
6536
+ * distribution. </p>
6537
+ */
6538
+ Logging?: StreamingLoggingConfig;
6539
+ /**
6540
+ * <p>A complex type that specifies any Amazon Web Services accounts that you want to permit to create signed
6541
+ * URLs for private content. If you want the distribution to use signed URLs, include this
6542
+ * element; if you want the distribution to use public URLs, remove this element. For more
6543
+ * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving Private Content through
6544
+ * CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. </p>
6545
+ */
6546
+ TrustedSigners: TrustedSigners | undefined;
6216
6547
  /**
6217
- * <p>The ID of the configuration you want to delete from CloudFront.</p>
6548
+ * <p>A complex type that contains information about price class for this streaming
6549
+ * distribution. </p>
6218
6550
  */
6219
- Id: string | undefined;
6551
+ PriceClass?: PriceClass | string;
6220
6552
  /**
6221
- * <p>The value of the <code>ETag</code> header that you received when retrieving the
6222
- * configuration identity to delete. For example: <code>E2QWRUHAPOMQZL</code>.</p>
6553
+ * <p>Whether the streaming distribution is enabled to accept user requests for
6554
+ * content.</p>
6223
6555
  */
6224
- IfMatch?: string;
6556
+ Enabled: boolean | undefined;
6225
6557
  }
6226
- export declare namespace DeleteFieldLevelEncryptionConfigRequest {
6558
+ export declare namespace StreamingDistributionConfig {
6227
6559
  /**
6228
6560
  * @internal
6229
6561
  */
6230
- const filterSensitiveLog: (obj: DeleteFieldLevelEncryptionConfigRequest) => any;
6562
+ const filterSensitiveLog: (obj: StreamingDistributionConfig) => any;
6231
6563
  }
6232
6564
  /**
6233
- * <p>The specified configuration for field-level encryption is in use.</p>
6565
+ * <p>The request to create a new streaming distribution.</p>
6234
6566
  */
6235
- export interface FieldLevelEncryptionConfigInUse extends __SmithyException, $MetadataBearer {
6236
- name: "FieldLevelEncryptionConfigInUse";
6237
- $fault: "client";
6238
- Message?: string;
6567
+ export interface CreateStreamingDistributionRequest {
6568
+ /**
6569
+ * <p>The streaming distribution's configuration information.</p>
6570
+ */
6571
+ StreamingDistributionConfig: StreamingDistributionConfig | undefined;
6239
6572
  }
6240
- export declare namespace FieldLevelEncryptionConfigInUse {
6573
+ export declare namespace CreateStreamingDistributionRequest {
6241
6574
  /**
6242
6575
  * @internal
6243
6576
  */
6244
- const filterSensitiveLog: (obj: FieldLevelEncryptionConfigInUse) => any;
6577
+ const filterSensitiveLog: (obj: CreateStreamingDistributionRequest) => any;
6245
6578
  }
6246
- export interface DeleteFieldLevelEncryptionProfileRequest {
6579
+ /**
6580
+ * <p>A streaming distribution tells CloudFront where you want RTMP content to be delivered from, and the details about how to
6581
+ * track and manage content delivery.</p>
6582
+ */
6583
+ export interface StreamingDistribution {
6247
6584
  /**
6248
- * <p>Request the ID of the profile you want to delete from CloudFront.</p>
6585
+ * <p>The identifier for the RTMP distribution. For example:
6586
+ * <code>EGTXBD79EXAMPLE</code>.</p>
6249
6587
  */
6250
6588
  Id: string | undefined;
6251
6589
  /**
6252
- * <p>The value of the <code>ETag</code> header that you received when retrieving the
6253
- * profile to delete. For example: <code>E2QWRUHAPOMQZL</code>.</p>
6590
+ * <p>The ARN (Amazon Resource Name) for the distribution. For example:
6591
+ * <code>arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5</code>, where
6592
+ * <code>123456789012</code> is your Amazon Web Services account ID.</p>
6254
6593
  */
6255
- IfMatch?: string;
6256
- }
6257
- export declare namespace DeleteFieldLevelEncryptionProfileRequest {
6594
+ ARN: string | undefined;
6258
6595
  /**
6259
- * @internal
6596
+ * <p>The current status of the RTMP distribution. When the status is <code>Deployed</code>,
6597
+ * the distribution's information is propagated to all CloudFront edge locations.</p>
6260
6598
  */
6261
- const filterSensitiveLog: (obj: DeleteFieldLevelEncryptionProfileRequest) => any;
6262
- }
6263
- /**
6264
- * <p>The specified profile for field-level encryption is in use.</p>
6265
- */
6266
- export interface FieldLevelEncryptionProfileInUse extends __SmithyException, $MetadataBearer {
6267
- name: "FieldLevelEncryptionProfileInUse";
6268
- $fault: "client";
6269
- Message?: string;
6270
- }
6271
- export declare namespace FieldLevelEncryptionProfileInUse {
6599
+ Status: string | undefined;
6272
6600
  /**
6273
- * @internal
6601
+ * <p>The date and time that the distribution was last modified. </p>
6274
6602
  */
6275
- const filterSensitiveLog: (obj: FieldLevelEncryptionProfileInUse) => any;
6276
- }
6277
- export interface DeleteFunctionRequest {
6603
+ LastModifiedTime?: Date;
6278
6604
  /**
6279
- * <p>The name of the function that you are deleting.</p>
6605
+ * <p>The domain name that corresponds to the streaming distribution, for example, <code>s5c39gqb8ow64r.cloudfront.net</code>. </p>
6280
6606
  */
6281
- Name: string | undefined;
6607
+ DomainName: string | undefined;
6282
6608
  /**
6283
- * <p>The current version (<code>ETag</code> value) of the function that you are deleting, which
6284
- * you can get using <code>DescribeFunction</code>.</p>
6609
+ * <p>A complex type that lists the Amazon Web Services accounts, if any, that you included in the
6610
+ * <code>TrustedSigners</code> complex type for this distribution. These are the accounts that
6611
+ * you want to allow to create signed URLs for private content.</p>
6612
+ * <p>The <code>Signer</code> complex type lists the Amazon Web Services account number of the trusted
6613
+ * signer or <code>self</code> if the signer is the Amazon Web Services account that created the distribution.
6614
+ * The <code>Signer</code> element also includes the IDs of any active CloudFront key pairs that are
6615
+ * associated with the trusted signer's Amazon Web Services account. If no <code>KeyPairId</code> element
6616
+ * appears for a <code>Signer</code>, that signer can't create signed URLs.</p>
6617
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving Private
6618
+ * Content through CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. </p>
6285
6619
  */
6286
- IfMatch: string | undefined;
6287
- }
6288
- export declare namespace DeleteFunctionRequest {
6620
+ ActiveTrustedSigners: ActiveTrustedSigners | undefined;
6289
6621
  /**
6290
- * @internal
6622
+ * <p>The current configuration information for the RTMP distribution.</p>
6291
6623
  */
6292
- const filterSensitiveLog: (obj: DeleteFunctionRequest) => any;
6293
- }
6294
- /**
6295
- * <p>Cannot delete the function because it’s attached to one or more cache
6296
- * behaviors.</p>
6297
- */
6298
- export interface FunctionInUse extends __SmithyException, $MetadataBearer {
6299
- name: "FunctionInUse";
6300
- $fault: "client";
6301
- Message?: string;
6624
+ StreamingDistributionConfig: StreamingDistributionConfig | undefined;
6302
6625
  }
6303
- export declare namespace FunctionInUse {
6626
+ export declare namespace StreamingDistribution {
6304
6627
  /**
6305
6628
  * @internal
6306
6629
  */
6307
- const filterSensitiveLog: (obj: FunctionInUse) => any;
6630
+ const filterSensitiveLog: (obj: StreamingDistribution) => any;
6308
6631
  }
6309
6632
  /**
6310
- * <p>The function does not exist.</p>
6633
+ * <p>The returned result of the corresponding request.</p>
6311
6634
  */
6312
- export interface NoSuchFunctionExists extends __SmithyException, $MetadataBearer {
6313
- name: "NoSuchFunctionExists";
6314
- $fault: "client";
6315
- Message?: string;
6316
- }
6317
- export declare namespace NoSuchFunctionExists {
6635
+ export interface CreateStreamingDistributionResult {
6318
6636
  /**
6319
- * @internal
6637
+ * <p>The streaming distribution's information.</p>
6320
6638
  */
6321
- const filterSensitiveLog: (obj: NoSuchFunctionExists) => any;
6322
- }
6323
- export interface DeleteKeyGroupRequest {
6639
+ StreamingDistribution?: StreamingDistribution;
6324
6640
  /**
6325
- * <p>The identifier of the key group that you are deleting. To get the identifier, use
6326
- * <code>ListKeyGroups</code>.</p>
6641
+ * <p>The fully qualified URI of the new streaming distribution resource just created.</p>
6327
6642
  */
6328
- Id: string | undefined;
6643
+ Location?: string;
6329
6644
  /**
6330
- * <p>The version of the key group that you are deleting. The version is the key group’s
6331
- * <code>ETag</code> value. To get the <code>ETag</code>, use <code>GetKeyGroup</code> or
6332
- * <code>GetKeyGroupConfig</code>.</p>
6645
+ * <p>The current version of the streaming distribution created.</p>
6333
6646
  */
6334
- IfMatch?: string;
6647
+ ETag?: string;
6335
6648
  }
6336
- export declare namespace DeleteKeyGroupRequest {
6649
+ export declare namespace CreateStreamingDistributionResult {
6337
6650
  /**
6338
6651
  * @internal
6339
6652
  */
6340
- const filterSensitiveLog: (obj: DeleteKeyGroupRequest) => any;
6653
+ const filterSensitiveLog: (obj: CreateStreamingDistributionResult) => any;
6341
6654
  }
6342
6655
  /**
6343
- * <p>A resource that was specified is not valid.</p>
6656
+ * <p>The caller reference you attempted to create the streaming distribution with
6657
+ * is associated with another distribution</p>
6344
6658
  */
6345
- export interface NoSuchResource extends __SmithyException, $MetadataBearer {
6346
- name: "NoSuchResource";
6659
+ export interface StreamingDistributionAlreadyExists extends __SmithyException, $MetadataBearer {
6660
+ name: "StreamingDistributionAlreadyExists";
6347
6661
  $fault: "client";
6348
6662
  Message?: string;
6349
6663
  }
6350
- export declare namespace NoSuchResource {
6664
+ export declare namespace StreamingDistributionAlreadyExists {
6351
6665
  /**
6352
6666
  * @internal
6353
6667
  */
6354
- const filterSensitiveLog: (obj: NoSuchResource) => any;
6668
+ const filterSensitiveLog: (obj: StreamingDistributionAlreadyExists) => any;
6355
6669
  }
6356
6670
  /**
6357
- * <p>Cannot delete this resource because it is in use.</p>
6671
+ * <p>Your request contains more CNAMEs than are allowed per distribution.</p>
6358
6672
  */
6359
- export interface ResourceInUse extends __SmithyException, $MetadataBearer {
6360
- name: "ResourceInUse";
6673
+ export interface TooManyStreamingDistributionCNAMEs extends __SmithyException, $MetadataBearer {
6674
+ name: "TooManyStreamingDistributionCNAMEs";
6361
6675
  $fault: "client";
6362
6676
  Message?: string;
6363
6677
  }
6364
- export declare namespace ResourceInUse {
6365
- /**
6366
- * @internal
6367
- */
6368
- const filterSensitiveLog: (obj: ResourceInUse) => any;
6369
- }
6370
- export interface DeleteMonitoringSubscriptionRequest {
6371
- /**
6372
- * <p>The ID of the distribution that you are disabling metrics for.</p>
6373
- */
6374
- DistributionId: string | undefined;
6375
- }
6376
- export declare namespace DeleteMonitoringSubscriptionRequest {
6678
+ export declare namespace TooManyStreamingDistributionCNAMEs {
6377
6679
  /**
6378
6680
  * @internal
6379
6681
  */
6380
- const filterSensitiveLog: (obj: DeleteMonitoringSubscriptionRequest) => any;
6682
+ const filterSensitiveLog: (obj: TooManyStreamingDistributionCNAMEs) => any;
6381
6683
  }
6382
- export interface DeleteMonitoringSubscriptionResult {
6684
+ /**
6685
+ * <p>Processing your request would cause you to exceed the maximum number of streaming distributions allowed.</p>
6686
+ */
6687
+ export interface TooManyStreamingDistributions extends __SmithyException, $MetadataBearer {
6688
+ name: "TooManyStreamingDistributions";
6689
+ $fault: "client";
6690
+ Message?: string;
6383
6691
  }
6384
- export declare namespace DeleteMonitoringSubscriptionResult {
6692
+ export declare namespace TooManyStreamingDistributions {
6385
6693
  /**
6386
6694
  * @internal
6387
6695
  */
6388
- const filterSensitiveLog: (obj: DeleteMonitoringSubscriptionResult) => any;
6696
+ const filterSensitiveLog: (obj: TooManyStreamingDistributions) => any;
6389
6697
  }
6390
- export interface DeleteOriginRequestPolicyRequest {
6698
+ /**
6699
+ * <p>A streaming distribution Configuration and a list of tags to be associated with the
6700
+ * streaming distribution.</p>
6701
+ */
6702
+ export interface StreamingDistributionConfigWithTags {
6391
6703
  /**
6392
- * <p>The unique identifier for the origin request policy that you are deleting. To get the
6393
- * identifier, you can use <code>ListOriginRequestPolicies</code>.</p>
6704
+ * <p>A streaming distribution Configuration.</p>
6394
6705
  */
6395
- Id: string | undefined;
6706
+ StreamingDistributionConfig: StreamingDistributionConfig | undefined;
6396
6707
  /**
6397
- * <p>The version of the origin request policy that you are deleting. The version is the origin
6398
- * request policy’s <code>ETag</code> value, which you can get using
6399
- * <code>ListOriginRequestPolicies</code>, <code>GetOriginRequestPolicy</code>, or
6400
- * <code>GetOriginRequestPolicyConfig</code>.</p>
6708
+ * <p>A complex type that contains zero or more <code>Tag</code> elements.</p>
6401
6709
  */
6402
- IfMatch?: string;
6710
+ Tags: Tags | undefined;
6403
6711
  }
6404
- export declare namespace DeleteOriginRequestPolicyRequest {
6712
+ export declare namespace StreamingDistributionConfigWithTags {
6405
6713
  /**
6406
6714
  * @internal
6407
6715
  */
6408
- const filterSensitiveLog: (obj: DeleteOriginRequestPolicyRequest) => any;
6716
+ const filterSensitiveLog: (obj: StreamingDistributionConfigWithTags) => any;
6409
6717
  }
6410
6718
  /**
6411
- * <p>Cannot delete the origin request policy because it is attached to one or more cache
6412
- * behaviors.</p>
6719
+ * <p>The request to create a new streaming distribution with tags.</p>
6413
6720
  */
6414
- export interface OriginRequestPolicyInUse extends __SmithyException, $MetadataBearer {
6415
- name: "OriginRequestPolicyInUse";
6416
- $fault: "client";
6417
- Message?: string;
6721
+ export interface CreateStreamingDistributionWithTagsRequest {
6722
+ /**
6723
+ * <p> The streaming distribution's configuration information. </p>
6724
+ */
6725
+ StreamingDistributionConfigWithTags: StreamingDistributionConfigWithTags | undefined;
6418
6726
  }
6419
- export declare namespace OriginRequestPolicyInUse {
6727
+ export declare namespace CreateStreamingDistributionWithTagsRequest {
6420
6728
  /**
6421
6729
  * @internal
6422
6730
  */
6423
- const filterSensitiveLog: (obj: OriginRequestPolicyInUse) => any;
6731
+ const filterSensitiveLog: (obj: CreateStreamingDistributionWithTagsRequest) => any;
6424
6732
  }
6425
- export interface DeletePublicKeyRequest {
6733
+ /**
6734
+ * <p>The returned result of the corresponding request. </p>
6735
+ */
6736
+ export interface CreateStreamingDistributionWithTagsResult {
6426
6737
  /**
6427
- * <p>The ID of the public key you want to remove from CloudFront.</p>
6738
+ * <p>The streaming distribution's information. </p>
6428
6739
  */
6429
- Id: string | undefined;
6740
+ StreamingDistribution?: StreamingDistribution;
6430
6741
  /**
6431
- * <p>The value of the <code>ETag</code> header that you received when retrieving the
6432
- * public key identity to delete. For example: <code>E2QWRUHAPOMQZL</code>.</p>
6742
+ * <p>The fully qualified URI of the new streaming distribution resource just created.</p>
6433
6743
  */
6434
- IfMatch?: string;
6435
- }
6436
- export declare namespace DeletePublicKeyRequest {
6744
+ Location?: string;
6437
6745
  /**
6438
- * @internal
6746
+ * <p>The current version of the distribution created.</p>
6439
6747
  */
6440
- const filterSensitiveLog: (obj: DeletePublicKeyRequest) => any;
6441
- }
6442
- /**
6443
- * <p>The specified public key is in use. </p>
6444
- */
6445
- export interface PublicKeyInUse extends __SmithyException, $MetadataBearer {
6446
- name: "PublicKeyInUse";
6447
- $fault: "client";
6448
- Message?: string;
6748
+ ETag?: string;
6449
6749
  }
6450
- export declare namespace PublicKeyInUse {
6750
+ export declare namespace CreateStreamingDistributionWithTagsResult {
6451
6751
  /**
6452
6752
  * @internal
6453
6753
  */
6454
- const filterSensitiveLog: (obj: PublicKeyInUse) => any;
6754
+ const filterSensitiveLog: (obj: CreateStreamingDistributionWithTagsResult) => any;
6455
6755
  }
6456
- export interface DeleteRealtimeLogConfigRequest {
6756
+ export interface DeleteCachePolicyRequest {
6457
6757
  /**
6458
- * <p>The name of the real-time log configuration to delete.</p>
6758
+ * <p>The unique identifier for the cache policy that you are deleting. To get the
6759
+ * identifier, you can use <code>ListCachePolicies</code>.</p>
6459
6760
  */
6460
- Name?: string;
6761
+ Id: string | undefined;
6461
6762
  /**
6462
- * <p>The Amazon Resource Name (ARN) of the real-time log configuration to delete.</p>
6763
+ * <p>The version of the cache policy that you are deleting. The version is the cache
6764
+ * policy’s <code>ETag</code> value, which you can get using
6765
+ * <code>ListCachePolicies</code>, <code>GetCachePolicy</code>, or
6766
+ * <code>GetCachePolicyConfig</code>.</p>
6463
6767
  */
6464
- ARN?: string;
6768
+ IfMatch?: string;
6465
6769
  }
6466
- export declare namespace DeleteRealtimeLogConfigRequest {
6770
+ export declare namespace DeleteCachePolicyRequest {
6467
6771
  /**
6468
6772
  * @internal
6469
6773
  */
6470
- const filterSensitiveLog: (obj: DeleteRealtimeLogConfigRequest) => any;
6774
+ const filterSensitiveLog: (obj: DeleteCachePolicyRequest) => any;
6471
6775
  }
6472
6776
  /**
6473
- * <p>Cannot delete the real-time log configuration because it is attached to one or more cache
6474
- * behaviors.</p>
6777
+ * <p>You cannot delete a managed policy.</p>
6475
6778
  */
6476
- export interface RealtimeLogConfigInUse extends __SmithyException, $MetadataBearer {
6477
- name: "RealtimeLogConfigInUse";
6779
+ export interface IllegalDelete extends __SmithyException, $MetadataBearer {
6780
+ name: "IllegalDelete";
6478
6781
  $fault: "client";
6479
6782
  Message?: string;
6480
6783
  }
6481
- export declare namespace RealtimeLogConfigInUse {
6784
+ export declare namespace IllegalDelete {
6482
6785
  /**
6483
6786
  * @internal
6484
6787
  */
6485
- const filterSensitiveLog: (obj: RealtimeLogConfigInUse) => any;
6788
+ const filterSensitiveLog: (obj: IllegalDelete) => any;
6486
6789
  }
6487
6790
  /**
6488
- * <p>The request to delete a streaming distribution.</p>
6791
+ * <p>The <code>If-Match</code> version is missing or not valid.</p>
6489
6792
  */
6490
- export interface DeleteStreamingDistributionRequest {
6491
- /**
6492
- * <p>The distribution ID. </p>
6493
- */
6494
- Id: string | undefined;
6495
- /**
6496
- * <p>The value of the <code>ETag</code> header that you received when you disabled the
6497
- * streaming distribution. For example: <code>E2QWRUHAPOMQZL</code>.</p>
6498
- */
6499
- IfMatch?: string;
6793
+ export interface InvalidIfMatchVersion extends __SmithyException, $MetadataBearer {
6794
+ name: "InvalidIfMatchVersion";
6795
+ $fault: "client";
6796
+ Message?: string;
6500
6797
  }
6501
- export declare namespace DeleteStreamingDistributionRequest {
6798
+ export declare namespace InvalidIfMatchVersion {
6502
6799
  /**
6503
6800
  * @internal
6504
6801
  */
6505
- const filterSensitiveLog: (obj: DeleteStreamingDistributionRequest) => any;
6802
+ const filterSensitiveLog: (obj: InvalidIfMatchVersion) => any;
6506
6803
  }
6507
6804
  /**
6508
- * <p>The specified streaming distribution does not exist.</p>
6805
+ * <p>The precondition in one or more of the request fields evaluated to
6806
+ * <code>false</code>.</p>
6509
6807
  */
6510
- export interface NoSuchStreamingDistribution extends __SmithyException, $MetadataBearer {
6511
- name: "NoSuchStreamingDistribution";
6808
+ export interface PreconditionFailed extends __SmithyException, $MetadataBearer {
6809
+ name: "PreconditionFailed";
6512
6810
  $fault: "client";
6513
6811
  Message?: string;
6514
6812
  }
6515
- export declare namespace NoSuchStreamingDistribution {
6813
+ export declare namespace PreconditionFailed {
6516
6814
  /**
6517
6815
  * @internal
6518
6816
  */
6519
- const filterSensitiveLog: (obj: NoSuchStreamingDistribution) => any;
6817
+ const filterSensitiveLog: (obj: PreconditionFailed) => any;
6520
6818
  }
6521
6819
  /**
6522
- * <p>The specified CloudFront distribution is not disabled. You must disable
6523
- * the distribution before you can delete it.</p>
6820
+ * <p>The Origin Access Identity specified is already in use.</p>
6524
6821
  */
6525
- export interface StreamingDistributionNotDisabled extends __SmithyException, $MetadataBearer {
6526
- name: "StreamingDistributionNotDisabled";
6822
+ export interface CloudFrontOriginAccessIdentityInUse extends __SmithyException, $MetadataBearer {
6823
+ name: "CloudFrontOriginAccessIdentityInUse";
6527
6824
  $fault: "client";
6528
6825
  Message?: string;
6529
6826
  }
6530
- export declare namespace StreamingDistributionNotDisabled {
6827
+ export declare namespace CloudFrontOriginAccessIdentityInUse {
6531
6828
  /**
6532
6829
  * @internal
6533
6830
  */
6534
- const filterSensitiveLog: (obj: StreamingDistributionNotDisabled) => any;
6831
+ const filterSensitiveLog: (obj: CloudFrontOriginAccessIdentityInUse) => any;
6535
6832
  }
6536
- export interface DescribeFunctionRequest {
6833
+ /**
6834
+ * <p>Deletes a origin access identity.</p>
6835
+ */
6836
+ export interface DeleteCloudFrontOriginAccessIdentityRequest {
6537
6837
  /**
6538
- * <p>The name of the function that you are getting information about.</p>
6838
+ * <p>The origin access identity's ID.</p>
6539
6839
  */
6540
- Name: string | undefined;
6840
+ Id: string | undefined;
6541
6841
  /**
6542
- * <p>The function’s stage, either <code>DEVELOPMENT</code> or <code>LIVE</code>.</p>
6842
+ * <p>The value of the <code>ETag</code> header you received from a previous <code>GET</code>
6843
+ * or <code>PUT</code> request. For example: <code>E2QWRUHAPOMQZL</code>.</p>
6543
6844
  */
6544
- Stage?: FunctionStage | string;
6845
+ IfMatch?: string;
6545
6846
  }
6546
- export declare namespace DescribeFunctionRequest {
6847
+ export declare namespace DeleteCloudFrontOriginAccessIdentityRequest {
6547
6848
  /**
6548
6849
  * @internal
6549
6850
  */
6550
- const filterSensitiveLog: (obj: DescribeFunctionRequest) => any;
6851
+ const filterSensitiveLog: (obj: DeleteCloudFrontOriginAccessIdentityRequest) => any;
6551
6852
  }
6552
- export interface DescribeFunctionResult {
6553
- /**
6554
- * <p>Contains configuration information and metadata about a CloudFront function.</p>
6555
- */
6556
- FunctionSummary?: FunctionSummary;
6557
- /**
6558
- * <p>The version identifier for the current version of the CloudFront function.</p>
6559
- */
6560
- ETag?: string;
6853
+ /**
6854
+ * <p>The specified origin access identity does not exist.</p>
6855
+ */
6856
+ export interface NoSuchCloudFrontOriginAccessIdentity extends __SmithyException, $MetadataBearer {
6857
+ name: "NoSuchCloudFrontOriginAccessIdentity";
6858
+ $fault: "client";
6859
+ Message?: string;
6561
6860
  }
6562
- export declare namespace DescribeFunctionResult {
6861
+ export declare namespace NoSuchCloudFrontOriginAccessIdentity {
6563
6862
  /**
6564
6863
  * @internal
6565
6864
  */
6566
- const filterSensitiveLog: (obj: DescribeFunctionResult) => any;
6865
+ const filterSensitiveLog: (obj: NoSuchCloudFrontOriginAccessIdentity) => any;
6567
6866
  }
6568
- export interface GetCachePolicyRequest {
6867
+ /**
6868
+ * <p>This action deletes a web distribution. To delete a web distribution using the CloudFront
6869
+ * API, perform the following steps.</p>
6870
+ * <p>
6871
+ * <b>To delete a web distribution using the CloudFront API:</b>
6872
+ * </p>
6873
+ * <ol>
6874
+ * <li>
6875
+ * <p>Disable the web distribution </p>
6876
+ * </li>
6877
+ * <li>
6878
+ * <p>Submit a <code>GET Distribution Config</code> request to get the current
6879
+ * configuration and the <code>Etag</code> header for the distribution.</p>
6880
+ * </li>
6881
+ * <li>
6882
+ * <p>Update the XML document that was returned in the response to your <code>GET
6883
+ * Distribution Config</code> request to change the value of <code>Enabled</code> to
6884
+ * <code>false</code>.</p>
6885
+ * </li>
6886
+ * <li>
6887
+ * <p>Submit a <code>PUT Distribution Config</code> request to update the configuration
6888
+ * for your distribution. In the request body, include the XML document that you updated in
6889
+ * Step 3. Set the value of the HTTP <code>If-Match</code> header to the value of the
6890
+ * <code>ETag</code> header that CloudFront returned when you submitted the <code>GET
6891
+ * Distribution Config</code> request in Step 2.</p>
6892
+ * </li>
6893
+ * <li>
6894
+ * <p>Review the response to the <code>PUT Distribution Config</code> request to confirm
6895
+ * that the distribution was successfully disabled.</p>
6896
+ * </li>
6897
+ * <li>
6898
+ * <p>Submit a <code>GET Distribution</code> request to confirm that your changes have
6899
+ * propagated. When propagation is complete, the value of <code>Status</code> is
6900
+ * <code>Deployed</code>.</p>
6901
+ * </li>
6902
+ * <li>
6903
+ * <p>Submit a <code>DELETE Distribution</code> request. Set the value of the HTTP
6904
+ * <code>If-Match</code> header to the value of the <code>ETag</code> header that CloudFront
6905
+ * returned when you submitted the <code>GET Distribution Config</code> request in Step
6906
+ * 6.</p>
6907
+ * </li>
6908
+ * <li>
6909
+ * <p>Review the response to your <code>DELETE Distribution</code> request to confirm
6910
+ * that the distribution was successfully deleted.</p>
6911
+ * </li>
6912
+ * </ol>
6913
+ * <p>For information about deleting a distribution using the CloudFront console, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html">Deleting a Distribution</a> in the
6914
+ * <i>Amazon CloudFront Developer Guide</i>.</p>
6915
+ */
6916
+ export interface DeleteDistributionRequest {
6569
6917
  /**
6570
- * <p>The unique identifier for the cache policy. If the cache policy is attached to a
6571
- * distribution’s cache behavior, you can get the policy’s identifier using
6572
- * <code>ListDistributions</code> or <code>GetDistribution</code>. If the cache policy is
6573
- * not attached to a cache behavior, you can get the identifier using
6574
- * <code>ListCachePolicies</code>.</p>
6918
+ * <p>The distribution ID. </p>
6575
6919
  */
6576
6920
  Id: string | undefined;
6577
- }
6578
- export declare namespace GetCachePolicyRequest {
6579
- /**
6580
- * @internal
6581
- */
6582
- const filterSensitiveLog: (obj: GetCachePolicyRequest) => any;
6583
- }
6584
- export interface GetCachePolicyResult {
6585
- /**
6586
- * <p>The cache policy.</p>
6587
- */
6588
- CachePolicy?: CachePolicy;
6589
6921
  /**
6590
- * <p>The current version of the cache policy.</p>
6922
+ * <p>The value of the <code>ETag</code> header that you received when you disabled the
6923
+ * distribution. For example: <code>E2QWRUHAPOMQZL</code>. </p>
6591
6924
  */
6592
- ETag?: string;
6925
+ IfMatch?: string;
6593
6926
  }
6594
- export declare namespace GetCachePolicyResult {
6927
+ export declare namespace DeleteDistributionRequest {
6595
6928
  /**
6596
6929
  * @internal
6597
6930
  */
6598
- const filterSensitiveLog: (obj: GetCachePolicyResult) => any;
6931
+ const filterSensitiveLog: (obj: DeleteDistributionRequest) => any;
6599
6932
  }
6600
- export interface GetCachePolicyConfigRequest {
6601
- /**
6602
- * <p>The unique identifier for the cache policy. If the cache policy is attached to a
6603
- * distribution’s cache behavior, you can get the policy’s identifier using
6604
- * <code>ListDistributions</code> or <code>GetDistribution</code>. If the cache policy is
6605
- * not attached to a cache behavior, you can get the identifier using
6606
- * <code>ListCachePolicies</code>.</p>
6607
- */
6608
- Id: string | undefined;
6933
+ /**
6934
+ * <p>The specified CloudFront distribution is not disabled. You must disable
6935
+ * the distribution before you can delete it.</p>
6936
+ */
6937
+ export interface DistributionNotDisabled extends __SmithyException, $MetadataBearer {
6938
+ name: "DistributionNotDisabled";
6939
+ $fault: "client";
6940
+ Message?: string;
6609
6941
  }
6610
- export declare namespace GetCachePolicyConfigRequest {
6942
+ export declare namespace DistributionNotDisabled {
6611
6943
  /**
6612
6944
  * @internal
6613
6945
  */
6614
- const filterSensitiveLog: (obj: GetCachePolicyConfigRequest) => any;
6946
+ const filterSensitiveLog: (obj: DistributionNotDisabled) => any;
6615
6947
  }
6616
- export interface GetCachePolicyConfigResult {
6948
+ export interface DeleteFieldLevelEncryptionConfigRequest {
6617
6949
  /**
6618
- * <p>The cache policy configuration.</p>
6950
+ * <p>The ID of the configuration you want to delete from CloudFront.</p>
6619
6951
  */
6620
- CachePolicyConfig?: CachePolicyConfig;
6952
+ Id: string | undefined;
6621
6953
  /**
6622
- * <p>The current version of the cache policy.</p>
6954
+ * <p>The value of the <code>ETag</code> header that you received when retrieving the
6955
+ * configuration identity to delete. For example: <code>E2QWRUHAPOMQZL</code>.</p>
6623
6956
  */
6624
- ETag?: string;
6957
+ IfMatch?: string;
6625
6958
  }
6626
- export declare namespace GetCachePolicyConfigResult {
6959
+ export declare namespace DeleteFieldLevelEncryptionConfigRequest {
6627
6960
  /**
6628
6961
  * @internal
6629
6962
  */
6630
- const filterSensitiveLog: (obj: GetCachePolicyConfigResult) => any;
6963
+ const filterSensitiveLog: (obj: DeleteFieldLevelEncryptionConfigRequest) => any;
6631
6964
  }
6632
6965
  /**
6633
- * <p>The request to get an origin access identity's information.</p>
6966
+ * <p>The specified configuration for field-level encryption is in use.</p>
6634
6967
  */
6635
- export interface GetCloudFrontOriginAccessIdentityRequest {
6636
- /**
6637
- * <p>The identity's ID.</p>
6638
- */
6639
- Id: string | undefined;
6968
+ export interface FieldLevelEncryptionConfigInUse extends __SmithyException, $MetadataBearer {
6969
+ name: "FieldLevelEncryptionConfigInUse";
6970
+ $fault: "client";
6971
+ Message?: string;
6640
6972
  }
6641
- export declare namespace GetCloudFrontOriginAccessIdentityRequest {
6973
+ export declare namespace FieldLevelEncryptionConfigInUse {
6642
6974
  /**
6643
6975
  * @internal
6644
6976
  */
6645
- const filterSensitiveLog: (obj: GetCloudFrontOriginAccessIdentityRequest) => any;
6977
+ const filterSensitiveLog: (obj: FieldLevelEncryptionConfigInUse) => any;
6646
6978
  }
6647
- /**
6648
- * <p>The returned result of the corresponding request.</p>
6649
- */
6650
- export interface GetCloudFrontOriginAccessIdentityResult {
6979
+ export interface DeleteFieldLevelEncryptionProfileRequest {
6651
6980
  /**
6652
- * <p>The origin access identity's information.</p>
6981
+ * <p>Request the ID of the profile you want to delete from CloudFront.</p>
6653
6982
  */
6654
- CloudFrontOriginAccessIdentity?: CloudFrontOriginAccessIdentity;
6983
+ Id: string | undefined;
6655
6984
  /**
6656
- * <p>The current version of the origin access identity's information. For example:
6657
- * <code>E2QWRUHAPOMQZL</code>.</p>
6985
+ * <p>The value of the <code>ETag</code> header that you received when retrieving the
6986
+ * profile to delete. For example: <code>E2QWRUHAPOMQZL</code>.</p>
6658
6987
  */
6659
- ETag?: string;
6988
+ IfMatch?: string;
6660
6989
  }
6661
- export declare namespace GetCloudFrontOriginAccessIdentityResult {
6990
+ export declare namespace DeleteFieldLevelEncryptionProfileRequest {
6662
6991
  /**
6663
6992
  * @internal
6664
6993
  */
6665
- const filterSensitiveLog: (obj: GetCloudFrontOriginAccessIdentityResult) => any;
6994
+ const filterSensitiveLog: (obj: DeleteFieldLevelEncryptionProfileRequest) => any;
6666
6995
  }
6667
6996
  /**
6668
- * <p>The origin access identity's configuration information. For more information, see
6669
- * <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CloudFrontOriginAccessIdentityConfig.html">CloudFrontOriginAccessIdentityConfig</a>.</p>
6997
+ * <p>The specified profile for field-level encryption is in use.</p>
6670
6998
  */
6671
- export interface GetCloudFrontOriginAccessIdentityConfigRequest {
6672
- /**
6673
- * <p>The identity's ID. </p>
6674
- */
6675
- Id: string | undefined;
6999
+ export interface FieldLevelEncryptionProfileInUse extends __SmithyException, $MetadataBearer {
7000
+ name: "FieldLevelEncryptionProfileInUse";
7001
+ $fault: "client";
7002
+ Message?: string;
6676
7003
  }
6677
- export declare namespace GetCloudFrontOriginAccessIdentityConfigRequest {
7004
+ export declare namespace FieldLevelEncryptionProfileInUse {
6678
7005
  /**
6679
7006
  * @internal
6680
7007
  */
6681
- const filterSensitiveLog: (obj: GetCloudFrontOriginAccessIdentityConfigRequest) => any;
7008
+ const filterSensitiveLog: (obj: FieldLevelEncryptionProfileInUse) => any;
6682
7009
  }
6683
- /**
6684
- * <p>The returned result of the corresponding request.</p>
6685
- */
6686
- export interface GetCloudFrontOriginAccessIdentityConfigResult {
7010
+ export interface DeleteFunctionRequest {
6687
7011
  /**
6688
- * <p>The origin access identity's configuration information. </p>
7012
+ * <p>The name of the function that you are deleting.</p>
6689
7013
  */
6690
- CloudFrontOriginAccessIdentityConfig?: CloudFrontOriginAccessIdentityConfig;
7014
+ Name: string | undefined;
6691
7015
  /**
6692
- * <p>The current version of the configuration. For example:
6693
- * <code>E2QWRUHAPOMQZL</code>.</p>
7016
+ * <p>The current version (<code>ETag</code> value) of the function that you are deleting, which
7017
+ * you can get using <code>DescribeFunction</code>.</p>
6694
7018
  */
6695
- ETag?: string;
7019
+ IfMatch: string | undefined;
6696
7020
  }
6697
- export declare namespace GetCloudFrontOriginAccessIdentityConfigResult {
7021
+ export declare namespace DeleteFunctionRequest {
6698
7022
  /**
6699
7023
  * @internal
6700
7024
  */
6701
- const filterSensitiveLog: (obj: GetCloudFrontOriginAccessIdentityConfigResult) => any;
7025
+ const filterSensitiveLog: (obj: DeleteFunctionRequest) => any;
6702
7026
  }
6703
7027
  /**
6704
- * <p>The request to get a distribution's information.</p>
7028
+ * <p>Cannot delete the function because it’s attached to one or more cache
7029
+ * behaviors.</p>
6705
7030
  */
6706
- export interface GetDistributionRequest {
6707
- /**
6708
- * <p>The distribution's ID. If the ID is empty, an empty distribution configuration is returned.</p>
6709
- */
6710
- Id: string | undefined;
7031
+ export interface FunctionInUse extends __SmithyException, $MetadataBearer {
7032
+ name: "FunctionInUse";
7033
+ $fault: "client";
7034
+ Message?: string;
6711
7035
  }
6712
- export declare namespace GetDistributionRequest {
7036
+ export declare namespace FunctionInUse {
6713
7037
  /**
6714
7038
  * @internal
6715
7039
  */
6716
- const filterSensitiveLog: (obj: GetDistributionRequest) => any;
7040
+ const filterSensitiveLog: (obj: FunctionInUse) => any;
6717
7041
  }
6718
7042
  /**
6719
- * <p>The returned result of the corresponding request.</p>
7043
+ * <p>The function does not exist.</p>
6720
7044
  */
6721
- export interface GetDistributionResult {
6722
- /**
6723
- * <p>The distribution's information.</p>
6724
- */
6725
- Distribution?: Distribution;
6726
- /**
6727
- * <p>The current version of the distribution's information. For example:
6728
- * <code>E2QWRUHAPOMQZL</code>.</p>
6729
- */
6730
- ETag?: string;
7045
+ export interface NoSuchFunctionExists extends __SmithyException, $MetadataBearer {
7046
+ name: "NoSuchFunctionExists";
7047
+ $fault: "client";
7048
+ Message?: string;
6731
7049
  }
6732
- export declare namespace GetDistributionResult {
7050
+ export declare namespace NoSuchFunctionExists {
6733
7051
  /**
6734
7052
  * @internal
6735
7053
  */
6736
- const filterSensitiveLog: (obj: GetDistributionResult) => any;
7054
+ const filterSensitiveLog: (obj: NoSuchFunctionExists) => any;
6737
7055
  }
6738
- /**
6739
- * <p>The request to get a distribution configuration.</p>
6740
- */
6741
- export interface GetDistributionConfigRequest {
7056
+ export interface DeleteKeyGroupRequest {
6742
7057
  /**
6743
- * <p>The distribution's ID. If the ID is empty, an empty distribution configuration is returned.</p>
7058
+ * <p>The identifier of the key group that you are deleting. To get the identifier, use
7059
+ * <code>ListKeyGroups</code>.</p>
6744
7060
  */
6745
7061
  Id: string | undefined;
7062
+ /**
7063
+ * <p>The version of the key group that you are deleting. The version is the key group’s
7064
+ * <code>ETag</code> value. To get the <code>ETag</code>, use <code>GetKeyGroup</code> or
7065
+ * <code>GetKeyGroupConfig</code>.</p>
7066
+ */
7067
+ IfMatch?: string;
6746
7068
  }
6747
- export declare namespace GetDistributionConfigRequest {
7069
+ export declare namespace DeleteKeyGroupRequest {
6748
7070
  /**
6749
7071
  * @internal
6750
7072
  */
6751
- const filterSensitiveLog: (obj: GetDistributionConfigRequest) => any;
7073
+ const filterSensitiveLog: (obj: DeleteKeyGroupRequest) => any;
6752
7074
  }
6753
7075
  /**
6754
- * <p>The returned result of the corresponding request.</p>
7076
+ * <p>A resource that was specified is not valid.</p>
6755
7077
  */
6756
- export interface GetDistributionConfigResult {
6757
- /**
6758
- * <p>The distribution's configuration information.</p>
6759
- */
6760
- DistributionConfig?: DistributionConfig;
6761
- /**
6762
- * <p>The current version of the configuration. For example:
6763
- * <code>E2QWRUHAPOMQZL</code>.</p>
6764
- */
6765
- ETag?: string;
7078
+ export interface NoSuchResource extends __SmithyException, $MetadataBearer {
7079
+ name: "NoSuchResource";
7080
+ $fault: "client";
7081
+ Message?: string;
6766
7082
  }
6767
- export declare namespace GetDistributionConfigResult {
7083
+ export declare namespace NoSuchResource {
6768
7084
  /**
6769
7085
  * @internal
6770
7086
  */
6771
- const filterSensitiveLog: (obj: GetDistributionConfigResult) => any;
7087
+ const filterSensitiveLog: (obj: NoSuchResource) => any;
6772
7088
  }
6773
- export interface GetFieldLevelEncryptionRequest {
6774
- /**
6775
- * <p>Request the ID for the field-level encryption configuration information.</p>
6776
- */
6777
- Id: string | undefined;
7089
+ /**
7090
+ * <p>Cannot delete this resource because it is in use.</p>
7091
+ */
7092
+ export interface ResourceInUse extends __SmithyException, $MetadataBearer {
7093
+ name: "ResourceInUse";
7094
+ $fault: "client";
7095
+ Message?: string;
6778
7096
  }
6779
- export declare namespace GetFieldLevelEncryptionRequest {
7097
+ export declare namespace ResourceInUse {
6780
7098
  /**
6781
7099
  * @internal
6782
7100
  */
6783
- const filterSensitiveLog: (obj: GetFieldLevelEncryptionRequest) => any;
7101
+ const filterSensitiveLog: (obj: ResourceInUse) => any;
6784
7102
  }
6785
- export interface GetFieldLevelEncryptionResult {
6786
- /**
6787
- * <p>Return the field-level encryption configuration information.</p>
6788
- */
6789
- FieldLevelEncryption?: FieldLevelEncryption;
7103
+ export interface DeleteMonitoringSubscriptionRequest {
6790
7104
  /**
6791
- * <p>The current version of the field level encryption configuration. For example: <code>E2QWRUHAPOMQZL</code>.</p>
7105
+ * <p>The ID of the distribution that you are disabling metrics for.</p>
6792
7106
  */
6793
- ETag?: string;
7107
+ DistributionId: string | undefined;
6794
7108
  }
6795
- export declare namespace GetFieldLevelEncryptionResult {
7109
+ export declare namespace DeleteMonitoringSubscriptionRequest {
6796
7110
  /**
6797
7111
  * @internal
6798
7112
  */
6799
- const filterSensitiveLog: (obj: GetFieldLevelEncryptionResult) => any;
7113
+ const filterSensitiveLog: (obj: DeleteMonitoringSubscriptionRequest) => any;
6800
7114
  }