Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a channel. A channel collects data from an MQTT topic and archives the raw, unprocessed messages before publishing the data to a pipeline.
- createChannel :: Text -> CreateChannel
- data CreateChannel
- ccRetentionPeriod :: Lens' CreateChannel (Maybe RetentionPeriod)
- ccChannelName :: Lens' CreateChannel Text
- createChannelResponse :: Int -> CreateChannelResponse
- data CreateChannelResponse
- ccrsChannelARN :: Lens' CreateChannelResponse (Maybe Text)
- ccrsRetentionPeriod :: Lens' CreateChannelResponse (Maybe RetentionPeriod)
- ccrsChannelName :: Lens' CreateChannelResponse (Maybe Text)
- ccrsResponseStatus :: Lens' CreateChannelResponse Int
Creating a Request
Creates a value of CreateChannel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccRetentionPeriod
- How long, in days, message data is kept for the channel.ccChannelName
- The name of the channel.
data CreateChannel Source #
See: createChannel
smart constructor.
Request Lenses
ccRetentionPeriod :: Lens' CreateChannel (Maybe RetentionPeriod) Source #
How long, in days, message data is kept for the channel.
ccChannelName :: Lens' CreateChannel Text Source #
The name of the channel.
Destructuring the Response
createChannelResponse Source #
Creates a value of CreateChannelResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccrsChannelARN
- The ARN of the channel.ccrsRetentionPeriod
- How long, in days, message data is kept for the channel.ccrsChannelName
- The name of the channel.ccrsResponseStatus
- -- | The response status code.
data CreateChannelResponse Source #
See: createChannelResponse
smart constructor.
Response Lenses
ccrsChannelARN :: Lens' CreateChannelResponse (Maybe Text) Source #
The ARN of the channel.
ccrsRetentionPeriod :: Lens' CreateChannelResponse (Maybe RetentionPeriod) Source #
How long, in days, message data is kept for the channel.
ccrsChannelName :: Lens' CreateChannelResponse (Maybe Text) Source #
The name of the channel.
ccrsResponseStatus :: Lens' CreateChannelResponse Int Source #
- - | The response status code.