DistributionConfig

A distribution configuration.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

Link copied to clipboard

A complex type that contains zero or more CacheBehavior elements.

Link copied to clipboard

A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.

Link copied to clipboard

A comment to describe the distribution. The comment cannot be longer than 128 characters.

Link copied to clipboard

The identifier of a continuous deployment policy. For more information, see CreateContinuousDeploymentPolicy.

Link copied to clipboard

A complex type that controls the following:

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

From this field, you can enable or disable the selected distribution.

Link copied to clipboard

(Optional) Specify the maximum HTTP version(s) that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 automatically use an earlier HTTP version.

Link copied to clipboard

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.

Link copied to clipboard

A complex type that controls whether access logs are written for the distribution.

Link copied to clipboard

A complex type that contains information about origin groups for this distribution.

Link copied to clipboard

A complex type that contains information about origins for this distribution.

Link copied to clipboard

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.

Link copied to clipboard

A complex type that identifies ways in which you want to restrict distribution of your content.

Link copied to clipboard

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.

Link copied to clipboard

A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.

Link copied to clipboard

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.

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String