Class: CloudFrontDistributionConfig

Types~CloudFrontDistributionConfig

new CloudFrontDistributionConfig()

Properties:
Name Type Description
Aliases String Required: No. CNAMEs (alternate domain names), if any, for the distribution.
CacheBehaviors CloudFrontDistributionConfigCacheBehavior Required: No. A list of CacheBehavior types for the distribution.
Comment String Required: No. Any comments that you want to include about the distribution.
CustomErrorResponses CloudFrontDistributionConfigCustomErrorResponse Required: No. Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
DefaultCacheBehavior CloudFrontDefaultCacheBehavior Required: Yes. The default cache behavior that is triggered if you do not specify the CacheBehavior property or if files don't match any of the values of PathPattern in the CacheBehavior property.
DefaultRootObject String Required: No. The object (such as index.html) that you want CloudFront to request from your origin when the root URL for your distribution (such as http://example.com/) is requested.NoteSpecifying a default root object avoids exposing the contents of your distribution.
Enabled Boolean Required: Yes. Controls whether the distribution is enabled to accept end user requests for content.
Logging CloudFrontLogging Required: No. Controls whether access logs are written for the distribution. To turn on access logs, specify this property.
Origins CloudFrontDistributionConfigOrigin Required: Yes. A list of origins for this CloudFront distribution. For each origin, you can specify whether it is an Amazon S3 or custom origin.
PriceClass String Required: No. The price class that corresponds with the maximum price that you want to pay for the CloudFront service. For more information, see Choosing the Price Class in the Amazon CloudFront Developer Guide.For more information about the constraints and valid values, see the PriceClass element for the DistributionConfig Complex Type data type in the Amazon CloudFront API Reference.
Restrictions CloudFrontDistributionConfigurationRestrictions Required: No. Specifies restrictions on who or how viewers can access your content.
ViewerCertificate CloudFrontDistributionConfigurationViewerCertificate Required: No. The certificate to use when viewers use HTTPS to request objects.
WebACLId String Required: No. The AWS WAF web ACL to associate with this distribution. AWS WAF is a web application firewall that enables you to monitor the HTTP and HTTPS requests that are forwarded to CloudFront and to control who can access your content. CloudFront permits or forbids requests based on conditions that you specify, such as the IP addresses from which requests originate or the values of query strings.
Source: