| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
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 
 | |
Instances
Arguments
| :: Redirect | |
| -> RoutingRule | 
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.