UNPKG

271 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 also 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 also 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 also 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 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 in requests that CloudFront sends to the origin. Valid values are:
160 *
161 * - `none` – No cookies in viewer requests are included in the cache key or 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` – Only the cookies in viewer requests that are listed in the `CookieNames` type are included in the cache key and in requests that CloudFront sends to the origin.
163 * - `allExcept` – All cookies in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, **except** for those that are listed in the `CookieNames` type, which are not included.
164 * - `all` – All cookies in viewer requests are included in the cache key and 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 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 in requests that CloudFront sends to the origin. Valid values are:
189 *
190 * - `none` – No HTTP headers are included in the cache key or 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` – Only the HTTP headers that are listed in the `Headers` type are included in the cache key and 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 also 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 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 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 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 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 in requests that CloudFront sends to the origin. Valid values are:
284 *
285 * - `none` – No query strings in viewer requests are included in the cache key or 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` – Only the query strings in viewer requests that are listed in the `QueryStringNames` type are included in the cache key and in requests that CloudFront sends to the origin.
287 * - `allExcept` – All query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, **except** those that are listed in the `QueryStringNames` type, which are not included.
288 * - `all` – All query strings in viewer requests are included in the cache key and 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 * The ID for the origin access identity, for example, `E74FTE3AJFJ256A` .
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 `CfnContinuousDeploymentPolicy`
400 *
401 * @struct
402 * @stability external
403 *
404 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-continuousdeploymentpolicy.html
405 */
406export interface CfnContinuousDeploymentPolicyProps {
407 /**
408 * Contains the configuration for a continuous deployment policy.
409 *
410 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-continuousdeploymentpolicy.html#cfn-cloudfront-continuousdeploymentpolicy-continuousdeploymentpolicyconfig
411 */
412 readonly continuousDeploymentPolicyConfig: CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty | cdk.IResolvable;
413}
414/**
415 * A CloudFormation `AWS::CloudFront::ContinuousDeploymentPolicy`
416 *
417 * Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.
418 *
419 * After you create and update a staging distribution, you can use a continuous deployment policy to incrementally move traffic to the staging distribution. This enables you to test changes to a distribution's configuration before moving all of your production traffic to the new configuration.
420 *
421 * For more information, see [Using CloudFront continuous deployment to safely test CDN configuration changes](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/continuous-deployment.html) in the *Amazon CloudFront Developer Guide* .
422 *
423 * @cloudformationResource AWS::CloudFront::ContinuousDeploymentPolicy
424 * @stability external
425 *
426 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-continuousdeploymentpolicy.html
427 */
428export declare class CfnContinuousDeploymentPolicy extends cdk.CfnResource implements cdk.IInspectable {
429 /**
430 * The CloudFormation resource type name for this resource class.
431 */
432 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::ContinuousDeploymentPolicy";
433 /**
434 * A factory method that creates a new instance of this class from an object
435 * containing the CloudFormation properties of this resource.
436 * Used in the @aws-cdk/cloudformation-include module.
437 *
438 * @internal
439 */
440 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnContinuousDeploymentPolicy;
441 /**
442 * The identifier of the cotinuous deployment policy.
443 * @cloudformationAttribute Id
444 */
445 readonly attrId: string;
446 /**
447 * The date and time when the continuous deployment policy was last modified.
448 * @cloudformationAttribute LastModifiedTime
449 */
450 readonly attrLastModifiedTime: string;
451 /**
452 * Contains the configuration for a continuous deployment policy.
453 *
454 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-continuousdeploymentpolicy.html#cfn-cloudfront-continuousdeploymentpolicy-continuousdeploymentpolicyconfig
455 */
456 continuousDeploymentPolicyConfig: CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty | cdk.IResolvable;
457 /**
458 * Create a new `AWS::CloudFront::ContinuousDeploymentPolicy`.
459 *
460 * @param scope - scope in which this resource is defined
461 * @param id - scoped id of the resource
462 * @param props - resource properties
463 */
464 constructor(scope: cdk.Construct, id: string, props: CfnContinuousDeploymentPolicyProps);
465 /**
466 * Examines the CloudFormation resource and discloses attributes.
467 *
468 * @param inspector - tree inspector to collect and process attributes
469 *
470 */
471 inspect(inspector: cdk.TreeInspector): void;
472 protected get cfnProperties(): {
473 [key: string]: any;
474 };
475 protected renderProperties(props: {
476 [key: string]: any;
477 }): {
478 [key: string]: any;
479 };
480}
481export declare namespace CfnContinuousDeploymentPolicy {
482 /**
483 * Contains the configuration for a continuous deployment policy.
484 *
485 * @struct
486 * @stability external
487 *
488 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-continuousdeploymentpolicyconfig.html
489 */
490 interface ContinuousDeploymentPolicyConfigProperty {
491 /**
492 * A Boolean that indicates whether this continuous deployment policy is enabled (in effect). When this value is `true` , this policy is enabled and in effect. When this value is `false` , this policy is not enabled and has no effect.
493 *
494 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-continuousdeploymentpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-continuousdeploymentpolicyconfig-enabled
495 */
496 readonly enabled: boolean | cdk.IResolvable;
497 /**
498 * The CloudFront domain name of the staging distribution. For example: `d111111abcdef8.cloudfront.net` .
499 *
500 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-continuousdeploymentpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-continuousdeploymentpolicyconfig-stagingdistributiondnsnames
501 */
502 readonly stagingDistributionDnsNames: string[];
503 /**
504 * Contains the parameters for routing production traffic from your primary to staging distributions.
505 *
506 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-continuousdeploymentpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-continuousdeploymentpolicyconfig-trafficconfig
507 */
508 readonly trafficConfig?: CfnContinuousDeploymentPolicy.TrafficConfigProperty | cdk.IResolvable;
509 }
510}
511export declare namespace CfnContinuousDeploymentPolicy {
512 /**
513 * Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
514 *
515 * @struct
516 * @stability external
517 *
518 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-sessionstickinessconfig.html
519 */
520 interface SessionStickinessConfigProperty {
521 /**
522 * The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
523 *
524 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-sessionstickinessconfig.html#cfn-cloudfront-continuousdeploymentpolicy-sessionstickinessconfig-idlettl
525 */
526 readonly idleTtl: number;
527 /**
528 * The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
529 *
530 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-sessionstickinessconfig.html#cfn-cloudfront-continuousdeploymentpolicy-sessionstickinessconfig-maximumttl
531 */
532 readonly maximumTtl: number;
533 }
534}
535export declare namespace CfnContinuousDeploymentPolicy {
536 /**
537 * Determines which HTTP requests are sent to the staging distribution.
538 *
539 * @struct
540 * @stability external
541 *
542 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleheaderconfig.html
543 */
544 interface SingleHeaderConfigProperty {
545 /**
546 * The request header name that you want CloudFront to send to your staging distribution. The header must contain the prefix `aws-cf-cd-` .
547 *
548 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleheaderconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleheaderconfig-header
549 */
550 readonly header: string;
551 /**
552 * The request header value.
553 *
554 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleheaderconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleheaderconfig-value
555 */
556 readonly value: string;
557 }
558}
559export declare namespace CfnContinuousDeploymentPolicy {
560 /**
561 * This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
562 *
563 * @struct
564 * @stability external
565 *
566 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightconfig.html
567 */
568 interface SingleWeightConfigProperty {
569 /**
570 * Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
571 *
572 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleweightconfig-sessionstickinessconfig
573 */
574 readonly sessionStickinessConfig?: CfnContinuousDeploymentPolicy.SessionStickinessConfigProperty | cdk.IResolvable;
575 /**
576 * The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and .15.
577 *
578 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleweightconfig-weight
579 */
580 readonly weight: number;
581 }
582}
583export declare namespace CfnContinuousDeploymentPolicy {
584 /**
585 * The traffic configuration of your continuous deployment.
586 *
587 * @struct
588 * @stability external
589 *
590 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html
591 */
592 interface TrafficConfigProperty {
593 /**
594 * Determines which HTTP requests are sent to the staging distribution.
595 *
596 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html#cfn-cloudfront-continuousdeploymentpolicy-trafficconfig-singleheaderconfig
597 */
598 readonly singleHeaderConfig?: CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty | cdk.IResolvable;
599 /**
600 * Contains the percentage of traffic to send to the staging distribution.
601 *
602 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html#cfn-cloudfront-continuousdeploymentpolicy-trafficconfig-singleweightconfig
603 */
604 readonly singleWeightConfig?: CfnContinuousDeploymentPolicy.SingleWeightConfigProperty | cdk.IResolvable;
605 /**
606 * The type of traffic configuration.
607 *
608 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html#cfn-cloudfront-continuousdeploymentpolicy-trafficconfig-type
609 */
610 readonly type: string;
611 }
612}
613/**
614 * Properties for defining a `CfnDistribution`
615 *
616 * @struct
617 * @stability external
618 *
619 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html
620 */
621export interface CfnDistributionProps {
622 /**
623 * The distribution's configuration.
624 *
625 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-distributionconfig
626 */
627 readonly distributionConfig: CfnDistribution.DistributionConfigProperty | cdk.IResolvable;
628 /**
629 * A complex type that contains zero or more `Tag` elements.
630 *
631 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-tags
632 */
633 readonly tags?: cdk.CfnTag[];
634}
635/**
636 * A CloudFormation `AWS::CloudFront::Distribution`
637 *
638 * A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
639 *
640 * @cloudformationResource AWS::CloudFront::Distribution
641 * @stability external
642 *
643 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html
644 */
645export declare class CfnDistribution extends cdk.CfnResource implements cdk.IInspectable {
646 /**
647 * The CloudFormation resource type name for this resource class.
648 */
649 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::Distribution";
650 /**
651 * A factory method that creates a new instance of this class from an object
652 * containing the CloudFormation properties of this resource.
653 * Used in the @aws-cdk/cloudformation-include module.
654 *
655 * @internal
656 */
657 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnDistribution;
658 /**
659 * The domain name of the resource, such as `d111111abcdef8.cloudfront.net` .
660 * @cloudformationAttribute DomainName
661 */
662 readonly attrDomainName: string;
663 /**
664 * The identifier for the distribution, for example `EDFDVBD632BHDS5` .
665 * @cloudformationAttribute Id
666 */
667 readonly attrId: string;
668 /**
669 * The distribution's configuration.
670 *
671 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-distributionconfig
672 */
673 distributionConfig: CfnDistribution.DistributionConfigProperty | cdk.IResolvable;
674 /**
675 * A complex type that contains zero or more `Tag` elements.
676 *
677 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-tags
678 */
679 readonly tags: cdk.TagManager;
680 /**
681 * Create a new `AWS::CloudFront::Distribution`.
682 *
683 * @param scope - scope in which this resource is defined
684 * @param id - scoped id of the resource
685 * @param props - resource properties
686 */
687 constructor(scope: cdk.Construct, id: string, props: CfnDistributionProps);
688 /**
689 * Examines the CloudFormation resource and discloses attributes.
690 *
691 * @param inspector - tree inspector to collect and process attributes
692 *
693 */
694 inspect(inspector: cdk.TreeInspector): void;
695 protected get cfnProperties(): {
696 [key: string]: any;
697 };
698 protected renderProperties(props: {
699 [key: string]: any;
700 }): {
701 [key: string]: any;
702 };
703}
704export declare namespace CfnDistribution {
705 /**
706 * A complex type that describes how CloudFront processes requests.
707 *
708 * 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.
709 *
710 * 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* .
711 *
712 * 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.
713 *
714 * To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty `CacheBehaviors` element.
715 *
716 * 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.
717 *
718 * 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* .
719 *
720 * @struct
721 * @stability external
722 *
723 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html
724 */
725 interface CacheBehaviorProperty {
726 /**
727 * 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:
728 *
729 * - CloudFront forwards only `GET` and `HEAD` requests.
730 * - CloudFront forwards only `GET` , `HEAD` , and `OPTIONS` requests.
731 * - CloudFront forwards `GET, HEAD, OPTIONS, PUT, PATCH, POST` , and `DELETE` requests.
732 *
733 * 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.
734 *
735 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-allowedmethods
736 */
737 readonly allowedMethods?: string[];
738 /**
739 * 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* .
740 *
741 * A `CacheBehavior` must include either a `CachePolicyId` or `ForwardedValues` . We recommend that you use a `CachePolicyId` .
742 *
743 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachepolicyid
744 */
745 readonly cachePolicyId?: string;
746 /**
747 * A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:
748 *
749 * - CloudFront caches responses to `GET` and `HEAD` requests.
750 * - CloudFront caches responses to `GET` , `HEAD` , and `OPTIONS` requests.
751 *
752 * 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.
753 *
754 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachedmethods
755 */
756 readonly cachedMethods?: string[];
757 /**
758 * 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* .
759 *
760 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-compress
761 */
762 readonly compress?: boolean | cdk.IResolvable;
763 /**
764 * 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* .
765 *
766 * 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* .
767 *
768 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-defaultttl
769 */
770 readonly defaultTtl?: number;
771 /**
772 * 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.
773 *
774 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-fieldlevelencryptionid
775 */
776 readonly fieldLevelEncryptionId?: string;
777 /**
778 * 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* .
779 *
780 * 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* .
781 *
782 * 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* .
783 *
784 * A `CacheBehavior` must include either a `CachePolicyId` or `ForwardedValues` . We recommend that you use a `CachePolicyId` .
785 *
786 * A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.
787 *
788 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-forwardedvalues
789 */
790 readonly forwardedValues?: CfnDistribution.ForwardedValuesProperty | cdk.IResolvable;
791 /**
792 * 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.
793 *
794 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-functionassociations
795 */
796 readonly functionAssociations?: Array<CfnDistribution.FunctionAssociationProperty | cdk.IResolvable> | cdk.IResolvable;
797 /**
798 * A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.
799 *
800 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-lambdafunctionassociations
801 */
802 readonly lambdaFunctionAssociations?: Array<CfnDistribution.LambdaFunctionAssociationProperty | cdk.IResolvable> | cdk.IResolvable;
803 /**
804 * 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* .
805 *
806 * 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* .
807 *
808 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-maxttl
809 */
810 readonly maxTtl?: number;
811 /**
812 * 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* .
813 *
814 * 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* .
815 *
816 * 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` ).
817 *
818 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-minttl
819 */
820 readonly minTtl?: number;
821 /**
822 * 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* .
823 *
824 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-originrequestpolicyid
825 */
826 readonly originRequestPolicyId?: string;
827 /**
828 * 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.
829 *
830 * > 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 `/` .
831 *
832 * 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.
833 *
834 * 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* .
835 *
836 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-pathpattern
837 */
838 readonly pathPattern: string;
839 /**
840 * 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* .
841 *
842 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-realtimelogconfigarn
843 */
844 readonly realtimeLogConfigArn?: string;
845 /**
846 * The identifier for a response headers policy.
847 *
848 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-responseheaderspolicyid
849 */
850 readonly responseHeadersPolicyId?: string;
851 /**
852 * 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` .
853 *
854 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-smoothstreaming
855 */
856 readonly smoothStreaming?: boolean | cdk.IResolvable;
857 /**
858 * The value of `ID` for the origin that you want CloudFront to route requests to when they match this cache behavior.
859 *
860 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-targetoriginid
861 */
862 readonly targetOriginId: string;
863 /**
864 * A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
865 *
866 * 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* .
867 *
868 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedkeygroups
869 */
870 readonly trustedKeyGroups?: string[];
871 /**
872 * > We recommend using `TrustedKeyGroups` instead of `TrustedSigners` .
873 *
874 * A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
875 *
876 * 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* .
877 *
878 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedsigners
879 */
880 readonly trustedSigners?: string[];
881 /**
882 * 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:
883 *
884 * - `allow-all` : Viewers can use HTTP or HTTPS.
885 * - `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.
886 * - `https-only` : If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
887 *
888 * 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* .
889 *
890 * > 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* .
891 *
892 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-viewerprotocolpolicy
893 */
894 readonly viewerProtocolPolicy: string;
895 }
896}
897export declare namespace CfnDistribution {
898 /**
899 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
900 *
901 * 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* .
902 *
903 * 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* .
904 *
905 * 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* .
906 *
907 * @struct
908 * @stability external
909 *
910 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html
911 */
912 interface CookiesProperty {
913 /**
914 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
915 *
916 * 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* .
917 *
918 * 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* .
919 *
920 * 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.
921 *
922 * Amazon S3 doesn't process cookies. When the cache behavior is forwarding requests to an Amazon S3 origin, specify none for the `Forward` element.
923 *
924 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-forward
925 */
926 readonly forward: string;
927 /**
928 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
929 *
930 * 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* .
931 *
932 * 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* .
933 *
934 * 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.
935 *
936 * 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.
937 *
938 * 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* .
939 *
940 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-whitelistednames
941 */
942 readonly whitelistedNames?: string[];
943 }
944}
945export declare namespace CfnDistribution {
946 /**
947 * A complex type that controls:
948 *
949 * - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
950 * - How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
951 *
952 * 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* .
953 *
954 * @struct
955 * @stability external
956 *
957 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html
958 */
959 interface CustomErrorResponseProperty {
960 /**
961 * 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.
962 *
963 * 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* .
964 *
965 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-errorcachingminttl
966 */
967 readonly errorCachingMinTtl?: number;
968 /**
969 * The HTTP status code for which you want to specify a custom error page and/or a caching duration.
970 *
971 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-errorcode
972 */
973 readonly errorCode: number;
974 /**
975 * 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:
976 *
977 * - 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.
978 * - 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.
979 * - You might want to return a `200` status code (OK) and static website so your customers don't know that your website is down.
980 *
981 * If you specify a value for `ResponseCode` , you must also specify a value for `ResponsePagePath` .
982 *
983 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-responsecode
984 */
985 readonly responseCode?: number;
986 /**
987 * 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:
988 *
989 * - 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/*` .
990 * - The value of `TargetOriginId` specifies the value of the `ID` element for the origin that contains your custom error pages.
991 *
992 * If you specify a value for `ResponsePagePath` , you must also specify a value for `ResponseCode` .
993 *
994 * 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.
995 *
996 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-responsepagepath
997 */
998 readonly responsePagePath?: string;
999 }
1000}
1001export declare namespace CfnDistribution {
1002 /**
1003 * 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.
1004 *
1005 * @struct
1006 * @stability external
1007 *
1008 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html
1009 */
1010 interface CustomOriginConfigProperty {
1011 /**
1012 * The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.
1013 *
1014 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-httpport
1015 */
1016 readonly httpPort?: number;
1017 /**
1018 * The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.
1019 *
1020 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-httpsport
1021 */
1022 readonly httpsPort?: number;
1023 /**
1024 * 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.
1025 *
1026 * 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* .
1027 *
1028 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originkeepalivetimeout
1029 */
1030 readonly originKeepaliveTimeout?: number;
1031 /**
1032 * Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:
1033 *
1034 * - `http-only` – CloudFront always uses HTTP to connect to the origin.
1035 * - `match-viewer` – CloudFront connects to the origin using the same protocol that the viewer used to connect to CloudFront.
1036 * - `https-only` – CloudFront always uses HTTPS to connect to the origin.
1037 *
1038 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originprotocolpolicy
1039 */
1040 readonly originProtocolPolicy: string;
1041 /**
1042 * 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.
1043 *
1044 * 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* .
1045 *
1046 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originreadtimeout
1047 */
1048 readonly originReadTimeout?: number;
1049 /**
1050 * 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` .
1051 *
1052 * 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* .
1053 *
1054 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originsslprotocols
1055 */
1056 readonly originSslProtocols?: string[];
1057 }
1058}
1059export declare namespace CfnDistribution {
1060 /**
1061 * 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.
1062 *
1063 * @struct
1064 * @stability external
1065 *
1066 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html
1067 */
1068 interface DefaultCacheBehaviorProperty {
1069 /**
1070 * 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:
1071 *
1072 * - CloudFront forwards only `GET` and `HEAD` requests.
1073 * - CloudFront forwards only `GET` , `HEAD` , and `OPTIONS` requests.
1074 * - CloudFront forwards `GET, HEAD, OPTIONS, PUT, PATCH, POST` , and `DELETE` requests.
1075 *
1076 * 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.
1077 *
1078 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-allowedmethods
1079 */
1080 readonly allowedMethods?: string[];
1081 /**
1082 * 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* .
1083 *
1084 * A `DefaultCacheBehavior` must include either a `CachePolicyId` or `ForwardedValues` . We recommend that you use a `CachePolicyId` .
1085 *
1086 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-cachepolicyid
1087 */
1088 readonly cachePolicyId?: string;
1089 /**
1090 * A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:
1091 *
1092 * - CloudFront caches responses to `GET` and `HEAD` requests.
1093 * - CloudFront caches responses to `GET` , `HEAD` , and `OPTIONS` requests.
1094 *
1095 * 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.
1096 *
1097 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-cachedmethods
1098 */
1099 readonly cachedMethods?: string[];
1100 /**
1101 * 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* .
1102 *
1103 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-compress
1104 */
1105 readonly compress?: boolean | cdk.IResolvable;
1106 /**
1107 * 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* .
1108 *
1109 * 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* .
1110 *
1111 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-defaultttl
1112 */
1113 readonly defaultTtl?: number;
1114 /**
1115 * 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.
1116 *
1117 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-fieldlevelencryptionid
1118 */
1119 readonly fieldLevelEncryptionId?: string;
1120 /**
1121 * 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* .
1122 *
1123 * 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* .
1124 *
1125 * 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* .
1126 *
1127 * A `DefaultCacheBehavior` must include either a `CachePolicyId` or `ForwardedValues` . We recommend that you use a `CachePolicyId` .
1128 *
1129 * A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.
1130 *
1131 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-forwardedvalues
1132 */
1133 readonly forwardedValues?: CfnDistribution.ForwardedValuesProperty | cdk.IResolvable;
1134 /**
1135 * 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.
1136 *
1137 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-functionassociations
1138 */
1139 readonly functionAssociations?: Array<CfnDistribution.FunctionAssociationProperty | cdk.IResolvable> | cdk.IResolvable;
1140 /**
1141 * A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.
1142 *
1143 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-lambdafunctionassociations
1144 */
1145 readonly lambdaFunctionAssociations?: Array<CfnDistribution.LambdaFunctionAssociationProperty | cdk.IResolvable> | cdk.IResolvable;
1146 /**
1147 * 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* .
1148 *
1149 * 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* .
1150 *
1151 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-maxttl
1152 */
1153 readonly maxTtl?: number;
1154 /**
1155 * 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* .
1156 *
1157 * 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* .
1158 *
1159 * 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` ).
1160 *
1161 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-minttl
1162 */
1163 readonly minTtl?: number;
1164 /**
1165 * 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* .
1166 *
1167 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-originrequestpolicyid
1168 */
1169 readonly originRequestPolicyId?: string;
1170 /**
1171 * 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* .
1172 *
1173 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-realtimelogconfigarn
1174 */
1175 readonly realtimeLogConfigArn?: string;
1176 /**
1177 * The identifier for a response headers policy.
1178 *
1179 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-responseheaderspolicyid
1180 */
1181 readonly responseHeadersPolicyId?: string;
1182 /**
1183 * 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` .
1184 *
1185 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-smoothstreaming
1186 */
1187 readonly smoothStreaming?: boolean | cdk.IResolvable;
1188 /**
1189 * The value of `ID` for the origin that you want CloudFront to route requests to when they use the default cache behavior.
1190 *
1191 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-targetoriginid
1192 */
1193 readonly targetOriginId: string;
1194 /**
1195 * A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
1196 *
1197 * 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* .
1198 *
1199 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-trustedkeygroups
1200 */
1201 readonly trustedKeyGroups?: string[];
1202 /**
1203 * > We recommend using `TrustedKeyGroups` instead of `TrustedSigners` .
1204 *
1205 * A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
1206 *
1207 * 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* .
1208 *
1209 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-trustedsigners
1210 */
1211 readonly trustedSigners?: string[];
1212 /**
1213 * 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:
1214 *
1215 * - `allow-all` : Viewers can use HTTP or HTTPS.
1216 * - `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.
1217 * - `https-only` : If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
1218 *
1219 * 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* .
1220 *
1221 * > 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* .
1222 *
1223 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-viewerprotocolpolicy
1224 */
1225 readonly viewerProtocolPolicy: string;
1226 }
1227}
1228export declare namespace CfnDistribution {
1229 /**
1230 * A distribution configuration.
1231 *
1232 * @struct
1233 * @stability external
1234 *
1235 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html
1236 */
1237 interface DistributionConfigProperty {
1238 /**
1239 * A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
1240 *
1241 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases
1242 */
1243 readonly aliases?: string[];
1244 /**
1245 * `CfnDistribution.DistributionConfigProperty.CNAMEs`
1246 *
1247 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cnames
1248 */
1249 readonly cnamEs?: string[];
1250 /**
1251 * A complex type that contains zero or more `CacheBehavior` elements.
1252 *
1253 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cachebehaviors
1254 */
1255 readonly cacheBehaviors?: Array<CfnDistribution.CacheBehaviorProperty | cdk.IResolvable> | cdk.IResolvable;
1256 /**
1257 * A comment to describe the distribution. The comment cannot be longer than 128 characters.
1258 *
1259 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-comment
1260 */
1261 readonly comment?: string;
1262 /**
1263 * The identifier of a continuous deployment policy. For more information, see `CreateContinuousDeploymentPolicy` .
1264 *
1265 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-continuousdeploymentpolicyid
1266 */
1267 readonly continuousDeploymentPolicyId?: string;
1268 /**
1269 * A complex type that controls the following:
1270 *
1271 * - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
1272 * - How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
1273 *
1274 * 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* .
1275 *
1276 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customerrorresponses
1277 */
1278 readonly customErrorResponses?: Array<CfnDistribution.CustomErrorResponseProperty | cdk.IResolvable> | cdk.IResolvable;
1279 /**
1280 * `CfnDistribution.DistributionConfigProperty.CustomOrigin`
1281 *
1282 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customorigin
1283 */
1284 readonly customOrigin?: CfnDistribution.LegacyCustomOriginProperty | cdk.IResolvable;
1285 /**
1286 * 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.
1287 *
1288 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultcachebehavior
1289 */
1290 readonly defaultCacheBehavior: CfnDistribution.DefaultCacheBehaviorProperty | cdk.IResolvable;
1291 /**
1292 * 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 ( `https://www.example.com` ) instead of an object in your distribution ( `https://www.example.com/product-description.html` ). Specifying a default root object avoids exposing the contents of your distribution.
1293 *
1294 * Specify only the object name, for example, `index.html` . Don't add a `/` before the object name.
1295 *
1296 * If you don't want to specify a default root object when you create a distribution, include an empty `DefaultRootObject` element.
1297 *
1298 * To delete the default root object from an existing distribution, update the distribution configuration and include an empty `DefaultRootObject` element.
1299 *
1300 * To replace the default root object, update the distribution configuration and specify the new object.
1301 *
1302 * 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* .
1303 *
1304 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultrootobject
1305 */
1306 readonly defaultRootObject?: string;
1307 /**
1308 * From this field, you can enable or disable the selected distribution.
1309 *
1310 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-enabled
1311 */
1312 readonly enabled: boolean | cdk.IResolvable;
1313 /**
1314 * (Optional) Specify the maximum HTTP version(s) that you want viewers to use to communicate with CloudFront . The default value for new distributions is `http1.1` .
1315 *
1316 * For viewers and CloudFront to use HTTP/2, viewers must support TLSv1.2 or later, and must support Server Name Indication (SNI).
1317 *
1318 * For viewers and CloudFront to use HTTP/3, viewers must support TLSv1.3 and Server Name Indication (SNI). CloudFront supports HTTP/3 connection migration to allow the viewer to switch networks without losing connection. For more information about connection migration, see [Connection Migration](https://docs.aws.amazon.com/https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration) at RFC 9000. For more information about supported TLSv1.3 ciphers, see [Supported protocols and ciphers between viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html) .
1319 *
1320 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-httpversion
1321 */
1322 readonly httpVersion?: string;
1323 /**
1324 * 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.
1325 *
1326 * 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* .
1327 *
1328 * 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:
1329 *
1330 * - You enable IPv6 for the distribution
1331 * - You're using alternate domain names in the URLs for your objects
1332 *
1333 * 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* .
1334 *
1335 * 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.
1336 *
1337 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-ipv6enabled
1338 */
1339 readonly ipv6Enabled?: boolean | cdk.IResolvable;
1340 /**
1341 * A complex type that controls whether access logs are written for the distribution.
1342 *
1343 * For more information about logging, see [Access Logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html) in the *Amazon CloudFront Developer Guide* .
1344 *
1345 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-logging
1346 */
1347 readonly logging?: CfnDistribution.LoggingProperty | cdk.IResolvable;
1348 /**
1349 * A complex type that contains information about origin groups for this distribution.
1350 *
1351 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origingroups
1352 */
1353 readonly originGroups?: CfnDistribution.OriginGroupsProperty | cdk.IResolvable;
1354 /**
1355 * A complex type that contains information about origins for this distribution.
1356 *
1357 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origins
1358 */
1359 readonly origins?: Array<CfnDistribution.OriginProperty | cdk.IResolvable> | cdk.IResolvable;
1360 /**
1361 * 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.
1362 *
1363 * 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.
1364 *
1365 * 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/) .
1366 *
1367 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-priceclass
1368 */
1369 readonly priceClass?: string;
1370 /**
1371 * A complex type that identifies ways in which you want to restrict distribution of your content.
1372 *
1373 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions
1374 */
1375 readonly restrictions?: CfnDistribution.RestrictionsProperty | cdk.IResolvable;
1376 /**
1377 * `CfnDistribution.DistributionConfigProperty.S3Origin`
1378 *
1379 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-s3origin
1380 */
1381 readonly s3Origin?: CfnDistribution.LegacyS3OriginProperty | cdk.IResolvable;
1382 /**
1383 * A Boolean that indicates whether this is a staging distribution. When this value is `true` , this is a staging distribution. When this value is `false` , this is not a staging distribution.
1384 *
1385 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-staging
1386 */
1387 readonly staging?: boolean | cdk.IResolvable;
1388 /**
1389 * A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.
1390 *
1391 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-viewercertificate
1392 */
1393 readonly viewerCertificate?: CfnDistribution.ViewerCertificateProperty | cdk.IResolvable;
1394 /**
1395 * 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` .
1396 *
1397 * 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) .
1398 *
1399 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-webaclid
1400 */
1401 readonly webAclId?: string;
1402 }
1403}
1404export declare namespace CfnDistribution {
1405 /**
1406 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
1407 *
1408 * 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* .
1409 *
1410 * 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* .
1411 *
1412 * A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.
1413 *
1414 * @struct
1415 * @stability external
1416 *
1417 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html
1418 */
1419 interface ForwardedValuesProperty {
1420 /**
1421 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
1422 *
1423 * 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* .
1424 *
1425 * 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* .
1426 *
1427 * 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* .
1428 *
1429 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-cookies
1430 */
1431 readonly cookies?: CfnDistribution.CookiesProperty | cdk.IResolvable;
1432 /**
1433 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
1434 *
1435 * 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* .
1436 *
1437 * 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* .
1438 *
1439 * 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.
1440 *
1441 * 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* .
1442 *
1443 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-headers
1444 */
1445 readonly headers?: string[];
1446 /**
1447 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
1448 *
1449 * 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* .
1450 *
1451 * 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* .
1452 *
1453 * 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:
1454 *
1455 * 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.
1456 *
1457 * 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.
1458 *
1459 * 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.
1460 *
1461 * 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* .
1462 *
1463 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-querystring
1464 */
1465 readonly queryString: boolean | cdk.IResolvable;
1466 /**
1467 * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
1468 *
1469 * 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* .
1470 *
1471 * 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* .
1472 *
1473 * A complex type that contains information about the query string parameters that you want CloudFront to use for caching for this cache behavior.
1474 *
1475 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-querystringcachekeys
1476 */
1477 readonly queryStringCacheKeys?: string[];
1478 }
1479}
1480export declare namespace CfnDistribution {
1481 /**
1482 * A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
1483 *
1484 * @struct
1485 * @stability external
1486 *
1487 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html
1488 */
1489 interface FunctionAssociationProperty {
1490 /**
1491 * 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.
1492 *
1493 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html#cfn-cloudfront-distribution-functionassociation-eventtype
1494 */
1495 readonly eventType?: string;
1496 /**
1497 * The Amazon Resource Name (ARN) of the function.
1498 *
1499 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html#cfn-cloudfront-distribution-functionassociation-functionarn
1500 */
1501 readonly functionArn?: string;
1502 }
1503}
1504export declare namespace CfnDistribution {
1505 /**
1506 * 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.
1507 *
1508 * @struct
1509 * @stability external
1510 *
1511 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html
1512 */
1513 interface GeoRestrictionProperty {
1514 /**
1515 * 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` ).
1516 *
1517 * 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.
1518 *
1519 * 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.
1520 *
1521 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html#cfn-cloudfront-distribution-georestriction-locations
1522 */
1523 readonly locations?: string[];
1524 /**
1525 * The method that you want to use to restrict distribution of your content by country:
1526 *
1527 * - `none` : No geo restriction is enabled, meaning access to content is not restricted by client geo location.
1528 * - `blacklist` : The `Location` elements specify the countries in which you don't want CloudFront to distribute your content.
1529 * - `whitelist` : The `Location` elements specify the countries in which you want CloudFront to distribute your content.
1530 *
1531 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html#cfn-cloudfront-distribution-georestriction-restrictiontype
1532 */
1533 readonly restrictionType: string;
1534 }
1535}
1536export declare namespace CfnDistribution {
1537 /**
1538 * A complex type that contains a Lambda@Edge function association.
1539 *
1540 * @struct
1541 * @stability external
1542 *
1543 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html
1544 */
1545 interface LambdaFunctionAssociationProperty {
1546 /**
1547 * Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values:
1548 *
1549 * - `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.
1550 * - `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.
1551 * - `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.
1552 * - `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.
1553 *
1554 * If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.
1555 *
1556 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-eventtype
1557 */
1558 readonly eventType?: string;
1559 /**
1560 * 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.
1561 *
1562 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-includebody
1563 */
1564 readonly includeBody?: boolean | cdk.IResolvable;
1565 /**
1566 * The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an alias or $LATEST.
1567 *
1568 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-lambdafunctionarn
1569 */
1570 readonly lambdaFunctionArn?: string;
1571 }
1572}
1573export declare namespace CfnDistribution {
1574 /**
1575 *
1576 *
1577 * @struct
1578 * @stability external
1579 *
1580 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html
1581 */
1582 interface LegacyCustomOriginProperty {
1583 /**
1584 * `CfnDistribution.LegacyCustomOriginProperty.DNSName`
1585 *
1586 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-dnsname
1587 */
1588 readonly dnsName: string;
1589 /**
1590 * `CfnDistribution.LegacyCustomOriginProperty.HTTPPort`
1591 *
1592 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpport
1593 */
1594 readonly httpPort?: number;
1595 /**
1596 * `CfnDistribution.LegacyCustomOriginProperty.HTTPSPort`
1597 *
1598 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpsport
1599 */
1600 readonly httpsPort?: number;
1601 /**
1602 * `CfnDistribution.LegacyCustomOriginProperty.OriginProtocolPolicy`
1603 *
1604 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originprotocolpolicy
1605 */
1606 readonly originProtocolPolicy: string;
1607 /**
1608 * `CfnDistribution.LegacyCustomOriginProperty.OriginSSLProtocols`
1609 *
1610 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originsslprotocols
1611 */
1612 readonly originSslProtocols: string[];
1613 }
1614}
1615export declare namespace CfnDistribution {
1616 /**
1617 *
1618 *
1619 * @struct
1620 * @stability external
1621 *
1622 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html
1623 */
1624 interface LegacyS3OriginProperty {
1625 /**
1626 * `CfnDistribution.LegacyS3OriginProperty.DNSName`
1627 *
1628 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-dnsname
1629 */
1630 readonly dnsName: string;
1631 /**
1632 * `CfnDistribution.LegacyS3OriginProperty.OriginAccessIdentity`
1633 *
1634 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-originaccessidentity
1635 */
1636 readonly originAccessIdentity?: string;
1637 }
1638}
1639export declare namespace CfnDistribution {
1640 /**
1641 * A complex type that controls whether access logs are written for the distribution.
1642 *
1643 * @struct
1644 * @stability external
1645 *
1646 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html
1647 */
1648 interface LoggingProperty {
1649 /**
1650 * The Amazon S3 bucket to store the access logs in, for example, `myawslogbucket.s3.amazonaws.com` .
1651 *
1652 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-bucket
1653 */
1654 readonly bucket: string;
1655 /**
1656 * 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` .
1657 *
1658 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-includecookies
1659 */
1660 readonly includeCookies?: boolean | cdk.IResolvable;
1661 /**
1662 * 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.
1663 *
1664 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-prefix
1665 */
1666 readonly prefix?: string;
1667 }
1668}
1669export declare namespace CfnDistribution {
1670 /**
1671 * An origin.
1672 *
1673 * An origin is the location where content is stored, and from which CloudFront gets content to serve to viewers. To specify an origin:
1674 *
1675 * - Use `S3OriginConfig` to specify an Amazon S3 bucket that is not configured with static website hosting.
1676 * - Use `CustomOriginConfig` to specify all other kinds of origins, including:
1677 *
1678 * - An Amazon S3 bucket that is configured with static website hosting
1679 * - An Elastic Load Balancing load balancer
1680 * - An AWS Elemental MediaPackage endpoint
1681 * - An AWS Elemental MediaStore container
1682 * - Any other HTTP server, running on an Amazon EC2 instance or any other kind of host
1683 *
1684 * 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).
1685 *
1686 * @struct
1687 * @stability external
1688 *
1689 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html
1690 */
1691 interface OriginProperty {
1692 /**
1693 * 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.
1694 *
1695 * 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) .
1696 *
1697 * 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* .
1698 *
1699 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-connectionattempts
1700 */
1701 readonly connectionAttempts?: number;
1702 /**
1703 * 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.
1704 *
1705 * 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* .
1706 *
1707 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-connectiontimeout
1708 */
1709 readonly connectionTimeout?: number;
1710 /**
1711 * 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.
1712 *
1713 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-customoriginconfig
1714 */
1715 readonly customOriginConfig?: CfnDistribution.CustomOriginConfigProperty | cdk.IResolvable;
1716 /**
1717 * The domain name for the origin.
1718 *
1719 * 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* .
1720 *
1721 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-domainname
1722 */
1723 readonly domainName: string;
1724 /**
1725 * A unique identifier for the origin. This value must be unique within the distribution.
1726 *
1727 * Use this value to specify the `TargetOriginId` in a `CacheBehavior` or `DefaultCacheBehavior` .
1728 *
1729 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-id
1730 */
1731 readonly id: string;
1732 /**
1733 * The unique identifier of an origin access control for this origin.
1734 *
1735 * For more information, see [Restricting access to an Amazon S3 origin](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) in the *Amazon CloudFront Developer Guide* .
1736 *
1737 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originaccesscontrolid
1738 */
1739 readonly originAccessControlId?: string;
1740 /**
1741 * A list of HTTP header names and values that CloudFront adds to the requests that it sends to the origin.
1742 *
1743 * 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* .
1744 *
1745 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-origincustomheaders
1746 */
1747 readonly originCustomHeaders?: Array<CfnDistribution.OriginCustomHeaderProperty | cdk.IResolvable> | cdk.IResolvable;
1748 /**
1749 * An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
1750 *
1751 * 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* .
1752 *
1753 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originpath
1754 */
1755 readonly originPath?: string;
1756 /**
1757 * CloudFront Origin Shield. Using Origin Shield can help reduce the load on your origin.
1758 *
1759 * For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the *Amazon CloudFront Developer Guide* .
1760 *
1761 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originshield
1762 */
1763 readonly originShield?: CfnDistribution.OriginShieldProperty | cdk.IResolvable;
1764 /**
1765 * 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.
1766 *
1767 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-s3originconfig
1768 */
1769 readonly s3OriginConfig?: CfnDistribution.S3OriginConfigProperty | cdk.IResolvable;
1770 }
1771}
1772export declare namespace CfnDistribution {
1773 /**
1774 * A complex type that contains `HeaderName` and `HeaderValue` elements, if any, for this distribution.
1775 *
1776 * @struct
1777 * @stability external
1778 *
1779 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html
1780 */
1781 interface OriginCustomHeaderProperty {
1782 /**
1783 * 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* .
1784 *
1785 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headername
1786 */
1787 readonly headerName: string;
1788 /**
1789 * The value for the header that you specified in the `HeaderName` field.
1790 *
1791 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headervalue
1792 */
1793 readonly headerValue: string;
1794 }
1795}
1796export declare namespace CfnDistribution {
1797 /**
1798 * 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.
1799 *
1800 * @struct
1801 * @stability external
1802 *
1803 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html
1804 */
1805 interface OriginGroupProperty {
1806 /**
1807 * A complex type that contains information about the failover criteria for an origin group.
1808 *
1809 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-failovercriteria
1810 */
1811 readonly failoverCriteria: CfnDistribution.OriginGroupFailoverCriteriaProperty | cdk.IResolvable;
1812 /**
1813 * The origin group's ID.
1814 *
1815 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-id
1816 */
1817 readonly id: string;
1818 /**
1819 * A complex type that contains information about the origins in an origin group.
1820 *
1821 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-members
1822 */
1823 readonly members: CfnDistribution.OriginGroupMembersProperty | cdk.IResolvable;
1824 }
1825}
1826export declare namespace CfnDistribution {
1827 /**
1828 * 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.
1829 *
1830 * @struct
1831 * @stability external
1832 *
1833 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupfailovercriteria.html
1834 */
1835 interface OriginGroupFailoverCriteriaProperty {
1836 /**
1837 * The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.
1838 *
1839 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupfailovercriteria.html#cfn-cloudfront-distribution-origingroupfailovercriteria-statuscodes
1840 */
1841 readonly statusCodes: CfnDistribution.StatusCodesProperty | cdk.IResolvable;
1842 }
1843}
1844export declare namespace CfnDistribution {
1845 /**
1846 * An origin in an origin group.
1847 *
1848 * @struct
1849 * @stability external
1850 *
1851 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmember.html
1852 */
1853 interface OriginGroupMemberProperty {
1854 /**
1855 * The ID for an origin in an origin group.
1856 *
1857 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmember.html#cfn-cloudfront-distribution-origingroupmember-originid
1858 */
1859 readonly originId: string;
1860 }
1861}
1862export declare namespace CfnDistribution {
1863 /**
1864 * A complex data type for the origins included in an origin group.
1865 *
1866 * @struct
1867 * @stability external
1868 *
1869 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html
1870 */
1871 interface OriginGroupMembersProperty {
1872 /**
1873 * Items (origins) in an origin group.
1874 *
1875 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html#cfn-cloudfront-distribution-origingroupmembers-items
1876 */
1877 readonly items: Array<CfnDistribution.OriginGroupMemberProperty | cdk.IResolvable> | cdk.IResolvable;
1878 /**
1879 * The number of origins in an origin group.
1880 *
1881 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html#cfn-cloudfront-distribution-origingroupmembers-quantity
1882 */
1883 readonly quantity: number;
1884 }
1885}
1886export declare namespace CfnDistribution {
1887 /**
1888 * A complex data type for the origin groups specified for a distribution.
1889 *
1890 * @struct
1891 * @stability external
1892 *
1893 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html
1894 */
1895 interface OriginGroupsProperty {
1896 /**
1897 * The items (origin groups) in a distribution.
1898 *
1899 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html#cfn-cloudfront-distribution-origingroups-items
1900 */
1901 readonly items?: Array<CfnDistribution.OriginGroupProperty | cdk.IResolvable> | cdk.IResolvable;
1902 /**
1903 * The number of origin groups.
1904 *
1905 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html#cfn-cloudfront-distribution-origingroups-quantity
1906 */
1907 readonly quantity: number;
1908 }
1909}
1910export declare namespace CfnDistribution {
1911 /**
1912 * CloudFront Origin Shield.
1913 *
1914 * 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* .
1915 *
1916 * @struct
1917 * @stability external
1918 *
1919 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html
1920 */
1921 interface OriginShieldProperty {
1922 /**
1923 * A flag that specifies whether Origin Shield is enabled.
1924 *
1925 * 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.
1926 *
1927 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html#cfn-cloudfront-distribution-originshield-enabled
1928 */
1929 readonly enabled?: boolean | cdk.IResolvable;
1930 /**
1931 * The AWS Region for Origin Shield.
1932 *
1933 * 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` .
1934 *
1935 * 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* .
1936 *
1937 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html#cfn-cloudfront-distribution-originshield-originshieldregion
1938 */
1939 readonly originShieldRegion?: string;
1940 }
1941}
1942export declare namespace CfnDistribution {
1943 /**
1944 * A complex type that identifies ways in which you want to restrict distribution of your content.
1945 *
1946 * @struct
1947 * @stability external
1948 *
1949 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html
1950 */
1951 interface RestrictionsProperty {
1952 /**
1953 * 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.
1954 *
1955 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html#cfn-cloudfront-distribution-restrictions-georestriction
1956 */
1957 readonly geoRestriction: CfnDistribution.GeoRestrictionProperty | cdk.IResolvable;
1958 }
1959}
1960export declare namespace CfnDistribution {
1961 /**
1962 * 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.
1963 *
1964 * @struct
1965 * @stability external
1966 *
1967 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html
1968 */
1969 interface S3OriginConfigProperty {
1970 /**
1971 * 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:
1972 *
1973 * origin-access-identity/cloudfront/ *ID-of-origin-access-identity*
1974 *
1975 * where `*ID-of-origin-access-identity*` is the value that CloudFront returned in the `ID` element when you created the origin access identity.
1976 *
1977 * 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.
1978 *
1979 * To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty `OriginAccessIdentity` element.
1980 *
1981 * To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
1982 *
1983 * 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* .
1984 *
1985 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html#cfn-cloudfront-distribution-s3originconfig-originaccessidentity
1986 */
1987 readonly originAccessIdentity?: string;
1988 }
1989}
1990export declare namespace CfnDistribution {
1991 /**
1992 * 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.
1993 *
1994 * @struct
1995 * @stability external
1996 *
1997 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html
1998 */
1999 interface StatusCodesProperty {
2000 /**
2001 * The items (status codes) for an origin group.
2002 *
2003 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html#cfn-cloudfront-distribution-statuscodes-items
2004 */
2005 readonly items: number[] | cdk.IResolvable;
2006 /**
2007 * The number of status codes.
2008 *
2009 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html#cfn-cloudfront-distribution-statuscodes-quantity
2010 */
2011 readonly quantity: number;
2012 }
2013}
2014export declare namespace CfnDistribution {
2015 /**
2016 * A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.
2017 *
2018 * 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.
2019 *
2020 * If the distribution uses `Aliases` (alternate domain names or CNAMEs), use the fields in this type to specify the following settings:
2021 *
2022 * - 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.
2023 *
2024 * - 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.)
2025 * - 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.)
2026 * - 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* .
2027 * - 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):
2028 *
2029 * - `ACMCertificateArn` (In CloudFormation, this field name is `AcmCertificateArn` . Note the different capitalization.)
2030 * - `IAMCertificateId` (In CloudFormation, this field name is `IamCertificateId` . Note the different capitalization.)
2031 *
2032 * 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` .
2033 *
2034 * 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* .
2035 *
2036 * @struct
2037 * @stability external
2038 *
2039 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html
2040 */
2041 interface ViewerCertificateProperty {
2042 /**
2043 * > In CloudFormation, this field name is `AcmCertificateArn` . Note the different capitalization.
2044 *
2045 * 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` ).
2046 *
2047 * 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.)
2048 *
2049 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-acmcertificatearn
2050 */
2051 readonly acmCertificateArn?: string;
2052 /**
2053 * If the distribution uses the CloudFront domain name such as `d111111abcdef8.cloudfront.net` , set this field to `true` .
2054 *
2055 * If the distribution uses `Aliases` (alternate domain names or CNAMEs), set this field to `false` and specify values for the following fields:
2056 *
2057 * - `ACMCertificateArn` or `IAMCertificateId` (specify a value for one, not both)
2058 *
2059 * In CloudFormation, these field names are `AcmCertificateArn` and `IamCertificateId` . Note the different capitalization.
2060 * - `MinimumProtocolVersion`
2061 * - `SSLSupportMethod` (In CloudFormation, this field name is `SslSupportMethod` . Note the different capitalization.)
2062 *
2063 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-cloudfrontdefaultcertificate
2064 */
2065 readonly cloudFrontDefaultCertificate?: boolean | cdk.IResolvable;
2066 /**
2067 * > In CloudFormation, this field name is `IamCertificateId` . Note the different capitalization.
2068 *
2069 * 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.
2070 *
2071 * 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.)
2072 *
2073 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-iamcertificateid
2074 */
2075 readonly iamCertificateId?: string;
2076 /**
2077 * 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:
2078 *
2079 * - The minimum SSL/TLS protocol that CloudFront can use to communicate with viewers.
2080 * - The ciphers that CloudFront can use to encrypt the content that it returns to viewers.
2081 *
2082 * 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* .
2083 *
2084 * > On the CloudFront console, this setting is called *Security Policy* .
2085 *
2086 * 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.)
2087 *
2088 * 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.
2089 *
2090 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-minimumprotocolversion
2091 */
2092 readonly minimumProtocolVersion?: string;
2093 /**
2094 * > In CloudFormation, this field name is `SslSupportMethod` . Note the different capitalization.
2095 *
2096 * If the distribution uses `Aliases` (alternate domain names or CNAMEs), specify which viewers the distribution accepts HTTPS connections from.
2097 *
2098 * - `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.
2099 * - `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.
2100 * - `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) .
2101 *
2102 * If the distribution uses the CloudFront domain name such as `d111111abcdef8.cloudfront.net` , don't set a value for this field.
2103 *
2104 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-sslsupportmethod
2105 */
2106 readonly sslSupportMethod?: string;
2107 }
2108}
2109/**
2110 * Properties for defining a `CfnFunction`
2111 *
2112 * @struct
2113 * @stability external
2114 *
2115 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html
2116 */
2117export interface CfnFunctionProps {
2118 /**
2119 * 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* .
2120 *
2121 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functioncode
2122 */
2123 readonly functionCode: string;
2124 /**
2125 * Contains configuration information about a CloudFront function.
2126 *
2127 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functionconfig
2128 */
2129 readonly functionConfig: CfnFunction.FunctionConfigProperty | cdk.IResolvable;
2130 /**
2131 * A name to identify the function.
2132 *
2133 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-name
2134 */
2135 readonly name: string;
2136 /**
2137 * 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` .
2138 *
2139 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-autopublish
2140 */
2141 readonly autoPublish?: boolean | cdk.IResolvable;
2142 /**
2143 * Contains metadata about a CloudFront function.
2144 *
2145 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functionmetadata
2146 */
2147 readonly functionMetadata?: CfnFunction.FunctionMetadataProperty | cdk.IResolvable;
2148}
2149/**
2150 * A CloudFormation `AWS::CloudFront::Function`
2151 *
2152 * Creates a CloudFront function.
2153 *
2154 * 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.
2155 *
2156 * 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).
2157 *
2158 * 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.
2159 *
2160 * To automatically publish the function to the `LIVE` stage when it’s created, set the `AutoPublish` property to `true` .
2161 *
2162 * @cloudformationResource AWS::CloudFront::Function
2163 * @stability external
2164 *
2165 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html
2166 */
2167export declare class CfnFunction extends cdk.CfnResource implements cdk.IInspectable {
2168 /**
2169 * The CloudFormation resource type name for this resource class.
2170 */
2171 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::Function";
2172 /**
2173 * A factory method that creates a new instance of this class from an object
2174 * containing the CloudFormation properties of this resource.
2175 * Used in the @aws-cdk/cloudformation-include module.
2176 *
2177 * @internal
2178 */
2179 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnFunction;
2180 /**
2181 * The ARN of the function. For example:
2182 *
2183 * `arn:aws:cloudfront::123456789012:function/ExampleFunction` .
2184 *
2185 * To get the function ARN, use the following syntax:
2186 *
2187 * `!GetAtt *Function_Logical_ID* .FunctionMetadata.FunctionARN`
2188 * @cloudformationAttribute FunctionARN
2189 */
2190 readonly attrFunctionArn: string;
2191 /**
2192 * The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
2193 * @cloudformationAttribute FunctionMetadata.FunctionARN
2194 */
2195 readonly attrFunctionMetadataFunctionArn: string;
2196 /**
2197 *
2198 * @cloudformationAttribute Stage
2199 */
2200 readonly attrStage: string;
2201 /**
2202 * 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* .
2203 *
2204 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functioncode
2205 */
2206 functionCode: string;
2207 /**
2208 * Contains configuration information about a CloudFront function.
2209 *
2210 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functionconfig
2211 */
2212 functionConfig: CfnFunction.FunctionConfigProperty | cdk.IResolvable;
2213 /**
2214 * A name to identify the function.
2215 *
2216 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-name
2217 */
2218 name: string;
2219 /**
2220 * 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` .
2221 *
2222 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-autopublish
2223 */
2224 autoPublish: boolean | cdk.IResolvable | undefined;
2225 /**
2226 * Contains metadata about a CloudFront function.
2227 *
2228 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functionmetadata
2229 */
2230 functionMetadata: CfnFunction.FunctionMetadataProperty | cdk.IResolvable | undefined;
2231 /**
2232 * Create a new `AWS::CloudFront::Function`.
2233 *
2234 * @param scope - scope in which this resource is defined
2235 * @param id - scoped id of the resource
2236 * @param props - resource properties
2237 */
2238 constructor(scope: cdk.Construct, id: string, props: CfnFunctionProps);
2239 /**
2240 * Examines the CloudFormation resource and discloses attributes.
2241 *
2242 * @param inspector - tree inspector to collect and process attributes
2243 *
2244 */
2245 inspect(inspector: cdk.TreeInspector): void;
2246 protected get cfnProperties(): {
2247 [key: string]: any;
2248 };
2249 protected renderProperties(props: {
2250 [key: string]: any;
2251 }): {
2252 [key: string]: any;
2253 };
2254}
2255export declare namespace CfnFunction {
2256 /**
2257 * Contains configuration information about a CloudFront function.
2258 *
2259 * @struct
2260 * @stability external
2261 *
2262 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html
2263 */
2264 interface FunctionConfigProperty {
2265 /**
2266 * A comment to describe the function.
2267 *
2268 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html#cfn-cloudfront-function-functionconfig-comment
2269 */
2270 readonly comment: string;
2271 /**
2272 * The function's runtime environment. The only valid value is `cloudfront-js-1.0` .
2273 *
2274 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html#cfn-cloudfront-function-functionconfig-runtime
2275 */
2276 readonly runtime: string;
2277 }
2278}
2279export declare namespace CfnFunction {
2280 /**
2281 * Contains metadata about a CloudFront function.
2282 *
2283 * @struct
2284 * @stability external
2285 *
2286 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionmetadata.html
2287 */
2288 interface FunctionMetadataProperty {
2289 /**
2290 * The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
2291 *
2292 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionmetadata.html#cfn-cloudfront-function-functionmetadata-functionarn
2293 */
2294 readonly functionArn?: string;
2295 }
2296}
2297/**
2298 * Properties for defining a `CfnKeyGroup`
2299 *
2300 * @struct
2301 * @stability external
2302 *
2303 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html
2304 */
2305export interface CfnKeyGroupProps {
2306 /**
2307 * The key group configuration.
2308 *
2309 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html#cfn-cloudfront-keygroup-keygroupconfig
2310 */
2311 readonly keyGroupConfig: CfnKeyGroup.KeyGroupConfigProperty | cdk.IResolvable;
2312}
2313/**
2314 * A CloudFormation `AWS::CloudFront::KeyGroup`
2315 *
2316 * A key group.
2317 *
2318 * 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) .
2319 *
2320 * @cloudformationResource AWS::CloudFront::KeyGroup
2321 * @stability external
2322 *
2323 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html
2324 */
2325export declare class CfnKeyGroup extends cdk.CfnResource implements cdk.IInspectable {
2326 /**
2327 * The CloudFormation resource type name for this resource class.
2328 */
2329 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::KeyGroup";
2330 /**
2331 * A factory method that creates a new instance of this class from an object
2332 * containing the CloudFormation properties of this resource.
2333 * Used in the @aws-cdk/cloudformation-include module.
2334 *
2335 * @internal
2336 */
2337 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnKeyGroup;
2338 /**
2339 * The identifier for the key group.
2340 * @cloudformationAttribute Id
2341 */
2342 readonly attrId: string;
2343 /**
2344 * The date and time when the key group was last modified.
2345 * @cloudformationAttribute LastModifiedTime
2346 */
2347 readonly attrLastModifiedTime: string;
2348 /**
2349 * The key group configuration.
2350 *
2351 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html#cfn-cloudfront-keygroup-keygroupconfig
2352 */
2353 keyGroupConfig: CfnKeyGroup.KeyGroupConfigProperty | cdk.IResolvable;
2354 /**
2355 * Create a new `AWS::CloudFront::KeyGroup`.
2356 *
2357 * @param scope - scope in which this resource is defined
2358 * @param id - scoped id of the resource
2359 * @param props - resource properties
2360 */
2361 constructor(scope: cdk.Construct, id: string, props: CfnKeyGroupProps);
2362 /**
2363 * Examines the CloudFormation resource and discloses attributes.
2364 *
2365 * @param inspector - tree inspector to collect and process attributes
2366 *
2367 */
2368 inspect(inspector: cdk.TreeInspector): void;
2369 protected get cfnProperties(): {
2370 [key: string]: any;
2371 };
2372 protected renderProperties(props: {
2373 [key: string]: any;
2374 }): {
2375 [key: string]: any;
2376 };
2377}
2378export declare namespace CfnKeyGroup {
2379 /**
2380 * A key group configuration.
2381 *
2382 * 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) .
2383 *
2384 * @struct
2385 * @stability external
2386 *
2387 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html
2388 */
2389 interface KeyGroupConfigProperty {
2390 /**
2391 * A comment to describe the key group. The comment cannot be longer than 128 characters.
2392 *
2393 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-comment
2394 */
2395 readonly comment?: string;
2396 /**
2397 * A list of the identifiers of the public keys in the key group.
2398 *
2399 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-items
2400 */
2401 readonly items: string[];
2402 /**
2403 * A name to identify the key group.
2404 *
2405 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-name
2406 */
2407 readonly name: string;
2408 }
2409}
2410/**
2411 * Properties for defining a `CfnMonitoringSubscription`
2412 *
2413 * @struct
2414 * @stability external
2415 *
2416 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html
2417 */
2418export interface CfnMonitoringSubscriptionProps {
2419 /**
2420 * The ID of the distribution that you are enabling metrics for.
2421 *
2422 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html#cfn-cloudfront-monitoringsubscription-distributionid
2423 */
2424 readonly distributionId: string;
2425 /**
2426 * A subscription configuration for additional CloudWatch metrics.
2427 *
2428 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html#cfn-cloudfront-monitoringsubscription-monitoringsubscription
2429 */
2430 readonly monitoringSubscription: CfnMonitoringSubscription.MonitoringSubscriptionProperty | cdk.IResolvable;
2431}
2432/**
2433 * A CloudFormation `AWS::CloudFront::MonitoringSubscription`
2434 *
2435 * A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
2436 *
2437 * @cloudformationResource AWS::CloudFront::MonitoringSubscription
2438 * @stability external
2439 *
2440 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html
2441 */
2442export declare class CfnMonitoringSubscription extends cdk.CfnResource implements cdk.IInspectable {
2443 /**
2444 * The CloudFormation resource type name for this resource class.
2445 */
2446 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::MonitoringSubscription";
2447 /**
2448 * A factory method that creates a new instance of this class from an object
2449 * containing the CloudFormation properties of this resource.
2450 * Used in the @aws-cdk/cloudformation-include module.
2451 *
2452 * @internal
2453 */
2454 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnMonitoringSubscription;
2455 /**
2456 * The ID of the distribution that you are enabling metrics for.
2457 *
2458 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html#cfn-cloudfront-monitoringsubscription-distributionid
2459 */
2460 distributionId: string;
2461 /**
2462 * A subscription configuration for additional CloudWatch metrics.
2463 *
2464 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html#cfn-cloudfront-monitoringsubscription-monitoringsubscription
2465 */
2466 monitoringSubscription: CfnMonitoringSubscription.MonitoringSubscriptionProperty | cdk.IResolvable;
2467 /**
2468 * Create a new `AWS::CloudFront::MonitoringSubscription`.
2469 *
2470 * @param scope - scope in which this resource is defined
2471 * @param id - scoped id of the resource
2472 * @param props - resource properties
2473 */
2474 constructor(scope: cdk.Construct, id: string, props: CfnMonitoringSubscriptionProps);
2475 /**
2476 * Examines the CloudFormation resource and discloses attributes.
2477 *
2478 * @param inspector - tree inspector to collect and process attributes
2479 *
2480 */
2481 inspect(inspector: cdk.TreeInspector): void;
2482 protected get cfnProperties(): {
2483 [key: string]: any;
2484 };
2485 protected renderProperties(props: {
2486 [key: string]: any;
2487 }): {
2488 [key: string]: any;
2489 };
2490}
2491export declare namespace CfnMonitoringSubscription {
2492 /**
2493 * A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
2494 *
2495 * @struct
2496 * @stability external
2497 *
2498 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-monitoringsubscription.html
2499 */
2500 interface MonitoringSubscriptionProperty {
2501 /**
2502 * A subscription configuration for additional CloudWatch metrics.
2503 *
2504 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-monitoringsubscription.html#cfn-cloudfront-monitoringsubscription-monitoringsubscription-realtimemetricssubscriptionconfig
2505 */
2506 readonly realtimeMetricsSubscriptionConfig?: CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty | cdk.IResolvable;
2507 }
2508}
2509export declare namespace CfnMonitoringSubscription {
2510 /**
2511 * A subscription configuration for additional CloudWatch metrics.
2512 *
2513 * @struct
2514 * @stability external
2515 *
2516 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-realtimemetricssubscriptionconfig.html
2517 */
2518 interface RealtimeMetricsSubscriptionConfigProperty {
2519 /**
2520 * A flag that indicates whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
2521 *
2522 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-realtimemetricssubscriptionconfig.html#cfn-cloudfront-monitoringsubscription-realtimemetricssubscriptionconfig-realtimemetricssubscriptionstatus
2523 */
2524 readonly realtimeMetricsSubscriptionStatus: string;
2525 }
2526}
2527/**
2528 * Properties for defining a `CfnOriginAccessControl`
2529 *
2530 * @struct
2531 * @stability external
2532 *
2533 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html
2534 */
2535export interface CfnOriginAccessControlProps {
2536 /**
2537 * The origin access control.
2538 *
2539 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig
2540 */
2541 readonly originAccessControlConfig: CfnOriginAccessControl.OriginAccessControlConfigProperty | cdk.IResolvable;
2542}
2543/**
2544 * A CloudFormation `AWS::CloudFront::OriginAccessControl`
2545 *
2546 * Creates a new origin access control in CloudFront. After you create an origin access control, you can add it to an origin in a CloudFront distribution so that CloudFront sends authenticated (signed) requests to the origin.
2547 *
2548 * This makes it possible to block public access to the origin, allowing viewers (users) to access the origin's content only through CloudFront.
2549 *
2550 * For more information about using a CloudFront origin access control, see [Restricting access to an AWS origin](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html) in the *Amazon CloudFront Developer Guide* .
2551 *
2552 * @cloudformationResource AWS::CloudFront::OriginAccessControl
2553 * @stability external
2554 *
2555 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html
2556 */
2557export declare class CfnOriginAccessControl extends cdk.CfnResource implements cdk.IInspectable {
2558 /**
2559 * The CloudFormation resource type name for this resource class.
2560 */
2561 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::OriginAccessControl";
2562 /**
2563 * A factory method that creates a new instance of this class from an object
2564 * containing the CloudFormation properties of this resource.
2565 * Used in the @aws-cdk/cloudformation-include module.
2566 *
2567 * @internal
2568 */
2569 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnOriginAccessControl;
2570 /**
2571 * The unique identifier of the origin access control.
2572 * @cloudformationAttribute Id
2573 */
2574 readonly attrId: string;
2575 /**
2576 * The origin access control.
2577 *
2578 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig
2579 */
2580 originAccessControlConfig: CfnOriginAccessControl.OriginAccessControlConfigProperty | cdk.IResolvable;
2581 /**
2582 * Create a new `AWS::CloudFront::OriginAccessControl`.
2583 *
2584 * @param scope - scope in which this resource is defined
2585 * @param id - scoped id of the resource
2586 * @param props - resource properties
2587 */
2588 constructor(scope: cdk.Construct, id: string, props: CfnOriginAccessControlProps);
2589 /**
2590 * Examines the CloudFormation resource and discloses attributes.
2591 *
2592 * @param inspector - tree inspector to collect and process attributes
2593 *
2594 */
2595 inspect(inspector: cdk.TreeInspector): void;
2596 protected get cfnProperties(): {
2597 [key: string]: any;
2598 };
2599 protected renderProperties(props: {
2600 [key: string]: any;
2601 }): {
2602 [key: string]: any;
2603 };
2604}
2605export declare namespace CfnOriginAccessControl {
2606 /**
2607 * Creates a new origin access control in CloudFront. After you create an origin access control, you can add it to an origin in a CloudFront distribution so that CloudFront sends authenticated (signed) requests to the origin.
2608 *
2609 * This makes it possible to block public access to the origin, allowing viewers (users) to access the origin's content only through CloudFront.
2610 *
2611 * For more information about using a CloudFront origin access control, see [Restricting access to an AWS origin](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html) in the *Amazon CloudFront Developer Guide* .
2612 *
2613 * @struct
2614 * @stability external
2615 *
2616 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html
2617 */
2618 interface OriginAccessControlConfigProperty {
2619 /**
2620 * A description of the origin access control.
2621 *
2622 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-description
2623 */
2624 readonly description?: string;
2625 /**
2626 * A name to identify the origin access control.
2627 *
2628 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-name
2629 */
2630 readonly name: string;
2631 /**
2632 * The type of origin that this origin access control is for.
2633 *
2634 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-originaccesscontrolorigintype
2635 */
2636 readonly originAccessControlOriginType: string;
2637 /**
2638 * Specifies which requests CloudFront signs (adds authentication information to). Specify `always` for the most common use case. For more information, see [origin access control advanced settings](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html#oac-advanced-settings) in the *Amazon CloudFront Developer Guide* .
2639 *
2640 * This field can have one of the following values:
2641 *
2642 * - `always` – CloudFront signs all origin requests, overwriting the `Authorization` header from the viewer request if one exists.
2643 * - `never` – CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control.
2644 * - `no-override` – If the viewer request doesn't contain the `Authorization` header, then CloudFront signs the origin request. If the viewer request contains the `Authorization` header, then CloudFront doesn't sign the origin request and instead passes along the `Authorization` header from the viewer request. *WARNING: To pass along the `Authorization` header from the viewer request, you *must* add the `Authorization` header to a [cache policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html) for all cache behaviors that use origins associated with this origin access control.*
2645 *
2646 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-signingbehavior
2647 */
2648 readonly signingBehavior: string;
2649 /**
2650 * The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is `sigv4` .
2651 *
2652 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-signingprotocol
2653 */
2654 readonly signingProtocol: string;
2655 }
2656}
2657/**
2658 * Properties for defining a `CfnOriginRequestPolicy`
2659 *
2660 * @struct
2661 * @stability external
2662 *
2663 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html
2664 */
2665export interface CfnOriginRequestPolicyProps {
2666 /**
2667 * The origin request policy configuration.
2668 *
2669 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig
2670 */
2671 readonly originRequestPolicyConfig: CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty | cdk.IResolvable;
2672}
2673/**
2674 * A CloudFormation `AWS::CloudFront::OriginRequestPolicy`
2675 *
2676 * An origin request policy.
2677 *
2678 * 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:
2679 *
2680 * - The request body and the URL path (without the domain name) from the viewer request.
2681 * - The headers that CloudFront automatically includes in every origin request, including `Host` , `User-Agent` , and `X-Amz-Cf-Id` .
2682 * - 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.
2683 *
2684 * 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` .
2685 *
2686 * @cloudformationResource AWS::CloudFront::OriginRequestPolicy
2687 * @stability external
2688 *
2689 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html
2690 */
2691export declare class CfnOriginRequestPolicy extends cdk.CfnResource implements cdk.IInspectable {
2692 /**
2693 * The CloudFormation resource type name for this resource class.
2694 */
2695 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::OriginRequestPolicy";
2696 /**
2697 * A factory method that creates a new instance of this class from an object
2698 * containing the CloudFormation properties of this resource.
2699 * Used in the @aws-cdk/cloudformation-include module.
2700 *
2701 * @internal
2702 */
2703 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnOriginRequestPolicy;
2704 /**
2705 * The unique identifier for the origin request policy. For example: `befd7079-9bbc-4ebf-8ade-498a3694176c` .
2706 * @cloudformationAttribute Id
2707 */
2708 readonly attrId: string;
2709 /**
2710 * The date and time when the origin request policy was last modified.
2711 * @cloudformationAttribute LastModifiedTime
2712 */
2713 readonly attrLastModifiedTime: string;
2714 /**
2715 * The origin request policy configuration.
2716 *
2717 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig
2718 */
2719 originRequestPolicyConfig: CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty | cdk.IResolvable;
2720 /**
2721 * Create a new `AWS::CloudFront::OriginRequestPolicy`.
2722 *
2723 * @param scope - scope in which this resource is defined
2724 * @param id - scoped id of the resource
2725 * @param props - resource properties
2726 */
2727 constructor(scope: cdk.Construct, id: string, props: CfnOriginRequestPolicyProps);
2728 /**
2729 * Examines the CloudFormation resource and discloses attributes.
2730 *
2731 * @param inspector - tree inspector to collect and process attributes
2732 *
2733 */
2734 inspect(inspector: cdk.TreeInspector): void;
2735 protected get cfnProperties(): {
2736 [key: string]: any;
2737 };
2738 protected renderProperties(props: {
2739 [key: string]: any;
2740 }): {
2741 [key: string]: any;
2742 };
2743}
2744export declare namespace CfnOriginRequestPolicy {
2745 /**
2746 * 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.
2747 *
2748 * @struct
2749 * @stability external
2750 *
2751 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html
2752 */
2753 interface CookiesConfigProperty {
2754 /**
2755 * Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
2756 *
2757 * - `none` – No cookies in viewer requests are 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.
2758 * - `whitelist` – Only the cookies in viewer requests that are listed in the `CookieNames` type are included in requests that CloudFront sends to the origin.
2759 * - `all` – All cookies in viewer requests are included in requests that CloudFront sends to the origin.
2760 * - `allExcept` – All cookies in viewer requests are included in requests that CloudFront sends to the origin, **except** for those listed in the `CookieNames` type, which are not included.
2761 *
2762 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html#cfn-cloudfront-originrequestpolicy-cookiesconfig-cookiebehavior
2763 */
2764 readonly cookieBehavior: string;
2765 /**
2766 * Contains a list of cookie names.
2767 *
2768 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html#cfn-cloudfront-originrequestpolicy-cookiesconfig-cookies
2769 */
2770 readonly cookies?: string[];
2771 }
2772}
2773export declare namespace CfnOriginRequestPolicy {
2774 /**
2775 * An object that determines whether any HTTP headers (and if so, which headers) are included in requests that CloudFront sends to the origin.
2776 *
2777 * @struct
2778 * @stability external
2779 *
2780 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html
2781 */
2782 interface HeadersConfigProperty {
2783 /**
2784 * Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:
2785 *
2786 * - `none` – No HTTP headers in viewer requests are 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.
2787 * - `whitelist` – Only the HTTP headers that are listed in the `Headers` type are included in requests that CloudFront sends to the origin.
2788 * - `allViewer` – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.
2789 * - `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.
2790 * - `allExcept` – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, **except** for those listed in the `Headers` type, which are not included.
2791 *
2792 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html#cfn-cloudfront-originrequestpolicy-headersconfig-headerbehavior
2793 */
2794 readonly headerBehavior: string;
2795 /**
2796 * Contains a list of HTTP header names.
2797 *
2798 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html#cfn-cloudfront-originrequestpolicy-headersconfig-headers
2799 */
2800 readonly headers?: string[];
2801 }
2802}
2803export declare namespace CfnOriginRequestPolicy {
2804 /**
2805 * An origin request policy configuration.
2806 *
2807 * 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:
2808 *
2809 * - The request body and the URL path (without the domain name) from the viewer request.
2810 * - The headers that CloudFront automatically includes in every origin request, including `Host` , `User-Agent` , and `X-Amz-Cf-Id` .
2811 * - 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.
2812 *
2813 * 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` .
2814 *
2815 * @struct
2816 * @stability external
2817 *
2818 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html
2819 */
2820 interface OriginRequestPolicyConfigProperty {
2821 /**
2822 * A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
2823 *
2824 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-comment
2825 */
2826 readonly comment?: string;
2827 /**
2828 * The cookies from viewer requests to include in origin requests.
2829 *
2830 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-cookiesconfig
2831 */
2832 readonly cookiesConfig: CfnOriginRequestPolicy.CookiesConfigProperty | cdk.IResolvable;
2833 /**
2834 * The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
2835 *
2836 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-headersconfig
2837 */
2838 readonly headersConfig: CfnOriginRequestPolicy.HeadersConfigProperty | cdk.IResolvable;
2839 /**
2840 * A unique name to identify the origin request policy.
2841 *
2842 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-name
2843 */
2844 readonly name: string;
2845 /**
2846 * The URL query strings from viewer requests to include in origin requests.
2847 *
2848 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-querystringsconfig
2849 */
2850 readonly queryStringsConfig: CfnOriginRequestPolicy.QueryStringsConfigProperty | cdk.IResolvable;
2851 }
2852}
2853export declare namespace CfnOriginRequestPolicy {
2854 /**
2855 * 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.
2856 *
2857 * @struct
2858 * @stability external
2859 *
2860 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html
2861 */
2862 interface QueryStringsConfigProperty {
2863 /**
2864 * Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
2865 *
2866 * - `none` – No query strings in viewer requests are 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.
2867 * - `whitelist` – Only the query strings in viewer requests that are listed in the `QueryStringNames` type are included in requests that CloudFront sends to the origin.
2868 * - `all` – All query strings in viewer requests are included in requests that CloudFront sends to the origin.
2869 * - `allExcept` – All query strings in viewer requests are included in requests that CloudFront sends to the origin, **except** for those listed in the `QueryStringNames` type, which are not included.
2870 *
2871 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html#cfn-cloudfront-originrequestpolicy-querystringsconfig-querystringbehavior
2872 */
2873 readonly queryStringBehavior: string;
2874 /**
2875 * Contains a list of query string names.
2876 *
2877 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html#cfn-cloudfront-originrequestpolicy-querystringsconfig-querystrings
2878 */
2879 readonly queryStrings?: string[];
2880 }
2881}
2882/**
2883 * Properties for defining a `CfnPublicKey`
2884 *
2885 * @struct
2886 * @stability external
2887 *
2888 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html
2889 */
2890export interface CfnPublicKeyProps {
2891 /**
2892 * 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) .
2893 *
2894 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html#cfn-cloudfront-publickey-publickeyconfig
2895 */
2896 readonly publicKeyConfig: CfnPublicKey.PublicKeyConfigProperty | cdk.IResolvable;
2897}
2898/**
2899 * A CloudFormation `AWS::CloudFront::PublicKey`
2900 *
2901 * 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) .
2902 *
2903 * @cloudformationResource AWS::CloudFront::PublicKey
2904 * @stability external
2905 *
2906 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html
2907 */
2908export declare class CfnPublicKey extends cdk.CfnResource implements cdk.IInspectable {
2909 /**
2910 * The CloudFormation resource type name for this resource class.
2911 */
2912 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::PublicKey";
2913 /**
2914 * A factory method that creates a new instance of this class from an object
2915 * containing the CloudFormation properties of this resource.
2916 * Used in the @aws-cdk/cloudformation-include module.
2917 *
2918 * @internal
2919 */
2920 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnPublicKey;
2921 /**
2922 * The date and time when the public key was uploaded.
2923 * @cloudformationAttribute CreatedTime
2924 */
2925 readonly attrCreatedTime: string;
2926 /**
2927 * The identifier of the public key.
2928 * @cloudformationAttribute Id
2929 */
2930 readonly attrId: string;
2931 /**
2932 * 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) .
2933 *
2934 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html#cfn-cloudfront-publickey-publickeyconfig
2935 */
2936 publicKeyConfig: CfnPublicKey.PublicKeyConfigProperty | cdk.IResolvable;
2937 /**
2938 * Create a new `AWS::CloudFront::PublicKey`.
2939 *
2940 * @param scope - scope in which this resource is defined
2941 * @param id - scoped id of the resource
2942 * @param props - resource properties
2943 */
2944 constructor(scope: cdk.Construct, id: string, props: CfnPublicKeyProps);
2945 /**
2946 * Examines the CloudFormation resource and discloses attributes.
2947 *
2948 * @param inspector - tree inspector to collect and process attributes
2949 *
2950 */
2951 inspect(inspector: cdk.TreeInspector): void;
2952 protected get cfnProperties(): {
2953 [key: string]: any;
2954 };
2955 protected renderProperties(props: {
2956 [key: string]: any;
2957 }): {
2958 [key: string]: any;
2959 };
2960}
2961export declare namespace CfnPublicKey {
2962 /**
2963 * 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) .
2964 *
2965 * @struct
2966 * @stability external
2967 *
2968 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html
2969 */
2970 interface PublicKeyConfigProperty {
2971 /**
2972 * A string included in the request to help make sure that the request can't be replayed.
2973 *
2974 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-callerreference
2975 */
2976 readonly callerReference: string;
2977 /**
2978 * A comment to describe the public key. The comment cannot be longer than 128 characters.
2979 *
2980 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-comment
2981 */
2982 readonly comment?: string;
2983 /**
2984 * 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) .
2985 *
2986 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-encodedkey
2987 */
2988 readonly encodedKey: string;
2989 /**
2990 * A name to help identify the public key.
2991 *
2992 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-name
2993 */
2994 readonly name: string;
2995 }
2996}
2997/**
2998 * Properties for defining a `CfnRealtimeLogConfig`
2999 *
3000 * @struct
3001 * @stability external
3002 *
3003 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html
3004 */
3005export interface CfnRealtimeLogConfigProps {
3006 /**
3007 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
3008 *
3009 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-endpoints
3010 */
3011 readonly endPoints: Array<CfnRealtimeLogConfig.EndPointProperty | cdk.IResolvable> | cdk.IResolvable;
3012 /**
3013 * 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.
3014 *
3015 * 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* .
3016 *
3017 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-fields
3018 */
3019 readonly fields: string[];
3020 /**
3021 * The unique name of this real-time log configuration.
3022 *
3023 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-name
3024 */
3025 readonly name: string;
3026 /**
3027 * 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.
3028 *
3029 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-samplingrate
3030 */
3031 readonly samplingRate: number;
3032}
3033/**
3034 * A CloudFormation `AWS::CloudFront::RealtimeLogConfig`
3035 *
3036 * A real-time log configuration.
3037 *
3038 * @cloudformationResource AWS::CloudFront::RealtimeLogConfig
3039 * @stability external
3040 *
3041 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html
3042 */
3043export declare class CfnRealtimeLogConfig extends cdk.CfnResource implements cdk.IInspectable {
3044 /**
3045 * The CloudFormation resource type name for this resource class.
3046 */
3047 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::RealtimeLogConfig";
3048 /**
3049 * A factory method that creates a new instance of this class from an object
3050 * containing the CloudFormation properties of this resource.
3051 * Used in the @aws-cdk/cloudformation-include module.
3052 *
3053 * @internal
3054 */
3055 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnRealtimeLogConfig;
3056 /**
3057 * The Amazon Resource Name (ARN) of the real-time log configuration. For example: `arn:aws:cloudfront::111122223333:realtime-log-config/ExampleNameForRealtimeLogConfig` .
3058 * @cloudformationAttribute Arn
3059 */
3060 readonly attrArn: string;
3061 /**
3062 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
3063 *
3064 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-endpoints
3065 */
3066 endPoints: Array<CfnRealtimeLogConfig.EndPointProperty | cdk.IResolvable> | cdk.IResolvable;
3067 /**
3068 * 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.
3069 *
3070 * 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* .
3071 *
3072 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-fields
3073 */
3074 fields: string[];
3075 /**
3076 * The unique name of this real-time log configuration.
3077 *
3078 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-name
3079 */
3080 name: string;
3081 /**
3082 * 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.
3083 *
3084 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-samplingrate
3085 */
3086 samplingRate: number;
3087 /**
3088 * Create a new `AWS::CloudFront::RealtimeLogConfig`.
3089 *
3090 * @param scope - scope in which this resource is defined
3091 * @param id - scoped id of the resource
3092 * @param props - resource properties
3093 */
3094 constructor(scope: cdk.Construct, id: string, props: CfnRealtimeLogConfigProps);
3095 /**
3096 * Examines the CloudFormation resource and discloses attributes.
3097 *
3098 * @param inspector - tree inspector to collect and process attributes
3099 *
3100 */
3101 inspect(inspector: cdk.TreeInspector): void;
3102 protected get cfnProperties(): {
3103 [key: string]: any;
3104 };
3105 protected renderProperties(props: {
3106 [key: string]: any;
3107 }): {
3108 [key: string]: any;
3109 };
3110}
3111export declare namespace CfnRealtimeLogConfig {
3112 /**
3113 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data in a real-time log configuration.
3114 *
3115 * @struct
3116 * @stability external
3117 *
3118 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html
3119 */
3120 interface EndPointProperty {
3121 /**
3122 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
3123 *
3124 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html#cfn-cloudfront-realtimelogconfig-endpoint-kinesisstreamconfig
3125 */
3126 readonly kinesisStreamConfig: CfnRealtimeLogConfig.KinesisStreamConfigProperty | cdk.IResolvable;
3127 /**
3128 * The type of data stream where you are sending real-time log data. The only valid value is `Kinesis` .
3129 *
3130 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html#cfn-cloudfront-realtimelogconfig-endpoint-streamtype
3131 */
3132 readonly streamType: string;
3133 }
3134}
3135export declare namespace CfnRealtimeLogConfig {
3136 /**
3137 * Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
3138 *
3139 * @struct
3140 * @stability external
3141 *
3142 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html
3143 */
3144 interface KinesisStreamConfigProperty {
3145 /**
3146 * 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.
3147 *
3148 * 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* .
3149 *
3150 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html#cfn-cloudfront-realtimelogconfig-kinesisstreamconfig-rolearn
3151 */
3152 readonly roleArn: string;
3153 /**
3154 * The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data.
3155 *
3156 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html#cfn-cloudfront-realtimelogconfig-kinesisstreamconfig-streamarn
3157 */
3158 readonly streamArn: string;
3159 }
3160}
3161/**
3162 * Properties for defining a `CfnResponseHeadersPolicy`
3163 *
3164 * @struct
3165 * @stability external
3166 *
3167 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html
3168 */
3169export interface CfnResponseHeadersPolicyProps {
3170 /**
3171 * A response headers policy configuration.
3172 *
3173 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig
3174 */
3175 readonly responseHeadersPolicyConfig: CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty | cdk.IResolvable;
3176}
3177/**
3178 * A CloudFormation `AWS::CloudFront::ResponseHeadersPolicy`
3179 *
3180 * A response headers policy.
3181 *
3182 * A response headers policy contains information about a set of HTTP response headers.
3183 *
3184 * 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, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.
3185 *
3186 * For more information, see [Adding or removing HTTP headers in CloudFront responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html) in the *Amazon CloudFront Developer Guide* .
3187 *
3188 * @cloudformationResource AWS::CloudFront::ResponseHeadersPolicy
3189 * @stability external
3190 *
3191 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html
3192 */
3193export declare class CfnResponseHeadersPolicy extends cdk.CfnResource implements cdk.IInspectable {
3194 /**
3195 * The CloudFormation resource type name for this resource class.
3196 */
3197 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::ResponseHeadersPolicy";
3198 /**
3199 * A factory method that creates a new instance of this class from an object
3200 * containing the CloudFormation properties of this resource.
3201 * Used in the @aws-cdk/cloudformation-include module.
3202 *
3203 * @internal
3204 */
3205 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnResponseHeadersPolicy;
3206 /**
3207 * The unique identifier for the response headers policy. For example: `57f99797-3b20-4e1b-a728-27972a74082a` .
3208 * @cloudformationAttribute Id
3209 */
3210 readonly attrId: string;
3211 /**
3212 * The date and time when the response headers policy was last modified.
3213 * @cloudformationAttribute LastModifiedTime
3214 */
3215 readonly attrLastModifiedTime: string;
3216 /**
3217 * A response headers policy configuration.
3218 *
3219 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig
3220 */
3221 responseHeadersPolicyConfig: CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty | cdk.IResolvable;
3222 /**
3223 * Create a new `AWS::CloudFront::ResponseHeadersPolicy`.
3224 *
3225 * @param scope - scope in which this resource is defined
3226 * @param id - scoped id of the resource
3227 * @param props - resource properties
3228 */
3229 constructor(scope: cdk.Construct, id: string, props: CfnResponseHeadersPolicyProps);
3230 /**
3231 * Examines the CloudFormation resource and discloses attributes.
3232 *
3233 * @param inspector - tree inspector to collect and process attributes
3234 *
3235 */
3236 inspect(inspector: cdk.TreeInspector): void;
3237 protected get cfnProperties(): {
3238 [key: string]: any;
3239 };
3240 protected renderProperties(props: {
3241 [key: string]: any;
3242 }): {
3243 [key: string]: any;
3244 };
3245}
3246export declare namespace CfnResponseHeadersPolicy {
3247 /**
3248 * A list of HTTP header names that CloudFront includes as values for the `Access-Control-Allow-Headers` HTTP response header.
3249 *
3250 * 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.
3251 *
3252 * @struct
3253 * @stability external
3254 *
3255 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowheaders.html
3256 */
3257 interface AccessControlAllowHeadersProperty {
3258 /**
3259 * The list of HTTP header names. You can specify `*` to allow all headers.
3260 *
3261 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowheaders.html#cfn-cloudfront-responseheaderspolicy-accesscontrolallowheaders-items
3262 */
3263 readonly items: string[];
3264 }
3265}
3266export declare namespace CfnResponseHeadersPolicy {
3267 /**
3268 * A list of HTTP methods that CloudFront includes as values for the `Access-Control-Allow-Methods` HTTP response header.
3269 *
3270 * 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.
3271 *
3272 * @struct
3273 * @stability external
3274 *
3275 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowmethods.html
3276 */
3277 interface AccessControlAllowMethodsProperty {
3278 /**
3279 * The list of HTTP methods. Valid values are:
3280 *
3281 * - `GET`
3282 * - `DELETE`
3283 * - `HEAD`
3284 * - `OPTIONS`
3285 * - `PATCH`
3286 * - `POST`
3287 * - `PUT`
3288 * - `ALL`
3289 *
3290 * `ALL` is a special value that includes all of the listed HTTP methods.
3291 *
3292 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowmethods.html#cfn-cloudfront-responseheaderspolicy-accesscontrolallowmethods-items
3293 */
3294 readonly items: string[];
3295 }
3296}
3297export declare namespace CfnResponseHeadersPolicy {
3298 /**
3299 * A list of origins (domain names) that CloudFront can use as the value for the `Access-Control-Allow-Origin` HTTP response header.
3300 *
3301 * 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.
3302 *
3303 * @struct
3304 * @stability external
3305 *
3306 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.html
3307 */
3308 interface AccessControlAllowOriginsProperty {
3309 /**
3310 * The list of origins (domain names). You can specify `*` to allow all origins.
3311 *
3312 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.html#cfn-cloudfront-responseheaderspolicy-accesscontrolalloworigins-items
3313 */
3314 readonly items: string[];
3315 }
3316}
3317export declare namespace CfnResponseHeadersPolicy {
3318 /**
3319 * A list of HTTP headers that CloudFront includes as values for the `Access-Control-Expose-Headers` HTTP response header.
3320 *
3321 * 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.
3322 *
3323 * @struct
3324 * @stability external
3325 *
3326 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolexposeheaders.html
3327 */
3328 interface AccessControlExposeHeadersProperty {
3329 /**
3330 * The list of HTTP headers. You can specify `*` to expose all headers.
3331 *
3332 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolexposeheaders.html#cfn-cloudfront-responseheaderspolicy-accesscontrolexposeheaders-items
3333 */
3334 readonly items: string[];
3335 }
3336}
3337export declare namespace CfnResponseHeadersPolicy {
3338 /**
3339 * The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
3340 *
3341 * 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.
3342 *
3343 * @struct
3344 * @stability external
3345 *
3346 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html
3347 */
3348 interface ContentSecurityPolicyProperty {
3349 /**
3350 * The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
3351 *
3352 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html#cfn-cloudfront-responseheaderspolicy-contentsecuritypolicy-contentsecuritypolicy
3353 */
3354 readonly contentSecurityPolicy: string;
3355 /**
3356 * 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.
3357 *
3358 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html#cfn-cloudfront-responseheaderspolicy-contentsecuritypolicy-override
3359 */
3360 readonly override: boolean | cdk.IResolvable;
3361 }
3362}
3363export declare namespace CfnResponseHeadersPolicy {
3364 /**
3365 * Determines whether CloudFront includes the `X-Content-Type-Options` HTTP response header with its value set to `nosniff` .
3366 *
3367 * 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.
3368 *
3369 * @struct
3370 * @stability external
3371 *
3372 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contenttypeoptions.html
3373 */
3374 interface ContentTypeOptionsProperty {
3375 /**
3376 * 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.
3377 *
3378 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contenttypeoptions.html#cfn-cloudfront-responseheaderspolicy-contenttypeoptions-override
3379 */
3380 readonly override: boolean | cdk.IResolvable;
3381 }
3382}
3383export declare namespace CfnResponseHeadersPolicy {
3384 /**
3385 * 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.
3386 *
3387 * 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.
3388 *
3389 * @struct
3390 * @stability external
3391 *
3392 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html
3393 */
3394 interface CorsConfigProperty {
3395 /**
3396 * A Boolean that CloudFront uses as the value for the `Access-Control-Allow-Credentials` HTTP response header.
3397 *
3398 * 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.
3399 *
3400 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowcredentials
3401 */
3402 readonly accessControlAllowCredentials: boolean | cdk.IResolvable;
3403 /**
3404 * A list of HTTP header names that CloudFront includes as values for the `Access-Control-Allow-Headers` HTTP response header.
3405 *
3406 * 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.
3407 *
3408 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowheaders
3409 */
3410 readonly accessControlAllowHeaders: CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty | cdk.IResolvable;
3411 /**
3412 * A list of HTTP methods that CloudFront includes as values for the `Access-Control-Allow-Methods` HTTP response header.
3413 *
3414 * 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.
3415 *
3416 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowmethods
3417 */
3418 readonly accessControlAllowMethods: CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty | cdk.IResolvable;
3419 /**
3420 * A list of origins (domain names) that CloudFront can use as the value for the `Access-Control-Allow-Origin` HTTP response header.
3421 *
3422 * 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.
3423 *
3424 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolalloworigins
3425 */
3426 readonly accessControlAllowOrigins: CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty | cdk.IResolvable;
3427 /**
3428 * A list of HTTP headers that CloudFront includes as values for the `Access-Control-Expose-Headers` HTTP response header.
3429 *
3430 * 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.
3431 *
3432 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolexposeheaders
3433 */
3434 readonly accessControlExposeHeaders?: CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty | cdk.IResolvable;
3435 /**
3436 * A number that CloudFront uses as the value for the `Access-Control-Max-Age` HTTP response header.
3437 *
3438 * 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.
3439 *
3440 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolmaxagesec
3441 */
3442 readonly accessControlMaxAgeSec?: number;
3443 /**
3444 * A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.
3445 *
3446 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-originoverride
3447 */
3448 readonly originOverride: boolean | cdk.IResolvable;
3449 }
3450}
3451export declare namespace CfnResponseHeadersPolicy {
3452 /**
3453 * 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.
3454 *
3455 * @struct
3456 * @stability external
3457 *
3458 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html
3459 */
3460 interface CustomHeaderProperty {
3461 /**
3462 * The HTTP response header name.
3463 *
3464 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-header
3465 */
3466 readonly header: string;
3467 /**
3468 * A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
3469 *
3470 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-override
3471 */
3472 readonly override: boolean | cdk.IResolvable;
3473 /**
3474 * The value for the HTTP response header.
3475 *
3476 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-value
3477 */
3478 readonly value: string;
3479 }
3480}
3481export declare namespace CfnResponseHeadersPolicy {
3482 /**
3483 * 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.
3484 *
3485 * @struct
3486 * @stability external
3487 *
3488 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheadersconfig.html
3489 */
3490 interface CustomHeadersConfigProperty {
3491 /**
3492 * The list of HTTP response headers and their values.
3493 *
3494 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheadersconfig.html#cfn-cloudfront-responseheaderspolicy-customheadersconfig-items
3495 */
3496 readonly items: Array<CfnResponseHeadersPolicy.CustomHeaderProperty | cdk.IResolvable> | cdk.IResolvable;
3497 }
3498}
3499export declare namespace CfnResponseHeadersPolicy {
3500 /**
3501 * Determines whether CloudFront includes the `X-Frame-Options` HTTP response header and the header's value.
3502 *
3503 * 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.
3504 *
3505 * @struct
3506 * @stability external
3507 *
3508 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-frameoptions.html
3509 */
3510 interface FrameOptionsProperty {
3511 /**
3512 * The value of the `X-Frame-Options` HTTP response header. Valid values are `DENY` and `SAMEORIGIN` .
3513 *
3514 * 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.
3515 *
3516 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-frameoptions.html#cfn-cloudfront-responseheaderspolicy-frameoptions-frameoption
3517 */
3518 readonly frameOption: string;
3519 /**
3520 * 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.
3521 *
3522 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-frameoptions.html#cfn-cloudfront-responseheaderspolicy-frameoptions-override
3523 */
3524 readonly override: boolean | cdk.IResolvable;
3525 }
3526}
3527export declare namespace CfnResponseHeadersPolicy {
3528 /**
3529 * Determines whether CloudFront includes the `Referrer-Policy` HTTP response header and the header's value.
3530 *
3531 * 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.
3532 *
3533 * @struct
3534 * @stability external
3535 *
3536 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-referrerpolicy.html
3537 */
3538 interface ReferrerPolicyProperty {
3539 /**
3540 * 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.
3541 *
3542 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-referrerpolicy.html#cfn-cloudfront-responseheaderspolicy-referrerpolicy-override
3543 */
3544 readonly override: boolean | cdk.IResolvable;
3545 /**
3546 * The value of the `Referrer-Policy` HTTP response header. Valid values are:
3547 *
3548 * - `no-referrer`
3549 * - `no-referrer-when-downgrade`
3550 * - `origin`
3551 * - `origin-when-cross-origin`
3552 * - `same-origin`
3553 * - `strict-origin`
3554 * - `strict-origin-when-cross-origin`
3555 * - `unsafe-url`
3556 *
3557 * 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.
3558 *
3559 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-referrerpolicy.html#cfn-cloudfront-responseheaderspolicy-referrerpolicy-referrerpolicy
3560 */
3561 readonly referrerPolicy: string;
3562 }
3563}
3564export declare namespace CfnResponseHeadersPolicy {
3565 /**
3566 * The name of an HTTP header that CloudFront removes from HTTP responses to requests that match the cache behavior that this response headers policy is attached to.
3567 *
3568 * @struct
3569 * @stability external
3570 *
3571 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-removeheader.html
3572 */
3573 interface RemoveHeaderProperty {
3574 /**
3575 * The HTTP header name.
3576 *
3577 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-removeheader.html#cfn-cloudfront-responseheaderspolicy-removeheader-header
3578 */
3579 readonly header: string;
3580 }
3581}
3582export declare namespace CfnResponseHeadersPolicy {
3583 /**
3584 * A list of HTTP header names that CloudFront removes from HTTP responses to requests that match the cache behavior that this response headers policy is attached to.
3585 *
3586 * @struct
3587 * @stability external
3588 *
3589 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-removeheadersconfig.html
3590 */
3591 interface RemoveHeadersConfigProperty {
3592 /**
3593 * The list of HTTP header names.
3594 *
3595 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-removeheadersconfig.html#cfn-cloudfront-responseheaderspolicy-removeheadersconfig-items
3596 */
3597 readonly items: Array<CfnResponseHeadersPolicy.RemoveHeaderProperty | cdk.IResolvable> | cdk.IResolvable;
3598 }
3599}
3600export declare namespace CfnResponseHeadersPolicy {
3601 /**
3602 * A response headers policy configuration.
3603 *
3604 * A response headers policy configuration contains metadata about the response headers policy, and configurations for sets of HTTP response headers.
3605 *
3606 * @struct
3607 * @stability external
3608 *
3609 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html
3610 */
3611 interface ResponseHeadersPolicyConfigProperty {
3612 /**
3613 * A comment to describe the response headers policy.
3614 *
3615 * The comment cannot be longer than 128 characters.
3616 *
3617 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-comment
3618 */
3619 readonly comment?: string;
3620 /**
3621 * A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS).
3622 *
3623 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-corsconfig
3624 */
3625 readonly corsConfig?: CfnResponseHeadersPolicy.CorsConfigProperty | cdk.IResolvable;
3626 /**
3627 * A configuration for a set of custom HTTP response headers.
3628 *
3629 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-customheadersconfig
3630 */
3631 readonly customHeadersConfig?: CfnResponseHeadersPolicy.CustomHeadersConfigProperty | cdk.IResolvable;
3632 /**
3633 * A name to identify the response headers policy.
3634 *
3635 * The name must be unique for response headers policies in this AWS account .
3636 *
3637 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-name
3638 */
3639 readonly name: string;
3640 /**
3641 * A configuration for a set of HTTP headers to remove from the HTTP response.
3642 *
3643 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-removeheadersconfig
3644 */
3645 readonly removeHeadersConfig?: CfnResponseHeadersPolicy.RemoveHeadersConfigProperty | cdk.IResolvable;
3646 /**
3647 * A configuration for a set of security-related HTTP response headers.
3648 *
3649 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-securityheadersconfig
3650 */
3651 readonly securityHeadersConfig?: CfnResponseHeadersPolicy.SecurityHeadersConfigProperty | cdk.IResolvable;
3652 /**
3653 * A configuration for enabling the `Server-Timing` header in HTTP responses sent from CloudFront.
3654 *
3655 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-servertimingheadersconfig
3656 */
3657 readonly serverTimingHeadersConfig?: CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty | cdk.IResolvable;
3658 }
3659}
3660export declare namespace CfnResponseHeadersPolicy {
3661 /**
3662 * 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.
3663 *
3664 * @struct
3665 * @stability external
3666 *
3667 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html
3668 */
3669 interface SecurityHeadersConfigProperty {
3670 /**
3671 * The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
3672 *
3673 * 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.
3674 *
3675 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-contentsecuritypolicy
3676 */
3677 readonly contentSecurityPolicy?: CfnResponseHeadersPolicy.ContentSecurityPolicyProperty | cdk.IResolvable;
3678 /**
3679 * Determines whether CloudFront includes the `X-Content-Type-Options` HTTP response header with its value set to `nosniff` .
3680 *
3681 * 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.
3682 *
3683 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-contenttypeoptions
3684 */
3685 readonly contentTypeOptions?: CfnResponseHeadersPolicy.ContentTypeOptionsProperty | cdk.IResolvable;
3686 /**
3687 * Determines whether CloudFront includes the `X-Frame-Options` HTTP response header and the header's value.
3688 *
3689 * 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.
3690 *
3691 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-frameoptions
3692 */
3693 readonly frameOptions?: CfnResponseHeadersPolicy.FrameOptionsProperty | cdk.IResolvable;
3694 /**
3695 * Determines whether CloudFront includes the `Referrer-Policy` HTTP response header and the header's value.
3696 *
3697 * 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.
3698 *
3699 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-referrerpolicy
3700 */
3701 readonly referrerPolicy?: CfnResponseHeadersPolicy.ReferrerPolicyProperty | cdk.IResolvable;
3702 /**
3703 * Determines whether CloudFront includes the `Strict-Transport-Security` HTTP response header and the header's value.
3704 *
3705 * 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.
3706 *
3707 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-stricttransportsecurity
3708 */
3709 readonly strictTransportSecurity?: CfnResponseHeadersPolicy.StrictTransportSecurityProperty | cdk.IResolvable;
3710 /**
3711 * Determines whether CloudFront includes the `X-XSS-Protection` HTTP response header and the header's value.
3712 *
3713 * 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.
3714 *
3715 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-xssprotection
3716 */
3717 readonly xssProtection?: CfnResponseHeadersPolicy.XSSProtectionProperty | cdk.IResolvable;
3718 }
3719}
3720export declare namespace CfnResponseHeadersPolicy {
3721 /**
3722 * A configuration for enabling the `Server-Timing` header in HTTP responses sent from CloudFront.
3723 *
3724 * @struct
3725 * @stability external
3726 *
3727 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-servertimingheadersconfig.html
3728 */
3729 interface ServerTimingHeadersConfigProperty {
3730 /**
3731 * A Boolean that determines whether CloudFront adds the `Server-Timing` header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy.
3732 *
3733 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-servertimingheadersconfig.html#cfn-cloudfront-responseheaderspolicy-servertimingheadersconfig-enabled
3734 */
3735 readonly enabled: boolean | cdk.IResolvable;
3736 /**
3737 * A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the `Server-Timing` header to. When you set the sampling rate to 100, CloudFront adds the `Server-Timing` header to the HTTP response for every request that matches the cache behavior that this response headers policy is attached to. When you set it to 50, CloudFront adds the header to 50% of the responses for requests that match the cache behavior. You can set the sampling rate to any number 0–100 with up to four decimal places.
3738 *
3739 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-servertimingheadersconfig.html#cfn-cloudfront-responseheaderspolicy-servertimingheadersconfig-samplingrate
3740 */
3741 readonly samplingRate?: number;
3742 }
3743}
3744export declare namespace CfnResponseHeadersPolicy {
3745 /**
3746 * Determines whether CloudFront includes the `Strict-Transport-Security` HTTP response header and the header's value.
3747 *
3748 * 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.
3749 *
3750 * @struct
3751 * @stability external
3752 *
3753 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html
3754 */
3755 interface StrictTransportSecurityProperty {
3756 /**
3757 * A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
3758 *
3759 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-accesscontrolmaxagesec
3760 */
3761 readonly accessControlMaxAgeSec: number;
3762 /**
3763 * A Boolean that determines whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
3764 *
3765 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-includesubdomains
3766 */
3767 readonly includeSubdomains?: boolean | cdk.IResolvable;
3768 /**
3769 * 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.
3770 *
3771 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-override
3772 */
3773 readonly override: boolean | cdk.IResolvable;
3774 /**
3775 * A Boolean that determines whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
3776 *
3777 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-preload
3778 */
3779 readonly preload?: boolean | cdk.IResolvable;
3780 }
3781}
3782export declare namespace CfnResponseHeadersPolicy {
3783 /**
3784 * Determines whether CloudFront includes the `X-XSS-Protection` HTTP response header and the header's value.
3785 *
3786 * 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.
3787 *
3788 * @struct
3789 * @stability external
3790 *
3791 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html
3792 */
3793 interface XSSProtectionProperty {
3794 /**
3795 * A Boolean that determines whether CloudFront includes the `mode=block` directive in the `X-XSS-Protection` header.
3796 *
3797 * 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.
3798 *
3799 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-modeblock
3800 */
3801 readonly modeBlock?: boolean | cdk.IResolvable;
3802 /**
3803 * 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.
3804 *
3805 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-override
3806 */
3807 readonly override: boolean | cdk.IResolvable;
3808 /**
3809 * 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` .
3810 *
3811 * 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.
3812 *
3813 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-protection
3814 */
3815 readonly protection: boolean | cdk.IResolvable;
3816 /**
3817 * A reporting URI, which CloudFront uses as the value of the `report` directive in the `X-XSS-Protection` header.
3818 *
3819 * You cannot specify a `ReportUri` when `ModeBlock` is `true` .
3820 *
3821 * 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.
3822 *
3823 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-reporturi
3824 */
3825 readonly reportUri?: string;
3826 }
3827}
3828/**
3829 * Properties for defining a `CfnStreamingDistribution`
3830 *
3831 * @struct
3832 * @stability external
3833 *
3834 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html
3835 */
3836export interface CfnStreamingDistributionProps {
3837 /**
3838 * The current configuration information for the RTMP distribution.
3839 *
3840 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig
3841 */
3842 readonly streamingDistributionConfig: CfnStreamingDistribution.StreamingDistributionConfigProperty | cdk.IResolvable;
3843 /**
3844 * A complex type that contains zero or more `Tag` elements.
3845 *
3846 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-tags
3847 */
3848 readonly tags: cdk.CfnTag[];
3849}
3850/**
3851 * A CloudFormation `AWS::CloudFront::StreamingDistribution`
3852 *
3853 * 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.
3854 *
3855 * @cloudformationResource AWS::CloudFront::StreamingDistribution
3856 * @stability external
3857 *
3858 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html
3859 */
3860export declare class CfnStreamingDistribution extends cdk.CfnResource implements cdk.IInspectable {
3861 /**
3862 * The CloudFormation resource type name for this resource class.
3863 */
3864 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudFront::StreamingDistribution";
3865 /**
3866 * A factory method that creates a new instance of this class from an object
3867 * containing the CloudFormation properties of this resource.
3868 * Used in the @aws-cdk/cloudformation-include module.
3869 *
3870 * @internal
3871 */
3872 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnStreamingDistribution;
3873 /**
3874 * The domain name of the resource, such as `d111111abcdef8.cloudfront.net` .
3875 * @cloudformationAttribute DomainName
3876 */
3877 readonly attrDomainName: string;
3878 /**
3879 * The current configuration information for the RTMP distribution.
3880 *
3881 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig
3882 */
3883 streamingDistributionConfig: CfnStreamingDistribution.StreamingDistributionConfigProperty | cdk.IResolvable;
3884 /**
3885 * A complex type that contains zero or more `Tag` elements.
3886 *
3887 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-tags
3888 */
3889 readonly tags: cdk.TagManager;
3890 /**
3891 * Create a new `AWS::CloudFront::StreamingDistribution`.
3892 *
3893 * @param scope - scope in which this resource is defined
3894 * @param id - scoped id of the resource
3895 * @param props - resource properties
3896 */
3897 constructor(scope: cdk.Construct, id: string, props: CfnStreamingDistributionProps);
3898 /**
3899 * Examines the CloudFormation resource and discloses attributes.
3900 *
3901 * @param inspector - tree inspector to collect and process attributes
3902 *
3903 */
3904 inspect(inspector: cdk.TreeInspector): void;
3905 protected get cfnProperties(): {
3906 [key: string]: any;
3907 };
3908 protected renderProperties(props: {
3909 [key: string]: any;
3910 }): {
3911 [key: string]: any;
3912 };
3913}
3914export declare namespace CfnStreamingDistribution {
3915 /**
3916 * A complex type that controls whether access logs are written for the streaming distribution.
3917 *
3918 * @struct
3919 * @stability external
3920 *
3921 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html
3922 */
3923 interface LoggingProperty {
3924 /**
3925 * The Amazon S3 bucket to store the access logs in, for example, `myawslogbucket.s3.amazonaws.com` .
3926 *
3927 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-bucket
3928 */
3929 readonly bucket: string;
3930 /**
3931 * 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.
3932 *
3933 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-enabled
3934 */
3935 readonly enabled: boolean | cdk.IResolvable;
3936 /**
3937 * 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.
3938 *
3939 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-prefix
3940 */
3941 readonly prefix: string;
3942 }
3943}
3944export declare namespace CfnStreamingDistribution {
3945 /**
3946 * A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
3947 *
3948 * @struct
3949 * @stability external
3950 *
3951 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html
3952 */
3953 interface S3OriginProperty {
3954 /**
3955 * The DNS name of the Amazon S3 origin.
3956 *
3957 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html#cfn-cloudfront-streamingdistribution-s3origin-domainname
3958 */
3959 readonly domainName: string;
3960 /**
3961 * 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.
3962 *
3963 * 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.
3964 *
3965 * To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty `OriginAccessIdentity` element.
3966 *
3967 * To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
3968 *
3969 * 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* .
3970 *
3971 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html#cfn-cloudfront-streamingdistribution-s3origin-originaccessidentity
3972 */
3973 readonly originAccessIdentity: string;
3974 }
3975}
3976export declare namespace CfnStreamingDistribution {
3977 /**
3978 * The RTMP distribution's configuration information.
3979 *
3980 * @struct
3981 * @stability external
3982 *
3983 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html
3984 */
3985 interface StreamingDistributionConfigProperty {
3986 /**
3987 * A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
3988 *
3989 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-aliases
3990 */
3991 readonly aliases?: string[];
3992 /**
3993 * Any comments you want to include about the streaming distribution.
3994 *
3995 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-comment
3996 */
3997 readonly comment: string;
3998 /**
3999 * Whether the streaming distribution is enabled to accept user requests for content.
4000 *
4001 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-enabled
4002 */
4003 readonly enabled: boolean | cdk.IResolvable;
4004 /**
4005 * A complex type that controls whether access logs are written for the streaming distribution.
4006 *
4007 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-logging
4008 */
4009 readonly logging?: CfnStreamingDistribution.LoggingProperty | cdk.IResolvable;
4010 /**
4011 * A complex type that contains information about price class for this streaming distribution.
4012 *
4013 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-priceclass
4014 */
4015 readonly priceClass?: string;
4016 /**
4017 * A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
4018 *
4019 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-s3origin
4020 */
4021 readonly s3Origin: CfnStreamingDistribution.S3OriginProperty | cdk.IResolvable;
4022 /**
4023 * 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* .
4024 *
4025 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-trustedsigners
4026 */
4027 readonly trustedSigners: CfnStreamingDistribution.TrustedSignersProperty | cdk.IResolvable;
4028 }
4029}
4030export declare namespace CfnStreamingDistribution {
4031 /**
4032 * A list of AWS accounts whose public keys CloudFront can use to verify the signatures of signed URLs and signed cookies.
4033 *
4034 * @struct
4035 * @stability external
4036 *
4037 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html
4038 */
4039 interface TrustedSignersProperty {
4040 /**
4041 * 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` .
4042 *
4043 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html#cfn-cloudfront-streamingdistribution-trustedsigners-awsaccountnumbers
4044 */
4045 readonly awsAccountNumbers?: string[];
4046 /**
4047 * 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` .
4048 *
4049 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html#cfn-cloudfront-streamingdistribution-trustedsigners-enabled
4050 */
4051 readonly enabled: boolean | cdk.IResolvable;
4052 }
4053}