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 CustomRule = CustomRule' {}
- newCustomRule :: Text -> Text -> CustomRule
- customRule_status :: Lens' CustomRule (Maybe Text)
- customRule_condition :: Lens' CustomRule (Maybe Text)
- customRule_source :: Lens' CustomRule Text
- customRule_target :: Lens' CustomRule Text
Documentation
data CustomRule Source #
Describes a custom rewrite or redirect rule.
See: newCustomRule
smart constructor.
CustomRule' | |
|
Instances
Create a value of CustomRule
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:status:CustomRule'
, customRule_status
- The status code for a URL rewrite or redirect rule.
- 200
- Represents a 200 rewrite rule.
- 301
- Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302
- Represents a 302 temporary redirect rule.
- 404
- Represents a 404 redirect rule.
- 404-200
- Represents a 404 rewrite rule.
$sel:condition:CustomRule'
, customRule_condition
- The condition for a URL rewrite or redirect rule, such as a country
code.
$sel:source:CustomRule'
, customRule_source
- The source pattern for a URL rewrite or redirect rule.
$sel:target:CustomRule'
, customRule_target
- The target pattern for a URL rewrite or redirect rule.
customRule_status :: Lens' CustomRule (Maybe Text) Source #
The status code for a URL rewrite or redirect rule.
- 200
- Represents a 200 rewrite rule.
- 301
- Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302
- Represents a 302 temporary redirect rule.
- 404
- Represents a 404 redirect rule.
- 404-200
- Represents a 404 rewrite rule.
customRule_condition :: Lens' CustomRule (Maybe Text) Source #
The condition for a URL rewrite or redirect rule, such as a country code.
customRule_source :: Lens' CustomRule Text Source #
The source pattern for a URL rewrite or redirect rule.
customRule_target :: Lens' CustomRule Text Source #
The target pattern for a URL rewrite or redirect rule.