DistributionConfig class
A distribution configuration.
Constructors
- DistributionConfig({@_s.required String callerReference, @_s.required String comment, @_s.required DefaultCacheBehavior defaultCacheBehavior, @_s.required bool enabled, @_s.required Origins origins, Aliases aliases, CacheBehaviors cacheBehaviors, CustomErrorResponses customErrorResponses, String defaultRootObject, HttpVersion httpVersion, bool isIPV6Enabled, LoggingConfig logging, PriceClass priceClass, Restrictions restrictions, ViewerCertificate viewerCertificate, String webACLId})
- DistributionConfig.fromXml(XmlElement elem)
-
factory
Properties
- aliases → Aliases
-
A complex type that contains information about CNAMEs (alternate domain
names), if any, for this distribution.
final
- cacheBehaviors → CacheBehaviors
-
A complex type that contains zero or more
CacheBehavior
elements.final - callerReference → String
-
A unique value (for example, a date-time stamp) that ensures that the
request can't be replayed. [...]
final
- comment → String
-
Any comments you want to include about the distribution. [...]
final
- customErrorResponses → CustomErrorResponses
-
A complex type that controls the following: [...]
final
- defaultCacheBehavior → DefaultCacheBehavior
-
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 ofPathPattern
inCacheBehavior
elements. You must create exactly one default cache behavior.final - defaultRootObject → String
-
The object that you want CloudFront to request from your origin (for
example,
index.html
) when a viewer requests the root URL for your distribution (http://www.example.com
) instead of an object in your distribution (http://www.example.com/product-description.html
). Specifying a default root object avoids exposing the contents of your distribution. [...]final - enabled → bool
-
From this field, you can enable or disable the selected distribution.
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- httpVersion → HttpVersion
-
(Optional) Specify the maximum HTTP version 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. [...]
final
- isIPV6Enabled → bool
-
If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address
for your distribution, specify
true
. If you specifyfalse
, CloudFront responds to IPv6 DNS requests with the DNS response codeNOERROR
and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution. [...]final - logging → LoggingConfig
-
A complex type that controls whether access logs are written for the
distribution. [...]
final
- origins → Origins
-
A complex type that contains information about origins for this
distribution.
final
- priceClass → PriceClass
-
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. [...]final - restrictions → Restrictions
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- viewerCertificate → ViewerCertificate
-
final
- webACLId → String
-
A unique identifier that specifies the AWS WAF web ACL, if any, to associate
with this distribution. [...]
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
-
toXml(
String elemName, {List< XmlAttribute> attributes}) → XmlElement
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited