| 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 |
Amazonka.IoTAnalytics.CreateChannel
Description
Used to create a channel. A channel collects data from an MQTT topic and archives the raw, unprocessed messages before publishing the data to a pipeline.
Synopsis
- data CreateChannel = CreateChannel' {}
- newCreateChannel :: Text -> CreateChannel
- createChannel_retentionPeriod :: Lens' CreateChannel (Maybe RetentionPeriod)
- createChannel_channelStorage :: Lens' CreateChannel (Maybe ChannelStorage)
- createChannel_tags :: Lens' CreateChannel (Maybe (NonEmpty Tag))
- createChannel_channelName :: Lens' CreateChannel Text
- data CreateChannelResponse = CreateChannelResponse' {}
- newCreateChannelResponse :: Int -> CreateChannelResponse
- createChannelResponse_channelArn :: Lens' CreateChannelResponse (Maybe Text)
- createChannelResponse_retentionPeriod :: Lens' CreateChannelResponse (Maybe RetentionPeriod)
- createChannelResponse_channelName :: Lens' CreateChannelResponse (Maybe Text)
- createChannelResponse_httpStatus :: Lens' CreateChannelResponse Int
Creating a Request
data CreateChannel Source #
See: newCreateChannel smart constructor.
Constructors
| CreateChannel' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateChannel |
Create a value of CreateChannel 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:retentionPeriod:CreateChannel', createChannel_retentionPeriod - How long, in days, message data is kept for the channel. When
customerManagedS3 storage is selected, this parameter is ignored.
$sel:channelStorage:CreateChannel', createChannel_channelStorage - Where channel data is stored. You can choose one of serviceManagedS3
or customerManagedS3 storage. If not specified, the default is
serviceManagedS3. You can't change this storage option after the
channel is created.
$sel:tags:CreateChannel', createChannel_tags - Metadata which can be used to manage the channel.
$sel:channelName:CreateChannel', createChannel_channelName - The name of the channel.
Request Lenses
createChannel_retentionPeriod :: Lens' CreateChannel (Maybe RetentionPeriod) Source #
How long, in days, message data is kept for the channel. When
customerManagedS3 storage is selected, this parameter is ignored.
createChannel_channelStorage :: Lens' CreateChannel (Maybe ChannelStorage) Source #
Where channel data is stored. You can choose one of serviceManagedS3
or customerManagedS3 storage. If not specified, the default is
serviceManagedS3. You can't change this storage option after the
channel is created.
createChannel_tags :: Lens' CreateChannel (Maybe (NonEmpty Tag)) Source #
Metadata which can be used to manage the channel.
createChannel_channelName :: Lens' CreateChannel Text Source #
The name of the channel.
Destructuring the Response
data CreateChannelResponse Source #
See: newCreateChannelResponse smart constructor.
Constructors
| CreateChannelResponse' | |
Fields
| |
Instances
newCreateChannelResponse Source #
Create a value of CreateChannelResponse 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:channelArn:CreateChannelResponse', createChannelResponse_channelArn - The ARN of the channel.
$sel:retentionPeriod:CreateChannel', createChannelResponse_retentionPeriod - How long, in days, message data is kept for the channel.
$sel:channelName:CreateChannel', createChannelResponse_channelName - The name of the channel.
$sel:httpStatus:CreateChannelResponse', createChannelResponse_httpStatus - The response's http status code.
Response Lenses
createChannelResponse_channelArn :: Lens' CreateChannelResponse (Maybe Text) Source #
The ARN of the channel.
createChannelResponse_retentionPeriod :: Lens' CreateChannelResponse (Maybe RetentionPeriod) Source #
How long, in days, message data is kept for the channel.
createChannelResponse_channelName :: Lens' CreateChannelResponse (Maybe Text) Source #
The name of the channel.
createChannelResponse_httpStatus :: Lens' CreateChannelResponse Int Source #
The response's http status code.