FakeIot

class FakeIot(jobs: Storage<StoredJob> = Storage.InMemory(), streams: Storage<StoredStream> = Storage.InMemory(), certificates: Storage<StoredCertificate> = Storage.InMemory(), region: Region = Region.of("ldn-north-1"), clock: Clock = Clock.systemUTC()) : ChaoticHttpHandler(source)

The AWS IoT control plane, of which the Jobs and stream operations are implemented. Share the jobs storage with a FakeIotJobsDataPlane and the control plane and the device API see one jobs state.

Constructors

Link copied to clipboard
constructor(jobs: Storage<StoredJob> = Storage.InMemory(), streams: Storage<StoredStream> = Storage.InMemory(), certificates: Storage<StoredCertificate> = Storage.InMemory(), region: Region = Region.of("ldn-north-1"), clock: Clock = Clock.systemUTC())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun client(): Iot

Convenience function to get an Iot client

Link copied to clipboard
open operator override fun invoke(request: Request): Response
Link copied to clipboard
fun job(jobId: JobId): StoredJob?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun stream(streamId: StreamId): StoredStream?