@awboost/cfn-resource-types 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/lib/AWS-ApiGateway-Authorizer.d.ts +1 -1
  2. package/lib/AWS-ApiGateway-Method.d.ts +2 -2
  3. package/lib/AWS-CloudFront-Distribution.d.ts +568 -2
  4. package/lib/AWS-CloudFront-Distribution.js +2 -1
  5. package/lib/AWS-Config-ConfigRule.d.ts +61 -43
  6. package/lib/AWS-Config-ConfigRule.js +4 -1
  7. package/lib/AWS-Connect-Prompt.d.ts +1 -1
  8. package/lib/AWS-ControlTower-EnabledControl.d.ts +25 -0
  9. package/lib/AWS-DynamoDB-Table.d.ts +245 -11
  10. package/lib/AWS-DynamoDB-Table.js +5 -1
  11. package/lib/AWS-EC2-ClientVpnEndpoint.d.ts +0 -8
  12. package/lib/AWS-EC2-EC2Fleet.d.ts +1 -0
  13. package/lib/AWS-EC2-EIP.d.ts +31 -19
  14. package/lib/AWS-EC2-EIP.js +4 -1
  15. package/lib/AWS-EC2-LaunchTemplate.d.ts +422 -205
  16. package/lib/AWS-EC2-LaunchTemplate.js +8 -1
  17. package/lib/AWS-EC2-SecurityGroupEgress.d.ts +34 -19
  18. package/lib/AWS-EC2-SecurityGroupEgress.js +6 -1
  19. package/lib/AWS-EC2-SpotFleet.d.ts +1 -0
  20. package/lib/AWS-EC2-Volume.d.ts +68 -20
  21. package/lib/AWS-EC2-Volume.js +9 -1
  22. package/lib/AWS-ElastiCache-ParameterGroup.d.ts +1 -0
  23. package/lib/AWS-GameLift-Fleet.d.ts +1 -1
  24. package/lib/AWS-Glue-DataCatalogEncryptionSettings.d.ts +1 -0
  25. package/lib/AWS-Glue-TableOptimizer.d.ts +2 -2
  26. package/lib/AWS-GuardDuty-Member.d.ts +3 -9
  27. package/lib/AWS-IAM-GroupPolicy.d.ts +19 -8
  28. package/lib/AWS-IAM-GroupPolicy.js +3 -1
  29. package/lib/AWS-Lambda-Function.d.ts +78 -62
  30. package/lib/AWS-Lambda-Function.js +3 -1
  31. package/lib/AWS-Lambda-Permission.d.ts +29 -19
  32. package/lib/AWS-Lambda-Permission.js +3 -1
  33. package/lib/AWS-MediaPackageV2-Channel.d.ts +32 -4
  34. package/lib/AWS-MediaPackageV2-Channel.js +2 -1
  35. package/lib/AWS-MediaPackageV2-ChannelGroup.d.ts +18 -3
  36. package/lib/AWS-MediaPackageV2-ChannelGroup.js +2 -1
  37. package/lib/AWS-MediaPackageV2-ChannelPolicy.d.ts +6 -4
  38. package/lib/AWS-MediaPackageV2-ChannelPolicy.js +2 -1
  39. package/lib/AWS-MediaPackageV2-OriginEndpoint.d.ts +4 -4
  40. package/lib/AWS-MediaPackageV2-OriginEndpointPolicy.d.ts +7 -5
  41. package/lib/AWS-MediaPackageV2-OriginEndpointPolicy.js +2 -1
  42. package/lib/AWS-RDS-DBCluster.d.ts +0 -4
  43. package/lib/AWS-RDS-DBInstance.d.ts +491 -181
  44. package/lib/AWS-RDS-DBInstance.js +5 -1
  45. package/lib/AWS-RDS-DBParameterGroup.d.ts +41 -15
  46. package/lib/AWS-RDS-DBParameterGroup.js +5 -1
  47. package/lib/AWS-RDS-DBSubnetGroup.d.ts +20 -8
  48. package/lib/AWS-RDS-DBSubnetGroup.js +2 -1
  49. package/lib/AWS-SageMaker-FeatureGroup.d.ts +25 -0
  50. package/lib/AWS-SecretsManager-Secret.d.ts +51 -32
  51. package/lib/AWS-SecretsManager-Secret.js +6 -1
  52. package/package.json +1 -1
@@ -1,11 +1,18 @@
1
1
  import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
2
2
  import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
3
3
  /**
4
- * Resource Type definition for AWS::CloudFront::Distribution
4
+ * Resource type definition for `AWS::CloudFront::Distribution`.
5
+ * A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
5
6
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html}
6
7
  */
7
8
  export type CloudFrontDistributionProperties = {
9
+ /**
10
+ * The distribution's configuration.
11
+ */
8
12
  DistributionConfig: DistributionConfig;
13
+ /**
14
+ * A complex type that contains zero or more ``Tag`` elements.
15
+ */
9
16
  Tags?: Tag[];
10
17
  };
11
18
  /**
@@ -18,145 +25,524 @@ export type CloudFrontDistributionAttributes = {
18
25
  };
19
26
  /**
20
27
  * Type definition for `AWS::CloudFront::Distribution.CacheBehavior`.
28
+ * A complex type that describes how CloudFront processes requests.
29
+ 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.
30
+ 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*.
31
+ 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.
32
+ To delete all cache behaviors in an exist
21
33
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html}
22
34
  */
23
35
  export type CacheBehavior = {
36
+ /**
37
+ * 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:
38
+ + CloudFront forwards only ``GET`` and ``HEAD`` requests.
39
+ + CloudFront forwards only ``GET``, ``HEAD``, and ``OPTIONS`` requests.
40
+ + CloudFront forwards ``GET, HEAD, OPTIONS, PUT, PATCH, POST``, and ``DELETE`` requests.
41
+
42
+ 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.
43
+ */
24
44
  AllowedMethods?: string[];
45
+ /**
46
+ * 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*.
47
+ A ``CacheBehavior`` must include either a ``CachePolicyId`` or ``ForwardedValues``. We recommend that you use a ``CachePolicyId``.
48
+ */
25
49
  CachePolicyId?: string;
50
+ /**
51
+ * A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:
52
+ + CloudFront caches responses to ``GET`` and ``HEAD`` requests.
53
+ + CloudFront caches responses to ``GET``, ``HEAD``, and ``OPTIONS`` requests.
54
+
55
+ 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.
56
+ */
26
57
  CachedMethods?: string[];
58
+ /**
59
+ * 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*.
60
+ */
27
61
  Compress?: boolean;
62
+ /**
63
+ * 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*.
64
+ 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
65
+ */
28
66
  DefaultTTL?: number;
67
+ /**
68
+ * 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.
69
+ */
29
70
  FieldLevelEncryptionId?: string;
71
+ /**
72
+ * 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*.
73
+ 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*.
74
+ 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-r
75
+ */
30
76
  ForwardedValues?: ForwardedValues;
77
+ /**
78
+ * 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.
79
+ */
31
80
  FunctionAssociations?: FunctionAssociation[];
81
+ /**
82
+ * A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.
83
+ */
32
84
  LambdaFunctionAssociations?: LambdaFunctionAssociation[];
85
+ /**
86
+ * 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*.
87
+ 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.
88
+ */
33
89
  MaxTTL?: number;
90
+ /**
91
+ * 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*.
92
+ 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*.
93
+ You must specify ``0`` for ``MinTTL`` if you configure CloudFront to forward all headers to your origin (under ``He
94
+ */
34
95
  MinTTL?: number;
96
+ /**
97
+ * 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*.
98
+ */
35
99
  OriginRequestPolicyId?: string;
100
+ /**
101
+ * 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.
102
+ 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 ``/``.
103
+ 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.
104
+ 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*.
105
+ */
36
106
  PathPattern: string;
107
+ /**
108
+ * 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*.
109
+ */
37
110
  RealtimeLogConfigArn?: string;
111
+ /**
112
+ * The identifier for a response headers policy.
113
+ */
38
114
  ResponseHeadersPolicyId?: string;
115
+ /**
116
+ * 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``.
117
+ */
39
118
  SmoothStreaming?: boolean;
119
+ /**
120
+ * The value of ``ID`` for the origin that you want CloudFront to route requests to when they match this cache behavior.
121
+ */
40
122
  TargetOriginId: string;
123
+ /**
124
+ * A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
125
+ 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*.
126
+ */
41
127
  TrustedKeyGroups?: string[];
128
+ /**
129
+ * We recommend using ``TrustedKeyGroups`` instead of ``TrustedSigners``.
130
+ A list of AWS-account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
131
+ 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*.
132
+ */
42
133
  TrustedSigners?: string[];
134
+ /**
135
+ * 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:
136
+ + ``allow-all``: Viewers can use HTTP or HTTPS.
137
+ + ``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.
138
+ + ``https-only``: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
139
+
140
+ 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*.
141
+ 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
142
+ */
43
143
  ViewerProtocolPolicy: string;
44
144
  };
45
145
  /**
46
146
  * Type definition for `AWS::CloudFront::Distribution.Cookies`.
147
+ * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
148
+ 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*.
149
+ 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*.
150
+ 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 C
47
151
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html}
48
152
  */
49
153
  export type Cookies = {
154
+ /**
155
+ * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
156
+ 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*.
157
+ 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*.
158
+ 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.
159
+ Amazon S3 doesn't process cookies. When the cache behavior is forw
160
+ */
50
161
  Forward: string;
162
+ /**
163
+ * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
164
+ 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*.
165
+ 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*.
166
+ 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 se
167
+ */
51
168
  WhitelistedNames?: string[];
52
169
  };
53
170
  /**
54
171
  * Type definition for `AWS::CloudFront::Distribution.CustomErrorResponse`.
172
+ * A complex type that controls:
173
+ + Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
174
+ + How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
175
+
176
+ 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*.
55
177
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html}
56
178
  */
57
179
  export type CustomErrorResponse = {
180
+ /**
181
+ * 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.
182
+ 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*.
183
+ */
58
184
  ErrorCachingMinTTL?: number;
185
+ /**
186
+ * The HTTP status code for which you want to specify a custom error page and/or a caching duration.
187
+ */
59
188
  ErrorCode: number;
189
+ /**
190
+ * 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:
191
+ + 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.
192
+ + 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.
193
+ + You might want to return a ``200`` status code (OK) and static website so your customers don't know that your website is down.
194
+
195
+ If you specify a value for ``ResponseCode``, you must also specify a value for ``ResponsePagePath``.
196
+ */
60
197
  ResponseCode?: number;
198
+ /**
199
+ * 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:
200
+ + 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/*``.
201
+ + The value of ``TargetOriginId`` specifies the value of the ``ID`` element for the origin that contains your custom error pages.
202
+
203
+ If you specify a value for ``ResponsePagePath``, you must also specify a value for ``ResponseCode``.
204
+ We recommend
205
+ */
61
206
  ResponsePagePath?: string;
62
207
  };
63
208
  /**
64
209
  * Type definition for `AWS::CloudFront::Distribution.CustomOriginConfig`.
210
+ * 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.
65
211
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html}
66
212
  */
67
213
  export type CustomOriginConfig = {
214
+ /**
215
+ * The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.
216
+ */
68
217
  HTTPPort?: number;
218
+ /**
219
+ * The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.
220
+ */
69
221
  HTTPSPort?: number;
222
+ /**
223
+ * 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.
224
+ 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*.
225
+ */
70
226
  OriginKeepaliveTimeout?: number;
227
+ /**
228
+ * Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:
229
+ + ``http-only`` – CloudFront always uses HTTP to connect to the origin.
230
+ + ``match-viewer`` – CloudFront connects to the origin using the same protocol that the viewer used to connect to CloudFront.
231
+ + ``https-only`` – CloudFront always uses HTTPS to connect to the origin.
232
+ */
71
233
  OriginProtocolPolicy: string;
234
+ /**
235
+ * 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.
236
+ 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*.
237
+ */
72
238
  OriginReadTimeout?: number;
239
+ /**
240
+ * 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``.
241
+ 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*.
242
+ */
73
243
  OriginSSLProtocols?: string[];
74
244
  };
75
245
  /**
76
246
  * Type definition for `AWS::CloudFront::Distribution.DefaultCacheBehavior`.
247
+ * 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.
77
248
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html}
78
249
  */
79
250
  export type DefaultCacheBehavior = {
251
+ /**
252
+ * 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:
253
+ + CloudFront forwards only ``GET`` and ``HEAD`` requests.
254
+ + CloudFront forwards only ``GET``, ``HEAD``, and ``OPTIONS`` requests.
255
+ + CloudFront forwards ``GET, HEAD, OPTIONS, PUT, PATCH, POST``, and ``DELETE`` requests.
256
+
257
+ 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.
258
+ */
80
259
  AllowedMethods?: string[];
260
+ /**
261
+ * 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*.
262
+ A ``DefaultCacheBehavior`` must include either a ``CachePolicyId`` or ``ForwardedValues``. We recommend that you use a ``CachePolicyId``.
263
+ */
81
264
  CachePolicyId?: string;
265
+ /**
266
+ * A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:
267
+ + CloudFront caches responses to ``GET`` and ``HEAD`` requests.
268
+ + CloudFront caches responses to ``GET``, ``HEAD``, and ``OPTIONS`` requests.
269
+
270
+ 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.
271
+ */
82
272
  CachedMethods?: string[];
273
+ /**
274
+ * 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*.
275
+ */
83
276
  Compress?: boolean;
277
+ /**
278
+ * 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*.
279
+ 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
280
+ */
84
281
  DefaultTTL?: number;
282
+ /**
283
+ * 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.
284
+ */
85
285
  FieldLevelEncryptionId?: string;
286
+ /**
287
+ * 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*.
288
+ 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*.
289
+ 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-r
290
+ */
86
291
  ForwardedValues?: ForwardedValues;
292
+ /**
293
+ * 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.
294
+ */
87
295
  FunctionAssociations?: FunctionAssociation[];
296
+ /**
297
+ * A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.
298
+ */
88
299
  LambdaFunctionAssociations?: LambdaFunctionAssociation[];
300
+ /**
301
+ * 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*.
302
+ 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.
303
+ */
89
304
  MaxTTL?: number;
305
+ /**
306
+ * 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*.
307
+ 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*.
308
+ You must specify ``0`` for ``MinTTL`` if you configure CloudFront to forward all headers to your origin (under ``He
309
+ */
90
310
  MinTTL?: number;
311
+ /**
312
+ * 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*.
313
+ */
91
314
  OriginRequestPolicyId?: string;
315
+ /**
316
+ * 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*.
317
+ */
92
318
  RealtimeLogConfigArn?: string;
319
+ /**
320
+ * The identifier for a response headers policy.
321
+ */
93
322
  ResponseHeadersPolicyId?: string;
323
+ /**
324
+ * 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``.
325
+ */
94
326
  SmoothStreaming?: boolean;
327
+ /**
328
+ * The value of ``ID`` for the origin that you want CloudFront to route requests to when they use the default cache behavior.
329
+ */
95
330
  TargetOriginId: string;
331
+ /**
332
+ * A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
333
+ 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*.
334
+ */
96
335
  TrustedKeyGroups?: string[];
336
+ /**
337
+ * We recommend using ``TrustedKeyGroups`` instead of ``TrustedSigners``.
338
+ A list of AWS-account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
339
+ 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*.
340
+ */
97
341
  TrustedSigners?: string[];
342
+ /**
343
+ * 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:
344
+ + ``allow-all``: Viewers can use HTTP or HTTPS.
345
+ + ``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.
346
+ + ``https-only``: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
347
+
348
+ 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*.
349
+ 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
350
+ */
98
351
  ViewerProtocolPolicy: string;
99
352
  };
100
353
  /**
101
354
  * Type definition for `AWS::CloudFront::Distribution.DistributionConfig`.
355
+ * A distribution configuration.
102
356
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html}
103
357
  */
104
358
  export type DistributionConfig = {
359
+ /**
360
+ * A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
361
+ */
105
362
  Aliases?: string[];
106
363
  CNAMEs?: string[];
364
+ /**
365
+ * A complex type that contains zero or more ``CacheBehavior`` elements.
366
+ */
107
367
  CacheBehaviors?: CacheBehavior[];
368
+ /**
369
+ * A comment to describe the distribution. The comment cannot be longer than 128 characters.
370
+ */
108
371
  Comment?: string;
372
+ /**
373
+ * The identifier of a continuous deployment policy. For more information, see ``CreateContinuousDeploymentPolicy``.
374
+ */
109
375
  ContinuousDeploymentPolicyId?: string;
376
+ /**
377
+ * A complex type that controls the following:
378
+ + Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
379
+ + How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
380
+
381
+ 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*.
382
+ */
110
383
  CustomErrorResponses?: CustomErrorResponse[];
111
384
  CustomOrigin?: LegacyCustomOrigin;
385
+ /**
386
+ * 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.
387
+ */
112
388
  DefaultCacheBehavior: DefaultCacheBehavior;
389
+ /**
390
+ * 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.
391
+ Specify only the object name, for example, ``index.html``. Don't add a ``/`` before the object name.
392
+ If you don't want to specify a default root object when you create a distribution, include an empty ``DefaultRootObject`` element.
393
+ To delete the default root object from an existing distribution, update the distribution configuration and include an empty ``DefaultRootObject`` element.
394
+ To replace the default root object, update the distribution configuration and specify the new object.
395
+ For more information about the default root object, see [Creating a Default Root Object](https://docs.aws.amazon.com/AmazonCloudFront/latest/D
396
+ */
113
397
  DefaultRootObject?: string;
398
+ /**
399
+ * From this field, you can enable or disable the selected distribution.
400
+ */
114
401
  Enabled: boolean;
402
+ /**
403
+ * (Optional) Specify the maximum HTTP version(s) that you want viewers to use to communicate with CF. The default value for new distributions is ``http1.1``.
404
+ For viewers and CF to use HTTP/2, viewers must support TLSv1.2 or later, and must support Server Name Indication (SNI).
405
+ For viewers and CF to use HTTP/3, viewers must support TLSv1.3 and Server Name Indication (SNI). CF 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).
406
+ */
115
407
  HttpVersion?: string;
408
+ /**
409
+ * 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.
410
+ 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/Devel
411
+ */
116
412
  IPV6Enabled?: boolean;
413
+ /**
414
+ * A complex type that controls whether access logs are written for the distribution.
415
+ For more information about logging, see [Access Logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html) in the *Amazon CloudFront Developer Guide*.
416
+ */
117
417
  Logging?: Logging;
418
+ /**
419
+ * A complex type that contains information about origin groups for this distribution.
420
+ */
118
421
  OriginGroups?: OriginGroups;
422
+ /**
423
+ * A complex type that contains information about origins for this distribution.
424
+ */
119
425
  Origins?: Origin[];
426
+ /**
427
+ * 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.
428
+ 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.
429
+ 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/).
430
+ */
120
431
  PriceClass?: string;
432
+ /**
433
+ * A complex type that identifies ways in which you want to restrict distribution of your content.
434
+ */
121
435
  Restrictions?: Restrictions;
122
436
  S3Origin?: LegacyS3Origin;
437
+ /**
438
+ * 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.
439
+ */
123
440
  Staging?: boolean;
441
+ /**
442
+ * A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.
443
+ */
124
444
  ViewerCertificate?: ViewerCertificate;
445
+ /**
446
+ * A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of 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 WAF Classic, use the ACL ID, for example ``473e64fd-f30b-4765-81a0-62ad96dd167a``.
447
+ 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 WAF, see the [Developer Guide](https://docs.aws.amazon.com/waf/latest
448
+ */
125
449
  WebACLId?: string;
126
450
  };
127
451
  /**
128
452
  * Type definition for `AWS::CloudFront::Distribution.ForwardedValues`.
453
+ * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
454
+ 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*.
455
+ 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*.
456
+ A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.
129
457
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html}
130
458
  */
131
459
  export type ForwardedValues = {
460
+ /**
461
+ * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
462
+ 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*.
463
+ 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*.
464
+ 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 C
465
+ */
132
466
  Cookies?: Cookies;
467
+ /**
468
+ * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
469
+ 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*.
470
+ 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*.
471
+ 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 versio
472
+ */
133
473
  Headers?: string[];
474
+ /**
475
+ * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
476
+ 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*.
477
+ 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*.
478
+ 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
479
+ */
134
480
  QueryString: boolean;
481
+ /**
482
+ * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
483
+ 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*.
484
+ 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*.
485
+ A complex type that contains information about the query string parameters that you want CloudFront to use for caching for this cache behavior.
486
+ */
135
487
  QueryStringCacheKeys?: string[];
136
488
  };
137
489
  /**
138
490
  * Type definition for `AWS::CloudFront::Distribution.FunctionAssociation`.
491
+ * A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
139
492
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html}
140
493
  */
141
494
  export type FunctionAssociation = {
495
+ /**
496
+ * 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.
497
+ */
142
498
  EventType?: string;
499
+ /**
500
+ * The Amazon Resource Name (ARN) of the function.
501
+ */
143
502
  FunctionARN?: string;
144
503
  };
145
504
  /**
146
505
  * Type definition for `AWS::CloudFront::Distribution.GeoRestriction`.
506
+ * A complex type that controls the countries in which your content is distributed. CF 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.
147
507
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html}
148
508
  */
149
509
  export type GeoRestriction = {
510
+ /**
511
+ * 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``).
512
+ 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.
513
+ 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.
514
+ */
150
515
  Locations?: string[];
516
+ /**
517
+ * The method that you want to use to restrict distribution of your content by country:
518
+ + ``none``: No geo restriction is enabled, meaning access to content is not restricted by client geo location.
519
+ + ``blacklist``: The ``Location`` elements specify the countries in which you don't want CloudFront to distribute your content.
520
+ + ``whitelist``: The ``Location`` elements specify the countries in which you want CloudFront to distribute your content.
521
+ */
151
522
  RestrictionType: string;
152
523
  };
153
524
  /**
154
525
  * Type definition for `AWS::CloudFront::Distribution.LambdaFunctionAssociation`.
526
+ * A complex type that contains a Lambda@Edge function association.
155
527
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html}
156
528
  */
157
529
  export type LambdaFunctionAssociation = {
530
+ /**
531
+ * Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values:
532
+ + ``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.
533
+ + ``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.
534
+ + ``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.
535
+ + ``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.
536
+ If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.
537
+ */
158
538
  EventType?: string;
539
+ /**
540
+ * 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.
541
+ */
159
542
  IncludeBody?: boolean;
543
+ /**
544
+ * The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an alias or $LATEST.
545
+ */
160
546
  LambdaFunctionARN?: string;
161
547
  };
162
548
  /**
@@ -180,127 +566,307 @@ export type LegacyS3Origin = {
180
566
  };
181
567
  /**
182
568
  * Type definition for `AWS::CloudFront::Distribution.Logging`.
569
+ * A complex type that controls whether access logs are written for the distribution.
183
570
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html}
184
571
  */
185
572
  export type Logging = {
573
+ /**
574
+ * The Amazon S3 bucket to store the access logs in, for example, ``myawslogbucket.s3.amazonaws.com``.
575
+ */
186
576
  Bucket: string;
577
+ /**
578
+ * 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``.
579
+ */
187
580
  IncludeCookies?: boolean;
581
+ /**
582
+ * 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.
583
+ */
188
584
  Prefix?: string;
189
585
  };
190
586
  /**
191
587
  * Type definition for `AWS::CloudFront::Distribution.Origin`.
588
+ * An origin.
589
+ An origin is the location where content is stored, and from which CloudFront gets content to serve to viewers. To specify an origin:
590
+ + Use ``S3OriginConfig`` to specify an Amazon S3 bucket that is not configured with static website hosting.
591
+ + Use ``CustomOriginConfig`` to specify all other kinds of origins, including:
592
+ + An Amazon S3 bucket that is configured with static website hosting
593
+ + An Elastic Load Balancing load balancer
594
+ + An EMPlong endpoint
595
+ + An EMSlong container
596
+ + Any other HTTP server, running on an Amazon EC2 instance or any other kind of host
597
+
598
+
599
+ 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).
192
600
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html}
193
601
  */
194
602
  export type Origin = {
603
+ /**
604
+ * 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.
605
+ 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).
606
+ 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*.
607
+ */
195
608
  ConnectionAttempts?: number;
609
+ /**
610
+ * 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.
611
+ 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*.
612
+ */
196
613
  ConnectionTimeout?: number;
614
+ /**
615
+ * 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.
616
+ */
197
617
  CustomOriginConfig?: CustomOriginConfig;
618
+ /**
619
+ * The domain name for the origin.
620
+ 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*.
621
+ */
198
622
  DomainName: string;
623
+ /**
624
+ * A unique identifier for the origin. This value must be unique within the distribution.
625
+ Use this value to specify the ``TargetOriginId`` in a ``CacheBehavior`` or ``DefaultCacheBehavior``.
626
+ */
199
627
  Id: string;
628
+ /**
629
+ * The unique identifier of an origin access control for this origin.
630
+ 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*.
631
+ */
200
632
  OriginAccessControlId?: string;
633
+ /**
634
+ * A list of HTTP header names and values that CloudFront adds to the requests that it sends to the origin.
635
+ 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*.
636
+ */
201
637
  OriginCustomHeaders?: OriginCustomHeader[];
638
+ /**
639
+ * An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
640
+ 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*.
641
+ */
202
642
  OriginPath?: string;
643
+ /**
644
+ * CloudFront Origin Shield. Using Origin Shield can help reduce the load on your origin.
645
+ For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the *Amazon CloudFront Developer Guide*.
646
+ */
203
647
  OriginShield?: OriginShield;
648
+ /**
649
+ * 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.
650
+ */
204
651
  S3OriginConfig?: S3OriginConfig;
205
652
  };
206
653
  /**
207
654
  * Type definition for `AWS::CloudFront::Distribution.OriginCustomHeader`.
655
+ * A complex type that contains ``HeaderName`` and ``HeaderValue`` elements, if any, for this distribution.
208
656
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html}
209
657
  */
210
658
  export type OriginCustomHeader = {
659
+ /**
660
+ * 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*.
661
+ */
211
662
  HeaderName: string;
663
+ /**
664
+ * The value for the header that you specified in the ``HeaderName`` field.
665
+ */
212
666
  HeaderValue: string;
213
667
  };
214
668
  /**
215
669
  * Type definition for `AWS::CloudFront::Distribution.OriginGroup`.
670
+ * 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 specify 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.
216
671
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html}
217
672
  */
218
673
  export type OriginGroup = {
674
+ /**
675
+ * A complex type that contains information about the failover criteria for an origin group.
676
+ */
219
677
  FailoverCriteria: OriginGroupFailoverCriteria;
678
+ /**
679
+ * The origin group's ID.
680
+ */
220
681
  Id: string;
682
+ /**
683
+ * A complex type that contains information about the origins in an origin group.
684
+ */
221
685
  Members: OriginGroupMembers;
222
686
  };
223
687
  /**
224
688
  * Type definition for `AWS::CloudFront::Distribution.OriginGroupFailoverCriteria`.
689
+ * 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.
225
690
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupfailovercriteria.html}
226
691
  */
227
692
  export type OriginGroupFailoverCriteria = {
693
+ /**
694
+ * The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.
695
+ */
228
696
  StatusCodes: StatusCodes;
229
697
  };
230
698
  /**
231
699
  * Type definition for `AWS::CloudFront::Distribution.OriginGroupMember`.
700
+ * An origin in an origin group.
232
701
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmember.html}
233
702
  */
234
703
  export type OriginGroupMember = {
704
+ /**
705
+ * The ID for an origin in an origin group.
706
+ */
235
707
  OriginId: string;
236
708
  };
237
709
  /**
238
710
  * Type definition for `AWS::CloudFront::Distribution.OriginGroupMembers`.
711
+ * A complex data type for the origins included in an origin group.
239
712
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html}
240
713
  */
241
714
  export type OriginGroupMembers = {
715
+ /**
716
+ * Items (origins) in an origin group.
717
+ */
242
718
  Items: OriginGroupMember[];
719
+ /**
720
+ * The number of origins in an origin group.
721
+ */
243
722
  Quantity: number;
244
723
  };
245
724
  /**
246
725
  * Type definition for `AWS::CloudFront::Distribution.OriginGroups`.
726
+ * A complex data type for the origin groups specified for a distribution.
247
727
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html}
248
728
  */
249
729
  export type OriginGroups = {
730
+ /**
731
+ * The items (origin groups) in a distribution.
732
+ */
250
733
  Items?: OriginGroup[];
734
+ /**
735
+ * The number of origin groups.
736
+ */
251
737
  Quantity: number;
252
738
  };
253
739
  /**
254
740
  * Type definition for `AWS::CloudFront::Distribution.OriginShield`.
741
+ * CloudFront Origin Shield.
742
+ 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*.
255
743
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html}
256
744
  */
257
745
  export type OriginShield = {
746
+ /**
747
+ * A flag that specifies whether Origin Shield is enabled.
748
+ 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.
749
+ */
258
750
  Enabled?: boolean;
751
+ /**
752
+ * The AWS-Region for Origin Shield.
753
+ 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``.
754
+ 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 for Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html#choose-origin-shield-region) in the *Amazon CloudFront Developer Guide*.
755
+ */
259
756
  OriginShieldRegion?: string;
260
757
  };
261
758
  /**
262
759
  * Type definition for `AWS::CloudFront::Distribution.Restrictions`.
760
+ * A complex type that identifies ways in which you want to restrict distribution of your content.
263
761
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html}
264
762
  */
265
763
  export type Restrictions = {
764
+ /**
765
+ * A complex type that controls the countries in which your content is distributed. CF 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.
766
+ */
266
767
  GeoRestriction: GeoRestriction;
267
768
  };
268
769
  /**
269
770
  * Type definition for `AWS::CloudFront::Distribution.S3OriginConfig`.
771
+ * 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.
270
772
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html}
271
773
  */
272
774
  export type S3OriginConfig = {
775
+ /**
776
+ * 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:
777
+ origin-access-identity/cloudfront/*ID-of-origin-access-identity*
778
+ where ``ID-of-origin-access-identity`` is the value that CloudFront returned in the ``ID`` element when you created the origin access identity.
779
+ 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.
780
+ To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty ``OriginAccessIdentity`` element.
781
+ To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
782
+ For more information about the origin access identity, see [Serving Private Content through CloudFront](https://d
783
+ */
273
784
  OriginAccessIdentity?: string;
274
785
  };
275
786
  /**
276
787
  * Type definition for `AWS::CloudFront::Distribution.StatusCodes`.
788
+ * 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.
277
789
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html}
278
790
  */
279
791
  export type StatusCodes = {
792
+ /**
793
+ * The items (status codes) for an origin group.
794
+ */
280
795
  Items: number[];
796
+ /**
797
+ * The number of status codes.
798
+ */
281
799
  Quantity: number;
282
800
  };
283
801
  /**
284
802
  * Type definition for `AWS::CloudFront::Distribution.Tag`.
803
+ * A complex type that contains ``Tag`` key and ``Tag`` value.
285
804
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-tag.html}
286
805
  */
287
806
  export type Tag = {
807
+ /**
808
+ * A string that contains ``Tag`` key.
809
+ The string length should be between 1 and 128 characters. Valid characters include ``a-z``, ``A-Z``, ``0-9``, space, and the special characters ``_ - . : / = + @``.
810
+ */
288
811
  Key: string;
812
+ /**
813
+ * A string that contains an optional ``Tag`` value.
814
+ The string length should be between 0 and 256 characters. Valid characters include ``a-z``, ``A-Z``, ``0-9``, space, and the special characters ``_ - . : / = + @``.
815
+ */
289
816
  Value: string;
290
817
  };
291
818
  /**
292
819
  * Type definition for `AWS::CloudFront::Distribution.ViewerCertificate`.
820
+ * A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.
821
+ 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.
822
+ If the distribution uses ``Aliases`` (alternate domain names or CNAMEs), use the fields in this type to specify the following settings:
823
+ + 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.
824
+ + 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 n
293
825
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html}
294
826
  */
295
827
  export type ViewerCertificate = {
828
+ /**
829
+ * In CloudFormation, this field name is ``AcmCertificateArn``. Note the different capitalization.
830
+ If the distribution uses ``Aliases`` (alternate domain names or CNAMEs) and the SSL/TLS certificate is stored in [(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``).
831
+ 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.)
832
+ */
296
833
  AcmCertificateArn?: string;
834
+ /**
835
+ * If the distribution uses the CloudFront domain name such as ``d111111abcdef8.cloudfront.net``, set this field to ``true``.
836
+ If the distribution uses ``Aliases`` (alternate domain names or CNAMEs), omit this field and specify values for the following fields:
837
+ + ``AcmCertificateArn`` or ``IamCertificateId`` (specify a value for one, not both)
838
+ + ``MinimumProtocolVersion``
839
+ + ``SslSupportMethod``
840
+ */
297
841
  CloudFrontDefaultCertificate?: boolean;
842
+ /**
843
+ * In CloudFormation, this field name is ``IamCertificateId``. Note the different capitalization.
844
+ If the distribution uses ``Aliases`` (alternate domain names or CNAMEs) and the SSL/TLS certificate is stored in [(IAM)](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html), provide the ID of the IAM certificate.
845
+ 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.)
846
+ */
298
847
  IamCertificateId?: string;
848
+ /**
849
+ * 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:
850
+ + The minimum SSL/TLS protocol that CloudFront can use to communicate with viewers.
851
+ + The ciphers that CloudFront can use to encrypt the content that it returns to viewers.
852
+
853
+ 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*.
854
+ On the CloudFront console, this setting is called *Security Policy*.
855
+ When you're using SNI only (you set ``SSLSupportMethod`` to ``sni-onl
856
+ */
299
857
  MinimumProtocolVersion?: string;
858
+ /**
859
+ * In CloudFormation, this field name is ``SslSupportMethod``. Note the different capitalization.
860
+ If the distribution uses ``Aliases`` (alternate domain names or CNAMEs), specify which viewers the distribution accepts HTTPS connections from.
861
+ + ``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.
862
+ + ``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.
863
+ + ``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 [Center](https://docs.aws.amazon.com/support/home).
864
+ */
300
865
  SslSupportMethod?: string;
301
866
  };
302
867
  /**
303
- * Resource Type definition for AWS::CloudFront::Distribution
868
+ * Resource type definition for `AWS::CloudFront::Distribution`.
869
+ * A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
304
870
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html}
305
871
  */
306
872
  export declare class CloudFrontDistribution extends $Resource<"AWS::CloudFront::Distribution", CloudFrontDistributionProperties, CloudFrontDistributionAttributes> {