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 |
Documentation
data MessageReviewHandler Source #
Configuration information for optional message review.
See: newMessageReviewHandler
smart constructor.
MessageReviewHandler' | |
|
Instances
newMessageReviewHandler :: MessageReviewHandler Source #
Create a value of MessageReviewHandler
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:fallbackResult:MessageReviewHandler'
, messageReviewHandler_fallbackResult
- Specifies the fallback behavior (whether the message is allowed or
denied) if the handler does not return a valid response, encounters an
error, or times out. (For the timeout period, see
Service Quotas.)
If allowed, the message is delivered with returned content to all users
connected to the room. If denied, the message is not delivered to any
user. Default: ALLOW
.
$sel:uri:MessageReviewHandler'
, messageReviewHandler_uri
- Identifier of the message review handler. Currently this must be an ARN
of a lambda function.
messageReviewHandler_fallbackResult :: Lens' MessageReviewHandler (Maybe FallbackResult) Source #
Specifies the fallback behavior (whether the message is allowed or
denied) if the handler does not return a valid response, encounters an
error, or times out. (For the timeout period, see
Service Quotas.)
If allowed, the message is delivered with returned content to all users
connected to the room. If denied, the message is not delivered to any
user. Default: ALLOW
.
messageReviewHandler_uri :: Lens' MessageReviewHandler (Maybe Text) Source #
Identifier of the message review handler. Currently this must be an ARN of a lambda function.