NAME
Paws::Lightsail::CacheSettings
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::Lightsail::CacheSettings object:
$service_obj->Method(Att1 => { AllowedHTTPMethods => $value, ..., MinimumTTL => $value });
Results returned from an API call
Use accessors for each attribute. If Att1 is expected to be an Paws::Lightsail::CacheSettings object:
$result = $service_obj->Method(...);
$result->Att1->AllowedHTTPMethods
DESCRIPTION
Describes the cache settings of an Amazon Lightsail content delivery network (CDN) distribution.
These settings apply only to your distribution's cacheBehaviors (including the defaultCacheBehavior) that have a behavior of cache.
ATTRIBUTES
AllowedHTTPMethods => Str
The HTTP methods that are processed and forwarded to the distribution's origin.
You can specify the following options:
GET,HEAD- The distribution forwards theGETandHEADmethods.GET,HEAD,OPTIONS- The distribution forwards theGET,HEAD, andOPTIONSmethods.GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE- The distribution forwards theGET,HEAD,OPTIONS,PUT,PATCH,POST, andDELETEmethods.
If you specify the third option, you might need to restrict access to your distribution's origin so users can't perform operations that you don't want them to. For example, you might not want users to have permission to delete objects from your origin.
CachedHTTPMethods => Str
The HTTP method responses that are cached by your distribution.
You can specify the following options:
GET,HEAD- The distribution caches responses to theGETandHEADmethods.GET,HEAD,OPTIONS- The distribution caches responses to theGET,HEAD, andOPTIONSmethods.
DefaultTTL => Int
The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.
The value specified applies only when the origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.
ForwardedCookies => Paws::Lightsail::CookieObject
An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded.
ForwardedHeaders => Paws::Lightsail::HeaderObject
An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded.
ForwardedQueryStrings => Paws::Lightsail::QueryStringObject
An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded.
MaximumTTL => Int
The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.
The value specified applies only when the origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.
MinimumTTL => Int
The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.
A value of 0 must be specified for minimumTTL if the distribution is configured to forward all headers to the origin.
SEE ALSO
This class forms part of Paws, describing an object used 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