Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data CustomErrorResponses = CustomErrorResponses' {
- items :: Maybe [CustomErrorResponse]
- quantity :: Int
- newCustomErrorResponses :: Int -> CustomErrorResponses
- customErrorResponses_items :: Lens' CustomErrorResponses (Maybe [CustomErrorResponse])
- customErrorResponses_quantity :: Lens' CustomErrorResponses Int
Documentation
data CustomErrorResponses Source #
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.
See: newCustomErrorResponses
smart constructor.
CustomErrorResponses' | |
|
Instances
newCustomErrorResponses Source #
Create a value of CustomErrorResponses
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:items:CustomErrorResponses'
, customErrorResponses_items
- 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.
$sel:quantity:CustomErrorResponses'
, customErrorResponses_quantity
- 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
.
customErrorResponses_items :: Lens' CustomErrorResponses (Maybe [CustomErrorResponse]) Source #
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.
customErrorResponses_quantity :: Lens' CustomErrorResponses Int Source #
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
.