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 |
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
- data CreateStream = CreateStream' {}
- newCreateStream :: Text -> NonEmpty StreamFile -> Text -> CreateStream
- createStream_description :: Lens' CreateStream (Maybe Text)
- createStream_tags :: Lens' CreateStream (Maybe [Tag])
- createStream_streamId :: Lens' CreateStream Text
- createStream_files :: Lens' CreateStream (NonEmpty StreamFile)
- createStream_roleArn :: Lens' CreateStream Text
- data CreateStreamResponse = CreateStreamResponse' {
- streamVersion :: Maybe Natural
- streamArn :: Maybe Text
- description :: Maybe Text
- streamId :: Maybe Text
- httpStatus :: Int
- newCreateStreamResponse :: Int -> CreateStreamResponse
- createStreamResponse_streamVersion :: Lens' CreateStreamResponse (Maybe Natural)
- createStreamResponse_streamArn :: Lens' CreateStreamResponse (Maybe Text)
- createStreamResponse_description :: Lens' CreateStreamResponse (Maybe Text)
- createStreamResponse_streamId :: Lens' CreateStreamResponse (Maybe Text)
- createStreamResponse_httpStatus :: Lens' CreateStreamResponse Int
Creating a Request
data CreateStream Source #
See: newCreateStream
smart constructor.
Instances
:: Text | |
-> NonEmpty StreamFile | |
-> Text | |
-> CreateStream |
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_streamId :: Lens' CreateStream Text Source #
The stream ID.
createStream_files :: Lens' CreateStream (NonEmpty StreamFile) Source #
The files to stream.
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.
CreateStreamResponse' | |
|
Instances
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
createStreamResponse_streamVersion :: Lens' CreateStreamResponse (Maybe Natural) Source #
The version of the stream.
createStreamResponse_streamArn :: Lens' CreateStreamResponse (Maybe Text) Source #
The stream ARN.
createStreamResponse_description :: Lens' CreateStreamResponse (Maybe Text) Source #
A description of the stream.
createStreamResponse_streamId :: Lens' CreateStreamResponse (Maybe Text) Source #
The stream ID.
createStreamResponse_httpStatus :: Lens' CreateStreamResponse Int Source #
The response's http status code.