Class: Aws::CloudFront::Types::CustomErrorResponses
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::CustomErrorResponses
- Defined in:
- gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb
Overview
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.
Constant Summary collapse
- SENSITIVE =
[]
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.
2821 2822 2823 2824 2825 2826 |
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2821 class CustomErrorResponses < Struct.new( :quantity, :items) SENSITIVE = [] include Aws::Structure end |
#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
.
2821 2822 2823 2824 2825 2826 |
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2821 class CustomErrorResponses < Struct.new( :quantity, :items) SENSITIVE = [] include Aws::Structure end |