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 |
Calls back Chime SDK Messaging with a processing response message. This should be invoked from the processor Lambda. This is a developer API.
You can return one of the following processing responses:
- Update message content or metadata
- Deny a message
- Make no changes to the message
Synopsis
- data ChannelFlowCallback = ChannelFlowCallback' {}
- newChannelFlowCallback :: Text -> Text -> ChannelMessageCallback -> ChannelFlowCallback
- channelFlowCallback_deleteResource :: Lens' ChannelFlowCallback (Maybe Bool)
- channelFlowCallback_callbackId :: Lens' ChannelFlowCallback Text
- channelFlowCallback_channelArn :: Lens' ChannelFlowCallback Text
- channelFlowCallback_channelMessage :: Lens' ChannelFlowCallback ChannelMessageCallback
- data ChannelFlowCallbackResponse = ChannelFlowCallbackResponse' {
- callbackId :: Maybe Text
- channelArn :: Maybe Text
- httpStatus :: Int
- newChannelFlowCallbackResponse :: Int -> ChannelFlowCallbackResponse
- channelFlowCallbackResponse_callbackId :: Lens' ChannelFlowCallbackResponse (Maybe Text)
- channelFlowCallbackResponse_channelArn :: Lens' ChannelFlowCallbackResponse (Maybe Text)
- channelFlowCallbackResponse_httpStatus :: Lens' ChannelFlowCallbackResponse Int
Creating a Request
data ChannelFlowCallback Source #
See: newChannelFlowCallback
smart constructor.
ChannelFlowCallback' | |
|
Instances
newChannelFlowCallback Source #
Create a value of ChannelFlowCallback
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:deleteResource:ChannelFlowCallback'
, channelFlowCallback_deleteResource
- When a processor determines that a message needs to be DENIED
, pass
this parameter with a value of true.
$sel:callbackId:ChannelFlowCallback'
, channelFlowCallback_callbackId
- The identifier passed to the processor by the service when invoked. Use
the identifier to call back the service.
$sel:channelArn:ChannelFlowCallback'
, channelFlowCallback_channelArn
- The ARN of the channel.
$sel:channelMessage:ChannelFlowCallback'
, channelFlowCallback_channelMessage
- Stores information about the processed message.
Request Lenses
channelFlowCallback_deleteResource :: Lens' ChannelFlowCallback (Maybe Bool) Source #
When a processor determines that a message needs to be DENIED
, pass
this parameter with a value of true.
channelFlowCallback_callbackId :: Lens' ChannelFlowCallback Text Source #
The identifier passed to the processor by the service when invoked. Use the identifier to call back the service.
channelFlowCallback_channelArn :: Lens' ChannelFlowCallback Text Source #
The ARN of the channel.
channelFlowCallback_channelMessage :: Lens' ChannelFlowCallback ChannelMessageCallback Source #
Stores information about the processed message.
Destructuring the Response
data ChannelFlowCallbackResponse Source #
See: newChannelFlowCallbackResponse
smart constructor.
ChannelFlowCallbackResponse' | |
|
Instances
newChannelFlowCallbackResponse Source #
Create a value of ChannelFlowCallbackResponse
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:callbackId:ChannelFlowCallback'
, channelFlowCallbackResponse_callbackId
- The call back ID passed in the request.
$sel:channelArn:ChannelFlowCallback'
, channelFlowCallbackResponse_channelArn
- The ARN of the channel.
$sel:httpStatus:ChannelFlowCallbackResponse'
, channelFlowCallbackResponse_httpStatus
- The response's http status code.
Response Lenses
channelFlowCallbackResponse_callbackId :: Lens' ChannelFlowCallbackResponse (Maybe Text) Source #
The call back ID passed in the request.
channelFlowCallbackResponse_channelArn :: Lens' ChannelFlowCallbackResponse (Maybe Text) Source #
The ARN of the channel.
channelFlowCallbackResponse_httpStatus :: Lens' ChannelFlowCallbackResponse Int Source #
The response's http status code.