libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudFront.Types.CustomErrorResponses

Description

 
Synopsis

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.

Constructors

CustomErrorResponses' 

Fields

  • items :: Maybe [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 :: Int

    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.

Instances

Instances details
Eq CustomErrorResponses Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CustomErrorResponses

Read CustomErrorResponses Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CustomErrorResponses

Show CustomErrorResponses Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CustomErrorResponses

Generic CustomErrorResponses Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CustomErrorResponses

Associated Types

type Rep CustomErrorResponses :: Type -> Type #

NFData CustomErrorResponses Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CustomErrorResponses

Methods

rnf :: CustomErrorResponses -> () #

Hashable CustomErrorResponses Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CustomErrorResponses

FromXML CustomErrorResponses Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CustomErrorResponses

ToXML CustomErrorResponses Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CustomErrorResponses

type Rep CustomErrorResponses Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CustomErrorResponses

type Rep CustomErrorResponses = D1 ('MetaData "CustomErrorResponses" "Amazonka.CloudFront.Types.CustomErrorResponses" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "CustomErrorResponses'" 'PrefixI 'True) (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CustomErrorResponse])) :*: S1 ('MetaSel ('Just "quantity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.