NAME

Paws::CloudFront::DistributionConfig

USAGE

This class represents one of two things:

Arguments in a call to a service

Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object.

As an example, if Att1 is expected to be a Paws::CloudFront::DistributionConfig object:

$service_obj->Method(Att1 => { Aliases => $value, ..., WebACLId => $value  });

Results returned from an API call

Use accessors for each attribute. If Att1 is expected to be an Paws::CloudFront::DistributionConfig object:

$result = $service_obj->Method(...);
$result->Att1->Aliases

DESCRIPTION

A distribution Configuration.

ATTRIBUTES

Aliases => Paws::CloudFront::Aliases

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

CacheBehaviors => Paws::CloudFront::CacheBehaviors

A complex type that contains zero or more CacheBehavior elements.

REQUIRED CallerReference => Str

A unique number that ensures the request can't be replayed. If the
CallerReference is new (no matter the content of the DistributionConfig
object), a new distribution is created. If the CallerReference is a
value you already sent in a previous request to create a distribution,
and the content of the DistributionConfig is identical to the original
request (ignoring white space), the response includes the same
information returned to the original request. If the CallerReference is
a value you already sent in a previous request to create a distribution
but the content of the DistributionConfig is different from the
original request, CloudFront returns a DistributionAlreadyExists error.

REQUIRED Comment => Str

Any comments you want to include about the distribution.

CustomErrorResponses => Paws::CloudFront::CustomErrorResponses

A complex type that contains zero or more CustomErrorResponse elements.

REQUIRED DefaultCacheBehavior => Paws::CloudFront::DefaultCacheBehavior

A complex type that describes the default cache behavior if you do not
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.

DefaultRootObject => Str

The object that you want CloudFront to return (for example, index.html)
when an end user requests the root URL for your distribution
(http://www.example.com) instead of an object in your distribution
(http://www.example.com/index.html). Specifying a default root object
avoids exposing the contents of your distribution. If you don't want to
specify a default root object when you create a distribution, include
an empty DefaultRootObject element. To delete the default root object
from an existing distribution, update the distribution configuration
and include an empty DefaultRootObject element. To replace the default
root object, update the distribution configuration and specify the new
object.

REQUIRED Enabled => Bool

Whether the distribution is enabled to accept end user requests for
content.

Logging => Paws::CloudFront::LoggingConfig

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

REQUIRED Origins => Paws::CloudFront::Origins

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

PriceClass => Str

A complex type that contains information about price class for this
distribution.

Restrictions => Paws::CloudFront::Restrictions

ViewerCertificate => Paws::CloudFront::ViewerCertificate

WebACLId => Str

(Optional) If you're using AWS WAF to filter CloudFront requests, the
Id of the AWS WAF web ACL that is associated with the distribution.

SEE ALSO

This class forms part of Paws, describing an object used in Paws::CloudFront

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues