UNPKG

239 kBTypeScriptView Raw
1import * as cdk from '@aws-cdk/core';
2import * as cfn_parse from '@aws-cdk/core/lib/helpers-internal';
3/**
4 * Properties for defining a `CfnCachePolicy`
5 *
6 * @struct
7 * @stability external
8 *
9 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cachepolicy.html
10 */
11export interface CfnCachePolicyProps {
12 /**
13 * The cache policy configuration.
14 *
15 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cachepolicy.html#cfn-cloudfront-cachepolicy-cachepolicyconfig
16 */
17 readonly cachePolicyConfig: CfnCachePolicy.CachePolicyConfigProperty | cdk.IResolvable;
18}
19/**
20 * A CloudFormation `AWS::CloudFront::CachePolicy`
21 *
22 * A cache policy.
23 *
24 * When it’s attached to a cache behavior, the cache policy determines the following:
25 *
26 * - The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.
27 * - The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache.
28 *
29 * The headers, cookies, and query strings that are included in the cache key are automatically included in requests that CloudFront sends to the origin. CloudFront sends a request when it can’t find a valid object in its cache that matches the request’s cache key. If you want to send values to the origin but *not* include them in the cache key, use `OriginRequestPolicy` .
30 *
31 * @cloudformationResource AWS::CloudFront::CachePolicy
32 * @stability external
33 *
34 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cachepolicy.html
35 */
36export declare class CfnCachePolicy extends cdk.CfnResource implements cdk.IInspectable {
37 /**
38 * The CloudFormation resource type name for this resource class.
39 */
40 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::CachePolicy";
41 /**
42 * A factory method that creates a new instance of this class from an object
43 * containing the CloudFormation properties of this resource.
44 * Used in the @aws-cdk/cloudformation-include module.
45 *
46 * @internal
47 */
48 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnCachePolicy;
49 /**
50 * The unique identifier for the cache policy. For example: `2766f7b2-75c5-41c6-8f06-bf4303a2f2f5` .
51 * @cloudformationAttribute Id
52 */
53 readonly attrId: string;
54 /**
55 * The date and time when the cache policy was last modified.
56 * @cloudformationAttribute LastModifiedTime
57 */
58 readonly attrLastModifiedTime: string;
59 /**
60 * The cache policy configuration.
61 *
62 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cachepolicy.html#cfn-cloudfront-cachepolicy-cachepolicyconfig
63 */
64 cachePolicyConfig: CfnCachePolicy.CachePolicyConfigProperty | cdk.IResolvable;
65 /**
66 * Create a new `AWS::CloudFront::CachePolicy`.
67 *
68 * @param scope - scope in which this resource is defined
69 * @param id - scoped id of the resource
70 * @param props - resource properties
71 */
72 constructor(scope: cdk.Construct, id: string, props: CfnCachePolicyProps);
73 /**
74 * Examines the CloudFormation resource and discloses attributes.
75 *
76 * @param inspector - tree inspector to collect and process attributes
77 *
78 */
79 inspect(inspector: cdk.TreeInspector): void;
80 protected get cfnProperties(): {
81 [key: string]: any;
82 };
83 protected renderProperties(props: {
84 [key: string]: any;
85 }): {
86 [key: string]: any;
87 };
88}
89export declare namespace CfnCachePolicy {
90 /**
91 * A cache policy configuration.
92 *
93 * This configuration determines the following:
94 *
95 * - The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.
96 * - The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache.
97 *
98 * The headers, cookies, and query strings that are included in the cache key are automatically included in requests that CloudFront sends to the origin. CloudFront sends a request when it can’t find a valid object in its cache that matches the request’s cache key. If you want to send values to the origin but *not* include them in the cache key, use `OriginRequestPolicy` .
99 *
100 * @struct
101 * @stability external
102 *
103 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html
104 */
105 interface CachePolicyConfigProperty {
106 /**
107 * A comment to describe the cache policy. The comment cannot be longer than 128 characters.
108 *
109 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-comment
110 */
111 readonly comment?: string;
112 /**
113 * The default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. CloudFront uses this value as the object’s time to live (TTL) only when the origin does *not* send `Cache-Control` or `Expires` headers with the object. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
114 *
115 * The default value for this field is 86400 seconds (one day). If the value of `MinTTL` is more than 86400 seconds, then the default value for this field is the same as the value of `MinTTL` .
116 *
117 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-defaultttl
118 */
119 readonly defaultTtl: number;
120 /**
121 * The maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. CloudFront uses this value only when the origin sends `Cache-Control` or `Expires` headers with the object. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
122 *
123 * The default value for this field is 31536000 seconds (one year). If the value of `MinTTL` or `DefaultTTL` is more than 31536000 seconds, then the default value for this field is the same as the value of `DefaultTTL` .
124 *
125 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-maxttl
126 */
127 readonly maxTtl: number;
128 /**
129 * The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
130 *
131 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-minttl
132 */
133 readonly minTtl: number;
134 /**
135 * A unique name to identify the cache policy.
136 *
137 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-name
138 */
139 readonly name: string;
140 /**
141 * The HTTP headers, cookies, and URL query strings to include in the cache key. The values included in the cache key are automatically included in requests that CloudFront sends to the origin.
142 *
143 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-parametersincachekeyandforwardedtoorigin
144 */
145 readonly parametersInCacheKeyAndForwardedToOrigin: CfnCachePolicy.ParametersInCacheKeyAndForwardedToOriginProperty | cdk.IResolvable;
146 }
147}
148export declare namespace CfnCachePolicy {
149 /**
150 * An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
151 *
152 * @struct
153 * @stability external
154 *
155 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cookiesconfig.html
156 */
157 interface CookiesConfigProperty {
158 /**
159 * Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
160 *
161 * - `none` – Cookies in viewer requests are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to `none` , any cookies that are listed in an `OriginRequestPolicy` *are* included in origin requests.
162 * - `whitelist` – The cookies in viewer requests that are listed in the `CookieNames` type are included in the cache key and automatically included in requests that CloudFront sends to the origin.
163 * - `allExcept` – All cookies in viewer requests that are **not** listed in the `CookieNames` type are included in the cache key and automatically included in requests that CloudFront sends to the origin.
164 * - `all` – All cookies in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.
165 *
166 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cookiesconfig.html#cfn-cloudfront-cachepolicy-cookiesconfig-cookiebehavior
167 */
168 readonly cookieBehavior: string;
169 /**
170 * Contains a list of cookie names.
171 *
172 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cookiesconfig.html#cfn-cloudfront-cachepolicy-cookiesconfig-cookies
173 */
174 readonly cookies?: string[];
175 }
176}
177export declare namespace CfnCachePolicy {
178 /**
179 * An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
180 *
181 * @struct
182 * @stability external
183 *
184 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-headersconfig.html
185 */
186 interface HeadersConfigProperty {
187 /**
188 * Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
189 *
190 * - `none` – HTTP headers are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to `none` , any headers that are listed in an `OriginRequestPolicy` *are* included in origin requests.
191 * - `whitelist` – The HTTP headers that are listed in the `Headers` type are included in the cache key and are automatically included in requests that CloudFront sends to the origin.
192 *
193 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-headersconfig.html#cfn-cloudfront-cachepolicy-headersconfig-headerbehavior
194 */
195 readonly headerBehavior: string;
196 /**
197 * Contains a list of HTTP header names.
198 *
199 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-headersconfig.html#cfn-cloudfront-cachepolicy-headersconfig-headers
200 */
201 readonly headers?: string[];
202 }
203}
204export declare namespace CfnCachePolicy {
205 /**
206 * This object determines the values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.
207 *
208 * The headers, cookies, and query strings that are included in the cache key are automatically included in requests that CloudFront sends to the origin. CloudFront sends a request when it can’t find an object in its cache that matches the request’s cache key. If you want to send values to the origin but *not* include them in the cache key, use `OriginRequestPolicy` .
209 *
210 * @struct
211 * @stability external
212 *
213 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html
214 */
215 interface ParametersInCacheKeyAndForwardedToOriginProperty {
216 /**
217 * An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
218 *
219 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html#cfn-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin-cookiesconfig
220 */
221 readonly cookiesConfig: CfnCachePolicy.CookiesConfigProperty | cdk.IResolvable;
222 /**
223 * A flag that can affect whether the `Accept-Encoding` HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
224 *
225 * This field is related to the `EnableAcceptEncodingGzip` field. If one or both of these fields is `true` *and* the viewer request includes the `Accept-Encoding` header, then CloudFront does the following:
226 *
227 * - Normalizes the value of the viewer’s `Accept-Encoding` header
228 * - Includes the normalized header in the cache key
229 * - Includes the normalized header in the request to the origin, if a request is necessary
230 *
231 * For more information, see [Compression support](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-policy-compressed-objects) in the *Amazon CloudFront Developer Guide* .
232 *
233 * If you set this value to `true` , and this cache behavior also has an origin request policy attached, do not include the `Accept-Encoding` header in the origin request policy. CloudFront always includes the `Accept-Encoding` header in origin requests when the value of this field is `true` , so including this header in an origin request policy has no effect.
234 *
235 * If both of these fields are `false` , then CloudFront treats the `Accept-Encoding` header the same as any other HTTP header in the viewer request. By default, it’s not included in the cache key and it’s not included in origin requests. In this case, you can manually add `Accept-Encoding` to the headers whitelist like any other HTTP header.
236 *
237 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html#cfn-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin-enableacceptencodingbrotli
238 */
239 readonly enableAcceptEncodingBrotli?: boolean | cdk.IResolvable;
240 /**
241 * A flag that can affect whether the `Accept-Encoding` HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.
242 *
243 * This field is related to the `EnableAcceptEncodingBrotli` field. If one or both of these fields is `true` *and* the viewer request includes the `Accept-Encoding` header, then CloudFront does the following:
244 *
245 * - Normalizes the value of the viewer’s `Accept-Encoding` header
246 * - Includes the normalized header in the cache key
247 * - Includes the normalized header in the request to the origin, if a request is necessary
248 *
249 * For more information, see [Compression support](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-policy-compressed-objects) in the *Amazon CloudFront Developer Guide* .
250 *
251 * If you set this value to `true` , and this cache behavior also has an origin request policy attached, do not include the `Accept-Encoding` header in the origin request policy. CloudFront always includes the `Accept-Encoding` header in origin requests when the value of this field is `true` , so including this header in an origin request policy has no effect.
252 *
253 * If both of these fields are `false` , then CloudFront treats the `Accept-Encoding` header the same as any other HTTP header in the viewer request. By default, it’s not included in the cache key and it’s not included in origin requests. In this case, you can manually add `Accept-Encoding` to the headers whitelist like any other HTTP header.
254 *
255 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html#cfn-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin-enableacceptencodinggzip
256 */
257 readonly enableAcceptEncodingGzip: boolean | cdk.IResolvable;
258 /**
259 * An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
260 *
261 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html#cfn-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin-headersconfig
262 */
263 readonly headersConfig: CfnCachePolicy.HeadersConfigProperty | cdk.IResolvable;
264 /**
265 * An object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
266 *
267 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html#cfn-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin-querystringsconfig
268 */
269 readonly queryStringsConfig: CfnCachePolicy.QueryStringsConfigProperty | cdk.IResolvable;
270 }
271}
272export declare namespace CfnCachePolicy {
273 /**
274 * An object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
275 *
276 * @struct
277 * @stability external
278 *
279 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-querystringsconfig.html
280 */
281 interface QueryStringsConfigProperty {
282 /**
283 * Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
284 *
285 * - `none` – Query strings in viewer requests are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to `none` , any query strings that are listed in an `OriginRequestPolicy` *are* included in origin requests.
286 * - `whitelist` – The query strings in viewer requests that are listed in the `QueryStringNames` type are included in the cache key and automatically included in requests that CloudFront sends to the origin.
287 * - `allExcept` – All query strings in viewer requests that are **not** listed in the `QueryStringNames` type are included in the cache key and automatically included in requests that CloudFront sends to the origin.
288 * - `all` – All query strings in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.
289 *
290 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-querystringsconfig.html#cfn-cloudfront-cachepolicy-querystringsconfig-querystringbehavior
291 */
292 readonly queryStringBehavior: string;
293 /**
294 * Contains a list of query string names.
295 *
296 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-querystringsconfig.html#cfn-cloudfront-cachepolicy-querystringsconfig-querystrings
297 */
298 readonly queryStrings?: string[];
299 }
300}
301/**
302 * Properties for defining a `CfnCloudFrontOriginAccessIdentity`
303 *
304 * @struct
305 * @stability external
306 *
307 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.html
308 */
309export interface CfnCloudFrontOriginAccessIdentityProps {
310 /**
311 * The current configuration information for the identity.
312 *
313 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.html#cfn-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig
314 */
315 readonly cloudFrontOriginAccessIdentityConfig: CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty | cdk.IResolvable;
316}
317/**
318 * A CloudFormation `AWS::CloudFront::CloudFrontOriginAccessIdentity`
319 *
320 * The request to create a new origin access identity (OAI). An origin access identity is a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of your Amazon S3 content. For more information, see [Restricting Access to Amazon S3 Content by Using an Origin Access Identity](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) in the *Amazon CloudFront Developer Guide* .
321 *
322 * @cloudformationResource AWS::CloudFront::CloudFrontOriginAccessIdentity
323 * @stability external
324 *
325 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.html
326 */
327export declare class CfnCloudFrontOriginAccessIdentity extends cdk.CfnResource implements cdk.IInspectable {
328 /**
329 * The CloudFormation resource type name for this resource class.
330 */
331 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::CloudFrontOriginAccessIdentity";
332 /**
333 * A factory method that creates a new instance of this class from an object
334 * containing the CloudFormation properties of this resource.
335 * Used in the @aws-cdk/cloudformation-include module.
336 *
337 * @internal
338 */
339 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnCloudFrontOriginAccessIdentity;
340 /**
341 *
342 * @cloudformationAttribute Id
343 */
344 readonly attrId: string;
345 /**
346 * The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3. For example: `b970b42360b81c8ddbd79d2f5df0069ba9033c8a79655752abe380cd6d63ba8bcf23384d568fcf89fc49700b5e11a0fd` .
347 * @cloudformationAttribute S3CanonicalUserId
348 */
349 readonly attrS3CanonicalUserId: string;
350 /**
351 * The current configuration information for the identity.
352 *
353 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.html#cfn-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig
354 */
355 cloudFrontOriginAccessIdentityConfig: CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty | cdk.IResolvable;
356 /**
357 * Create a new `AWS::CloudFront::CloudFrontOriginAccessIdentity`.
358 *
359 * @param scope - scope in which this resource is defined
360 * @param id - scoped id of the resource
361 * @param props - resource properties
362 */
363 constructor(scope: cdk.Construct, id: string, props: CfnCloudFrontOriginAccessIdentityProps);
364 /**
365 * Examines the CloudFormation resource and discloses attributes.
366 *
367 * @param inspector - tree inspector to collect and process attributes
368 *
369 */
370 inspect(inspector: cdk.TreeInspector): void;
371 protected get cfnProperties(): {
372 [key: string]: any;
373 };
374 protected renderProperties(props: {
375 [key: string]: any;
376 }): {
377 [key: string]: any;
378 };
379}
380export declare namespace CfnCloudFrontOriginAccessIdentity {
381 /**
382 * Origin access identity configuration. Send a `GET` request to the `/ *CloudFront API version* /CloudFront/identity ID/config` resource.
383 *
384 * @struct
385 * @stability external
386 *
387 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig.html
388 */
389 interface CloudFrontOriginAccessIdentityConfigProperty {
390 /**
391 * A comment to describe the origin access identity. The comment cannot be longer than 128 characters.
392 *
393 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig.html#cfn-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig-comment
394 */
395 readonly comment: string;
396 }
397}
398/**
399 * Properties for defining a `CfnDistribution`
400 *
401 * @struct
402 * @stability external
403 *
404 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html
405 */
406export interface CfnDistributionProps {
407 /**
408 * The current configuration information for the distribution. Send a `GET` request to the `/ *CloudFront API version* /distribution ID/config` resource.
409 *
410 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-distributionconfig
411 */
412 readonly distributionConfig: CfnDistribution.DistributionConfigProperty | cdk.IResolvable;
413 /**
414 * A complex type that contains zero or more `Tag` elements.
415 *
416 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-tags
417 */
418 readonly tags?: cdk.CfnTag[];
419}
420/**
421 * A CloudFormation `AWS::CloudFront::Distribution`
422 *
423 * A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
424 *
425 * @cloudformationResource AWS::CloudFront::Distribution
426 * @stability external
427 *
428 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html
429 */
430export declare class CfnDistribution extends cdk.CfnResource implements cdk.IInspectable {
431 /**
432 * The CloudFormation resource type name for this resource class.
433 */
434 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::Distribution";
435 /**
436 * A factory method that creates a new instance of this class from an object
437 * containing the CloudFormation properties of this resource.
438 * Used in the @aws-cdk/cloudformation-include module.
439 *
440 * @internal
441 */
442 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnDistribution;
443 /**
444 * The domain name of the resource, such as `d111111abcdef8.cloudfront.net` .
445 * @cloudformationAttribute DomainName
446 */
447 readonly attrDomainName: string;
448 /**
449 *
450 * @cloudformationAttribute Id
451 */
452 readonly attrId: string;
453 /**
454 * The current configuration information for the distribution. Send a `GET` request to the `/ *CloudFront API version* /distribution ID/config` resource.
455 *
456 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-distributionconfig
457 */
458 distributionConfig: CfnDistribution.DistributionConfigProperty | cdk.IResolvable;
459 /**
460 * A complex type that contains zero or more `Tag` elements.
461 *
462 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-tags
463 */
464 readonly tags: cdk.TagManager;
465 /**
466 * Create a new `AWS::CloudFront::Distribution`.
467 *
468 * @param scope - scope in which this resource is defined
469 * @param id - scoped id of the resource
470 * @param props - resource properties
471 */
472 constructor(scope: cdk.Construct, id: string, props: CfnDistributionProps);
473 /**
474 * Examines the CloudFormation resource and discloses attributes.
475 *
476 * @param inspector - tree inspector to collect and process attributes
477 *
478 */
479 inspect(inspector: cdk.TreeInspector): void;
480 protected get cfnProperties(): {
481 [key: string]: any;
482 };
483 protected renderProperties(props: {
484 [key: string]: any;
485 }): {
486 [key: string]: any;
487 };
488}
489export declare namespace CfnDistribution {
490 /**
491 * A complex type that describes how CloudFront processes requests.
492 *
493 * You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to serve objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin is never used.
494 *
495 * For the current quota (formerly known as limit) on the number of cache behaviors that you can add to a distribution, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) in the *Amazon CloudFront Developer Guide* .
496 *
497 * If you don’t want to specify any cache behaviors, include only an empty `CacheBehaviors` element. Don’t include an empty `CacheBehavior` element because this is invalid.
498 *
499 * To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty `CacheBehaviors` element.
500 *
501 * To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.
502 *
503 * For more information about cache behaviors, see [Cache Behavior Settings](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior) in the *Amazon CloudFront Developer Guide* .
504 *
505 * @struct
506 * @stability external
507 *
508 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html
509 */
510 interface CacheBehaviorProperty {
511 /**
512 * A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:
513 *
514 * - CloudFront forwards only `GET` and `HEAD` requests.
515 * - CloudFront forwards only `GET` , `HEAD` , and `OPTIONS` requests.
516 * - CloudFront forwards `GET, HEAD, OPTIONS, PUT, PATCH, POST` , and `DELETE` requests.
517 *
518 * If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.
519 *
520 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-allowedmethods
521 */
522 readonly allowedMethods?: string[];
523 /**
524 * The unique identifier of the cache policy that is attached to this cache behavior. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide* .
525 *
526 * A `CacheBehavior` must include either a `CachePolicyId` or `ForwardedValues` . We recommend that you use a `CachePolicyId` .
527 *
528 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachepolicyid
529 */
530 readonly cachePolicyId?: string;
531 /**
532 * A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:
533 *
534 * - CloudFront caches responses to `GET` and `HEAD` requests.
535 * - CloudFront caches responses to `GET` , `HEAD` , and `OPTIONS` requests.
536 *
537 * If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers, and Origin headers for the responses to be cached correctly.
538 *
539 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachedmethods
540 */
541 readonly cachedMethods?: string[];
542 /**
543 * Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see [Serving Compressed Files](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) in the *Amazon CloudFront Developer Guide* .
544 *
545 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-compress
546 */
547 readonly compress?: boolean | cdk.IResolvable;
548 /**
549 * This field is deprecated. We recommend that you use the `DefaultTTL` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide* .
550 *
551 * The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as `Cache-Control max-age` , `Cache-Control s-maxage` , and `Expires` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
552 *
553 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-defaultttl
554 */
555 readonly defaultTtl?: number;
556 /**
557 * The value of `ID` for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for this cache behavior.
558 *
559 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-fieldlevelencryptionid
560 */
561 readonly fieldLevelEncryptionId?: string;
562 /**
563 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field. For more information, see [Working with policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html) in the *Amazon CloudFront Developer Guide* .
564 *
565 * If you want to include values in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide* .
566 *
567 * If you want to send values to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) or [Using the managed origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) in the *Amazon CloudFront Developer Guide* .
568 *
569 * A `CacheBehavior` must include either a `CachePolicyId` or `ForwardedValues` . We recommend that you use a `CachePolicyId` .
570 *
571 * A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.
572 *
573 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-forwardedvalues
574 */
575 readonly forwardedValues?: CfnDistribution.ForwardedValuesProperty | cdk.IResolvable;
576 /**
577 * A list of CloudFront functions that are associated with this cache behavior. CloudFront functions must be published to the `LIVE` stage to associate them with a cache behavior.
578 *
579 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-functionassociations
580 */
581 readonly functionAssociations?: Array<CfnDistribution.FunctionAssociationProperty | cdk.IResolvable> | cdk.IResolvable;
582 /**
583 * A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.
584 *
585 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-lambdafunctionassociations
586 */
587 readonly lambdaFunctionAssociations?: Array<CfnDistribution.LambdaFunctionAssociationProperty | cdk.IResolvable> | cdk.IResolvable;
588 /**
589 * This field is deprecated. We recommend that you use the `MaxTTL` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide* .
590 *
591 * The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as `Cache-Control max-age` , `Cache-Control s-maxage` , and `Expires` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
592 *
593 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-maxttl
594 */
595 readonly maxTtl?: number;
596 /**
597 * This field is deprecated. We recommend that you use the `MinTTL` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide* .
598 *
599 * The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
600 *
601 * You must specify `0` for `MinTTL` if you configure CloudFront to forward all headers to your origin (under `Headers` , if you specify `1` for `Quantity` and `*` for `Name` ).
602 *
603 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-minttl
604 */
605 readonly minTtl?: number;
606 /**
607 * The unique identifier of the origin request policy that is attached to this cache behavior. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) or [Using the managed origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) in the *Amazon CloudFront Developer Guide* .
608 *
609 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-originrequestpolicyid
610 */
611 readonly originRequestPolicyId?: string;
612 /**
613 * The pattern (for example, `images/*.jpg` ) that specifies which requests to apply the behavior to. When CloudFront receives a viewer request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution.
614 *
615 * > You can optionally include a slash ( `/` ) at the beginning of the path pattern. For example, `/images/*.jpg` . CloudFront behavior is the same with or without the leading `/` .
616 *
617 * The path pattern for the default cache behavior is `*` and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.
618 *
619 * For more information, see [Path Pattern](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern) in the *Amazon CloudFront Developer Guide* .
620 *
621 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-pathpattern
622 */
623 readonly pathPattern: string;
624 /**
625 * The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see [Real-time logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) in the *Amazon CloudFront Developer Guide* .
626 *
627 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-realtimelogconfigarn
628 */
629 readonly realtimeLogConfigArn?: string;
630 /**
631 * The identifier for a response headers policy.
632 *
633 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-responseheaderspolicyid
634 */
635 readonly responseHeadersPolicyId?: string;
636 /**
637 * Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify `true` ; if not, specify `false` . If you specify `true` for `SmoothStreaming` , you can still distribute other content using this cache behavior if the content matches the value of `PathPattern` .
638 *
639 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-smoothstreaming
640 */
641 readonly smoothStreaming?: boolean | cdk.IResolvable;
642 /**
643 * The value of `ID` for the origin that you want CloudFront to route requests to when they match this cache behavior.
644 *
645 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-targetoriginid
646 */
647 readonly targetOriginId: string;
648 /**
649 * A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
650 *
651 * When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see [Serving private content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide* .
652 *
653 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedkeygroups
654 */
655 readonly trustedKeyGroups?: string[];
656 /**
657 * > We recommend using `TrustedKeyGroups` instead of `TrustedSigners` .
658 *
659 * A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
660 *
661 * When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in the trusted signer’s AWS account . The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see [Serving private content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide* .
662 *
663 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedsigners
664 */
665 readonly trustedSigners?: string[];
666 /**
667 * The protocol that viewers can use to access the files in the origin specified by `TargetOriginId` when a request matches the path pattern in `PathPattern` . You can specify the following options:
668 *
669 * - `allow-all` : Viewers can use HTTP or HTTPS.
670 * - `redirect-to-https` : If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.
671 * - `https-only` : If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
672 *
673 * For more information about requiring the HTTPS protocol, see [Requiring HTTPS Between Viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) in the *Amazon CloudFront Developer Guide* .
674 *
675 * > The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects’ cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see [Managing Cache Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
676 *
677 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-viewerprotocolpolicy
678 */
679 readonly viewerProtocolPolicy: string;
680 }
681}
682export declare namespace CfnDistribution {
683 /**
684 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
685 *
686 * If you want to include cookies in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide* .
687 *
688 * If you want to send cookies to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide* .
689 *
690 * A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see [How CloudFront Forwards, Caches, and Logs Cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) in the *Amazon CloudFront Developer Guide* .
691 *
692 * @struct
693 * @stability external
694 *
695 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html
696 */
697 interface CookiesProperty {
698 /**
699 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
700 *
701 * If you want to include cookies in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide* .
702 *
703 * If you want to send cookies to the origin but not include them in the cache key, use origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide* .
704 *
705 * Specifies which cookies to forward to the origin for this cache behavior: all, none, or the list of cookies specified in the `WhitelistedNames` complex type.
706 *
707 * Amazon S3 doesn't process cookies. When the cache behavior is forwarding requests to an Amazon S3 origin, specify none for the `Forward` element.
708 *
709 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-forward
710 */
711 readonly forward: string;
712 /**
713 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
714 *
715 * If you want to include cookies in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide* .
716 *
717 * If you want to send cookies to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide* .
718 *
719 * Required if you specify `whitelist` for the value of `Forward` . A complex type that specifies how many different cookies you want CloudFront to forward to the origin for this cache behavior and, if you want to forward selected cookies, the names of those cookies.
720 *
721 * If you specify `all` or `none` for the value of `Forward` , omit `WhitelistedNames` . If you change the value of `Forward` from `whitelist` to `all` or `none` and you don't delete the `WhitelistedNames` element and its child elements, CloudFront deletes them automatically.
722 *
723 * For the current limit on the number of cookie names that you can whitelist for each cache behavior, see [CloudFront Limits](https://docs.aws.amazon.com/general/latest/gr/xrefaws_service_limits.html#limits_cloudfront) in the *AWS General Reference* .
724 *
725 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-whitelistednames
726 */
727 readonly whitelistedNames?: string[];
728 }
729}
730export declare namespace CfnDistribution {
731 /**
732 * A complex type that controls:
733 *
734 * - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
735 * - How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
736 *
737 * For more information about custom error pages, see [Customizing Error Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the *Amazon CloudFront Developer Guide* .
738 *
739 * @struct
740 * @stability external
741 *
742 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html
743 */
744 interface CustomErrorResponseProperty {
745 /**
746 * The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in `ErrorCode` . When this time period has elapsed, CloudFront queries your origin to see whether the problem that caused the error has been resolved and the requested object is now available.
747 *
748 * For more information, see [Customizing Error Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the *Amazon CloudFront Developer Guide* .
749 *
750 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-errorcachingminttl
751 */
752 readonly errorCachingMinTtl?: number;
753 /**
754 * The HTTP status code for which you want to specify a custom error page and/or a caching duration.
755 *
756 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-errorcode
757 */
758 readonly errorCode: number;
759 /**
760 * The HTTP status code that you want CloudFront to return to the viewer along with the custom error page. There are a variety of reasons that you might want CloudFront to return a status code different from the status code that your origin returned to CloudFront, for example:
761 *
762 * - Some Internet devices (some firewalls and corporate proxies, for example) intercept HTTP 4xx and 5xx and prevent the response from being returned to the viewer. If you substitute `200` , the response typically won't be intercepted.
763 * - If you don't care about distinguishing among different client errors or server errors, you can specify `400` or `500` as the `ResponseCode` for all 4xx or 5xx errors.
764 * - You might want to return a `200` status code (OK) and static website so your customers don't know that your website is down.
765 *
766 * If you specify a value for `ResponseCode` , you must also specify a value for `ResponsePagePath` .
767 *
768 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-responsecode
769 */
770 readonly responseCode?: number;
771 /**
772 * The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the HTTP status code specified by `ErrorCode` , for example, `/4xx-errors/403-forbidden.html` . If you want to store your objects and your custom error pages in different locations, your distribution must include a cache behavior for which the following is true:
773 *
774 * - The value of `PathPattern` matches the path to your custom error messages. For example, suppose you saved custom error pages for 4xx errors in an Amazon S3 bucket in a directory named `/4xx-errors` . Your distribution must include a cache behavior for which the path pattern routes requests for your custom error pages to that location, for example, `/4xx-errors/*` .
775 * - The value of `TargetOriginId` specifies the value of the `ID` element for the origin that contains your custom error pages.
776 *
777 * If you specify a value for `ResponsePagePath` , you must also specify a value for `ResponseCode` .
778 *
779 * We recommend that you store custom error pages in an Amazon S3 bucket. If you store custom error pages on an HTTP server and the server starts to return 5xx errors, CloudFront can't get the files that you want to return to viewers because the origin server is unavailable.
780 *
781 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-responsepagepath
782 */
783 readonly responsePagePath?: string;
784 }
785}
786export declare namespace CfnDistribution {
787 /**
788 * A custom origin. A custom origin is any origin that is *not* an Amazon S3 bucket, with one exception. An Amazon S3 bucket that is [configured with static website hosting](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) *is* a custom origin.
789 *
790 * @struct
791 * @stability external
792 *
793 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html
794 */
795 interface CustomOriginConfigProperty {
796 /**
797 * The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.
798 *
799 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-httpport
800 */
801 readonly httpPort?: number;
802 /**
803 * The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.
804 *
805 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-httpsport
806 */
807 readonly httpsPort?: number;
808 /**
809 * Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don’t specify otherwise) is 5 seconds.
810 *
811 * For more information, see [Origin Keep-alive Timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginKeepaliveTimeout) in the *Amazon CloudFront Developer Guide* .
812 *
813 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originkeepalivetimeout
814 */
815 readonly originKeepaliveTimeout?: number;
816 /**
817 * Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:
818 *
819 * - `http-only` – CloudFront always uses HTTP to connect to the origin.
820 * - `match-viewer` – CloudFront connects to the origin using the same protocol that the viewer used to connect to CloudFront.
821 * - `https-only` – CloudFront always uses HTTPS to connect to the origin.
822 *
823 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originprotocolpolicy
824 */
825 readonly originProtocolPolicy: string;
826 /**
827 * Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the *origin response timeout* . The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don’t specify otherwise) is 30 seconds.
828 *
829 * For more information, see [Origin Response Timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout) in the *Amazon CloudFront Developer Guide* .
830 *
831 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originreadtimeout
832 */
833 readonly originReadTimeout?: number;
834 /**
835 * Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values include `SSLv3` , `TLSv1` , `TLSv1.1` , and `TLSv1.2` .
836 *
837 * For more information, see [Minimum Origin SSL Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) in the *Amazon CloudFront Developer Guide* .
838 *
839 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originsslprotocols
840 */
841 readonly originSslProtocols?: string[];
842 }
843}
844export declare namespace CfnDistribution {
845 /**
846 * A complex type that describes the default cache behavior if you don’t specify a `CacheBehavior` element or if request URLs don’t match any of the values of `PathPattern` in `CacheBehavior` elements. You must create exactly one default cache behavior.
847 *
848 * @struct
849 * @stability external
850 *
851 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html
852 */
853 interface DefaultCacheBehaviorProperty {
854 /**
855 * A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:
856 *
857 * - CloudFront forwards only `GET` and `HEAD` requests.
858 * - CloudFront forwards only `GET` , `HEAD` , and `OPTIONS` requests.
859 * - CloudFront forwards `GET, HEAD, OPTIONS, PUT, PATCH, POST` , and `DELETE` requests.
860 *
861 * If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.
862 *
863 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-allowedmethods
864 */
865 readonly allowedMethods?: string[];
866 /**
867 * The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide* .
868 *
869 * A `DefaultCacheBehavior` must include either a `CachePolicyId` or `ForwardedValues` . We recommend that you use a `CachePolicyId` .
870 *
871 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-cachepolicyid
872 */
873 readonly cachePolicyId?: string;
874 /**
875 * A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:
876 *
877 * - CloudFront caches responses to `GET` and `HEAD` requests.
878 * - CloudFront caches responses to `GET` , `HEAD` , and `OPTIONS` requests.
879 *
880 * If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers, and Origin headers for the responses to be cached correctly.
881 *
882 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-cachedmethods
883 */
884 readonly cachedMethods?: string[];
885 /**
886 * Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify `true` ; if not, specify `false` . For more information, see [Serving Compressed Files](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) in the *Amazon CloudFront Developer Guide* .
887 *
888 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-compress
889 */
890 readonly compress?: boolean | cdk.IResolvable;
891 /**
892 * This field is deprecated. We recommend that you use the `DefaultTTL` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide* .
893 *
894 * The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as `Cache-Control max-age` , `Cache-Control s-maxage` , and `Expires` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
895 *
896 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-defaultttl
897 */
898 readonly defaultTtl?: number;
899 /**
900 * The value of `ID` for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.
901 *
902 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-fieldlevelencryptionid
903 */
904 readonly fieldLevelEncryptionId?: string;
905 /**
906 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field. For more information, see [Working with policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html) in the *Amazon CloudFront Developer Guide* .
907 *
908 * If you want to include values in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide* .
909 *
910 * If you want to send values to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) or [Using the managed origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) in the *Amazon CloudFront Developer Guide* .
911 *
912 * A `DefaultCacheBehavior` must include either a `CachePolicyId` or `ForwardedValues` . We recommend that you use a `CachePolicyId` .
913 *
914 * A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.
915 *
916 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-forwardedvalues
917 */
918 readonly forwardedValues?: CfnDistribution.ForwardedValuesProperty | cdk.IResolvable;
919 /**
920 * A list of CloudFront functions that are associated with this cache behavior. CloudFront functions must be published to the `LIVE` stage to associate them with a cache behavior.
921 *
922 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-functionassociations
923 */
924 readonly functionAssociations?: Array<CfnDistribution.FunctionAssociationProperty | cdk.IResolvable> | cdk.IResolvable;
925 /**
926 * A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.
927 *
928 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-lambdafunctionassociations
929 */
930 readonly lambdaFunctionAssociations?: Array<CfnDistribution.LambdaFunctionAssociationProperty | cdk.IResolvable> | cdk.IResolvable;
931 /**
932 * This field is deprecated. We recommend that you use the `MaxTTL` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide* .
933 *
934 * The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as `Cache-Control max-age` , `Cache-Control s-maxage` , and `Expires` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
935 *
936 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-maxttl
937 */
938 readonly maxTtl?: number;
939 /**
940 * This field is deprecated. We recommend that you use the `MinTTL` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide* .
941 *
942 * The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
943 *
944 * You must specify `0` for `MinTTL` if you configure CloudFront to forward all headers to your origin (under `Headers` , if you specify `1` for `Quantity` and `*` for `Name` ).
945 *
946 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-minttl
947 */
948 readonly minTtl?: number;
949 /**
950 * The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) or [Using the managed origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) in the *Amazon CloudFront Developer Guide* .
951 *
952 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-originrequestpolicyid
953 */
954 readonly originRequestPolicyId?: string;
955 /**
956 * The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see [Real-time logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) in the *Amazon CloudFront Developer Guide* .
957 *
958 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-realtimelogconfigarn
959 */
960 readonly realtimeLogConfigArn?: string;
961 /**
962 * The identifier for a response headers policy.
963 *
964 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-responseheaderspolicyid
965 */
966 readonly responseHeadersPolicyId?: string;
967 /**
968 * Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify `true` ; if not, specify `false` . If you specify `true` for `SmoothStreaming` , you can still distribute other content using this cache behavior if the content matches the value of `PathPattern` .
969 *
970 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-smoothstreaming
971 */
972 readonly smoothStreaming?: boolean | cdk.IResolvable;
973 /**
974 * The value of `ID` for the origin that you want CloudFront to route requests to when they use the default cache behavior.
975 *
976 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-targetoriginid
977 */
978 readonly targetOriginId: string;
979 /**
980 * A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
981 *
982 * When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see [Serving private content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide* .
983 *
984 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-trustedkeygroups
985 */
986 readonly trustedKeyGroups?: string[];
987 /**
988 * > We recommend using `TrustedKeyGroups` instead of `TrustedSigners` .
989 *
990 * A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
991 *
992 * When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in a trusted signer’s AWS account . The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see [Serving private content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide* .
993 *
994 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-trustedsigners
995 */
996 readonly trustedSigners?: string[];
997 /**
998 * The protocol that viewers can use to access the files in the origin specified by `TargetOriginId` when a request matches the path pattern in `PathPattern` . You can specify the following options:
999 *
1000 * - `allow-all` : Viewers can use HTTP or HTTPS.
1001 * - `redirect-to-https` : If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.
1002 * - `https-only` : If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
1003 *
1004 * For more information about requiring the HTTPS protocol, see [Requiring HTTPS Between Viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) in the *Amazon CloudFront Developer Guide* .
1005 *
1006 * > The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects’ cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see [Managing Cache Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide* .
1007 *
1008 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-viewerprotocolpolicy
1009 */
1010 readonly viewerProtocolPolicy: string;
1011 }
1012}
1013export declare namespace CfnDistribution {
1014 /**
1015 * A distribution configuration.
1016 *
1017 * @struct
1018 * @stability external
1019 *
1020 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html
1021 */
1022 interface DistributionConfigProperty {
1023 /**
1024 * A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
1025 *
1026 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases
1027 */
1028 readonly aliases?: string[];
1029 /**
1030 * `CfnDistribution.DistributionConfigProperty.CNAMEs`
1031 *
1032 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cnames
1033 */
1034 readonly cnamEs?: string[];
1035 /**
1036 * A complex type that contains zero or more `CacheBehavior` elements.
1037 *
1038 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cachebehaviors
1039 */
1040 readonly cacheBehaviors?: Array<CfnDistribution.CacheBehaviorProperty | cdk.IResolvable> | cdk.IResolvable;
1041 /**
1042 * An optional comment to describe the distribution. The comment cannot be longer than 128 characters.
1043 *
1044 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-comment
1045 */
1046 readonly comment?: string;
1047 /**
1048 * A complex type that controls the following:
1049 *
1050 * - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
1051 * - How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
1052 *
1053 * For more information about custom error pages, see [Customizing Error Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the *Amazon CloudFront Developer Guide* .
1054 *
1055 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customerrorresponses
1056 */
1057 readonly customErrorResponses?: Array<CfnDistribution.CustomErrorResponseProperty | cdk.IResolvable> | cdk.IResolvable;
1058 /**
1059 * `CfnDistribution.DistributionConfigProperty.CustomOrigin`
1060 *
1061 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customorigin
1062 */
1063 readonly customOrigin?: CfnDistribution.LegacyCustomOriginProperty | cdk.IResolvable;
1064 /**
1065 * A complex type that describes the default cache behavior if you don't specify a `CacheBehavior` element or if files don't match any of the values of `PathPattern` in `CacheBehavior` elements. You must create exactly one default cache behavior.
1066 *
1067 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultcachebehavior
1068 */
1069 readonly defaultCacheBehavior?: CfnDistribution.DefaultCacheBehaviorProperty | cdk.IResolvable;
1070 /**
1071 * The object that you want CloudFront to request from your origin (for example, `index.html` ) when a viewer requests the root URL for your distribution ( `http://www.example.com` ) instead of an object in your distribution ( `http://www.example.com/product-description.html` ). Specifying a default root object avoids exposing the contents of your distribution.
1072 *
1073 * Specify only the object name, for example, `index.html` . Don't add a `/` before the object name.
1074 *
1075 * If you don't want to specify a default root object when you create a distribution, include an empty `DefaultRootObject` element.
1076 *
1077 * To delete the default root object from an existing distribution, update the distribution configuration and include an empty `DefaultRootObject` element.
1078 *
1079 * To replace the default root object, update the distribution configuration and specify the new object.
1080 *
1081 * For more information about the default root object, see [Creating a Default Root Object](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html) in the *Amazon CloudFront Developer Guide* .
1082 *
1083 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultrootobject
1084 */
1085 readonly defaultRootObject?: string;
1086 /**
1087 * From this field, you can enable or disable the selected distribution.
1088 *
1089 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-enabled
1090 */
1091 readonly enabled: boolean | cdk.IResolvable;
1092 /**
1093 * (Optional) Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront . The default value for new web distributions is `http1.1` .
1094 *
1095 * For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or later, and must support server name identification (SNI).
1096 *
1097 * In general, configuring CloudFront to communicate with viewers using HTTP/2 reduces latency. You can improve performance by optimizing for HTTP/2.
1098 *
1099 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-httpversion
1100 */
1101 readonly httpVersion?: string;
1102 /**
1103 * If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for your distribution, specify `true` . If you specify `false` , CloudFront responds to IPv6 DNS requests with the DNS response code `NOERROR` and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution.
1104 *
1105 * In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you're using signed URLs or signed cookies to restrict access to your content, and if you're using a custom policy that includes the `IpAddress` parameter to restrict the IP addresses that can access your content, don't enable IPv6. If you want to restrict access to some content by IP address and not restrict access to other content (or restrict access but not by IP address), you can create two distributions. For more information, see [Creating a Signed URL Using a Custom Policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html) in the *Amazon CloudFront Developer Guide* .
1106 *
1107 * If you're using an Amazon Route 53 AWS Integration alias resource record set to route traffic to your CloudFront distribution, you need to create a second alias resource record set when both of the following are true:
1108 *
1109 * - You enable IPv6 for the distribution
1110 * - You're using alternate domain names in the URLs for your objects
1111 *
1112 * For more information, see [Routing Traffic to an Amazon CloudFront Web Distribution by Using Your Domain Name](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html) in the *Amazon Route 53 AWS Integration Developer Guide* .
1113 *
1114 * If you created a CNAME resource record set, either with Amazon Route 53 AWS Integration or with another DNS service, you don't need to make any changes. A CNAME record will route traffic to your distribution regardless of the IP address format of the viewer request.
1115 *
1116 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-ipv6enabled
1117 */
1118 readonly ipv6Enabled?: boolean | cdk.IResolvable;
1119 /**
1120 * A complex type that controls whether access logs are written for the distribution.
1121 *
1122 * For more information about logging, see [Access Logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html) in the *Amazon CloudFront Developer Guide* .
1123 *
1124 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-logging
1125 */
1126 readonly logging?: CfnDistribution.LoggingProperty | cdk.IResolvable;
1127 /**
1128 * A complex type that contains information about origin groups for this distribution.
1129 *
1130 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origingroups
1131 */
1132 readonly originGroups?: CfnDistribution.OriginGroupsProperty | cdk.IResolvable;
1133 /**
1134 * A complex type that contains information about origins for this distribution.
1135 *
1136 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origins
1137 */
1138 readonly origins?: Array<CfnDistribution.OriginProperty | cdk.IResolvable> | cdk.IResolvable;
1139 /**
1140 * The price class that corresponds with the maximum price that you want to pay for CloudFront service. If you specify `PriceClass_All` , CloudFront responds to requests for your objects from all CloudFront edge locations.
1141 *
1142 * If you specify a price class other than `PriceClass_All` , CloudFront serves your objects from the CloudFront edge location that has the lowest latency among the edge locations in your price class. Viewers who are in or near regions that are excluded from your specified price class may encounter slower performance.
1143 *
1144 * For more information about price classes, see [Choosing the Price Class for a CloudFront Distribution](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PriceClass.html) in the *Amazon CloudFront Developer Guide* . For information about CloudFront pricing, including how price classes (such as Price Class 100) map to CloudFront regions, see [Amazon CloudFront Pricing](https://docs.aws.amazon.com/cloudfront/pricing/) .
1145 *
1146 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-priceclass
1147 */
1148 readonly priceClass?: string;
1149 /**
1150 * A complex type that identifies ways in which you want to restrict distribution of your content.
1151 *
1152 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions
1153 */
1154 readonly restrictions?: CfnDistribution.RestrictionsProperty | cdk.IResolvable;
1155 /**
1156 * `CfnDistribution.DistributionConfigProperty.S3Origin`
1157 *
1158 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-s3origin
1159 */
1160 readonly s3Origin?: CfnDistribution.LegacyS3OriginProperty | cdk.IResolvable;
1161 /**
1162 * A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers.
1163 *
1164 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-viewercertificate
1165 */
1166 readonly viewerCertificate?: CfnDistribution.ViewerCertificateProperty | cdk.IResolvable;
1167 /**
1168 * A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF , use the ACL ARN, for example `arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a` . To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example `473e64fd-f30b-4765-81a0-62ad96dd167a` .
1169 *
1170 * AWS WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront, and lets you control access to your content. Based on conditions that you specify, such as the IP addresses that requests originate from or the values of query strings, CloudFront responds to requests either with the requested content or with an HTTP 403 status code (Forbidden). You can also configure CloudFront to return a custom error page when a request is blocked. For more information about AWS WAF , see the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html) .
1171 *
1172 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-webaclid
1173 */
1174 readonly webAclId?: string;
1175 }
1176}
1177export declare namespace CfnDistribution {
1178 /**
1179 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
1180 *
1181 * If you want to include values in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide* .
1182 *
1183 * If you want to send values to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide* .
1184 *
1185 * A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.
1186 *
1187 * @struct
1188 * @stability external
1189 *
1190 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html
1191 */
1192 interface ForwardedValuesProperty {
1193 /**
1194 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
1195 *
1196 * If you want to include cookies in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide* .
1197 *
1198 * If you want to send cookies to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide* .
1199 *
1200 * A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see [How CloudFront Forwards, Caches, and Logs Cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) in the *Amazon CloudFront Developer Guide* .
1201 *
1202 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-cookies
1203 */
1204 readonly cookies?: CfnDistribution.CookiesProperty | cdk.IResolvable;
1205 /**
1206 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
1207 *
1208 * If you want to include headers in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide* .
1209 *
1210 * If you want to send headers to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide* .
1211 *
1212 * A complex type that specifies the `Headers` , if any, that you want CloudFront to forward to the origin for this cache behavior (whitelisted headers). For the headers that you specify, CloudFront also caches separate versions of a specified object that is based on the header values in viewer requests.
1213 *
1214 * For more information, see [Caching Content Based on Request Headers](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html) in the *Amazon CloudFront Developer Guide* .
1215 *
1216 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-headers
1217 */
1218 readonly headers?: string[];
1219 /**
1220 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
1221 *
1222 * If you want to include query strings in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide* .
1223 *
1224 * If you want to send query strings to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide* .
1225 *
1226 * Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior and cache based on the query string parameters. CloudFront behavior depends on the value of `QueryString` and on the values that you specify for `QueryStringCacheKeys` , if any:
1227 *
1228 * If you specify true for `QueryString` and you don't specify any values for `QueryStringCacheKeys` , CloudFront forwards all query string parameters to the origin and caches based on all query string parameters. Depending on how many query string parameters and values you have, this can adversely affect performance because CloudFront must forward more requests to the origin.
1229 *
1230 * If you specify true for `QueryString` and you specify one or more values for `QueryStringCacheKeys` , CloudFront forwards all query string parameters to the origin, but it only caches based on the query string parameters that you specify.
1231 *
1232 * If you specify false for `QueryString` , CloudFront doesn't forward any query string parameters to the origin, and doesn't cache based on query string parameters.
1233 *
1234 * For more information, see [Configuring CloudFront to Cache Based on Query String Parameters](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html) in the *Amazon CloudFront Developer Guide* .
1235 *
1236 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-querystring
1237 */
1238 readonly queryString: boolean | cdk.IResolvable;
1239 /**
1240 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
1241 *
1242 * If you want to include query strings in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide* .
1243 *
1244 * If you want to send query strings to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide* .
1245 *
1246 * A complex type that contains information about the query string parameters that you want CloudFront to use for caching for this cache behavior.
1247 *
1248 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-querystringcachekeys
1249 */
1250 readonly queryStringCacheKeys?: string[];
1251 }
1252}
1253export declare namespace CfnDistribution {
1254 /**
1255 * A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
1256 *
1257 * @struct
1258 * @stability external
1259 *
1260 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html
1261 */
1262 interface FunctionAssociationProperty {
1263 /**
1264 * The event type of the function, either `viewer-request` or `viewer-response` . You cannot use origin-facing event types ( `origin-request` and `origin-response` ) with a CloudFront function.
1265 *
1266 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html#cfn-cloudfront-distribution-functionassociation-eventtype
1267 */
1268 readonly eventType?: string;
1269 /**
1270 * The Amazon Resource Name (ARN) of the function.
1271 *
1272 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html#cfn-cloudfront-distribution-functionassociation-functionarn
1273 */
1274 readonly functionArn?: string;
1275 }
1276}
1277export declare namespace CfnDistribution {
1278 /**
1279 * A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using `MaxMind` GeoIP databases. To disable geo restriction, remove the [Restrictions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions) property from your stack template.
1280 *
1281 * @struct
1282 * @stability external
1283 *
1284 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html
1285 */
1286 interface GeoRestrictionProperty {
1287 /**
1288 * A complex type that contains a `Location` element for each country in which you want CloudFront either to distribute your content ( `whitelist` ) or not distribute your content ( `blacklist` ).
1289 *
1290 * The `Location` element is a two-letter, uppercase country code for a country that you want to include in your `blacklist` or `whitelist` . Include one `Location` element for each country.
1291 *
1292 * CloudFront and `MaxMind` both use `ISO 3166` country codes. For the current list of countries and the corresponding codes, see `ISO 3166-1-alpha-2` code on the *International Organization for Standardization* website. You can also refer to the country list on the CloudFront console, which includes both country names and codes.
1293 *
1294 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html#cfn-cloudfront-distribution-georestriction-locations
1295 */
1296 readonly locations?: string[];
1297 /**
1298 * The method that you want to use to restrict distribution of your content by country:
1299 *
1300 * - `none` : No geo restriction is enabled, meaning access to content is not restricted by client geo location.
1301 * - `blacklist` : The `Location` elements specify the countries in which you don't want CloudFront to distribute your content.
1302 * - `whitelist` : The `Location` elements specify the countries in which you want CloudFront to distribute your content.
1303 *
1304 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html#cfn-cloudfront-distribution-georestriction-restrictiontype
1305 */
1306 readonly restrictionType: string;
1307 }
1308}
1309export declare namespace CfnDistribution {
1310 /**
1311 * A complex type that contains a Lambda@Edge function association.
1312 *
1313 * @struct
1314 * @stability external
1315 *
1316 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html
1317 */
1318 interface LambdaFunctionAssociationProperty {
1319 /**
1320 * Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values:
1321 *
1322 * - `viewer-request` : The function executes when CloudFront receives a request from a viewer and before it checks to see whether the requested object is in the edge cache.
1323 * - `origin-request` : The function executes only when CloudFront sends a request to your origin. When the requested object is in the edge cache, the function doesn't execute.
1324 * - `origin-response` : The function executes after CloudFront receives a response from the origin and before it caches the object in the response. When the requested object is in the edge cache, the function doesn't execute.
1325 * - `viewer-response` : The function executes before CloudFront returns the requested object to the viewer. The function executes regardless of whether the object was already in the edge cache.
1326 *
1327 * If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.
1328 *
1329 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-eventtype
1330 */
1331 readonly eventType?: string;
1332 /**
1333 * A flag that allows a Lambda@Edge function to have read access to the body content. For more information, see [Accessing the Request Body by Choosing the Include Body Option](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html) in the Amazon CloudFront Developer Guide.
1334 *
1335 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-includebody
1336 */
1337 readonly includeBody?: boolean | cdk.IResolvable;
1338 /**
1339 * The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an alias or $LATEST.
1340 *
1341 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-lambdafunctionarn
1342 */
1343 readonly lambdaFunctionArn?: string;
1344 }
1345}
1346export declare namespace CfnDistribution {
1347 /**
1348 *
1349 *
1350 * @struct
1351 * @stability external
1352 *
1353 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html
1354 */
1355 interface LegacyCustomOriginProperty {
1356 /**
1357 * `CfnDistribution.LegacyCustomOriginProperty.DNSName`
1358 *
1359 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-dnsname
1360 */
1361 readonly dnsName: string;
1362 /**
1363 * `CfnDistribution.LegacyCustomOriginProperty.HTTPPort`
1364 *
1365 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpport
1366 */
1367 readonly httpPort?: number;
1368 /**
1369 * `CfnDistribution.LegacyCustomOriginProperty.HTTPSPort`
1370 *
1371 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpsport
1372 */
1373 readonly httpsPort?: number;
1374 /**
1375 * `CfnDistribution.LegacyCustomOriginProperty.OriginProtocolPolicy`
1376 *
1377 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originprotocolpolicy
1378 */
1379 readonly originProtocolPolicy: string;
1380 /**
1381 * `CfnDistribution.LegacyCustomOriginProperty.OriginSSLProtocols`
1382 *
1383 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originsslprotocols
1384 */
1385 readonly originSslProtocols: string[];
1386 }
1387}
1388export declare namespace CfnDistribution {
1389 /**
1390 *
1391 *
1392 * @struct
1393 * @stability external
1394 *
1395 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html
1396 */
1397 interface LegacyS3OriginProperty {
1398 /**
1399 * `CfnDistribution.LegacyS3OriginProperty.DNSName`
1400 *
1401 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-dnsname
1402 */
1403 readonly dnsName: string;
1404 /**
1405 * `CfnDistribution.LegacyS3OriginProperty.OriginAccessIdentity`
1406 *
1407 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-originaccessidentity
1408 */
1409 readonly originAccessIdentity?: string;
1410 }
1411}
1412export declare namespace CfnDistribution {
1413 /**
1414 * A complex type that controls whether access logs are written for the distribution.
1415 *
1416 * @struct
1417 * @stability external
1418 *
1419 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html
1420 */
1421 interface LoggingProperty {
1422 /**
1423 * The Amazon S3 bucket to store the access logs in, for example, `myawslogbucket.s3.amazonaws.com` .
1424 *
1425 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-bucket
1426 */
1427 readonly bucket: string;
1428 /**
1429 * Specifies whether you want CloudFront to include cookies in access logs, specify `true` for `IncludeCookies` . If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify `false` for `IncludeCookies` .
1430 *
1431 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-includecookies
1432 */
1433 readonly includeCookies?: boolean | cdk.IResolvable;
1434 /**
1435 * An optional string that you want CloudFront to prefix to the access log `filenames` for this distribution, for example, `myprefix/` . If you want to enable logging, but you don't want to specify a prefix, you still must include an empty `Prefix` element in the `Logging` element.
1436 *
1437 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-prefix
1438 */
1439 readonly prefix?: string;
1440 }
1441}
1442export declare namespace CfnDistribution {
1443 /**
1444 * An origin.
1445 *
1446 * An origin is the location where content is stored, and from which CloudFront gets content to serve to viewers. To specify an origin:
1447 *
1448 * - Use `S3OriginConfig` to specify an Amazon S3 bucket that is not configured with static website hosting.
1449 * - Use `CustomOriginConfig` to specify all other kinds of origins, including:
1450 *
1451 * - An Amazon S3 bucket that is configured with static website hosting
1452 * - An Elastic Load Balancing load balancer
1453 * - An AWS Elemental MediaPackage endpoint
1454 * - An AWS Elemental MediaStore container
1455 * - Any other HTTP server, running on an Amazon EC2 instance or any other kind of host
1456 *
1457 * For the current maximum number of origins that you can specify per distribution, see [General Quotas on Web Distributions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html#limits-web-distributions) in the *Amazon CloudFront Developer Guide* (quotas were formerly referred to as limits).
1458 *
1459 * @struct
1460 * @stability external
1461 *
1462 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html
1463 */
1464 interface OriginProperty {
1465 /**
1466 * The number of times that CloudFront attempts to connect to the origin. The minimum number is 1, the maximum is 3, and the default (if you don’t specify otherwise) is 3.
1467 *
1468 * For a custom origin (including an Amazon S3 bucket that’s configured with static website hosting), this value also specifies the number of times that CloudFront attempts to get a response from the origin, in the case of an [Origin Response Timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout) .
1469 *
1470 * For more information, see [Origin Connection Attempts](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-attempts) in the *Amazon CloudFront Developer Guide* .
1471 *
1472 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-connectionattempts
1473 */
1474 readonly connectionAttempts?: number;
1475 /**
1476 * The number of seconds that CloudFront waits when trying to establish a connection to the origin. The minimum timeout is 1 second, the maximum is 10 seconds, and the default (if you don’t specify otherwise) is 10 seconds.
1477 *
1478 * For more information, see [Origin Connection Timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-timeout) in the *Amazon CloudFront Developer Guide* .
1479 *
1480 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-connectiontimeout
1481 */
1482 readonly connectionTimeout?: number;
1483 /**
1484 * Use this type to specify an origin that is not an Amazon S3 bucket, with one exception. If the Amazon S3 bucket is configured with static website hosting, use this type. If the Amazon S3 bucket is not configured with static website hosting, use the `S3OriginConfig` type instead.
1485 *
1486 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-customoriginconfig
1487 */
1488 readonly customOriginConfig?: CfnDistribution.CustomOriginConfigProperty | cdk.IResolvable;
1489 /**
1490 * The domain name for the origin.
1491 *
1492 * For more information, see [Origin Domain Name](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesDomainName) in the *Amazon CloudFront Developer Guide* .
1493 *
1494 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-domainname
1495 */
1496 readonly domainName: string;
1497 /**
1498 * A unique identifier for the origin. This value must be unique within the distribution.
1499 *
1500 * Use this value to specify the `TargetOriginId` in a `CacheBehavior` or `DefaultCacheBehavior` .
1501 *
1502 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-id
1503 */
1504 readonly id: string;
1505 /**
1506 * A list of HTTP header names and values that CloudFront adds to the requests that it sends to the origin.
1507 *
1508 * For more information, see [Adding Custom Headers to Origin Requests](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html) in the *Amazon CloudFront Developer Guide* .
1509 *
1510 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-origincustomheaders
1511 */
1512 readonly originCustomHeaders?: Array<CfnDistribution.OriginCustomHeaderProperty | cdk.IResolvable> | cdk.IResolvable;
1513 /**
1514 * An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
1515 *
1516 * For more information, see [Origin Path](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginPath) in the *Amazon CloudFront Developer Guide* .
1517 *
1518 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originpath
1519 */
1520 readonly originPath?: string;
1521 /**
1522 * CloudFront Origin Shield. Using Origin Shield can help reduce the load on your origin.
1523 *
1524 * For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the *Amazon CloudFront Developer Guide* .
1525 *
1526 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originshield
1527 */
1528 readonly originShield?: CfnDistribution.OriginShieldProperty | cdk.IResolvable;
1529 /**
1530 * Use this type to specify an origin that is an Amazon S3 bucket that is not configured with static website hosting. To specify any other type of origin, including an Amazon S3 bucket that is configured with static website hosting, use the `CustomOriginConfig` type instead.
1531 *
1532 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-s3originconfig
1533 */
1534 readonly s3OriginConfig?: CfnDistribution.S3OriginConfigProperty | cdk.IResolvable;
1535 }
1536}
1537export declare namespace CfnDistribution {
1538 /**
1539 * A complex type that contains `HeaderName` and `HeaderValue` elements, if any, for this distribution.
1540 *
1541 * @struct
1542 * @stability external
1543 *
1544 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html
1545 */
1546 interface OriginCustomHeaderProperty {
1547 /**
1548 * The name of a header that you want CloudFront to send to your origin. For more information, see [Adding Custom Headers to Origin Requests](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html) in the *Amazon CloudFront Developer Guide* .
1549 *
1550 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headername
1551 */
1552 readonly headerName: string;
1553 /**
1554 * The value for the header that you specified in the `HeaderName` field.
1555 *
1556 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headervalue
1557 */
1558 readonly headerValue: string;
1559 }
1560}
1561export declare namespace CfnDistribution {
1562 /**
1563 * An origin group includes two origins (a primary origin and a second origin to failover to) and a failover criteria that you specify. You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specifiy the origin group instead of a single origin, and CloudFront will failover from the primary origin to the second origin under the failover conditions that you've chosen.
1564 *
1565 * @struct
1566 * @stability external
1567 *
1568 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html
1569 */
1570 interface OriginGroupProperty {
1571 /**
1572 * A complex type that contains information about the failover criteria for an origin group.
1573 *
1574 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-failovercriteria
1575 */
1576 readonly failoverCriteria: CfnDistribution.OriginGroupFailoverCriteriaProperty | cdk.IResolvable;
1577 /**
1578 * The origin group's ID.
1579 *
1580 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-id
1581 */
1582 readonly id: string;
1583 /**
1584 * A complex type that contains information about the origins in an origin group.
1585 *
1586 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-members
1587 */
1588 readonly members: CfnDistribution.OriginGroupMembersProperty | cdk.IResolvable;
1589 }
1590}
1591export declare namespace CfnDistribution {
1592 /**
1593 * A complex data type that includes information about the failover criteria for an origin group, including the status codes for which CloudFront will failover from the primary origin to the second origin.
1594 *
1595 * @struct
1596 * @stability external
1597 *
1598 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupfailovercriteria.html
1599 */
1600 interface OriginGroupFailoverCriteriaProperty {
1601 /**
1602 * The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.
1603 *
1604 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupfailovercriteria.html#cfn-cloudfront-distribution-origingroupfailovercriteria-statuscodes
1605 */
1606 readonly statusCodes: CfnDistribution.StatusCodesProperty | cdk.IResolvable;
1607 }
1608}
1609export declare namespace CfnDistribution {
1610 /**
1611 * An origin in an origin group.
1612 *
1613 * @struct
1614 * @stability external
1615 *
1616 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmember.html
1617 */
1618 interface OriginGroupMemberProperty {
1619 /**
1620 * The ID for an origin in an origin group.
1621 *
1622 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmember.html#cfn-cloudfront-distribution-origingroupmember-originid
1623 */
1624 readonly originId: string;
1625 }
1626}
1627export declare namespace CfnDistribution {
1628 /**
1629 * A complex data type for the origins included in an origin group.
1630 *
1631 * @struct
1632 * @stability external
1633 *
1634 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html
1635 */
1636 interface OriginGroupMembersProperty {
1637 /**
1638 * Items (origins) in an origin group.
1639 *
1640 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html#cfn-cloudfront-distribution-origingroupmembers-items
1641 */
1642 readonly items: Array<CfnDistribution.OriginGroupMemberProperty | cdk.IResolvable> | cdk.IResolvable;
1643 /**
1644 * The number of origins in an origin group.
1645 *
1646 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html#cfn-cloudfront-distribution-origingroupmembers-quantity
1647 */
1648 readonly quantity: number;
1649 }
1650}
1651export declare namespace CfnDistribution {
1652 /**
1653 * A complex data type for the origin groups specified for a distribution.
1654 *
1655 * @struct
1656 * @stability external
1657 *
1658 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html
1659 */
1660 interface OriginGroupsProperty {
1661 /**
1662 * The items (origin groups) in a distribution.
1663 *
1664 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html#cfn-cloudfront-distribution-origingroups-items
1665 */
1666 readonly items?: Array<CfnDistribution.OriginGroupProperty | cdk.IResolvable> | cdk.IResolvable;
1667 /**
1668 * The number of origin groups.
1669 *
1670 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html#cfn-cloudfront-distribution-origingroups-quantity
1671 */
1672 readonly quantity: number;
1673 }
1674}
1675export declare namespace CfnDistribution {
1676 /**
1677 * CloudFront Origin Shield.
1678 *
1679 * Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the *Amazon CloudFront Developer Guide* .
1680 *
1681 * @struct
1682 * @stability external
1683 *
1684 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html
1685 */
1686 interface OriginShieldProperty {
1687 /**
1688 * A flag that specifies whether Origin Shield is enabled.
1689 *
1690 * When it’s enabled, CloudFront routes all requests through Origin Shield, which can help protect your origin. When it’s disabled, CloudFront might send requests directly to your origin from multiple edge locations or regional edge caches.
1691 *
1692 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html#cfn-cloudfront-distribution-originshield-enabled
1693 */
1694 readonly enabled?: boolean | cdk.IResolvable;
1695 /**
1696 * The AWS Region for Origin Shield.
1697 *
1698 * Specify the AWS Region that has the lowest latency to your origin. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2` .
1699 *
1700 * When you enable CloudFront Origin Shield, you must specify the AWS Region for Origin Shield. For the list of AWS Regions that you can specify, and for help choosing the best Region for your origin, see [Choosing the AWS Region for Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html#choose-origin-shield-region) in the *Amazon CloudFront Developer Guide* .
1701 *
1702 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html#cfn-cloudfront-distribution-originshield-originshieldregion
1703 */
1704 readonly originShieldRegion?: string;
1705 }
1706}
1707export declare namespace CfnDistribution {
1708 /**
1709 * A complex type that identifies ways in which you want to restrict distribution of your content.
1710 *
1711 * @struct
1712 * @stability external
1713 *
1714 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html
1715 */
1716 interface RestrictionsProperty {
1717 /**
1718 * A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using `MaxMind` GeoIP databases. To disable geo restriction, remove the [Restrictions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions) property from your stack template.
1719 *
1720 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html#cfn-cloudfront-distribution-restrictions-georestriction
1721 */
1722 readonly geoRestriction: CfnDistribution.GeoRestrictionProperty | cdk.IResolvable;
1723 }
1724}
1725export declare namespace CfnDistribution {
1726 /**
1727 * A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin or an S3 bucket that is configured as a website endpoint, use the `CustomOriginConfig` element instead.
1728 *
1729 * @struct
1730 * @stability external
1731 *
1732 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html
1733 */
1734 interface S3OriginConfigProperty {
1735 /**
1736 * The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that viewers can *only* access objects in an Amazon S3 bucket through CloudFront. The format of the value is:
1737 *
1738 * origin-access-identity/cloudfront/ *ID-of-origin-access-identity*
1739 *
1740 * where `*ID-of-origin-access-identity*` is the value that CloudFront returned in the `ID` element when you created the origin access identity.
1741 *
1742 * If you want viewers to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty `OriginAccessIdentity` element.
1743 *
1744 * To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty `OriginAccessIdentity` element.
1745 *
1746 * To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
1747 *
1748 * For more information about the origin access identity, see [Serving Private Content through CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide* .
1749 *
1750 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html#cfn-cloudfront-distribution-s3originconfig-originaccessidentity
1751 */
1752 readonly originAccessIdentity?: string;
1753 }
1754}
1755export declare namespace CfnDistribution {
1756 /**
1757 * A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.
1758 *
1759 * @struct
1760 * @stability external
1761 *
1762 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html
1763 */
1764 interface StatusCodesProperty {
1765 /**
1766 * The items (status codes) for an origin group.
1767 *
1768 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html#cfn-cloudfront-distribution-statuscodes-items
1769 */
1770 readonly items: number[] | cdk.IResolvable;
1771 /**
1772 * The number of status codes.
1773 *
1774 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html#cfn-cloudfront-distribution-statuscodes-quantity
1775 */
1776 readonly quantity: number;
1777 }
1778}
1779export declare namespace CfnDistribution {
1780 /**
1781 * A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers.
1782 *
1783 * If the distribution doesn’t use `Aliases` (also known as alternate domain names or CNAMEs)—that is, if the distribution uses the CloudFront domain name such as `d111111abcdef8.cloudfront.net` —set `CloudFrontDefaultCertificate` to `true` and leave all other fields empty.
1784 *
1785 * If the distribution uses `Aliases` (alternate domain names or CNAMEs), use the fields in this type to specify the following settings:
1786 *
1787 * - Which viewers the distribution accepts HTTPS connections from: only viewers that support [server name indication (SNI)](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Server_Name_Indication) (recommended), or all viewers including those that don’t support SNI.
1788 *
1789 * - To accept HTTPS connections from only viewers that support SNI, set `SSLSupportMethod` to `sni-only` . This is recommended. Most browsers and clients support SNI. (In CloudFormation, the field name is `SslSupportMethod` . Note the different capitalization.)
1790 * - To accept HTTPS connections from all viewers, including those that don’t support SNI, set `SSLSupportMethod` to `vip` . This is not recommended, and results in additional monthly charges from CloudFront. (In CloudFormation, the field name is `SslSupportMethod` . Note the different capitalization.)
1791 * - The minimum SSL/TLS protocol version that the distribution can use to communicate with viewers. To specify a minimum version, choose a value for `MinimumProtocolVersion` . For more information, see [Security Policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValues-security-policy) in the *Amazon CloudFront Developer Guide* .
1792 * - The location of the SSL/TLS certificate, [AWS Certificate Manager (ACM)](https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html) (recommended) or [AWS Identity and Access Management (IAM)](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) . You specify the location by setting a value in one of the following fields (not both):
1793 *
1794 * - `ACMCertificateArn` (In CloudFormation, this field name is `AcmCertificateArn` . Note the different capitalization.)
1795 * - `IAMCertificateId` (In CloudFormation, this field name is `IamCertificateId` . Note the different capitalization.)
1796 *
1797 * All distributions support HTTPS connections from viewers. To require viewers to use HTTPS only, or to redirect them from HTTP to HTTPS, use `ViewerProtocolPolicy` in the `CacheBehavior` or `DefaultCacheBehavior` . To specify how CloudFront should use SSL/TLS to communicate with your custom origin, use `CustomOriginConfig` .
1798 *
1799 * For more information, see [Using HTTPS with CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https.html) and [Using Alternate Domain Names and HTTPS](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-alternate-domain-names.html) in the *Amazon CloudFront Developer Guide* .
1800 *
1801 * @struct
1802 * @stability external
1803 *
1804 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html
1805 */
1806 interface ViewerCertificateProperty {
1807 /**
1808 * > In CloudFormation, this field name is `AcmCertificateArn` . Note the different capitalization.
1809 *
1810 * If the distribution uses `Aliases` (alternate domain names or CNAMEs) and the SSL/TLS certificate is stored in [AWS Certificate Manager (ACM)](https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html) , provide the Amazon Resource Name (ARN) of the ACM certificate. CloudFront only supports ACM certificates in the US East (N. Virginia) Region ( `us-east-1` ).
1811 *
1812 * If you specify an ACM certificate ARN, you must also specify values for `MinimumProtocolVersion` and `SSLSupportMethod` . (In CloudFormation, the field name is `SslSupportMethod` . Note the different capitalization.)
1813 *
1814 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-acmcertificatearn
1815 */
1816 readonly acmCertificateArn?: string;
1817 /**
1818 * If the distribution uses the CloudFront domain name such as `d111111abcdef8.cloudfront.net` , set this field to `true` .
1819 *
1820 * If the distribution uses `Aliases` (alternate domain names or CNAMEs), set this field to `false` and specify values for the following fields:
1821 *
1822 * - `ACMCertificateArn` or `IAMCertificateId` (specify a value for one, not both)
1823 *
1824 * In CloudFormation, these field names are `AcmCertificateArn` and `IamCertificateId` . Note the different capitalization.
1825 * - `MinimumProtocolVersion`
1826 * - `SSLSupportMethod` (In CloudFormation, this field name is `SslSupportMethod` . Note the different capitalization.)
1827 *
1828 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-cloudfrontdefaultcertificate
1829 */
1830 readonly cloudFrontDefaultCertificate?: boolean | cdk.IResolvable;
1831 /**
1832 * > In CloudFormation, this field name is `IamCertificateId` . Note the different capitalization.
1833 *
1834 * If the distribution uses `Aliases` (alternate domain names or CNAMEs) and the SSL/TLS certificate is stored in [AWS Identity and Access Management (IAM)](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) , provide the ID of the IAM certificate.
1835 *
1836 * If you specify an IAM certificate ID, you must also specify values for `MinimumProtocolVersion` and `SSLSupportMethod` . (In CloudFormation, the field name is `SslSupportMethod` . Note the different capitalization.)
1837 *
1838 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-iamcertificateid
1839 */
1840 readonly iamCertificateId?: string;
1841 /**
1842 * If the distribution uses `Aliases` (alternate domain names or CNAMEs), specify the security policy that you want CloudFront to use for HTTPS connections with viewers. The security policy determines two settings:
1843 *
1844 * - The minimum SSL/TLS protocol that CloudFront can use to communicate with viewers.
1845 * - The ciphers that CloudFront can use to encrypt the content that it returns to viewers.
1846 *
1847 * For more information, see [Security Policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValues-security-policy) and [Supported Protocols and Ciphers Between Viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html#secure-connections-supported-ciphers) in the *Amazon CloudFront Developer Guide* .
1848 *
1849 * > On the CloudFront console, this setting is called *Security Policy* .
1850 *
1851 * When you’re using SNI only (you set `SSLSupportMethod` to `sni-only` ), you must specify `TLSv1` or higher. (In CloudFormation, the field name is `SslSupportMethod` . Note the different capitalization.)
1852 *
1853 * If the distribution uses the CloudFront domain name such as `d111111abcdef8.cloudfront.net` (you set `CloudFrontDefaultCertificate` to `true` ), CloudFront automatically sets the security policy to `TLSv1` regardless of the value that you set here.
1854 *
1855 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-minimumprotocolversion
1856 */
1857 readonly minimumProtocolVersion?: string;
1858 /**
1859 * > In CloudFormation, this field name is `SslSupportMethod` . Note the different capitalization.
1860 *
1861 * If the distribution uses `Aliases` (alternate domain names or CNAMEs), specify which viewers the distribution accepts HTTPS connections from.
1862 *
1863 * - `sni-only` – The distribution accepts HTTPS connections from only viewers that support [server name indication (SNI)](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Server_Name_Indication) . This is recommended. Most browsers and clients support SNI.
1864 * - `vip` – The distribution accepts HTTPS connections from all viewers including those that don’t support SNI. This is not recommended, and results in additional monthly charges from CloudFront.
1865 * - `static-ip` - Do not specify this value unless your distribution has been enabled for this feature by the CloudFront team. If you have a use case that requires static IP addresses for a distribution, contact CloudFront through the [AWS Support Center](https://docs.aws.amazon.com/support/home) .
1866 *
1867 * If the distribution uses the CloudFront domain name such as `d111111abcdef8.cloudfront.net` , don’t set a value for this field.
1868 *
1869 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-sslsupportmethod
1870 */
1871 readonly sslSupportMethod?: string;
1872 }
1873}
1874/**
1875 * Properties for defining a `CfnFunction`
1876 *
1877 * @struct
1878 * @stability external
1879 *
1880 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html
1881 */
1882export interface CfnFunctionProps {
1883 /**
1884 * A name to identify the function.
1885 *
1886 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-name
1887 */
1888 readonly name: string;
1889 /**
1890 * A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created. To automatically publish to the `LIVE` stage, set this property to `true` .
1891 *
1892 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-autopublish
1893 */
1894 readonly autoPublish?: boolean | cdk.IResolvable;
1895 /**
1896 * The function code. For more information about writing a CloudFront function, see [Writing function code for CloudFront Functions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html) in the *Amazon CloudFront Developer Guide* .
1897 *
1898 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functioncode
1899 */
1900 readonly functionCode?: string;
1901 /**
1902 * Contains configuration information about a CloudFront function.
1903 *
1904 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functionconfig
1905 */
1906 readonly functionConfig?: CfnFunction.FunctionConfigProperty | cdk.IResolvable;
1907}
1908/**
1909 * A CloudFormation `AWS::CloudFront::Function`
1910 *
1911 * Creates a CloudFront function.
1912 *
1913 * To create a function, you provide the function code and some configuration information about the function. The response contains an Amazon Resource Name (ARN) that uniquely identifies the function, and the function’s stage.
1914 *
1915 * By default, when you create a function, it’s in the `DEVELOPMENT` stage. In this stage, you can [test the function](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/test-function.html) in the CloudFront console (or with `TestFunction` in the CloudFront API).
1916 *
1917 * When you’re ready to use your function with a CloudFront distribution, publish the function to the `LIVE` stage. You can do this in the CloudFront console, with `PublishFunction` in the CloudFront API, or by updating the `AWS::CloudFront::Function` resource with the `AutoPublish` property set to `true` . When the function is published to the `LIVE` stage, you can attach it to a distribution’s cache behavior, using the function’s ARN.
1918 *
1919 * To automatically publish the function to the `LIVE` stage when it’s created, set the `AutoPublish` property to `true` .
1920 *
1921 * @cloudformationResource AWS::CloudFront::Function
1922 * @stability external
1923 *
1924 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html
1925 */
1926export declare class CfnFunction extends cdk.CfnResource implements cdk.IInspectable {
1927 /**
1928 * The CloudFormation resource type name for this resource class.
1929 */
1930 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::Function";
1931 /**
1932 * A factory method that creates a new instance of this class from an object
1933 * containing the CloudFormation properties of this resource.
1934 * Used in the @aws-cdk/cloudformation-include module.
1935 *
1936 * @internal
1937 */
1938 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnFunction;
1939 /**
1940 * The ARN of the function. For example:
1941 *
1942 * `arn:aws:cloudfront::123456789012:function/ExampleFunction` .
1943 *
1944 * To get the function ARN, use the following syntax:
1945 *
1946 * `!GetAtt *Function_Logical_ID* .FunctionMetadata.FunctionARN`
1947 * @cloudformationAttribute FunctionARN
1948 */
1949 readonly attrFunctionArn: string;
1950 /**
1951 *
1952 * @cloudformationAttribute FunctionMetadata.FunctionARN
1953 */
1954 readonly attrFunctionMetadataFunctionArn: string;
1955 /**
1956 *
1957 * @cloudformationAttribute Stage
1958 */
1959 readonly attrStage: string;
1960 /**
1961 * A name to identify the function.
1962 *
1963 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-name
1964 */
1965 name: string;
1966 /**
1967 * A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created. To automatically publish to the `LIVE` stage, set this property to `true` .
1968 *
1969 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-autopublish
1970 */
1971 autoPublish: boolean | cdk.IResolvable | undefined;
1972 /**
1973 * The function code. For more information about writing a CloudFront function, see [Writing function code for CloudFront Functions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html) in the *Amazon CloudFront Developer Guide* .
1974 *
1975 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functioncode
1976 */
1977 functionCode: string | undefined;
1978 /**
1979 * Contains configuration information about a CloudFront function.
1980 *
1981 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functionconfig
1982 */
1983 functionConfig: CfnFunction.FunctionConfigProperty | cdk.IResolvable | undefined;
1984 /**
1985 * Create a new `AWS::CloudFront::Function`.
1986 *
1987 * @param scope - scope in which this resource is defined
1988 * @param id - scoped id of the resource
1989 * @param props - resource properties
1990 */
1991 constructor(scope: cdk.Construct, id: string, props: CfnFunctionProps);
1992 /**
1993 * Examines the CloudFormation resource and discloses attributes.
1994 *
1995 * @param inspector - tree inspector to collect and process attributes
1996 *
1997 */
1998 inspect(inspector: cdk.TreeInspector): void;
1999 protected get cfnProperties(): {
2000 [key: string]: any;
2001 };
2002 protected renderProperties(props: {
2003 [key: string]: any;
2004 }): {
2005 [key: string]: any;
2006 };
2007}
2008export declare namespace CfnFunction {
2009 /**
2010 * Contains configuration information about a CloudFront function.
2011 *
2012 * @struct
2013 * @stability external
2014 *
2015 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html
2016 */
2017 interface FunctionConfigProperty {
2018 /**
2019 * A comment to describe the function.
2020 *
2021 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html#cfn-cloudfront-function-functionconfig-comment
2022 */
2023 readonly comment: string;
2024 /**
2025 * The function’s runtime environment. The only valid value is `cloudfront-js-1.0` .
2026 *
2027 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html#cfn-cloudfront-function-functionconfig-runtime
2028 */
2029 readonly runtime: string;
2030 }
2031}
2032export declare namespace CfnFunction {
2033 /**
2034 * Contains metadata about a CloudFront function.
2035 *
2036 * @struct
2037 * @stability external
2038 *
2039 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionmetadata.html
2040 */
2041 interface FunctionMetadataProperty {
2042 /**
2043 * The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
2044 *
2045 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionmetadata.html#cfn-cloudfront-function-functionmetadata-functionarn
2046 */
2047 readonly functionArn?: string;
2048 }
2049}
2050/**
2051 * Properties for defining a `CfnKeyGroup`
2052 *
2053 * @struct
2054 * @stability external
2055 *
2056 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html
2057 */
2058export interface CfnKeyGroupProps {
2059 /**
2060 * The key group configuration.
2061 *
2062 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html#cfn-cloudfront-keygroup-keygroupconfig
2063 */
2064 readonly keyGroupConfig: CfnKeyGroup.KeyGroupConfigProperty | cdk.IResolvable;
2065}
2066/**
2067 * A CloudFormation `AWS::CloudFront::KeyGroup`
2068 *
2069 * A key group.
2070 *
2071 * A key group contains a list of public keys that you can use with [CloudFront signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) .
2072 *
2073 * @cloudformationResource AWS::CloudFront::KeyGroup
2074 * @stability external
2075 *
2076 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html
2077 */
2078export declare class CfnKeyGroup extends cdk.CfnResource implements cdk.IInspectable {
2079 /**
2080 * The CloudFormation resource type name for this resource class.
2081 */
2082 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::KeyGroup";
2083 /**
2084 * A factory method that creates a new instance of this class from an object
2085 * containing the CloudFormation properties of this resource.
2086 * Used in the @aws-cdk/cloudformation-include module.
2087 *
2088 * @internal
2089 */
2090 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnKeyGroup;
2091 /**
2092 * The identifier for the key group.
2093 * @cloudformationAttribute Id
2094 */
2095 readonly attrId: string;
2096 /**
2097 * The date and time when the key group was last modified.
2098 * @cloudformationAttribute LastModifiedTime
2099 */
2100 readonly attrLastModifiedTime: string;
2101 /**
2102 * The key group configuration.
2103 *
2104 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html#cfn-cloudfront-keygroup-keygroupconfig
2105 */
2106 keyGroupConfig: CfnKeyGroup.KeyGroupConfigProperty | cdk.IResolvable;
2107 /**
2108 * Create a new `AWS::CloudFront::KeyGroup`.
2109 *
2110 * @param scope - scope in which this resource is defined
2111 * @param id - scoped id of the resource
2112 * @param props - resource properties
2113 */
2114 constructor(scope: cdk.Construct, id: string, props: CfnKeyGroupProps);
2115 /**
2116 * Examines the CloudFormation resource and discloses attributes.
2117 *
2118 * @param inspector - tree inspector to collect and process attributes
2119 *
2120 */
2121 inspect(inspector: cdk.TreeInspector): void;
2122 protected get cfnProperties(): {
2123 [key: string]: any;
2124 };
2125 protected renderProperties(props: {
2126 [key: string]: any;
2127 }): {
2128 [key: string]: any;
2129 };
2130}
2131export declare namespace CfnKeyGroup {
2132 /**
2133 * A key group configuration.
2134 *
2135 * A key group contains a list of public keys that you can use with [CloudFront signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) .
2136 *
2137 * @struct
2138 * @stability external
2139 *
2140 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html
2141 */
2142 interface KeyGroupConfigProperty {
2143 /**
2144 * A comment to describe the key group. The comment cannot be longer than 128 characters.
2145 *
2146 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-comment
2147 */
2148 readonly comment?: string;
2149 /**
2150 * A list of the identifiers of the public keys in the key group.
2151 *
2152 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-items
2153 */
2154 readonly items: string[];
2155 /**
2156 * A name to identify the key group.
2157 *
2158 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-name
2159 */
2160 readonly name: string;
2161 }
2162}
2163/**
2164 * Properties for defining a `CfnOriginRequestPolicy`
2165 *
2166 * @struct
2167 * @stability external
2168 *
2169 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html
2170 */
2171export interface CfnOriginRequestPolicyProps {
2172 /**
2173 * The origin request policy configuration.
2174 *
2175 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig
2176 */
2177 readonly originRequestPolicyConfig: CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty | cdk.IResolvable;
2178}
2179/**
2180 * A CloudFormation `AWS::CloudFront::OriginRequestPolicy`
2181 *
2182 * An origin request policy.
2183 *
2184 * When it’s attached to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:
2185 *
2186 * - The request body and the URL path (without the domain name) from the viewer request.
2187 * - The headers that CloudFront automatically includes in every origin request, including `Host` , `User-Agent` , and `X-Amz-Cf-Id` .
2188 * - All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request policy. These can include items from the viewer request and, in the case of headers, additional ones that are added by CloudFront.
2189 *
2190 * CloudFront sends a request when it can’t find an object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use `CachePolicy` .
2191 *
2192 * @cloudformationResource AWS::CloudFront::OriginRequestPolicy
2193 * @stability external
2194 *
2195 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html
2196 */
2197export declare class CfnOriginRequestPolicy extends cdk.CfnResource implements cdk.IInspectable {
2198 /**
2199 * The CloudFormation resource type name for this resource class.
2200 */
2201 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::OriginRequestPolicy";
2202 /**
2203 * A factory method that creates a new instance of this class from an object
2204 * containing the CloudFormation properties of this resource.
2205 * Used in the @aws-cdk/cloudformation-include module.
2206 *
2207 * @internal
2208 */
2209 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnOriginRequestPolicy;
2210 /**
2211 * The unique identifier for the origin request policy. For example: `befd7079-9bbc-4ebf-8ade-498a3694176c` .
2212 * @cloudformationAttribute Id
2213 */
2214 readonly attrId: string;
2215 /**
2216 * The date and time when the origin request policy was last modified.
2217 * @cloudformationAttribute LastModifiedTime
2218 */
2219 readonly attrLastModifiedTime: string;
2220 /**
2221 * The origin request policy configuration.
2222 *
2223 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig
2224 */
2225 originRequestPolicyConfig: CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty | cdk.IResolvable;
2226 /**
2227 * Create a new `AWS::CloudFront::OriginRequestPolicy`.
2228 *
2229 * @param scope - scope in which this resource is defined
2230 * @param id - scoped id of the resource
2231 * @param props - resource properties
2232 */
2233 constructor(scope: cdk.Construct, id: string, props: CfnOriginRequestPolicyProps);
2234 /**
2235 * Examines the CloudFormation resource and discloses attributes.
2236 *
2237 * @param inspector - tree inspector to collect and process attributes
2238 *
2239 */
2240 inspect(inspector: cdk.TreeInspector): void;
2241 protected get cfnProperties(): {
2242 [key: string]: any;
2243 };
2244 protected renderProperties(props: {
2245 [key: string]: any;
2246 }): {
2247 [key: string]: any;
2248 };
2249}
2250export declare namespace CfnOriginRequestPolicy {
2251 /**
2252 * An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in requests that CloudFront sends to the origin.
2253 *
2254 * @struct
2255 * @stability external
2256 *
2257 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html
2258 */
2259 interface CookiesConfigProperty {
2260 /**
2261 * Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
2262 *
2263 * - `none` – Cookies in viewer requests are not included in requests that CloudFront sends to the origin. Even when this field is set to `none` , any cookies that are listed in a `CachePolicy` *are* included in origin requests.
2264 * - `whitelist` – The cookies in viewer requests that are listed in the `CookieNames` type are included in requests that CloudFront sends to the origin.
2265 * - `all` – All cookies in viewer requests are included in requests that CloudFront sends to the origin.
2266 *
2267 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html#cfn-cloudfront-originrequestpolicy-cookiesconfig-cookiebehavior
2268 */
2269 readonly cookieBehavior: string;
2270 /**
2271 * Contains a list of cookie names.
2272 *
2273 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html#cfn-cloudfront-originrequestpolicy-cookiesconfig-cookies
2274 */
2275 readonly cookies?: string[];
2276 }
2277}
2278export declare namespace CfnOriginRequestPolicy {
2279 /**
2280 * An object that determines whether any HTTP headers (and if so, which headers) are included in requests that CloudFront sends to the origin.
2281 *
2282 * @struct
2283 * @stability external
2284 *
2285 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html
2286 */
2287 interface HeadersConfigProperty {
2288 /**
2289 * Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
2290 *
2291 * - `none` – HTTP headers are not included in requests that CloudFront sends to the origin. Even when this field is set to `none` , any headers that are listed in a `CachePolicy` *are* included in origin requests.
2292 * - `whitelist` – The HTTP headers that are listed in the `Headers` type are included in requests that CloudFront sends to the origin.
2293 * - `allViewer` – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.
2294 * - `allViewerAndWhitelistCloudFront` – All HTTP headers in viewer requests and the additional CloudFront headers that are listed in the `Headers` type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.
2295 *
2296 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html#cfn-cloudfront-originrequestpolicy-headersconfig-headerbehavior
2297 */
2298 readonly headerBehavior: string;
2299 /**
2300 * Contains a list of HTTP header names.
2301 *
2302 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html#cfn-cloudfront-originrequestpolicy-headersconfig-headers
2303 */
2304 readonly headers?: string[];
2305 }
2306}
2307export declare namespace CfnOriginRequestPolicy {
2308 /**
2309 * An origin request policy configuration.
2310 *
2311 * This configuration determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:
2312 *
2313 * - The request body and the URL path (without the domain name) from the viewer request.
2314 * - The headers that CloudFront automatically includes in every origin request, including `Host` , `User-Agent` , and `X-Amz-Cf-Id` .
2315 * - All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request policy. These can include items from the viewer request and, in the case of headers, additional ones that are added by CloudFront.
2316 *
2317 * CloudFront sends a request when it can’t find an object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use `CachePolicy` .
2318 *
2319 * @struct
2320 * @stability external
2321 *
2322 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html
2323 */
2324 interface OriginRequestPolicyConfigProperty {
2325 /**
2326 * A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
2327 *
2328 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-comment
2329 */
2330 readonly comment?: string;
2331 /**
2332 * The cookies from viewer requests to include in origin requests.
2333 *
2334 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-cookiesconfig
2335 */
2336 readonly cookiesConfig: CfnOriginRequestPolicy.CookiesConfigProperty | cdk.IResolvable;
2337 /**
2338 * The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
2339 *
2340 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-headersconfig
2341 */
2342 readonly headersConfig: CfnOriginRequestPolicy.HeadersConfigProperty | cdk.IResolvable;
2343 /**
2344 * A unique name to identify the origin request policy.
2345 *
2346 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-name
2347 */
2348 readonly name: string;
2349 /**
2350 * The URL query strings from viewer requests to include in origin requests.
2351 *
2352 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-querystringsconfig
2353 */
2354 readonly queryStringsConfig: CfnOriginRequestPolicy.QueryStringsConfigProperty | cdk.IResolvable;
2355 }
2356}
2357export declare namespace CfnOriginRequestPolicy {
2358 /**
2359 * An object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in requests that CloudFront sends to the origin.
2360 *
2361 * @struct
2362 * @stability external
2363 *
2364 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html
2365 */
2366 interface QueryStringsConfigProperty {
2367 /**
2368 * Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
2369 *
2370 * - `none` – Query strings in viewer requests are not included in requests that CloudFront sends to the origin. Even when this field is set to `none` , any query strings that are listed in a `CachePolicy` *are* included in origin requests.
2371 * - `whitelist` – The query strings in viewer requests that are listed in the `QueryStringNames` type are included in requests that CloudFront sends to the origin.
2372 * - `all` – All query strings in viewer requests are included in requests that CloudFront sends to the origin.
2373 *
2374 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html#cfn-cloudfront-originrequestpolicy-querystringsconfig-querystringbehavior
2375 */
2376 readonly queryStringBehavior: string;
2377 /**
2378 * Contains a list of query string names.
2379 *
2380 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html#cfn-cloudfront-originrequestpolicy-querystringsconfig-querystrings
2381 */
2382 readonly queryStrings?: string[];
2383 }
2384}
2385/**
2386 * Properties for defining a `CfnPublicKey`
2387 *
2388 * @struct
2389 * @stability external
2390 *
2391 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html
2392 */
2393export interface CfnPublicKeyProps {
2394 /**
2395 * Configuration information about a public key that you can use with [signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) , or with [field-level encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html) .
2396 *
2397 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html#cfn-cloudfront-publickey-publickeyconfig
2398 */
2399 readonly publicKeyConfig: CfnPublicKey.PublicKeyConfigProperty | cdk.IResolvable;
2400}
2401/**
2402 * A CloudFormation `AWS::CloudFront::PublicKey`
2403 *
2404 * A public key that you can use with [signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) , or with [field-level encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html) .
2405 *
2406 * @cloudformationResource AWS::CloudFront::PublicKey
2407 * @stability external
2408 *
2409 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html
2410 */
2411export declare class CfnPublicKey extends cdk.CfnResource implements cdk.IInspectable {
2412 /**
2413 * The CloudFormation resource type name for this resource class.
2414 */
2415 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::PublicKey";
2416 /**
2417 * A factory method that creates a new instance of this class from an object
2418 * containing the CloudFormation properties of this resource.
2419 * Used in the @aws-cdk/cloudformation-include module.
2420 *
2421 * @internal
2422 */
2423 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnPublicKey;
2424 /**
2425 * The date and time when the public key was uploaded.
2426 * @cloudformationAttribute CreatedTime
2427 */
2428 readonly attrCreatedTime: string;
2429 /**
2430 * The identifier of the public key.
2431 * @cloudformationAttribute Id
2432 */
2433 readonly attrId: string;
2434 /**
2435 * Configuration information about a public key that you can use with [signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) , or with [field-level encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html) .
2436 *
2437 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html#cfn-cloudfront-publickey-publickeyconfig
2438 */
2439 publicKeyConfig: CfnPublicKey.PublicKeyConfigProperty | cdk.IResolvable;
2440 /**
2441 * Create a new `AWS::CloudFront::PublicKey`.
2442 *
2443 * @param scope - scope in which this resource is defined
2444 * @param id - scoped id of the resource
2445 * @param props - resource properties
2446 */
2447 constructor(scope: cdk.Construct, id: string, props: CfnPublicKeyProps);
2448 /**
2449 * Examines the CloudFormation resource and discloses attributes.
2450 *
2451 * @param inspector - tree inspector to collect and process attributes
2452 *
2453 */
2454 inspect(inspector: cdk.TreeInspector): void;
2455 protected get cfnProperties(): {
2456 [key: string]: any;
2457 };
2458 protected renderProperties(props: {
2459 [key: string]: any;
2460 }): {
2461 [key: string]: any;
2462 };
2463}
2464export declare namespace CfnPublicKey {
2465 /**
2466 * Configuration information about a public key that you can use with [signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) , or with [field-level encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html) .
2467 *
2468 * @struct
2469 * @stability external
2470 *
2471 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html
2472 */
2473 interface PublicKeyConfigProperty {
2474 /**
2475 * A string included in the request to help make sure that the request can’t be replayed.
2476 *
2477 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-callerreference
2478 */
2479 readonly callerReference: string;
2480 /**
2481 * A comment to describe the public key. The comment cannot be longer than 128 characters.
2482 *
2483 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-comment
2484 */
2485 readonly comment?: string;
2486 /**
2487 * The public key that you can use with [signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) , or with [field-level encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html) .
2488 *
2489 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-encodedkey
2490 */
2491 readonly encodedKey: string;
2492 /**
2493 * A name to help identify the public key.
2494 *
2495 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-name
2496 */
2497 readonly name: string;
2498 }
2499}
2500/**
2501 * Properties for defining a `CfnRealtimeLogConfig`
2502 *
2503 * @struct
2504 * @stability external
2505 *
2506 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html
2507 */
2508export interface CfnRealtimeLogConfigProps {
2509 /**
2510 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
2511 *
2512 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-endpoints
2513 */
2514 readonly endPoints: Array<CfnRealtimeLogConfig.EndPointProperty | cdk.IResolvable> | cdk.IResolvable;
2515 /**
2516 * A list of fields that are included in each real-time log record. In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream.
2517 *
2518 * For more information about fields, see [Real-time log configuration fields](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields) in the *Amazon CloudFront Developer Guide* .
2519 *
2520 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-fields
2521 */
2522 readonly fields: string[];
2523 /**
2524 * The unique name of this real-time log configuration.
2525 *
2526 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-name
2527 */
2528 readonly name: string;
2529 /**
2530 * The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.
2531 *
2532 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-samplingrate
2533 */
2534 readonly samplingRate: number;
2535}
2536/**
2537 * A CloudFormation `AWS::CloudFront::RealtimeLogConfig`
2538 *
2539 * A real-time log configuration.
2540 *
2541 * @cloudformationResource AWS::CloudFront::RealtimeLogConfig
2542 * @stability external
2543 *
2544 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html
2545 */
2546export declare class CfnRealtimeLogConfig extends cdk.CfnResource implements cdk.IInspectable {
2547 /**
2548 * The CloudFormation resource type name for this resource class.
2549 */
2550 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::RealtimeLogConfig";
2551 /**
2552 * A factory method that creates a new instance of this class from an object
2553 * containing the CloudFormation properties of this resource.
2554 * Used in the @aws-cdk/cloudformation-include module.
2555 *
2556 * @internal
2557 */
2558 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnRealtimeLogConfig;
2559 /**
2560 * The Amazon Resource Name (ARN) of the real-time log configuration. For example: `arn:aws:cloudfront::111122223333:realtime-log-config/ExampleNameForRealtimeLogConfig` .
2561 * @cloudformationAttribute Arn
2562 */
2563 readonly attrArn: string;
2564 /**
2565 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
2566 *
2567 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-endpoints
2568 */
2569 endPoints: Array<CfnRealtimeLogConfig.EndPointProperty | cdk.IResolvable> | cdk.IResolvable;
2570 /**
2571 * A list of fields that are included in each real-time log record. In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream.
2572 *
2573 * For more information about fields, see [Real-time log configuration fields](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields) in the *Amazon CloudFront Developer Guide* .
2574 *
2575 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-fields
2576 */
2577 fields: string[];
2578 /**
2579 * The unique name of this real-time log configuration.
2580 *
2581 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-name
2582 */
2583 name: string;
2584 /**
2585 * The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.
2586 *
2587 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-samplingrate
2588 */
2589 samplingRate: number;
2590 /**
2591 * Create a new `AWS::CloudFront::RealtimeLogConfig`.
2592 *
2593 * @param scope - scope in which this resource is defined
2594 * @param id - scoped id of the resource
2595 * @param props - resource properties
2596 */
2597 constructor(scope: cdk.Construct, id: string, props: CfnRealtimeLogConfigProps);
2598 /**
2599 * Examines the CloudFormation resource and discloses attributes.
2600 *
2601 * @param inspector - tree inspector to collect and process attributes
2602 *
2603 */
2604 inspect(inspector: cdk.TreeInspector): void;
2605 protected get cfnProperties(): {
2606 [key: string]: any;
2607 };
2608 protected renderProperties(props: {
2609 [key: string]: any;
2610 }): {
2611 [key: string]: any;
2612 };
2613}
2614export declare namespace CfnRealtimeLogConfig {
2615 /**
2616 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data in a real-time log configuration.
2617 *
2618 * @struct
2619 * @stability external
2620 *
2621 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html
2622 */
2623 interface EndPointProperty {
2624 /**
2625 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
2626 *
2627 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html#cfn-cloudfront-realtimelogconfig-endpoint-kinesisstreamconfig
2628 */
2629 readonly kinesisStreamConfig: CfnRealtimeLogConfig.KinesisStreamConfigProperty | cdk.IResolvable;
2630 /**
2631 * The type of data stream where you are sending real-time log data. The only valid value is `Kinesis` .
2632 *
2633 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html#cfn-cloudfront-realtimelogconfig-endpoint-streamtype
2634 */
2635 readonly streamType: string;
2636 }
2637}
2638export declare namespace CfnRealtimeLogConfig {
2639 /**
2640 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
2641 *
2642 * @struct
2643 * @stability external
2644 *
2645 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html
2646 */
2647 interface KinesisStreamConfigProperty {
2648 /**
2649 * The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that CloudFront can use to send real-time log data to your Kinesis data stream.
2650 *
2651 * For more information the IAM role, see [Real-time log configuration IAM role](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-iam-role) in the *Amazon CloudFront Developer Guide* .
2652 *
2653 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html#cfn-cloudfront-realtimelogconfig-kinesisstreamconfig-rolearn
2654 */
2655 readonly roleArn: string;
2656 /**
2657 * The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data.
2658 *
2659 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html#cfn-cloudfront-realtimelogconfig-kinesisstreamconfig-streamarn
2660 */
2661 readonly streamArn: string;
2662 }
2663}
2664/**
2665 * Properties for defining a `CfnResponseHeadersPolicy`
2666 *
2667 * @struct
2668 * @stability external
2669 *
2670 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html
2671 */
2672export interface CfnResponseHeadersPolicyProps {
2673 /**
2674 * A response headers policy configuration.
2675 *
2676 * A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that’s associated with the policy.
2677 *
2678 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig
2679 */
2680 readonly responseHeadersPolicyConfig: CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty | cdk.IResolvable;
2681}
2682/**
2683 * A CloudFormation `AWS::CloudFront::ResponseHeadersPolicy`
2684 *
2685 * A response headers policy.
2686 *
2687 * A response headers policy contains information about a set of HTTP response headers and their values.
2688 *
2689 * After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it’s attached to a cache behavior, CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match the cache behavior.
2690 *
2691 * For more information, see [Adding HTTP headers to CloudFront responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/adding-response-headers.html) in the *Amazon CloudFront Developer Guide* .
2692 *
2693 * @cloudformationResource AWS::CloudFront::ResponseHeadersPolicy
2694 * @stability external
2695 *
2696 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html
2697 */
2698export declare class CfnResponseHeadersPolicy extends cdk.CfnResource implements cdk.IInspectable {
2699 /**
2700 * The CloudFormation resource type name for this resource class.
2701 */
2702 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::ResponseHeadersPolicy";
2703 /**
2704 * A factory method that creates a new instance of this class from an object
2705 * containing the CloudFormation properties of this resource.
2706 * Used in the @aws-cdk/cloudformation-include module.
2707 *
2708 * @internal
2709 */
2710 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnResponseHeadersPolicy;
2711 /**
2712 * The unique identifier for the cache policy. For example: `57f99797-3b20-4e1b-a728-27972a74082a` .
2713 * @cloudformationAttribute Id
2714 */
2715 readonly attrId: string;
2716 /**
2717 * The date and time when the response headers policy was last modified.
2718 * @cloudformationAttribute LastModifiedTime
2719 */
2720 readonly attrLastModifiedTime: string;
2721 /**
2722 * A response headers policy configuration.
2723 *
2724 * A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that’s associated with the policy.
2725 *
2726 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig
2727 */
2728 responseHeadersPolicyConfig: CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty | cdk.IResolvable;
2729 /**
2730 * Create a new `AWS::CloudFront::ResponseHeadersPolicy`.
2731 *
2732 * @param scope - scope in which this resource is defined
2733 * @param id - scoped id of the resource
2734 * @param props - resource properties
2735 */
2736 constructor(scope: cdk.Construct, id: string, props: CfnResponseHeadersPolicyProps);
2737 /**
2738 * Examines the CloudFormation resource and discloses attributes.
2739 *
2740 * @param inspector - tree inspector to collect and process attributes
2741 *
2742 */
2743 inspect(inspector: cdk.TreeInspector): void;
2744 protected get cfnProperties(): {
2745 [key: string]: any;
2746 };
2747 protected renderProperties(props: {
2748 [key: string]: any;
2749 }): {
2750 [key: string]: any;
2751 };
2752}
2753export declare namespace CfnResponseHeadersPolicy {
2754 /**
2755 * A list of HTTP header names that CloudFront includes as values for the `Access-Control-Allow-Headers` HTTP response header.
2756 *
2757 * For more information about the `Access-Control-Allow-Headers` HTTP response header, see [Access-Control-Allow-Headers](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers) in the MDN Web Docs.
2758 *
2759 * @struct
2760 * @stability external
2761 *
2762 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowheaders.html
2763 */
2764 interface AccessControlAllowHeadersProperty {
2765 /**
2766 * The list of HTTP header names. You can specify `*` to allow all headers.
2767 *
2768 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowheaders.html#cfn-cloudfront-responseheaderspolicy-accesscontrolallowheaders-items
2769 */
2770 readonly items: string[];
2771 }
2772}
2773export declare namespace CfnResponseHeadersPolicy {
2774 /**
2775 * A list of HTTP methods that CloudFront includes as values for the `Access-Control-Allow-Methods` HTTP response header.
2776 *
2777 * For more information about the `Access-Control-Allow-Methods` HTTP response header, see [Access-Control-Allow-Methods](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods) in the MDN Web Docs.
2778 *
2779 * @struct
2780 * @stability external
2781 *
2782 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowmethods.html
2783 */
2784 interface AccessControlAllowMethodsProperty {
2785 /**
2786 * The list of HTTP methods. Valid values are:
2787 *
2788 * - `GET`
2789 * - `DELETE`
2790 * - `HEAD`
2791 * - `OPTIONS`
2792 * - `PATCH`
2793 * - `POST`
2794 * - `PUT`
2795 * - `ALL`
2796 *
2797 * `ALL` is a special value that includes all of the listed HTTP methods.
2798 *
2799 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowmethods.html#cfn-cloudfront-responseheaderspolicy-accesscontrolallowmethods-items
2800 */
2801 readonly items: string[];
2802 }
2803}
2804export declare namespace CfnResponseHeadersPolicy {
2805 /**
2806 * A list of origins (domain names) that CloudFront can use as the value for the `Access-Control-Allow-Origin` HTTP response header.
2807 *
2808 * For more information about the `Access-Control-Allow-Origin` HTTP response header, see [Access-Control-Allow-Origin](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin) in the MDN Web Docs.
2809 *
2810 * @struct
2811 * @stability external
2812 *
2813 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.html
2814 */
2815 interface AccessControlAllowOriginsProperty {
2816 /**
2817 * The list of origins (domain names). You can specify `*` to allow all origins.
2818 *
2819 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.html#cfn-cloudfront-responseheaderspolicy-accesscontrolalloworigins-items
2820 */
2821 readonly items: string[];
2822 }
2823}
2824export declare namespace CfnResponseHeadersPolicy {
2825 /**
2826 * A list of HTTP headers that CloudFront includes as values for the `Access-Control-Expose-Headers` HTTP response header.
2827 *
2828 * For more information about the `Access-Control-Expose-Headers` HTTP response header, see [Access-Control-Expose-Headers](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers) in the MDN Web Docs.
2829 *
2830 * @struct
2831 * @stability external
2832 *
2833 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolexposeheaders.html
2834 */
2835 interface AccessControlExposeHeadersProperty {
2836 /**
2837 * The list of HTTP headers. You can specify `*` to expose all headers.
2838 *
2839 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolexposeheaders.html#cfn-cloudfront-responseheaderspolicy-accesscontrolexposeheaders-items
2840 */
2841 readonly items: string[];
2842 }
2843}
2844export declare namespace CfnResponseHeadersPolicy {
2845 /**
2846 * The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
2847 *
2848 * For more information about the `Content-Security-Policy` HTTP response header, see [Content-Security-Policy](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) in the MDN Web Docs.
2849 *
2850 * @struct
2851 * @stability external
2852 *
2853 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html
2854 */
2855 interface ContentSecurityPolicyProperty {
2856 /**
2857 * The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
2858 *
2859 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html#cfn-cloudfront-responseheaderspolicy-contentsecuritypolicy-contentsecuritypolicy
2860 */
2861 readonly contentSecurityPolicy: string;
2862 /**
2863 * A Boolean that determines whether CloudFront overrides the `Content-Security-Policy` HTTP response header received from the origin with the one specified in this response headers policy.
2864 *
2865 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html#cfn-cloudfront-responseheaderspolicy-contentsecuritypolicy-override
2866 */
2867 readonly override: boolean | cdk.IResolvable;
2868 }
2869}
2870export declare namespace CfnResponseHeadersPolicy {
2871 /**
2872 * Determines whether CloudFront includes the `X-Content-Type-Options` HTTP response header with its value set to `nosniff` .
2873 *
2874 * For more information about the `X-Content-Type-Options` HTTP response header, see [X-Content-Type-Options](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options) in the MDN Web Docs.
2875 *
2876 * @struct
2877 * @stability external
2878 *
2879 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contenttypeoptions.html
2880 */
2881 interface ContentTypeOptionsProperty {
2882 /**
2883 * A Boolean that determines whether CloudFront overrides the `X-Content-Type-Options` HTTP response header received from the origin with the one specified in this response headers policy.
2884 *
2885 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contenttypeoptions.html#cfn-cloudfront-responseheaderspolicy-contenttypeoptions-override
2886 */
2887 readonly override: boolean | cdk.IResolvable;
2888 }
2889}
2890export declare namespace CfnResponseHeadersPolicy {
2891 /**
2892 * A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS). CloudFront adds these headers to HTTP responses that it sends for CORS requests that match a cache behavior associated with this response headers policy.
2893 *
2894 * For more information about CORS, see [Cross-Origin Resource Sharing (CORS)](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) in the MDN Web Docs.
2895 *
2896 * @struct
2897 * @stability external
2898 *
2899 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html
2900 */
2901 interface CorsConfigProperty {
2902 /**
2903 * A Boolean that CloudFront uses as the value for the `Access-Control-Allow-Credentials` HTTP response header.
2904 *
2905 * For more information about the `Access-Control-Allow-Credentials` HTTP response header, see [Access-Control-Allow-Credentials](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials) in the MDN Web Docs.
2906 *
2907 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowcredentials
2908 */
2909 readonly accessControlAllowCredentials: boolean | cdk.IResolvable;
2910 /**
2911 * A list of HTTP header names that CloudFront includes as values for the `Access-Control-Allow-Headers` HTTP response header.
2912 *
2913 * For more information about the `Access-Control-Allow-Headers` HTTP response header, see [Access-Control-Allow-Headers](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers) in the MDN Web Docs.
2914 *
2915 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowheaders
2916 */
2917 readonly accessControlAllowHeaders: CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty | cdk.IResolvable;
2918 /**
2919 * A list of HTTP methods that CloudFront includes as values for the `Access-Control-Allow-Methods` HTTP response header.
2920 *
2921 * For more information about the `Access-Control-Allow-Methods` HTTP response header, see [Access-Control-Allow-Methods](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods) in the MDN Web Docs.
2922 *