NAME
Paws::Lightsail::UpdateDistribution - Arguments for method UpdateDistribution on Paws::Lightsail
DESCRIPTION
This class represents the parameters used for calling the method UpdateDistribution on the Amazon Lightsail service. Use the attributes of this class as arguments to method UpdateDistribution.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateDistribution.
SYNOPSIS
my $lightsail = Paws->service('Lightsail');
my $UpdateDistributionResult = $lightsail->UpdateDistribution(
DistributionName => 'MyResourceName',
CacheBehaviorSettings => {
AllowedHTTPMethods => 'MyNonEmptyString', # OPTIONAL
CachedHTTPMethods => 'MyNonEmptyString', # OPTIONAL
DefaultTTL => 1, # OPTIONAL
ForwardedCookies => {
CookiesAllowList => [ 'Mystring', ... ], # OPTIONAL
Option => 'none', # values: none, allow-list, all; OPTIONAL
}, # OPTIONAL
ForwardedHeaders => {
HeadersAllowList => [
'Accept',
... # values: Accept, Accept-Charset, Accept-Datetime, Accept-Encoding, Accept-Language, Authorization, CloudFront-Forwarded-Proto, CloudFront-Is-Desktop-Viewer, CloudFront-Is-Mobile-Viewer, CloudFront-Is-SmartTV-Viewer, CloudFront-Is-Tablet-Viewer, CloudFront-Viewer-Country, Host, Origin, Referer
], # OPTIONAL
Option => 'none', # values: none, allow-list, all; OPTIONAL
}, # OPTIONAL
ForwardedQueryStrings => {
Option => 1, # OPTIONAL
QueryStringsAllowList => [ 'Mystring', ... ], # OPTIONAL
}, # OPTIONAL
MaximumTTL => 1, # OPTIONAL
MinimumTTL => 1, # OPTIONAL
}, # OPTIONAL
CacheBehaviors => [
{
Behavior => 'dont-cache', # values: dont-cache, cache; OPTIONAL
Path => 'Mystring',
},
...
], # OPTIONAL
DefaultCacheBehavior => {
Behavior => 'dont-cache', # values: dont-cache, cache; OPTIONAL
}, # OPTIONAL
IsEnabled => 1, # OPTIONAL
Origin => {
Name => 'MyResourceName',
ProtocolPolicy => 'http-only', # values: http-only, https-only; OPTIONAL
RegionName => 'us-east-1'
, # values: us-east-1, us-east-2, us-west-1, us-west-2, eu-west-1, eu-west-2, eu-west-3, eu-central-1, ca-central-1, ap-south-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, ap-northeast-2; OPTIONAL
}, # OPTIONAL
);
# Results:
my $Operation = $UpdateDistributionResult->Operation;
# Returns a L<Paws::Lightsail::UpdateDistributionResult> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/lightsail/UpdateDistribution
ATTRIBUTES
CacheBehaviors => ArrayRef[Paws::Lightsail::CacheBehaviorPerPath]
An array of objects that describe the per-path cache behavior for the distribution.
CacheBehaviorSettings => Paws::Lightsail::CacheSettings
An object that describes the cache behavior settings for the distribution.
The cacheBehaviorSettings
specified in your UpdateDistributionRequest
will replace your distribution's existing settings.
DefaultCacheBehavior => Paws::Lightsail::CacheBehavior
An object that describes the default cache behavior for the distribution.
REQUIRED DistributionName => Str
The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names that you can specify.
IsEnabled => Bool
Indicates whether to enable the distribution.
Origin => Paws::Lightsail::InputOrigin
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
SEE ALSO
This class forms part of Paws, documenting arguments for method UpdateDistribution in Paws::Lightsail
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