amazonka-iot-analytics-2.0: Amazon IoT Analytics SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data CreateChannel Source #

See: newCreateChannel smart constructor.

Constructors

CreateChannel' 

Fields

  • channelStorage :: Maybe 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.

  • retentionPeriod :: Maybe RetentionPeriod

    How long, in days, message data is kept for the channel. When customerManagedS3 storage is selected, this parameter is ignored.

  • tags :: Maybe (NonEmpty Tag)

    Metadata which can be used to manage the channel.

  • channelName :: Text

    The name of the channel.

Instances

Instances details
ToJSON CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

ToHeaders CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

ToPath CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

ToQuery CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

AWSRequest CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

Associated Types

type AWSResponse CreateChannel #

Generic CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

Associated Types

type Rep CreateChannel :: Type -> Type #

Read CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

Show CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

NFData CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

Methods

rnf :: CreateChannel -> () #

Eq CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

Hashable CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

type AWSResponse CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

type Rep CreateChannel Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

type Rep CreateChannel = D1 ('MetaData "CreateChannel" "Amazonka.IoTAnalytics.CreateChannel" "amazonka-iot-analytics-2.0-2pxFb0PbSzA9ccOL4CofY4" 'False) (C1 ('MetaCons "CreateChannel'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "channelStorage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChannelStorage)) :*: S1 ('MetaSel ('Just "retentionPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetentionPeriod))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag))) :*: S1 ('MetaSel ('Just "channelName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateChannel Source #

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:

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.

CreateChannel, createChannel_retentionPeriod - How long, in days, message data is kept for the channel. When customerManagedS3 storage is selected, this parameter is ignored.

$sel:tags:CreateChannel', createChannel_tags - Metadata which can be used to manage the channel.

CreateChannel, createChannel_channelName - The name of the channel.

Request Lenses

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_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_tags :: Lens' CreateChannel (Maybe (NonEmpty Tag)) Source #

Metadata which can be used to manage the channel.

Destructuring the Response

data CreateChannelResponse Source #

See: newCreateChannelResponse smart constructor.

Constructors

CreateChannelResponse' 

Fields

Instances

Instances details
Generic CreateChannelResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

Associated Types

type Rep CreateChannelResponse :: Type -> Type #

Read CreateChannelResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

Show CreateChannelResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

NFData CreateChannelResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

Methods

rnf :: CreateChannelResponse -> () #

Eq CreateChannelResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

type Rep CreateChannelResponse Source # 
Instance details

Defined in Amazonka.IoTAnalytics.CreateChannel

type Rep CreateChannelResponse = D1 ('MetaData "CreateChannelResponse" "Amazonka.IoTAnalytics.CreateChannel" "amazonka-iot-analytics-2.0-2pxFb0PbSzA9ccOL4CofY4" 'False) (C1 ('MetaCons "CreateChannelResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "channelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "channelName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "retentionPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetentionPeriod)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.

CreateChannel, createChannelResponse_channelName - The name of the channel.

CreateChannel, createChannelResponse_retentionPeriod - How long, in days, message data is kept for the channel.

$sel:httpStatus:CreateChannelResponse', createChannelResponse_httpStatus - The response's http status code.

Response Lenses

createChannelResponse_retentionPeriod :: Lens' CreateChannelResponse (Maybe RetentionPeriod) Source #

How long, in days, message data is kept for the channel.