1 | import { Handler } from "../handler";
|
2 |
|
3 | export type IoTHandler = Handler<IoTEvent, void>;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export type IoTEvent<T = never> = string | number | T;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export type IoTPreProvisioningHookHandler = Handler<IoTPreProvisioningHookEvent, IoTPreProvisioningHookResult>;
|
15 |
|
16 | export interface IoTPreProvisioningHookEvent {
|
17 | claimCertificateId: string;
|
18 | certificateId: string;
|
19 | certificatePem: string;
|
20 | templateArn: string;
|
21 | clientId: string;
|
22 | parameters: Record<string, string>;
|
23 | }
|
24 |
|
25 | export interface IoTPreProvisioningHookResult {
|
26 | allowProvisioning: boolean;
|
27 | parameterOverrides: Record<string, string>;
|
28 | }
|