Struct rusoto_cloudfront::CustomErrorResponses [−][src]
pub struct CustomErrorResponses { pub items: Option<Vec<CustomErrorResponse>>, pub quantity: i64, }
Expand description
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.
Fields
items: Option<Vec<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: i64
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
.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CustomErrorResponses
impl Send for CustomErrorResponses
impl Sync for CustomErrorResponses
impl Unpin for CustomErrorResponses
impl UnwindSafe for CustomErrorResponses
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self