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§
Source§impl Clone for CustomErrorResponses
impl Clone for CustomErrorResponses
Source§fn clone(&self) -> CustomErrorResponses
fn clone(&self) -> CustomErrorResponses
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CustomErrorResponses
impl Debug for CustomErrorResponses
Source§impl Default for CustomErrorResponses
impl Default for CustomErrorResponses
Source§fn default() -> CustomErrorResponses
fn default() -> CustomErrorResponses
Returns the “default value” for a type. Read more
Source§impl PartialEq for CustomErrorResponses
impl PartialEq for CustomErrorResponses
impl StructuralPartialEq for CustomErrorResponses
Auto Trait Implementations§
impl Freeze for CustomErrorResponses
impl RefUnwindSafe for CustomErrorResponses
impl Send for CustomErrorResponses
impl Sync for CustomErrorResponses
impl Unpin for CustomErrorResponses
impl UnwindSafe for CustomErrorResponses
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more