libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Read CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Show CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Generic CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Associated Types

type Rep CreateStream :: Type -> Type #

NFData CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Methods

rnf :: CreateStream -> () #

Hashable CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

ToJSON CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

AWSRequest CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Associated Types

type AWSResponse 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

type Rep CreateStream Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

type AWSResponse 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:

$sel:description:CreateStream', createStream_description - A description of the stream.

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

$sel:streamId:CreateStream', createStream_streamId - The stream ID.

$sel:files:CreateStream', createStream_files - The files to stream.

$sel:roleArn:CreateStream', createStream_roleArn - An IAM role that allows the IoT service principal assumes 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 assumes to access your S3 files.

Destructuring the Response

data CreateStreamResponse Source #

See: newCreateStreamResponse smart constructor.

Constructors

CreateStreamResponse' 

Fields

Instances

Instances details
Eq CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Read CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Show CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Generic CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Associated Types

type Rep CreateStreamResponse :: Type -> Type #

NFData CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

Methods

rnf :: CreateStreamResponse -> () #

type Rep CreateStreamResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateStream

type Rep CreateStreamResponse = D1 ('MetaData "CreateStreamResponse" "Amazonka.IoT.CreateStream" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateStreamResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "streamVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "streamArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streamId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

$sel:streamVersion:CreateStreamResponse', createStreamResponse_streamVersion - The version of the stream.

$sel:streamArn:CreateStreamResponse', createStreamResponse_streamArn - The stream ARN.

$sel:description:CreateStream', createStreamResponse_description - A description of the stream.

$sel:streamId:CreateStream', createStreamResponse_streamId - The stream ID.

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

Response Lenses