CreateStream

data class CreateStream(val streamId: StreamId, val files: List<StreamFile>, val roleArn: ARN, val description: String? = null) : IotAction<CreatedStream> (source)

Creates a stream of files (1 to 50) which devices pull over MQTT file delivery. roleArn is the role IoT assumes to read the S3 objects, and is required. A duplicate streamId is refused with ResourceAlreadyExistsException (409).

Devices read the blocks over MQTT ($aws/things/{thing}/streams/{streamId}/get/cbor), not over HTTP, so there is no data-plane client here - only this control plane, which publishes the bytes for a device to fetch.

tags is not supported.

Constructors

Link copied to clipboard
constructor(streamId: StreamId, files: List<StreamFile>, roleArn: ARN, description: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toRequest(): Request
Link copied to clipboard
open override fun toResult(response: Response): Result<CreatedStream, RemoteFailure>