You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CloudFront::Types::CustomErrorResponses
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::CustomErrorResponses
- Defined in:
- (unknown)
Overview
When passing CustomErrorResponses as input to an Aws::Client method, you can use a vanilla Hash:
{
quantity: 1, # required
items: [
{
error_code: 1, # required
response_page_path: "string",
response_code: "string",
error_caching_min_ttl: 1,
},
],
}
A complex type that controls:
-
Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
-
How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.
Returned by:
Instance Attribute Summary collapse
-
#items ⇒ Array<Types::CustomErrorResponse>
A complex type that contains a
CustomErrorResponse
element for each HTTP status code for which you want to specify a custom error page and/or a caching duration. -
#quantity ⇒ Integer
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration.
Instance Attribute Details
#items ⇒ Array<Types::CustomErrorResponse>
A complex type that contains a CustomErrorResponse
element for each
HTTP status code for which you want to specify a custom error page
and/or a caching duration.
#quantity ⇒ Integer
The number of HTTP status codes for which you want to specify a custom
error page and/or a caching duration. If Quantity
is 0
, you can omit
Items
.