UNPKG

252 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 * `CfnDistribution.OriginProperty.OriginAccessControlId`
1507 *
1508 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originaccesscontrolid
1509 */
1510 readonly originAccessControlId?: string;
1511 /**
1512 * A list of HTTP header names and values that CloudFront adds to the requests that it sends to the origin.
1513 *
1514 * 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* .
1515 *
1516 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-origincustomheaders
1517 */
1518 readonly originCustomHeaders?: Array<CfnDistribution.OriginCustomHeaderProperty | cdk.IResolvable> | cdk.IResolvable;
1519 /**
1520 * An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
1521 *
1522 * 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* .
1523 *
1524 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originpath
1525 */
1526 readonly originPath?: string;
1527 /**
1528 * CloudFront Origin Shield. Using Origin Shield can help reduce the load on your origin.
1529 *
1530 * For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the *Amazon CloudFront Developer Guide* .
1531 *
1532 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originshield
1533 */
1534 readonly originShield?: CfnDistribution.OriginShieldProperty | cdk.IResolvable;
1535 /**
1536 * 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.
1537 *
1538 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-s3originconfig
1539 */
1540 readonly s3OriginConfig?: CfnDistribution.S3OriginConfigProperty | cdk.IResolvable;
1541 }
1542}
1543export declare namespace CfnDistribution {
1544 /**
1545 * A complex type that contains `HeaderName` and `HeaderValue` elements, if any, for this distribution.
1546 *
1547 * @struct
1548 * @stability external
1549 *
1550 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html
1551 */
1552 interface OriginCustomHeaderProperty {
1553 /**
1554 * 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* .
1555 *
1556 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headername
1557 */
1558 readonly headerName: string;
1559 /**
1560 * The value for the header that you specified in the `HeaderName` field.
1561 *
1562 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headervalue
1563 */
1564 readonly headerValue: string;
1565 }
1566}
1567export declare namespace CfnDistribution {
1568 /**
1569 * 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.
1570 *
1571 * @struct
1572 * @stability external
1573 *
1574 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html
1575 */
1576 interface OriginGroupProperty {
1577 /**
1578 * A complex type that contains information about the failover criteria for an origin group.
1579 *
1580 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-failovercriteria
1581 */
1582 readonly failoverCriteria: CfnDistribution.OriginGroupFailoverCriteriaProperty | cdk.IResolvable;
1583 /**
1584 * The origin group's ID.
1585 *
1586 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-id
1587 */
1588 readonly id: string;
1589 /**
1590 * A complex type that contains information about the origins in an origin group.
1591 *
1592 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-members
1593 */
1594 readonly members: CfnDistribution.OriginGroupMembersProperty | cdk.IResolvable;
1595 }
1596}
1597export declare namespace CfnDistribution {
1598 /**
1599 * 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.
1600 *
1601 * @struct
1602 * @stability external
1603 *
1604 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupfailovercriteria.html
1605 */
1606 interface OriginGroupFailoverCriteriaProperty {
1607 /**
1608 * The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.
1609 *
1610 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupfailovercriteria.html#cfn-cloudfront-distribution-origingroupfailovercriteria-statuscodes
1611 */
1612 readonly statusCodes: CfnDistribution.StatusCodesProperty | cdk.IResolvable;
1613 }
1614}
1615export declare namespace CfnDistribution {
1616 /**
1617 * An origin in an origin group.
1618 *
1619 * @struct
1620 * @stability external
1621 *
1622 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmember.html
1623 */
1624 interface OriginGroupMemberProperty {
1625 /**
1626 * The ID for an origin in an origin group.
1627 *
1628 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmember.html#cfn-cloudfront-distribution-origingroupmember-originid
1629 */
1630 readonly originId: string;
1631 }
1632}
1633export declare namespace CfnDistribution {
1634 /**
1635 * A complex data type for the origins included in an origin group.
1636 *
1637 * @struct
1638 * @stability external
1639 *
1640 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html
1641 */
1642 interface OriginGroupMembersProperty {
1643 /**
1644 * Items (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-items
1647 */
1648 readonly items: Array<CfnDistribution.OriginGroupMemberProperty | cdk.IResolvable> | cdk.IResolvable;
1649 /**
1650 * The number of origins in an origin group.
1651 *
1652 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html#cfn-cloudfront-distribution-origingroupmembers-quantity
1653 */
1654 readonly quantity: number;
1655 }
1656}
1657export declare namespace CfnDistribution {
1658 /**
1659 * A complex data type for the origin groups specified for a distribution.
1660 *
1661 * @struct
1662 * @stability external
1663 *
1664 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html
1665 */
1666 interface OriginGroupsProperty {
1667 /**
1668 * The items (origin groups) in a distribution.
1669 *
1670 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html#cfn-cloudfront-distribution-origingroups-items
1671 */
1672 readonly items?: Array<CfnDistribution.OriginGroupProperty | cdk.IResolvable> | cdk.IResolvable;
1673 /**
1674 * The number of origin groups.
1675 *
1676 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html#cfn-cloudfront-distribution-origingroups-quantity
1677 */
1678 readonly quantity: number;
1679 }
1680}
1681export declare namespace CfnDistribution {
1682 /**
1683 * CloudFront Origin Shield.
1684 *
1685 * 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* .
1686 *
1687 * @struct
1688 * @stability external
1689 *
1690 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html
1691 */
1692 interface OriginShieldProperty {
1693 /**
1694 * A flag that specifies whether Origin Shield is enabled.
1695 *
1696 * 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.
1697 *
1698 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html#cfn-cloudfront-distribution-originshield-enabled
1699 */
1700 readonly enabled?: boolean | cdk.IResolvable;
1701 /**
1702 * The AWS Region for Origin Shield.
1703 *
1704 * 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` .
1705 *
1706 * 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* .
1707 *
1708 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html#cfn-cloudfront-distribution-originshield-originshieldregion
1709 */
1710 readonly originShieldRegion?: string;
1711 }
1712}
1713export declare namespace CfnDistribution {
1714 /**
1715 * A complex type that identifies ways in which you want to restrict distribution of your content.
1716 *
1717 * @struct
1718 * @stability external
1719 *
1720 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html
1721 */
1722 interface RestrictionsProperty {
1723 /**
1724 * 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.
1725 *
1726 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html#cfn-cloudfront-distribution-restrictions-georestriction
1727 */
1728 readonly geoRestriction: CfnDistribution.GeoRestrictionProperty | cdk.IResolvable;
1729 }
1730}
1731export declare namespace CfnDistribution {
1732 /**
1733 * 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.
1734 *
1735 * @struct
1736 * @stability external
1737 *
1738 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html
1739 */
1740 interface S3OriginConfigProperty {
1741 /**
1742 * 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:
1743 *
1744 * origin-access-identity/cloudfront/ *ID-of-origin-access-identity*
1745 *
1746 * where `*ID-of-origin-access-identity*` is the value that CloudFront returned in the `ID` element when you created the origin access identity.
1747 *
1748 * 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.
1749 *
1750 * To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty `OriginAccessIdentity` element.
1751 *
1752 * To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
1753 *
1754 * 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* .
1755 *
1756 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html#cfn-cloudfront-distribution-s3originconfig-originaccessidentity
1757 */
1758 readonly originAccessIdentity?: string;
1759 }
1760}
1761export declare namespace CfnDistribution {
1762 /**
1763 * 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.
1764 *
1765 * @struct
1766 * @stability external
1767 *
1768 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html
1769 */
1770 interface StatusCodesProperty {
1771 /**
1772 * The items (status codes) for an origin group.
1773 *
1774 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html#cfn-cloudfront-distribution-statuscodes-items
1775 */
1776 readonly items: number[] | cdk.IResolvable;
1777 /**
1778 * The number of status codes.
1779 *
1780 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html#cfn-cloudfront-distribution-statuscodes-quantity
1781 */
1782 readonly quantity: number;
1783 }
1784}
1785export declare namespace CfnDistribution {
1786 /**
1787 * A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers.
1788 *
1789 * 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.
1790 *
1791 * If the distribution uses `Aliases` (alternate domain names or CNAMEs), use the fields in this type to specify the following settings:
1792 *
1793 * - 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.
1794 *
1795 * - 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.)
1796 * - 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.)
1797 * - 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* .
1798 * - 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):
1799 *
1800 * - `ACMCertificateArn` (In CloudFormation, this field name is `AcmCertificateArn` . Note the different capitalization.)
1801 * - `IAMCertificateId` (In CloudFormation, this field name is `IamCertificateId` . Note the different capitalization.)
1802 *
1803 * 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` .
1804 *
1805 * 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* .
1806 *
1807 * @struct
1808 * @stability external
1809 *
1810 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html
1811 */
1812 interface ViewerCertificateProperty {
1813 /**
1814 * > In CloudFormation, this field name is `AcmCertificateArn` . Note the different capitalization.
1815 *
1816 * 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` ).
1817 *
1818 * 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.)
1819 *
1820 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-acmcertificatearn
1821 */
1822 readonly acmCertificateArn?: string;
1823 /**
1824 * If the distribution uses the CloudFront domain name such as `d111111abcdef8.cloudfront.net` , set this field to `true` .
1825 *
1826 * If the distribution uses `Aliases` (alternate domain names or CNAMEs), set this field to `false` and specify values for the following fields:
1827 *
1828 * - `ACMCertificateArn` or `IAMCertificateId` (specify a value for one, not both)
1829 *
1830 * In CloudFormation, these field names are `AcmCertificateArn` and `IamCertificateId` . Note the different capitalization.
1831 * - `MinimumProtocolVersion`
1832 * - `SSLSupportMethod` (In CloudFormation, this field name is `SslSupportMethod` . Note the different capitalization.)
1833 *
1834 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-cloudfrontdefaultcertificate
1835 */
1836 readonly cloudFrontDefaultCertificate?: boolean | cdk.IResolvable;
1837 /**
1838 * > In CloudFormation, this field name is `IamCertificateId` . Note the different capitalization.
1839 *
1840 * 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.
1841 *
1842 * 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.)
1843 *
1844 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-iamcertificateid
1845 */
1846 readonly iamCertificateId?: string;
1847 /**
1848 * 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:
1849 *
1850 * - The minimum SSL/TLS protocol that CloudFront can use to communicate with viewers.
1851 * - The ciphers that CloudFront can use to encrypt the content that it returns to viewers.
1852 *
1853 * 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* .
1854 *
1855 * > On the CloudFront console, this setting is called *Security Policy* .
1856 *
1857 * 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.)
1858 *
1859 * 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.
1860 *
1861 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-minimumprotocolversion
1862 */
1863 readonly minimumProtocolVersion?: string;
1864 /**
1865 * > In CloudFormation, this field name is `SslSupportMethod` . Note the different capitalization.
1866 *
1867 * If the distribution uses `Aliases` (alternate domain names or CNAMEs), specify which viewers the distribution accepts HTTPS connections from.
1868 *
1869 * - `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.
1870 * - `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.
1871 * - `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) .
1872 *
1873 * If the distribution uses the CloudFront domain name such as `d111111abcdef8.cloudfront.net` , don’t set a value for this field.
1874 *
1875 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-sslsupportmethod
1876 */
1877 readonly sslSupportMethod?: string;
1878 }
1879}
1880/**
1881 * Properties for defining a `CfnFunction`
1882 *
1883 * @struct
1884 * @stability external
1885 *
1886 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html
1887 */
1888export interface CfnFunctionProps {
1889 /**
1890 * A name to identify the function.
1891 *
1892 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-name
1893 */
1894 readonly name: string;
1895 /**
1896 * 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` .
1897 *
1898 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-autopublish
1899 */
1900 readonly autoPublish?: boolean | cdk.IResolvable;
1901 /**
1902 * 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* .
1903 *
1904 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functioncode
1905 */
1906 readonly functionCode?: string;
1907 /**
1908 * Contains configuration information about a CloudFront function.
1909 *
1910 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functionconfig
1911 */
1912 readonly functionConfig?: CfnFunction.FunctionConfigProperty | cdk.IResolvable;
1913}
1914/**
1915 * A CloudFormation `AWS::CloudFront::Function`
1916 *
1917 * Creates a CloudFront function.
1918 *
1919 * 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.
1920 *
1921 * 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).
1922 *
1923 * 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.
1924 *
1925 * To automatically publish the function to the `LIVE` stage when it’s created, set the `AutoPublish` property to `true` .
1926 *
1927 * @cloudformationResource AWS::CloudFront::Function
1928 * @stability external
1929 *
1930 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html
1931 */
1932export declare class CfnFunction extends cdk.CfnResource implements cdk.IInspectable {
1933 /**
1934 * The CloudFormation resource type name for this resource class.
1935 */
1936 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::Function";
1937 /**
1938 * A factory method that creates a new instance of this class from an object
1939 * containing the CloudFormation properties of this resource.
1940 * Used in the @aws-cdk/cloudformation-include module.
1941 *
1942 * @internal
1943 */
1944 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnFunction;
1945 /**
1946 * The ARN of the function. For example:
1947 *
1948 * `arn:aws:cloudfront::123456789012:function/ExampleFunction` .
1949 *
1950 * To get the function ARN, use the following syntax:
1951 *
1952 * `!GetAtt *Function_Logical_ID* .FunctionMetadata.FunctionARN`
1953 * @cloudformationAttribute FunctionARN
1954 */
1955 readonly attrFunctionArn: string;
1956 /**
1957 *
1958 * @cloudformationAttribute FunctionMetadata.FunctionARN
1959 */
1960 readonly attrFunctionMetadataFunctionArn: string;
1961 /**
1962 *
1963 * @cloudformationAttribute Stage
1964 */
1965 readonly attrStage: string;
1966 /**
1967 * A name to identify the function.
1968 *
1969 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-name
1970 */
1971 name: string;
1972 /**
1973 * 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` .
1974 *
1975 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-autopublish
1976 */
1977 autoPublish: boolean | cdk.IResolvable | undefined;
1978 /**
1979 * 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* .
1980 *
1981 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functioncode
1982 */
1983 functionCode: string | undefined;
1984 /**
1985 * Contains configuration information about a CloudFront function.
1986 *
1987 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functionconfig
1988 */
1989 functionConfig: CfnFunction.FunctionConfigProperty | cdk.IResolvable | undefined;
1990 /**
1991 * Create a new `AWS::CloudFront::Function`.
1992 *
1993 * @param scope - scope in which this resource is defined
1994 * @param id - scoped id of the resource
1995 * @param props - resource properties
1996 */
1997 constructor(scope: cdk.Construct, id: string, props: CfnFunctionProps);
1998 /**
1999 * Examines the CloudFormation resource and discloses attributes.
2000 *
2001 * @param inspector - tree inspector to collect and process attributes
2002 *
2003 */
2004 inspect(inspector: cdk.TreeInspector): void;
2005 protected get cfnProperties(): {
2006 [key: string]: any;
2007 };
2008 protected renderProperties(props: {
2009 [key: string]: any;
2010 }): {
2011 [key: string]: any;
2012 };
2013}
2014export declare namespace CfnFunction {
2015 /**
2016 * Contains configuration information about a CloudFront function.
2017 *
2018 * @struct
2019 * @stability external
2020 *
2021 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html
2022 */
2023 interface FunctionConfigProperty {
2024 /**
2025 * A comment to describe the function.
2026 *
2027 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html#cfn-cloudfront-function-functionconfig-comment
2028 */
2029 readonly comment: string;
2030 /**
2031 * The function’s runtime environment. The only valid value is `cloudfront-js-1.0` .
2032 *
2033 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html#cfn-cloudfront-function-functionconfig-runtime
2034 */
2035 readonly runtime: string;
2036 }
2037}
2038export declare namespace CfnFunction {
2039 /**
2040 * Contains metadata about a CloudFront function.
2041 *
2042 * @struct
2043 * @stability external
2044 *
2045 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionmetadata.html
2046 */
2047 interface FunctionMetadataProperty {
2048 /**
2049 * The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
2050 *
2051 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionmetadata.html#cfn-cloudfront-function-functionmetadata-functionarn
2052 */
2053 readonly functionArn?: string;
2054 }
2055}
2056/**
2057 * Properties for defining a `CfnKeyGroup`
2058 *
2059 * @struct
2060 * @stability external
2061 *
2062 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html
2063 */
2064export interface CfnKeyGroupProps {
2065 /**
2066 * The key group configuration.
2067 *
2068 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html#cfn-cloudfront-keygroup-keygroupconfig
2069 */
2070 readonly keyGroupConfig: CfnKeyGroup.KeyGroupConfigProperty | cdk.IResolvable;
2071}
2072/**
2073 * A CloudFormation `AWS::CloudFront::KeyGroup`
2074 *
2075 * A key group.
2076 *
2077 * 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) .
2078 *
2079 * @cloudformationResource AWS::CloudFront::KeyGroup
2080 * @stability external
2081 *
2082 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html
2083 */
2084export declare class CfnKeyGroup extends cdk.CfnResource implements cdk.IInspectable {
2085 /**
2086 * The CloudFormation resource type name for this resource class.
2087 */
2088 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::KeyGroup";
2089 /**
2090 * A factory method that creates a new instance of this class from an object
2091 * containing the CloudFormation properties of this resource.
2092 * Used in the @aws-cdk/cloudformation-include module.
2093 *
2094 * @internal
2095 */
2096 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnKeyGroup;
2097 /**
2098 * The identifier for the key group.
2099 * @cloudformationAttribute Id
2100 */
2101 readonly attrId: string;
2102 /**
2103 * The date and time when the key group was last modified.
2104 * @cloudformationAttribute LastModifiedTime
2105 */
2106 readonly attrLastModifiedTime: string;
2107 /**
2108 * The key group configuration.
2109 *
2110 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html#cfn-cloudfront-keygroup-keygroupconfig
2111 */
2112 keyGroupConfig: CfnKeyGroup.KeyGroupConfigProperty | cdk.IResolvable;
2113 /**
2114 * Create a new `AWS::CloudFront::KeyGroup`.
2115 *
2116 * @param scope - scope in which this resource is defined
2117 * @param id - scoped id of the resource
2118 * @param props - resource properties
2119 */
2120 constructor(scope: cdk.Construct, id: string, props: CfnKeyGroupProps);
2121 /**
2122 * Examines the CloudFormation resource and discloses attributes.
2123 *
2124 * @param inspector - tree inspector to collect and process attributes
2125 *
2126 */
2127 inspect(inspector: cdk.TreeInspector): void;
2128 protected get cfnProperties(): {
2129 [key: string]: any;
2130 };
2131 protected renderProperties(props: {
2132 [key: string]: any;
2133 }): {
2134 [key: string]: any;
2135 };
2136}
2137export declare namespace CfnKeyGroup {
2138 /**
2139 * A key group configuration.
2140 *
2141 * 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) .
2142 *
2143 * @struct
2144 * @stability external
2145 *
2146 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html
2147 */
2148 interface KeyGroupConfigProperty {
2149 /**
2150 * A comment to describe the key group. The comment cannot be longer than 128 characters.
2151 *
2152 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-comment
2153 */
2154 readonly comment?: string;
2155 /**
2156 * A list of the identifiers of the public keys in the key group.
2157 *
2158 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-items
2159 */
2160 readonly items: string[];
2161 /**
2162 * A name to identify the key group.
2163 *
2164 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-name
2165 */
2166 readonly name: string;
2167 }
2168}
2169/**
2170 * Properties for defining a `CfnMonitoringSubscription`
2171 *
2172 * @struct
2173 * @stability external
2174 *
2175 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html
2176 */
2177export interface CfnMonitoringSubscriptionProps {
2178 /**
2179 * `AWS::CloudFront::MonitoringSubscription.DistributionId`
2180 *
2181 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html#cfn-cloudfront-monitoringsubscription-distributionid
2182 */
2183 readonly distributionId: string;
2184 /**
2185 * `AWS::CloudFront::MonitoringSubscription.MonitoringSubscription`
2186 *
2187 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html#cfn-cloudfront-monitoringsubscription-monitoringsubscription
2188 */
2189 readonly monitoringSubscription: CfnMonitoringSubscription.MonitoringSubscriptionProperty | cdk.IResolvable;
2190}
2191/**
2192 * A CloudFormation `AWS::CloudFront::MonitoringSubscription`
2193 *
2194 *
2195 *
2196 * @cloudformationResource AWS::CloudFront::MonitoringSubscription
2197 * @stability external
2198 *
2199 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html
2200 */
2201export declare class CfnMonitoringSubscription extends cdk.CfnResource implements cdk.IInspectable {
2202 /**
2203 * The CloudFormation resource type name for this resource class.
2204 */
2205 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::MonitoringSubscription";
2206 /**
2207 * A factory method that creates a new instance of this class from an object
2208 * containing the CloudFormation properties of this resource.
2209 * Used in the @aws-cdk/cloudformation-include module.
2210 *
2211 * @internal
2212 */
2213 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnMonitoringSubscription;
2214 /**
2215 * `AWS::CloudFront::MonitoringSubscription.DistributionId`
2216 *
2217 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html#cfn-cloudfront-monitoringsubscription-distributionid
2218 */
2219 distributionId: string;
2220 /**
2221 * `AWS::CloudFront::MonitoringSubscription.MonitoringSubscription`
2222 *
2223 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html#cfn-cloudfront-monitoringsubscription-monitoringsubscription
2224 */
2225 monitoringSubscription: CfnMonitoringSubscription.MonitoringSubscriptionProperty | cdk.IResolvable;
2226 /**
2227 * Create a new `AWS::CloudFront::MonitoringSubscription`.
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: CfnMonitoringSubscriptionProps);
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 CfnMonitoringSubscription {
2251 /**
2252 *
2253 *
2254 * @struct
2255 * @stability external
2256 *
2257 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-monitoringsubscription.html
2258 */
2259 interface MonitoringSubscriptionProperty {
2260 /**
2261 * `CfnMonitoringSubscription.MonitoringSubscriptionProperty.RealtimeMetricsSubscriptionConfig`
2262 *
2263 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-monitoringsubscription.html#cfn-cloudfront-monitoringsubscription-monitoringsubscription-realtimemetricssubscriptionconfig
2264 */
2265 readonly realtimeMetricsSubscriptionConfig?: CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty | cdk.IResolvable;
2266 }
2267}
2268export declare namespace CfnMonitoringSubscription {
2269 /**
2270 *
2271 *
2272 * @struct
2273 * @stability external
2274 *
2275 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-realtimemetricssubscriptionconfig.html
2276 */
2277 interface RealtimeMetricsSubscriptionConfigProperty {
2278 /**
2279 * `CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty.RealtimeMetricsSubscriptionStatus`
2280 *
2281 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-realtimemetricssubscriptionconfig.html#cfn-cloudfront-monitoringsubscription-realtimemetricssubscriptionconfig-realtimemetricssubscriptionstatus
2282 */
2283 readonly realtimeMetricsSubscriptionStatus: string;
2284 }
2285}
2286/**
2287 * Properties for defining a `CfnOriginAccessControl`
2288 *
2289 * @struct
2290 * @stability external
2291 *
2292 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html
2293 */
2294export interface CfnOriginAccessControlProps {
2295 /**
2296 * `AWS::CloudFront::OriginAccessControl.OriginAccessControlConfig`
2297 *
2298 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig
2299 */
2300 readonly originAccessControlConfig: CfnOriginAccessControl.OriginAccessControlConfigProperty | cdk.IResolvable;
2301}
2302/**
2303 * A CloudFormation `AWS::CloudFront::OriginAccessControl`
2304 *
2305 *
2306 *
2307 * @cloudformationResource AWS::CloudFront::OriginAccessControl
2308 * @stability external
2309 *
2310 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html
2311 */
2312export declare class CfnOriginAccessControl extends cdk.CfnResource implements cdk.IInspectable {
2313 /**
2314 * The CloudFormation resource type name for this resource class.
2315 */
2316 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::OriginAccessControl";
2317 /**
2318 * A factory method that creates a new instance of this class from an object
2319 * containing the CloudFormation properties of this resource.
2320 * Used in the @aws-cdk/cloudformation-include module.
2321 *
2322 * @internal
2323 */
2324 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnOriginAccessControl;
2325 /**
2326 *
2327 * @cloudformationAttribute Id
2328 */
2329 readonly attrId: string;
2330 /**
2331 * `AWS::CloudFront::OriginAccessControl.OriginAccessControlConfig`
2332 *
2333 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig
2334 */
2335 originAccessControlConfig: CfnOriginAccessControl.OriginAccessControlConfigProperty | cdk.IResolvable;
2336 /**
2337 * Create a new `AWS::CloudFront::OriginAccessControl`.
2338 *
2339 * @param scope - scope in which this resource is defined
2340 * @param id - scoped id of the resource
2341 * @param props - resource properties
2342 */
2343 constructor(scope: cdk.Construct, id: string, props: CfnOriginAccessControlProps);
2344 /**
2345 * Examines the CloudFormation resource and discloses attributes.
2346 *
2347 * @param inspector - tree inspector to collect and process attributes
2348 *
2349 */
2350 inspect(inspector: cdk.TreeInspector): void;
2351 protected get cfnProperties(): {
2352 [key: string]: any;
2353 };
2354 protected renderProperties(props: {
2355 [key: string]: any;
2356 }): {
2357 [key: string]: any;
2358 };
2359}
2360export declare namespace CfnOriginAccessControl {
2361 /**
2362 *
2363 *
2364 * @struct
2365 * @stability external
2366 *
2367 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html
2368 */
2369 interface OriginAccessControlConfigProperty {
2370 /**
2371 * `CfnOriginAccessControl.OriginAccessControlConfigProperty.Description`
2372 *
2373 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-description
2374 */
2375 readonly description?: string;
2376 /**
2377 * `CfnOriginAccessControl.OriginAccessControlConfigProperty.Name`
2378 *
2379 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-name
2380 */
2381 readonly name: string;
2382 /**
2383 * `CfnOriginAccessControl.OriginAccessControlConfigProperty.OriginAccessControlOriginType`
2384 *
2385 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-originaccesscontrolorigintype
2386 */
2387 readonly originAccessControlOriginType: string;
2388 /**
2389 * `CfnOriginAccessControl.OriginAccessControlConfigProperty.SigningBehavior`
2390 *
2391 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-signingbehavior
2392 */
2393 readonly signingBehavior: string;
2394 /**
2395 * `CfnOriginAccessControl.OriginAccessControlConfigProperty.SigningProtocol`
2396 *
2397 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-signingprotocol
2398 */
2399 readonly signingProtocol: string;
2400 }
2401}
2402/**
2403 * Properties for defining a `CfnOriginRequestPolicy`
2404 *
2405 * @struct
2406 * @stability external
2407 *
2408 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html
2409 */
2410export interface CfnOriginRequestPolicyProps {
2411 /**
2412 * The origin request policy configuration.
2413 *
2414 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig
2415 */
2416 readonly originRequestPolicyConfig: CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty | cdk.IResolvable;
2417}
2418/**
2419 * A CloudFormation `AWS::CloudFront::OriginRequestPolicy`
2420 *
2421 * An origin request policy.
2422 *
2423 * 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:
2424 *
2425 * - The request body and the URL path (without the domain name) from the viewer request.
2426 * - The headers that CloudFront automatically includes in every origin request, including `Host` , `User-Agent` , and `X-Amz-Cf-Id` .
2427 * - 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.
2428 *
2429 * 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` .
2430 *
2431 * @cloudformationResource AWS::CloudFront::OriginRequestPolicy
2432 * @stability external
2433 *
2434 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html
2435 */
2436export declare class CfnOriginRequestPolicy extends cdk.CfnResource implements cdk.IInspectable {
2437 /**
2438 * The CloudFormation resource type name for this resource class.
2439 */
2440 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::OriginRequestPolicy";
2441 /**
2442 * A factory method that creates a new instance of this class from an object
2443 * containing the CloudFormation properties of this resource.
2444 * Used in the @aws-cdk/cloudformation-include module.
2445 *
2446 * @internal
2447 */
2448 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnOriginRequestPolicy;
2449 /**
2450 * The unique identifier for the origin request policy. For example: `befd7079-9bbc-4ebf-8ade-498a3694176c` .
2451 * @cloudformationAttribute Id
2452 */
2453 readonly attrId: string;
2454 /**
2455 * The date and time when the origin request policy was last modified.
2456 * @cloudformationAttribute LastModifiedTime
2457 */
2458 readonly attrLastModifiedTime: string;
2459 /**
2460 * The origin request policy configuration.
2461 *
2462 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig
2463 */
2464 originRequestPolicyConfig: CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty | cdk.IResolvable;
2465 /**
2466 * Create a new `AWS::CloudFront::OriginRequestPolicy`.
2467 *
2468 * @param scope - scope in which this resource is defined
2469 * @param id - scoped id of the resource
2470 * @param props - resource properties
2471 */
2472 constructor(scope: cdk.Construct, id: string, props: CfnOriginRequestPolicyProps);
2473 /**
2474 * Examines the CloudFormation resource and discloses attributes.
2475 *
2476 * @param inspector - tree inspector to collect and process attributes
2477 *
2478 */
2479 inspect(inspector: cdk.TreeInspector): void;
2480 protected get cfnProperties(): {
2481 [key: string]: any;
2482 };
2483 protected renderProperties(props: {
2484 [key: string]: any;
2485 }): {
2486 [key: string]: any;
2487 };
2488}
2489export declare namespace CfnOriginRequestPolicy {
2490 /**
2491 * 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.
2492 *
2493 * @struct
2494 * @stability external
2495 *
2496 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html
2497 */
2498 interface CookiesConfigProperty {
2499 /**
2500 * Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
2501 *
2502 * - `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.
2503 * - `whitelist` – The cookies in viewer requests that are listed in the `CookieNames` type are included in requests that CloudFront sends to the origin.
2504 * - `all` – All cookies in viewer requests are included in requests that CloudFront sends to the origin.
2505 *
2506 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html#cfn-cloudfront-originrequestpolicy-cookiesconfig-cookiebehavior
2507 */
2508 readonly cookieBehavior: string;
2509 /**
2510 * Contains a list of cookie names.
2511 *
2512 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html#cfn-cloudfront-originrequestpolicy-cookiesconfig-cookies
2513 */
2514 readonly cookies?: string[];
2515 }
2516}
2517export declare namespace CfnOriginRequestPolicy {
2518 /**
2519 * An object that determines whether any HTTP headers (and if so, which headers) are included in requests that CloudFront sends to the origin.
2520 *
2521 * @struct
2522 * @stability external
2523 *
2524 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html
2525 */
2526 interface HeadersConfigProperty {
2527 /**
2528 * Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
2529 *
2530 * - `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.
2531 * - `whitelist` – The HTTP headers that are listed in the `Headers` type are included in requests that CloudFront sends to the origin.
2532 * - `allViewer` – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.
2533 * - `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.
2534 *
2535 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html#cfn-cloudfront-originrequestpolicy-headersconfig-headerbehavior
2536 */
2537 readonly headerBehavior: string;
2538 /**
2539 * Contains a list of HTTP header names.
2540 *
2541 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html#cfn-cloudfront-originrequestpolicy-headersconfig-headers
2542 */
2543 readonly headers?: string[];
2544 }
2545}
2546export declare namespace CfnOriginRequestPolicy {
2547 /**
2548 * An origin request policy configuration.
2549 *
2550 * 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:
2551 *
2552 * - The request body and the URL path (without the domain name) from the viewer request.
2553 * - The headers that CloudFront automatically includes in every origin request, including `Host` , `User-Agent` , and `X-Amz-Cf-Id` .
2554 * - 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.
2555 *
2556 * 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` .
2557 *
2558 * @struct
2559 * @stability external
2560 *
2561 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html
2562 */
2563 interface OriginRequestPolicyConfigProperty {
2564 /**
2565 * A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
2566 *
2567 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-comment
2568 */
2569 readonly comment?: string;
2570 /**
2571 * The cookies from viewer requests to include in origin requests.
2572 *
2573 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-cookiesconfig
2574 */
2575 readonly cookiesConfig: CfnOriginRequestPolicy.CookiesConfigProperty | cdk.IResolvable;
2576 /**
2577 * The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
2578 *
2579 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-headersconfig
2580 */
2581 readonly headersConfig: CfnOriginRequestPolicy.HeadersConfigProperty | cdk.IResolvable;
2582 /**
2583 * A unique name to identify the origin request policy.
2584 *
2585 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-name
2586 */
2587 readonly name: string;
2588 /**
2589 * The URL query strings from viewer requests to include in origin requests.
2590 *
2591 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-querystringsconfig
2592 */
2593 readonly queryStringsConfig: CfnOriginRequestPolicy.QueryStringsConfigProperty | cdk.IResolvable;
2594 }
2595}
2596export declare namespace CfnOriginRequestPolicy {
2597 /**
2598 * 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.
2599 *
2600 * @struct
2601 * @stability external
2602 *
2603 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html
2604 */
2605 interface QueryStringsConfigProperty {
2606 /**
2607 * Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
2608 *
2609 * - `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.
2610 * - `whitelist` – The query strings in viewer requests that are listed in the `QueryStringNames` type are included in requests that CloudFront sends to the origin.
2611 * - `all` – All query strings in viewer requests are included in requests that CloudFront sends to the origin.
2612 *
2613 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html#cfn-cloudfront-originrequestpolicy-querystringsconfig-querystringbehavior
2614 */
2615 readonly queryStringBehavior: string;
2616 /**
2617 * Contains a list of query string names.
2618 *
2619 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html#cfn-cloudfront-originrequestpolicy-querystringsconfig-querystrings
2620 */
2621 readonly queryStrings?: string[];
2622 }
2623}
2624/**
2625 * Properties for defining a `CfnPublicKey`
2626 *
2627 * @struct
2628 * @stability external
2629 *
2630 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html
2631 */
2632export interface CfnPublicKeyProps {
2633 /**
2634 * 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) .
2635 *
2636 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html#cfn-cloudfront-publickey-publickeyconfig
2637 */
2638 readonly publicKeyConfig: CfnPublicKey.PublicKeyConfigProperty | cdk.IResolvable;
2639}
2640/**
2641 * A CloudFormation `AWS::CloudFront::PublicKey`
2642 *
2643 * 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) .
2644 *
2645 * @cloudformationResource AWS::CloudFront::PublicKey
2646 * @stability external
2647 *
2648 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html
2649 */
2650export declare class CfnPublicKey extends cdk.CfnResource implements cdk.IInspectable {
2651 /**
2652 * The CloudFormation resource type name for this resource class.
2653 */
2654 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::PublicKey";
2655 /**
2656 * A factory method that creates a new instance of this class from an object
2657 * containing the CloudFormation properties of this resource.
2658 * Used in the @aws-cdk/cloudformation-include module.
2659 *
2660 * @internal
2661 */
2662 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnPublicKey;
2663 /**
2664 * The date and time when the public key was uploaded.
2665 * @cloudformationAttribute CreatedTime
2666 */
2667 readonly attrCreatedTime: string;
2668 /**
2669 * The identifier of the public key.
2670 * @cloudformationAttribute Id
2671 */
2672 readonly attrId: string;
2673 /**
2674 * 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) .
2675 *
2676 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html#cfn-cloudfront-publickey-publickeyconfig
2677 */
2678 publicKeyConfig: CfnPublicKey.PublicKeyConfigProperty | cdk.IResolvable;
2679 /**
2680 * Create a new `AWS::CloudFront::PublicKey`.
2681 *
2682 * @param scope - scope in which this resource is defined
2683 * @param id - scoped id of the resource
2684 * @param props - resource properties
2685 */
2686 constructor(scope: cdk.Construct, id: string, props: CfnPublicKeyProps);
2687 /**
2688 * Examines the CloudFormation resource and discloses attributes.
2689 *
2690 * @param inspector - tree inspector to collect and process attributes
2691 *
2692 */
2693 inspect(inspector: cdk.TreeInspector): void;
2694 protected get cfnProperties(): {
2695 [key: string]: any;
2696 };
2697 protected renderProperties(props: {
2698 [key: string]: any;
2699 }): {
2700 [key: string]: any;
2701 };
2702}
2703export declare namespace CfnPublicKey {
2704 /**
2705 * 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) .
2706 *
2707 * @struct
2708 * @stability external
2709 *
2710 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html
2711 */
2712 interface PublicKeyConfigProperty {
2713 /**
2714 * A string included in the request to help make sure that the request can’t be replayed.
2715 *
2716 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-callerreference
2717 */
2718 readonly callerReference: string;
2719 /**
2720 * A comment to describe the public key. The comment cannot be longer than 128 characters.
2721 *
2722 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-comment
2723 */
2724 readonly comment?: string;
2725 /**
2726 * 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) .
2727 *
2728 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-encodedkey
2729 */
2730 readonly encodedKey: string;
2731 /**
2732 * A name to help identify the public key.
2733 *
2734 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-name
2735 */
2736 readonly name: string;
2737 }
2738}
2739/**
2740 * Properties for defining a `CfnRealtimeLogConfig`
2741 *
2742 * @struct
2743 * @stability external
2744 *
2745 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html
2746 */
2747export interface CfnRealtimeLogConfigProps {
2748 /**
2749 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
2750 *
2751 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-endpoints
2752 */
2753 readonly endPoints: Array<CfnRealtimeLogConfig.EndPointProperty | cdk.IResolvable> | cdk.IResolvable;
2754 /**
2755 * 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.
2756 *
2757 * 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* .
2758 *
2759 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-fields
2760 */
2761 readonly fields: string[];
2762 /**
2763 * The unique name of this real-time log configuration.
2764 *
2765 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-name
2766 */
2767 readonly name: string;
2768 /**
2769 * 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.
2770 *
2771 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-samplingrate
2772 */
2773 readonly samplingRate: number;
2774}
2775/**
2776 * A CloudFormation `AWS::CloudFront::RealtimeLogConfig`
2777 *
2778 * A real-time log configuration.
2779 *
2780 * @cloudformationResource AWS::CloudFront::RealtimeLogConfig
2781 * @stability external
2782 *
2783 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html
2784 */
2785export declare class CfnRealtimeLogConfig extends cdk.CfnResource implements cdk.IInspectable {
2786 /**
2787 * The CloudFormation resource type name for this resource class.
2788 */
2789 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::RealtimeLogConfig";
2790 /**
2791 * A factory method that creates a new instance of this class from an object
2792 * containing the CloudFormation properties of this resource.
2793 * Used in the @aws-cdk/cloudformation-include module.
2794 *
2795 * @internal
2796 */
2797 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnRealtimeLogConfig;
2798 /**
2799 * The Amazon Resource Name (ARN) of the real-time log configuration. For example: `arn:aws:cloudfront::111122223333:realtime-log-config/ExampleNameForRealtimeLogConfig` .
2800 * @cloudformationAttribute Arn
2801 */
2802 readonly attrArn: string;
2803 /**
2804 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
2805 *
2806 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-endpoints
2807 */
2808 endPoints: Array<CfnRealtimeLogConfig.EndPointProperty | cdk.IResolvable> | cdk.IResolvable;
2809 /**
2810 * 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.
2811 *
2812 * 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* .
2813 *
2814 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-fields
2815 */
2816 fields: string[];
2817 /**
2818 * The unique name of this real-time log configuration.
2819 *
2820 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-name
2821 */
2822 name: string;
2823 /**
2824 * 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.
2825 *
2826 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-samplingrate
2827 */
2828 samplingRate: number;
2829 /**
2830 * Create a new `AWS::CloudFront::RealtimeLogConfig`.
2831 *
2832 * @param scope - scope in which this resource is defined
2833 * @param id - scoped id of the resource
2834 * @param props - resource properties
2835 */
2836 constructor(scope: cdk.Construct, id: string, props: CfnRealtimeLogConfigProps);
2837 /**
2838 * Examines the CloudFormation resource and discloses attributes.
2839 *
2840 * @param inspector - tree inspector to collect and process attributes
2841 *
2842 */
2843 inspect(inspector: cdk.TreeInspector): void;
2844 protected get cfnProperties(): {
2845 [key: string]: any;
2846 };
2847 protected renderProperties(props: {
2848 [key: string]: any;
2849 }): {
2850 [key: string]: any;
2851 };
2852}
2853export declare namespace CfnRealtimeLogConfig {
2854 /**
2855 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data in a real-time log configuration.
2856 *
2857 * @struct
2858 * @stability external
2859 *
2860 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html
2861 */
2862 interface EndPointProperty {
2863 /**
2864 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
2865 *
2866 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html#cfn-cloudfront-realtimelogconfig-endpoint-kinesisstreamconfig
2867 */
2868 readonly kinesisStreamConfig: CfnRealtimeLogConfig.KinesisStreamConfigProperty | cdk.IResolvable;
2869 /**
2870 * The type of data stream where you are sending real-time log data. The only valid value is `Kinesis` .
2871 *
2872 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html#cfn-cloudfront-realtimelogconfig-endpoint-streamtype
2873 */
2874 readonly streamType: string;
2875 }
2876}
2877export declare namespace CfnRealtimeLogConfig {
2878 /**
2879 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
2880 *
2881 * @struct
2882 * @stability external
2883 *
2884 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html
2885 */
2886 interface KinesisStreamConfigProperty {
2887 /**
2888 * 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.
2889 *
2890 * 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* .
2891 *
2892 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html#cfn-cloudfront-realtimelogconfig-kinesisstreamconfig-rolearn
2893 */
2894 readonly roleArn: string;
2895 /**
2896 * The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data.
2897 *
2898 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html#cfn-cloudfront-realtimelogconfig-kinesisstreamconfig-streamarn
2899 */
2900 readonly streamArn: string;
2901 }
2902}
2903/**
2904 * Properties for defining a `CfnResponseHeadersPolicy`
2905 *
2906 * @struct
2907 * @stability external
2908 *
2909 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html
2910 */
2911export interface CfnResponseHeadersPolicyProps {
2912 /**
2913 * A response headers policy configuration.
2914 *
2915 * 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.
2916 *
2917 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig
2918 */
2919 readonly responseHeadersPolicyConfig: CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty | cdk.IResolvable;
2920}
2921/**
2922 * A CloudFormation `AWS::CloudFront::ResponseHeadersPolicy`
2923 *
2924 * A response headers policy.
2925 *
2926 * A response headers policy contains information about a set of HTTP response headers and their values.
2927 *
2928 * 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.
2929 *
2930 * 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* .
2931 *
2932 * @cloudformationResource AWS::CloudFront::ResponseHeadersPolicy
2933 * @stability external
2934 *
2935 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html
2936 */
2937export declare class CfnResponseHeadersPolicy extends cdk.CfnResource implements cdk.IInspectable {
2938 /**
2939 * The CloudFormation resource type name for this resource class.
2940 */
2941 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::ResponseHeadersPolicy";
2942 /**
2943 * A factory method that creates a new instance of this class from an object
2944 * containing the CloudFormation properties of this resource.
2945 * Used in the @aws-cdk/cloudformation-include module.
2946 *
2947 * @internal
2948 */
2949 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnResponseHeadersPolicy;
2950 /**
2951 * The unique identifier for the cache policy. For example: `57f99797-3b20-4e1b-a728-27972a74082a` .
2952 * @cloudformationAttribute Id
2953 */
2954 readonly attrId: string;
2955 /**
2956 * The date and time when the response headers policy was last modified.
2957 * @cloudformationAttribute LastModifiedTime
2958 */
2959 readonly attrLastModifiedTime: string;
2960 /**
2961 * A response headers policy configuration.
2962 *
2963 * 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.
2964 *
2965 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig
2966 */
2967 responseHeadersPolicyConfig: CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty | cdk.IResolvable;
2968 /**
2969 * Create a new `AWS::CloudFront::ResponseHeadersPolicy`.
2970 *
2971 * @param scope - scope in which this resource is defined
2972 * @param id - scoped id of the resource
2973 * @param props - resource properties
2974 */
2975 constructor(scope: cdk.Construct, id: string, props: CfnResponseHeadersPolicyProps);
2976 /**
2977 * Examines the CloudFormation resource and discloses attributes.
2978 *
2979 * @param inspector - tree inspector to collect and process attributes
2980 *
2981 */
2982 inspect(inspector: cdk.TreeInspector): void;
2983 protected get cfnProperties(): {
2984 [key: string]: any;
2985 };
2986 protected renderProperties(props: {
2987 [key: string]: any;
2988 }): {
2989 [key: string]: any;
2990 };
2991}
2992export declare namespace CfnResponseHeadersPolicy {
2993 /**
2994 * A list of HTTP header names that CloudFront includes as values for the `Access-Control-Allow-Headers` HTTP response header.
2995 *
2996 * 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.
2997 *
2998 * @struct
2999 * @stability external
3000 *
3001 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowheaders.html
3002 */
3003 interface AccessControlAllowHeadersProperty {
3004 /**
3005 * The list of HTTP header names. You can specify `*` to allow all headers.
3006 *
3007 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowheaders.html#cfn-cloudfront-responseheaderspolicy-accesscontrolallowheaders-items
3008 */
3009 readonly items: string[];
3010 }
3011}
3012export declare namespace CfnResponseHeadersPolicy {
3013 /**
3014 * A list of HTTP methods that CloudFront includes as values for the `Access-Control-Allow-Methods` HTTP response header.
3015 *
3016 * 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.
3017 *
3018 * @struct
3019 * @stability external
3020 *
3021 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowmethods.html
3022 */
3023 interface AccessControlAllowMethodsProperty {
3024 /**
3025 * The list of HTTP methods. Valid values are:
3026 *
3027 * - `GET`
3028 * - `DELETE`
3029 * - `HEAD`
3030 * - `OPTIONS`
3031 * - `PATCH`
3032 * - `POST`
3033 * - `PUT`
3034 * - `ALL`
3035 *
3036 * `ALL` is a special value that includes all of the listed HTTP methods.
3037 *
3038 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowmethods.html#cfn-cloudfront-responseheaderspolicy-accesscontrolallowmethods-items
3039 */
3040 readonly items: string[];
3041 }
3042}
3043export declare namespace CfnResponseHeadersPolicy {
3044 /**
3045 * A list of origins (domain names) that CloudFront can use as the value for the `Access-Control-Allow-Origin` HTTP response header.
3046 *
3047 * 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.
3048 *
3049 * @struct
3050 * @stability external
3051 *
3052 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.html
3053 */
3054 interface AccessControlAllowOriginsProperty {
3055 /**
3056 * The list of origins (domain names). You can specify `*` to allow all origins.
3057 *
3058 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.html#cfn-cloudfront-responseheaderspolicy-accesscontrolalloworigins-items
3059 */
3060 readonly items: string[];
3061 }
3062}
3063export declare namespace CfnResponseHeadersPolicy {
3064 /**
3065 * A list of HTTP headers that CloudFront includes as values for the `Access-Control-Expose-Headers` HTTP response header.
3066 *
3067 * 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.
3068 *
3069 * @struct
3070 * @stability external
3071 *
3072 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolexposeheaders.html
3073 */
3074 interface AccessControlExposeHeadersProperty {
3075 /**
3076 * The list of HTTP headers. You can specify `*` to expose all headers.
3077 *
3078 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolexposeheaders.html#cfn-cloudfront-responseheaderspolicy-accesscontrolexposeheaders-items
3079 */
3080 readonly items: string[];
3081 }
3082}
3083export declare namespace CfnResponseHeadersPolicy {
3084 /**
3085 * The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
3086 *
3087 * 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.
3088 *
3089 * @struct
3090 * @stability external
3091 *
3092 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html
3093 */
3094 interface ContentSecurityPolicyProperty {
3095 /**
3096 * The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
3097 *
3098 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html#cfn-cloudfront-responseheaderspolicy-contentsecuritypolicy-contentsecuritypolicy
3099 */
3100 readonly contentSecurityPolicy: string;
3101 /**
3102 * 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.
3103 *
3104 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html#cfn-cloudfront-responseheaderspolicy-contentsecuritypolicy-override
3105 */
3106 readonly override: boolean | cdk.IResolvable;
3107 }
3108}
3109export declare namespace CfnResponseHeadersPolicy {
3110 /**
3111 * Determines whether CloudFront includes the `X-Content-Type-Options` HTTP response header with its value set to `nosniff` .
3112 *
3113 * 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.
3114 *
3115 * @struct
3116 * @stability external
3117 *
3118 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contenttypeoptions.html
3119 */
3120 interface ContentTypeOptionsProperty {
3121 /**
3122 * 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.
3123 *
3124 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contenttypeoptions.html#cfn-cloudfront-responseheaderspolicy-contenttypeoptions-override
3125 */
3126 readonly override: boolean | cdk.IResolvable;
3127 }
3128}
3129export declare namespace CfnResponseHeadersPolicy {
3130 /**
3131 * 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.
3132 *
3133 * 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.
3134 *
3135 * @struct
3136 * @stability external
3137 *
3138 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html
3139 */
3140 interface CorsConfigProperty {
3141 /**
3142 * A Boolean that CloudFront uses as the value for the `Access-Control-Allow-Credentials` HTTP response header.
3143 *
3144 * 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.
3145 *
3146 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowcredentials
3147 */
3148 readonly accessControlAllowCredentials: boolean | cdk.IResolvable;
3149 /**
3150 * A list of HTTP header names that CloudFront includes as values for the `Access-Control-Allow-Headers` HTTP response header.
3151 *
3152 * 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.
3153 *
3154 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowheaders
3155 */
3156 readonly accessControlAllowHeaders: CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty | cdk.IResolvable;
3157 /**
3158 * A list of HTTP methods that CloudFront includes as values for the `Access-Control-Allow-Methods` HTTP response header.
3159 *
3160 * 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.
3161 *
3162 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowmethods
3163 */
3164 readonly accessControlAllowMethods: CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty | cdk.IResolvable;
3165 /**
3166 * A list of origins (domain names) that CloudFront can use as the value for the `Access-Control-Allow-Origin` HTTP response header.
3167 *
3168 * 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.
3169 *
3170 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolalloworigins
3171 */
3172 readonly accessControlAllowOrigins: CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty | cdk.IResolvable;
3173 /**
3174 * A list of HTTP headers that CloudFront includes as values for the `Access-Control-Expose-Headers` HTTP response header.
3175 *
3176 * 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.
3177 *
3178 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolexposeheaders
3179 */
3180 readonly accessControlExposeHeaders?: CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty | cdk.IResolvable;
3181 /**
3182 * A number that CloudFront uses as the value for the `Access-Control-Max-Age` HTTP response header.
3183 *
3184 * For more information about the `Access-Control-Max-Age` HTTP response header, see [Access-Control-Max-Age](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age) in the MDN Web Docs.
3185 *
3186 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolmaxagesec
3187 */
3188 readonly accessControlMaxAgeSec?: number;
3189 /**
3190 * A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.
3191 *
3192 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-originoverride
3193 */
3194 readonly originOverride: boolean | cdk.IResolvable;
3195 }
3196}
3197export declare namespace CfnResponseHeadersPolicy {
3198 /**
3199 * An HTTP response header name and its value. CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that’s associated with this response headers policy.
3200 *
3201 * @struct
3202 * @stability external
3203 *
3204 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html
3205 */
3206 interface CustomHeaderProperty {
3207 /**
3208 * The HTTP response header name.
3209 *
3210 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-header
3211 */
3212 readonly header: string;
3213 /**
3214 * A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
3215 *
3216 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-override
3217 */
3218 readonly override: boolean | cdk.IResolvable;
3219 /**
3220 * The value for the HTTP response header.
3221 *
3222 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-value
3223 */
3224 readonly value: string;
3225 }
3226}
3227export declare namespace CfnResponseHeadersPolicy {
3228 /**
3229 * A list of HTTP response header names and their values. CloudFront includes these headers in HTTP responses that it sends for requests that match a cache behavior that’s associated with this response headers policy.
3230 *
3231 * @struct
3232 * @stability external
3233 *
3234 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheadersconfig.html
3235 */
3236 interface CustomHeadersConfigProperty {
3237 /**
3238 * The list of HTTP response headers and their values.
3239 *
3240 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheadersconfig.html#cfn-cloudfront-responseheaderspolicy-customheadersconfig-items
3241 */
3242 readonly items: Array<CfnResponseHeadersPolicy.CustomHeaderProperty | cdk.IResolvable> | cdk.IResolvable;
3243 }
3244}
3245export declare namespace CfnResponseHeadersPolicy {
3246 /**
3247 * Determines whether CloudFront includes the `X-Frame-Options` HTTP response header and the header’s value.
3248 *
3249 * For more information about the `X-Frame-Options` HTTP response header, see [X-Frame-Options](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) in the MDN Web Docs.
3250 *
3251 * @struct
3252 * @stability external
3253 *
3254 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-frameoptions.html
3255 */
3256 interface FrameOptionsProperty {
3257 /**
3258 * The value of the `X-Frame-Options` HTTP response header. Valid values are `DENY` and `SAMEORIGIN` .
3259 *
3260 * For more information about these values, see [X-Frame-Options](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) in the MDN Web Docs.
3261 *
3262 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-frameoptions.html#cfn-cloudfront-responseheaderspolicy-frameoptions-frameoption
3263 */
3264 readonly frameOption: string;
3265 /**
3266 * A Boolean that determines whether CloudFront overrides the `X-Frame-Options` HTTP response header received from the origin with the one specified in this response headers policy.
3267 *
3268 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-frameoptions.html#cfn-cloudfront-responseheaderspolicy-frameoptions-override
3269 */
3270 readonly override: boolean | cdk.IResolvable;
3271 }
3272}
3273export declare namespace CfnResponseHeadersPolicy {
3274 /**
3275 * Determines whether CloudFront includes the `Referrer-Policy` HTTP response header and the header’s value.
3276 *
3277 * For more information about the `Referrer-Policy` HTTP response header, see [Referrer-Policy](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy) in the MDN Web Docs.
3278 *
3279 * @struct
3280 * @stability external
3281 *
3282 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-referrerpolicy.html
3283 */
3284 interface ReferrerPolicyProperty {
3285 /**
3286 * A Boolean that determines whether CloudFront overrides the `Referrer-Policy` HTTP response header received from the origin with the one specified in this response headers policy.
3287 *
3288 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-referrerpolicy.html#cfn-cloudfront-responseheaderspolicy-referrerpolicy-override
3289 */
3290 readonly override: boolean | cdk.IResolvable;
3291 /**
3292 * The value of the `Referrer-Policy` HTTP response header. Valid values are:
3293 *
3294 * - `no-referrer`
3295 * - `no-referrer-when-downgrade`
3296 * - `origin`
3297 * - `origin-when-cross-origin`
3298 * - `same-origin`
3299 * - `strict-origin`
3300 * - `strict-origin-when-cross-origin`
3301 * - `unsafe-url`
3302 *
3303 * For more information about these values, see [Referrer-Policy](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy) in the MDN Web Docs.
3304 *
3305 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-referrerpolicy.html#cfn-cloudfront-responseheaderspolicy-referrerpolicy-referrerpolicy
3306 */
3307 readonly referrerPolicy: string;
3308 }
3309}
3310export declare namespace CfnResponseHeadersPolicy {
3311 /**
3312 * A response headers policy configuration.
3313 *
3314 * A response headers policy configuration contains metadata about the response headers policy, and configurations for sets 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 associated with the policy.
3315 *
3316 * @struct
3317 * @stability external
3318 *
3319 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html
3320 */
3321 interface ResponseHeadersPolicyConfigProperty {
3322 /**
3323 * A comment to describe the response headers policy.
3324 *
3325 * The comment cannot be longer than 128 characters.
3326 *
3327 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-comment
3328 */
3329 readonly comment?: string;
3330 /**
3331 * A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
3332 *
3333 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-corsconfig
3334 */
3335 readonly corsConfig?: CfnResponseHeadersPolicy.CorsConfigProperty | cdk.IResolvable;
3336 /**
3337 * A configuration for a set of custom HTTP response headers.
3338 *
3339 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-customheadersconfig
3340 */
3341 readonly customHeadersConfig?: CfnResponseHeadersPolicy.CustomHeadersConfigProperty | cdk.IResolvable;
3342 /**
3343 * A name to identify the response headers policy.
3344 *
3345 * The name must be unique for response headers policies in this AWS account .
3346 *
3347 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-name
3348 */
3349 readonly name: string;
3350 /**
3351 * A configuration for a set of security-related HTTP response headers.
3352 *
3353 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-securityheadersconfig
3354 */
3355 readonly securityHeadersConfig?: CfnResponseHeadersPolicy.SecurityHeadersConfigProperty | cdk.IResolvable;
3356 /**
3357 * `CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty.ServerTimingHeadersConfig`
3358 *
3359 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-servertimingheadersconfig
3360 */
3361 readonly serverTimingHeadersConfig?: CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty | cdk.IResolvable;
3362 }
3363}
3364export declare namespace CfnResponseHeadersPolicy {
3365 /**
3366 * A configuration for a set of security-related HTTP response headers. CloudFront adds these headers to HTTP responses that it sends for requests that match a cache behavior associated with this response headers policy.
3367 *
3368 * @struct
3369 * @stability external
3370 *
3371 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html
3372 */
3373 interface SecurityHeadersConfigProperty {
3374 /**
3375 * The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
3376 *
3377 * 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.
3378 *
3379 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-contentsecuritypolicy
3380 */
3381 readonly contentSecurityPolicy?: CfnResponseHeadersPolicy.ContentSecurityPolicyProperty | cdk.IResolvable;
3382 /**
3383 * Determines whether CloudFront includes the `X-Content-Type-Options` HTTP response header with its value set to `nosniff` .
3384 *
3385 * 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.
3386 *
3387 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-contenttypeoptions
3388 */
3389 readonly contentTypeOptions?: CfnResponseHeadersPolicy.ContentTypeOptionsProperty | cdk.IResolvable;
3390 /**
3391 * Determines whether CloudFront includes the `X-Frame-Options` HTTP response header and the header’s value.
3392 *
3393 * For more information about the `X-Frame-Options` HTTP response header, see [X-Frame-Options](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) in the MDN Web Docs.
3394 *
3395 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-frameoptions
3396 */
3397 readonly frameOptions?: CfnResponseHeadersPolicy.FrameOptionsProperty | cdk.IResolvable;
3398 /**
3399 * Determines whether CloudFront includes the `Referrer-Policy` HTTP response header and the header’s value.
3400 *
3401 * For more information about the `Referrer-Policy` HTTP response header, see [Referrer-Policy](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy) in the MDN Web Docs.
3402 *
3403 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-referrerpolicy
3404 */
3405 readonly referrerPolicy?: CfnResponseHeadersPolicy.ReferrerPolicyProperty | cdk.IResolvable;
3406 /**
3407 * Determines whether CloudFront includes the `Strict-Transport-Security` HTTP response header and the header’s value.
3408 *
3409 * For more information about the `Strict-Transport-Security` HTTP response header, see [Strict-Transport-Security](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security) in the MDN Web Docs.
3410 *
3411 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-stricttransportsecurity
3412 */
3413 readonly strictTransportSecurity?: CfnResponseHeadersPolicy.StrictTransportSecurityProperty | cdk.IResolvable;
3414 /**
3415 * Determines whether CloudFront includes the `X-XSS-Protection` HTTP response header and the header’s value.
3416 *
3417 * For more information about the `X-XSS-Protection` HTTP response header, see [X-XSS-Protection](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) in the MDN Web Docs.
3418 *
3419 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-xssprotection
3420 */
3421 readonly xssProtection?: CfnResponseHeadersPolicy.XSSProtectionProperty | cdk.IResolvable;
3422 }
3423}
3424export declare namespace CfnResponseHeadersPolicy {
3425 /**
3426 *
3427 *
3428 * @struct
3429 * @stability external
3430 *
3431 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-servertimingheadersconfig.html
3432 */
3433 interface ServerTimingHeadersConfigProperty {
3434 /**
3435 * `CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Enabled`
3436 *
3437 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-servertimingheadersconfig.html#cfn-cloudfront-responseheaderspolicy-servertimingheadersconfig-enabled
3438 */
3439 readonly enabled: boolean | cdk.IResolvable;
3440 /**
3441 * `CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.SamplingRate`
3442 *
3443 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-servertimingheadersconfig.html#cfn-cloudfront-responseheaderspolicy-servertimingheadersconfig-samplingrate
3444 */
3445 readonly samplingRate?: number;
3446 }
3447}
3448export declare namespace CfnResponseHeadersPolicy {
3449 /**
3450 * Determines whether CloudFront includes the `Strict-Transport-Security` HTTP response header and the header’s value.
3451 *
3452 * For more information about the `Strict-Transport-Security` HTTP response header, see [Strict-Transport-Security](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security) in the MDN Web Docs.
3453 *
3454 * @struct
3455 * @stability external
3456 *
3457 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html
3458 */
3459 interface StrictTransportSecurityProperty {
3460 /**
3461 * A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
3462 *
3463 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-accesscontrolmaxagesec
3464 */
3465 readonly accessControlMaxAgeSec: number;
3466 /**
3467 * A Boolean that determines whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
3468 *
3469 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-includesubdomains
3470 */
3471 readonly includeSubdomains?: boolean | cdk.IResolvable;
3472 /**
3473 * A Boolean that determines whether CloudFront overrides the `Strict-Transport-Security` HTTP response header received from the origin with the one specified in this response headers policy.
3474 *
3475 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-override
3476 */
3477 readonly override: boolean | cdk.IResolvable;
3478 /**
3479 * A Boolean that determines whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
3480 *
3481 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-preload
3482 */
3483 readonly preload?: boolean | cdk.IResolvable;
3484 }
3485}
3486export declare namespace CfnResponseHeadersPolicy {
3487 /**
3488 * Determines whether CloudFront includes the `X-XSS-Protection` HTTP response header and the header’s value.
3489 *
3490 * For more information about the `X-XSS-Protection` HTTP response header, see [X-XSS-Protection](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) in the MDN Web Docs.
3491 *
3492 * @struct
3493 * @stability external
3494 *
3495 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html
3496 */
3497 interface XSSProtectionProperty {
3498 /**
3499 * A Boolean that determines whether CloudFront includes the `mode=block` directive in the `X-XSS-Protection` header.
3500 *
3501 * For more information about this directive, see [X-XSS-Protection](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) in the MDN Web Docs.
3502 *
3503 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-modeblock
3504 */
3505 readonly modeBlock?: boolean | cdk.IResolvable;
3506 /**
3507 * A Boolean that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy.
3508 *
3509 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-override
3510 */
3511 readonly override: boolean | cdk.IResolvable;
3512 /**
3513 * A Boolean that determines the value of the `X-XSS-Protection` HTTP response header. When this setting is `true` , the value of the `X-XSS-Protection` header is `1` . When this setting is `false` , the value of the `X-XSS-Protection` header is `0` .
3514 *
3515 * For more information about these settings, see [X-XSS-Protection](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) in the MDN Web Docs.
3516 *
3517 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-protection
3518 */
3519 readonly protection: boolean | cdk.IResolvable;
3520 /**
3521 * A reporting URI, which CloudFront uses as the value of the `report` directive in the `X-XSS-Protection` header.
3522 *
3523 * You cannot specify a `ReportUri` when `ModeBlock` is `true` .
3524 *
3525 * For more information about using a reporting URL, see [X-XSS-Protection](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) in the MDN Web Docs.
3526 *
3527 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-reporturi
3528 */
3529 readonly reportUri?: string;
3530 }
3531}
3532/**
3533 * Properties for defining a `CfnStreamingDistribution`
3534 *
3535 * @struct
3536 * @stability external
3537 *
3538 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html
3539 */
3540export interface CfnStreamingDistributionProps {
3541 /**
3542 * The current configuration information for the RTMP distribution.
3543 *
3544 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig
3545 */
3546 readonly streamingDistributionConfig: CfnStreamingDistribution.StreamingDistributionConfigProperty | cdk.IResolvable;
3547 /**
3548 * A complex type that contains zero or more `Tag` elements.
3549 *
3550 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-tags
3551 */
3552 readonly tags: cdk.CfnTag[];
3553}
3554/**
3555 * A CloudFormation `AWS::CloudFront::StreamingDistribution`
3556 *
3557 * This resource is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, [read the announcement](https://docs.aws.amazon.com/ann.jspa?annID=7356) on the Amazon CloudFront discussion forum.
3558 *
3559 * @cloudformationResource AWS::CloudFront::StreamingDistribution
3560 * @stability external
3561 *
3562 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html
3563 */
3564export declare class CfnStreamingDistribution extends cdk.CfnResource implements cdk.IInspectable {
3565 /**
3566 * The CloudFormation resource type name for this resource class.
3567 */
3568 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::StreamingDistribution";
3569 /**
3570 * A factory method that creates a new instance of this class from an object
3571 * containing the CloudFormation properties of this resource.
3572 * Used in the @aws-cdk/cloudformation-include module.
3573 *
3574 * @internal
3575 */
3576 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnStreamingDistribution;
3577 /**
3578 * The domain name of the resource, such as `d111111abcdef8.cloudfront.net` .
3579 * @cloudformationAttribute DomainName
3580 */
3581 readonly attrDomainName: string;
3582 /**
3583 * The current configuration information for the RTMP distribution.
3584 *
3585 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig
3586 */
3587 streamingDistributionConfig: CfnStreamingDistribution.StreamingDistributionConfigProperty | cdk.IResolvable;
3588 /**
3589 * A complex type that contains zero or more `Tag` elements.
3590 *
3591 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-tags
3592 */
3593 readonly tags: cdk.TagManager;
3594 /**
3595 * Create a new `AWS::CloudFront::StreamingDistribution`.
3596 *
3597 * @param scope - scope in which this resource is defined
3598 * @param id - scoped id of the resource
3599 * @param props - resource properties
3600 */
3601 constructor(scope: cdk.Construct, id: string, props: CfnStreamingDistributionProps);
3602 /**
3603 * Examines the CloudFormation resource and discloses attributes.
3604 *
3605 * @param inspector - tree inspector to collect and process attributes
3606 *
3607 */
3608 inspect(inspector: cdk.TreeInspector): void;
3609 protected get cfnProperties(): {
3610 [key: string]: any;
3611 };
3612 protected renderProperties(props: {
3613 [key: string]: any;
3614 }): {
3615 [key: string]: any;
3616 };
3617}
3618export declare namespace CfnStreamingDistribution {
3619 /**
3620 * A complex type that controls whether access logs are written for the streaming distribution.
3621 *
3622 * @struct
3623 * @stability external
3624 *
3625 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html
3626 */
3627 interface LoggingProperty {
3628 /**
3629 * The Amazon S3 bucket to store the access logs in, for example, `myawslogbucket.s3.amazonaws.com` .
3630 *
3631 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-bucket
3632 */
3633 readonly bucket: string;
3634 /**
3635 * Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify `false` for `Enabled` , and specify `empty Bucket` and `Prefix` elements. If you specify `false` for `Enabled` but you specify values for `Bucket` and `Prefix` , the values are automatically deleted.
3636 *
3637 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-enabled
3638 */
3639 readonly enabled: boolean | cdk.IResolvable;
3640 /**
3641 * An optional string that you want CloudFront to prefix to the access log filenames for this streaming 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.
3642 *
3643 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-prefix
3644 */
3645 readonly prefix: string;
3646 }
3647}
3648export declare namespace CfnStreamingDistribution {
3649 /**
3650 * A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
3651 *
3652 * @struct
3653 * @stability external
3654 *
3655 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html
3656 */
3657 interface S3OriginProperty {
3658 /**
3659 * The DNS name of the Amazon S3 origin.
3660 *
3661 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html#cfn-cloudfront-streamingdistribution-s3origin-domainname
3662 */
3663 readonly domainName: string;
3664 /**
3665 * The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.
3666 *
3667 * If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty `OriginAccessIdentity` element.
3668 *
3669 * To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty `OriginAccessIdentity` element.
3670 *
3671 * To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
3672 *
3673 * For more information, see [Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) in the *Amazon CloudFront Developer Guide* .
3674 *
3675 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html#cfn-cloudfront-streamingdistribution-s3origin-originaccessidentity
3676 */
3677 readonly originAccessIdentity: string;
3678 }
3679}
3680export declare namespace CfnStreamingDistribution {
3681 /**
3682 * The RTMP distribution's configuration information.
3683 *
3684 * @struct
3685 * @stability external
3686 *
3687 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html
3688 */
3689 interface StreamingDistributionConfigProperty {
3690 /**
3691 * A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
3692 *
3693 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-aliases
3694 */
3695 readonly aliases?: string[];
3696 /**
3697 * Any comments you want to include about the streaming distribution.
3698 *
3699 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-comment
3700 */
3701 readonly comment: string;
3702 /**
3703 * Whether the streaming distribution is enabled to accept user requests for content.
3704 *
3705 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-enabled
3706 */
3707 readonly enabled: boolean | cdk.IResolvable;
3708 /**
3709 * A complex type that controls whether access logs are written for the streaming distribution.
3710 *
3711 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-logging
3712 */
3713 readonly logging?: CfnStreamingDistribution.LoggingProperty | cdk.IResolvable;
3714 /**
3715 * A complex type that contains information about price class for this streaming distribution.
3716 *
3717 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-priceclass
3718 */
3719 readonly priceClass?: string;
3720 /**
3721 * A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
3722 *
3723 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-s3origin
3724 */
3725 readonly s3Origin: CfnStreamingDistribution.S3OriginProperty | cdk.IResolvable;
3726 /**
3727 * A complex type that specifies any AWS accounts that you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use public URLs, remove this element. For more information, see [Serving Private Content through CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide* .
3728 *
3729 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-trustedsigners
3730 */
3731 readonly trustedSigners: CfnStreamingDistribution.TrustedSignersProperty | cdk.IResolvable;
3732 }
3733}
3734export declare namespace CfnStreamingDistribution {
3735 /**
3736 * A list of AWS accounts whose public keys CloudFront can use to verify the signatures of signed URLs and signed cookies.
3737 *
3738 * @struct
3739 * @stability external
3740 *
3741 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html
3742 */
3743 interface TrustedSignersProperty {
3744 /**
3745 * An AWS account number that contains active CloudFront key pairs that CloudFront can use to verify the signatures of signed URLs and signed cookies. If the AWS account that owns the key pairs is the same account that owns the CloudFront distribution, the value of this field is `self` .
3746 *
3747 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html#cfn-cloudfront-streamingdistribution-trustedsigners-awsaccountnumbers
3748 */
3749 readonly awsAccountNumbers?: string[];
3750 /**
3751 * This field is `true` if any of the AWS accounts have public keys that CloudFront can use to verify the signatures of signed URLs and signed cookies. If not, this field is `false` .
3752 *
3753 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html#cfn-cloudfront-streamingdistribution-trustedsigners-enabled
3754 */
3755 readonly enabled: boolean | cdk.IResolvable;
3756 }
3757}