1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
const ;
// See
// https://docs.aws.amazon.com/iot/latest/developerguide/pre-provisioning-hook.html
// for the full documentation
// Pre-provision hook input
//
// {
// "claimCertificateId" : "string",
// "certificateId" : "string",
// "certificatePem" : "string",
// "templateArn" : "arn:aws:iot:us-east-1:1234567890:provisioningtemplate/MyTemplate",
// "clientId" : "221a6d10-9c7f-42f1-9153-e52e6fc869c1",
// "parameters" : {
// "string" : "string",
// ...
// }
// }
//
// The parameters object passed to the Lambda function contains the properties
// in the parameters argument passed in the RegisterThing request payload.
// Pre-provision hook return value
//
// {
// "allowProvisioning": true,
// "parameterOverrides" : {
// "Key": "newCustomValue",
// ...
// }
// }
//
// "parameterOverrides" values will be added to "parameters" parameter of the RegisterThing request payload.
export