![]() |
![]()
| ![]() |
![]()
NAMEPaws::CloudFront::CustomErrorResponse USAGEThis 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::CustomErrorResponse object: $service_obj->Method(Att1 => { ErrorCachingMinTTL => $value, ..., ResponsePagePath => $value }); Results returned from an API call Use accessors for each attribute. If Att1 is expected to be an Paws::CloudFront::CustomErrorResponse object: $result = $service_obj->Method(...); $result->Att1->ErrorCachingMinTTL DESCRIPTIONA complex type that controls:
For more information about custom error pages, see Customizing Error Responses (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the Amazon CloudFront Developer Guide. ATTRIBUTESErrorCachingMinTTL => IntThe minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in "ErrorCode". When this time period has elapsed, CloudFront queries your origin to see whether the problem that caused the error has been resolved and the requested object is now available. For more information, see Customizing Error Responses (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the Amazon CloudFront Developer Guide. REQUIRED ErrorCode => IntThe HTTP status code for which you want to specify a custom error page and/or a caching duration. ResponseCode => StrThe HTTP status code that you want CloudFront to return to the viewer along with the custom error page. There are a variety of reasons that you might want CloudFront to return a status code different from the status code that your origin returned to CloudFront, for example:
If you specify a value for "ResponseCode", you must also specify a value for "ResponsePagePath". ResponsePagePath => StrThe path to the custom error page that you want CloudFront to return to a viewer when your origin returns the HTTP status code specified by "ErrorCode", for example, "/4xx-errors/403-forbidden.html". If you want to store your objects and your custom error pages in different locations, your distribution must include a cache behavior for which the following is true:
If you specify a value for "ResponsePagePath", you must also specify a value for "ResponseCode". We recommend that you store custom error pages in an Amazon S3 bucket. If you store custom error pages on an HTTP server and the server starts to return 5xx errors, CloudFront can't get the files that you want to return to viewers because the origin server is unavailable. SEE ALSOThis class forms part of Paws, describing an object used in Paws::CloudFront BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|