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 FixedResponseActionConfig = FixedResponseActionConfig' {
- messageBody :: Maybe Text
- contentType :: Maybe Text
- statusCode :: Text
- newFixedResponseActionConfig :: Text -> FixedResponseActionConfig
- fixedResponseActionConfig_messageBody :: Lens' FixedResponseActionConfig (Maybe Text)
- fixedResponseActionConfig_contentType :: Lens' FixedResponseActionConfig (Maybe Text)
- fixedResponseActionConfig_statusCode :: Lens' FixedResponseActionConfig Text
Documentation
data FixedResponseActionConfig Source #
Information about an action that returns a custom HTTP response.
See: newFixedResponseActionConfig
smart constructor.
FixedResponseActionConfig' | |
|
Instances
newFixedResponseActionConfig Source #
Create a value of FixedResponseActionConfig
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:messageBody:FixedResponseActionConfig'
, fixedResponseActionConfig_messageBody
- The message.
$sel:contentType:FixedResponseActionConfig'
, fixedResponseActionConfig_contentType
- The content type.
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
$sel:statusCode:FixedResponseActionConfig'
, fixedResponseActionConfig_statusCode
- The HTTP response code (2XX, 4XX, or 5XX).
fixedResponseActionConfig_messageBody :: Lens' FixedResponseActionConfig (Maybe Text) Source #
The message.
fixedResponseActionConfig_contentType :: Lens' FixedResponseActionConfig (Maybe Text) Source #
The content type.
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
fixedResponseActionConfig_statusCode :: Lens' FixedResponseActionConfig Text Source #
The HTTP response code (2XX, 4XX, or 5XX).