libZSservicesZSamazonka-s3ZSamazonka-s3
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.S3.Types.RoutingRule

Description

 
Synopsis

Documentation

data RoutingRule Source #

Specifies the redirect behavior and when a redirect is applied. For more information about routing rules, see Configuring advanced conditional redirects in the Amazon S3 User Guide.

See: newRoutingRule smart constructor.

Constructors

RoutingRule' 

Fields

  • condition :: Maybe Condition

    A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.

  • redirect :: Redirect

    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.

Instances

Instances details
Eq RoutingRule Source # 
Instance details

Defined in Amazonka.S3.Types.RoutingRule

Read RoutingRule Source # 
Instance details

Defined in Amazonka.S3.Types.RoutingRule

Show RoutingRule Source # 
Instance details

Defined in Amazonka.S3.Types.RoutingRule

Generic RoutingRule Source # 
Instance details

Defined in Amazonka.S3.Types.RoutingRule

Associated Types

type Rep RoutingRule :: Type -> Type #

NFData RoutingRule Source # 
Instance details

Defined in Amazonka.S3.Types.RoutingRule

Methods

rnf :: RoutingRule -> () #

Hashable RoutingRule Source # 
Instance details

Defined in Amazonka.S3.Types.RoutingRule

FromXML RoutingRule Source # 
Instance details

Defined in Amazonka.S3.Types.RoutingRule

ToXML RoutingRule Source # 
Instance details

Defined in Amazonka.S3.Types.RoutingRule

Methods

toXML :: RoutingRule -> XML #

type Rep RoutingRule Source # 
Instance details

Defined in Amazonka.S3.Types.RoutingRule

type Rep RoutingRule = D1 ('MetaData "RoutingRule" "Amazonka.S3.Types.RoutingRule" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "RoutingRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "condition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Condition)) :*: S1 ('MetaSel ('Just "redirect") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Redirect)))

newRoutingRule Source #

Create a value of RoutingRule 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:condition:RoutingRule', routingRule_condition - A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.

$sel:redirect:RoutingRule', routingRule_redirect - Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.

routingRule_condition :: Lens' RoutingRule (Maybe Condition) Source #

A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.

routingRule_redirect :: Lens' RoutingRule Redirect Source #

Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.