amazonka-iot-2.0: Amazon IoT 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.IoT.CreateStream

Description

Creates a stream for delivering one or more large files in chunks over MQTT. A stream transports data bytes in chunks or blocks packaged as MQTT messages from a source like S3. You can have one or more files associated with a stream.

Requires permission to access the CreateStream action.

Synopsis

Creating a Request

data CreateStream Source #

See: newCreateStream smart constructor.

Constructors

CreateStream' 

Fields

Instances

Instances details
ToJSON CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

ToHeaders CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

ToPath CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

ToQuery CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

AWSRequest CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Associated Types

type AWSResponse CreateStream #

Generic CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Associated Types

type Rep CreateStream :: Type -> Type #

Read CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Show CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

NFData CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Methods

rnf :: CreateStream -> () #

Eq CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Hashable CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

type AWSResponse CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

type Rep CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

newCreateStream Source #

Create a value of CreateStream 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:

CreateStream, createStream_description - A description of the stream.

$sel:tags:CreateStream', createStream_tags - Metadata which can be used to manage streams.

CreateStream, createStream_streamId - The stream ID.

CreateStream, createStream_files - The files to stream.

CreateStream, createStream_roleArn - An IAM role that allows the IoT service principal to access your S3 files.

Request Lenses

createStream_description :: Lens' CreateStream (Maybe Text) Source #

A description of the stream.

createStream_tags :: Lens' CreateStream (Maybe [Tag]) Source #

Metadata which can be used to manage streams.

createStream_roleArn :: Lens' CreateStream Text Source #

An IAM role that allows the IoT service principal to access your S3 files.

Destructuring the Response

data CreateStreamResponse Source #

See: newCreateStreamResponse smart constructor.

Constructors

CreateStreamResponse' 

Fields

Instances

Instances details
Generic CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Associated Types

type Rep CreateStreamResponse :: Type -> Type #

Read CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Show CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

NFData CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Methods

rnf :: CreateStreamResponse -> () #

Eq CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

type Rep CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

type Rep CreateStreamResponse = D1 ('MetaData "CreateStreamResponse" "Amazonka.IoT.CreateStream" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "CreateStreamResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "streamArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "streamId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streamVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateStreamResponse Source #

Create a value of CreateStreamResponse 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:

CreateStream, createStreamResponse_description - A description of the stream.

CreateStreamResponse, createStreamResponse_streamArn - The stream ARN.

CreateStream, createStreamResponse_streamId - The stream ID.

CreateStreamResponse, createStreamResponse_streamVersion - The version of the stream.

$sel:httpStatus:CreateStreamResponse', createStreamResponse_httpStatus - The response's http status code.

Response Lenses