Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Add IoT PreProvisioningHook
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Jan 28, 2021
1 parent 4c48a65 commit 4cdff9a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/main/scala/net/exoego/facade/aws_lambda/iot.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package net.exoego.facade.aws_lambda

import net.exoego.scalajs.types.util.Factory

import scala.scalajs.js

@Factory
@js.native
trait IoTPreProvisioningHookEvent extends js.Object {
var claimCertificateId: String = js.native
var certificateId: String = js.native
var certificatePem: String = js.native
var templateArn: String = js.native
var clientId: String = js.native
var parameters: js.Dictionary[String] = js.native
}

@Factory
@js.native
trait IoTPreProvisioningHookResult extends js.Object {
var allowProvisioning: Boolean = js.native
var parameterOverrides: js.Dictionary[ String] = js.native
}
4 changes: 4 additions & 0 deletions src/main/scala/net/exoego/facade/aws_lambda/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,8 @@ package object aws_lambda {
// Those can also return single value, but limit to js.Array for better type inference
type AppSyncResolverHandler[T, V] = Handler[AppSyncResolverEvent[T], js.Array[V]]
type AsyncAppSyncResolverHandler[T, V] = AsyncHandler[AppSyncResolverEvent[T], js.Array[V]]

// IoT
type IoTPreProvisioningHookHandler = Handler[IoTPreProvisioningHookEvent, IoTPreProvisioningHookResult]
type AsyncIoTPreProvisioningHookHandler = AsyncHandler[IoTPreProvisioningHookEvent, IoTPreProvisioningHookResult]
}

0 comments on commit 4cdff9a

Please sign in to comment.