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 |
Creates a channel flow, a container for processors. Processors are AWS Lambda functions that perform actions on chat messages, such as stripping out profanity. You can associate channel flows with channels, and the processors in the channel flow then take action on all messages sent to that channel. This is a developer API.
Channel flows process the following items:
- New and updated messages
- Persistent and non-persistent messages
- The Standard message type
Channel flows don't process Control or System messages. For more information about the message types provided by Chime SDK Messaging, refer to Message types in the Amazon Chime developer guide.
Synopsis
- data CreateChannelFlow = CreateChannelFlow' {}
- newCreateChannelFlow :: Text -> NonEmpty Processor -> Text -> Text -> CreateChannelFlow
- createChannelFlow_tags :: Lens' CreateChannelFlow (Maybe (NonEmpty Tag))
- createChannelFlow_appInstanceArn :: Lens' CreateChannelFlow Text
- createChannelFlow_processors :: Lens' CreateChannelFlow (NonEmpty Processor)
- createChannelFlow_name :: Lens' CreateChannelFlow Text
- createChannelFlow_clientRequestToken :: Lens' CreateChannelFlow Text
- data CreateChannelFlowResponse = CreateChannelFlowResponse' {
- channelFlowArn :: Maybe Text
- httpStatus :: Int
- newCreateChannelFlowResponse :: Int -> CreateChannelFlowResponse
- createChannelFlowResponse_channelFlowArn :: Lens' CreateChannelFlowResponse (Maybe Text)
- createChannelFlowResponse_httpStatus :: Lens' CreateChannelFlowResponse Int
Creating a Request
data CreateChannelFlow Source #
See: newCreateChannelFlow
smart constructor.
CreateChannelFlow' | |
|
Instances
Create a value of CreateChannelFlow
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:tags:CreateChannelFlow'
, createChannelFlow_tags
- The tags for the creation request.
$sel:appInstanceArn:CreateChannelFlow'
, createChannelFlow_appInstanceArn
- The ARN of the channel flow request.
$sel:processors:CreateChannelFlow'
, createChannelFlow_processors
- Information about the processor Lambda functions.
$sel:name:CreateChannelFlow'
, createChannelFlow_name
- The name of the channel flow.
$sel:clientRequestToken:CreateChannelFlow'
, createChannelFlow_clientRequestToken
- The client token for the request. An Idempotency token.
Request Lenses
createChannelFlow_tags :: Lens' CreateChannelFlow (Maybe (NonEmpty Tag)) Source #
The tags for the creation request.
createChannelFlow_appInstanceArn :: Lens' CreateChannelFlow Text Source #
The ARN of the channel flow request.
createChannelFlow_processors :: Lens' CreateChannelFlow (NonEmpty Processor) Source #
Information about the processor Lambda functions.
createChannelFlow_name :: Lens' CreateChannelFlow Text Source #
The name of the channel flow.
createChannelFlow_clientRequestToken :: Lens' CreateChannelFlow Text Source #
The client token for the request. An Idempotency token.
Destructuring the Response
data CreateChannelFlowResponse Source #
See: newCreateChannelFlowResponse
smart constructor.
CreateChannelFlowResponse' | |
|
Instances
newCreateChannelFlowResponse Source #
Create a value of CreateChannelFlowResponse
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:channelFlowArn:CreateChannelFlowResponse'
, createChannelFlowResponse_channelFlowArn
- The ARN of the channel flow.
$sel:httpStatus:CreateChannelFlowResponse'
, createChannelFlowResponse_httpStatus
- The response's http status code.
Response Lenses
createChannelFlowResponse_channelFlowArn :: Lens' CreateChannelFlowResponse (Maybe Text) Source #
The ARN of the channel flow.
createChannelFlowResponse_httpStatus :: Lens' CreateChannelFlowResponse Int Source #
The response's http status code.