@aws-solutions-constructs/aws-iot-lambda 2.79.1 → 2.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +43 -43
- package/lib/index.js +1 -1
- package/package.json +6 -6
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/asset.3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f/index.js +23 -0
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/cdk.out +1 -1
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/integ.json +1 -1
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlam-iot-lambda-new-func.assets.json +6 -6
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlam-iot-lambda-new-func.template.json +25 -36
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlamiotlambdanewfuncIntegDefaultTestDeployAssert4A7D5BFD.assets.json +1 -1
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/manifest.json +106 -6
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/tree.json +1 -362
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/asset.3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f/index.js +23 -0
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/cdk.out +1 -1
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/integ.json +1 -1
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/iotlam-iot-lambda-use-existing-func.assets.json +6 -6
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/iotlam-iot-lambda-use-existing-func.template.json +25 -36
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/iotlamiotlambdauseexistingfuncIntegDefaultTestDeployAssert1472E245.assets.json +1 -1
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/manifest.json +106 -6
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/tree.json +1 -362
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/asset.42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c/index.js +0 -10
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/asset.42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c/index.js +0 -10
package/.jsii
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"url": "https://aws.amazon.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@aws-solutions-constructs/core": "2.
|
|
12
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"@aws-solutions-constructs/core": "2.81.0",
|
|
12
|
+
"aws-cdk-lib": "^2.186.0",
|
|
13
13
|
"constructs": "^10.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencyClosure": {
|
|
@@ -39,32 +39,6 @@
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
"@aws-cdk/asset-kubectl-v20": {
|
|
43
|
-
"targets": {
|
|
44
|
-
"dotnet": {
|
|
45
|
-
"namespace": "Amazon.CDK.Asset.KubectlV20",
|
|
46
|
-
"packageId": "Amazon.CDK.Asset.KubectlV20"
|
|
47
|
-
},
|
|
48
|
-
"go": {
|
|
49
|
-
"moduleName": "github.com/cdklabs/awscdk-asset-kubectl-go",
|
|
50
|
-
"packageName": "kubectlv20"
|
|
51
|
-
},
|
|
52
|
-
"java": {
|
|
53
|
-
"maven": {
|
|
54
|
-
"artifactId": "cdk-asset-kubectl-v20",
|
|
55
|
-
"groupId": "software.amazon.awscdk"
|
|
56
|
-
},
|
|
57
|
-
"package": "software.amazon.awscdk.cdk.asset.kubectl.v20"
|
|
58
|
-
},
|
|
59
|
-
"js": {
|
|
60
|
-
"npm": "@aws-cdk/asset-kubectl-v20"
|
|
61
|
-
},
|
|
62
|
-
"python": {
|
|
63
|
-
"distName": "aws-cdk.asset-kubectl-v20",
|
|
64
|
-
"module": "aws_cdk.asset_kubectl_v20"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
42
|
"@aws-cdk/asset-node-proxy-agent-v6": {
|
|
69
43
|
"targets": {
|
|
70
44
|
"dotnet": {
|
|
@@ -993,6 +967,19 @@
|
|
|
993
967
|
}
|
|
994
968
|
}
|
|
995
969
|
},
|
|
970
|
+
"aws-cdk-lib.aws_cognito_identitypool": {
|
|
971
|
+
"targets": {
|
|
972
|
+
"dotnet": {
|
|
973
|
+
"namespace": "Amazon.CDK.AWS.Cognito.Identitypool"
|
|
974
|
+
},
|
|
975
|
+
"java": {
|
|
976
|
+
"package": "software.amazon.awscdk.services.cognito.identitypool"
|
|
977
|
+
},
|
|
978
|
+
"python": {
|
|
979
|
+
"module": "aws_cdk.aws_cognito_identitypool"
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
},
|
|
996
983
|
"aws-cdk-lib.aws_comprehend": {
|
|
997
984
|
"targets": {
|
|
998
985
|
"dotnet": {
|
|
@@ -1669,6 +1656,19 @@
|
|
|
1669
1656
|
}
|
|
1670
1657
|
}
|
|
1671
1658
|
},
|
|
1659
|
+
"aws-cdk-lib.aws_gameliftstreams": {
|
|
1660
|
+
"targets": {
|
|
1661
|
+
"dotnet": {
|
|
1662
|
+
"package": "Amazon.CDK.AWS.GameLiftStreams"
|
|
1663
|
+
},
|
|
1664
|
+
"java": {
|
|
1665
|
+
"package": "software.amazon.awscdk.services.gameliftstreams"
|
|
1666
|
+
},
|
|
1667
|
+
"python": {
|
|
1668
|
+
"module": "aws_cdk.aws_gameliftstreams"
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
},
|
|
1672
1672
|
"aws-cdk-lib.aws_globalaccelerator": {
|
|
1673
1673
|
"targets": {
|
|
1674
1674
|
"dotnet": {
|
|
@@ -3294,6 +3294,19 @@
|
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
3296
|
},
|
|
3297
|
+
"aws-cdk-lib.aws_scheduler_targets": {
|
|
3298
|
+
"targets": {
|
|
3299
|
+
"dotnet": {
|
|
3300
|
+
"namespace": "Amazon.CDK.AWS.Scheduler.Targets"
|
|
3301
|
+
},
|
|
3302
|
+
"java": {
|
|
3303
|
+
"package": "software.amazon.awscdk.services.scheduler.targets"
|
|
3304
|
+
},
|
|
3305
|
+
"python": {
|
|
3306
|
+
"module": "aws_cdk.aws_scheduler_targets"
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
},
|
|
3297
3310
|
"aws-cdk-lib.aws_sdb": {
|
|
3298
3311
|
"targets": {
|
|
3299
3312
|
"dotnet": {
|
|
@@ -3841,19 +3854,6 @@
|
|
|
3841
3854
|
}
|
|
3842
3855
|
}
|
|
3843
3856
|
},
|
|
3844
|
-
"aws-cdk-lib.lambda_layer_kubectl": {
|
|
3845
|
-
"targets": {
|
|
3846
|
-
"dotnet": {
|
|
3847
|
-
"namespace": "Amazon.CDK.LambdaLayer.Kubectl"
|
|
3848
|
-
},
|
|
3849
|
-
"java": {
|
|
3850
|
-
"package": "software.amazon.awscdk.lambdalayer.kubectl"
|
|
3851
|
-
},
|
|
3852
|
-
"python": {
|
|
3853
|
-
"module": "aws_cdk.lambda_layer_kubectl"
|
|
3854
|
-
}
|
|
3855
|
-
}
|
|
3856
|
-
},
|
|
3857
3857
|
"aws-cdk-lib.lambda_layer_node_proxy_agent": {
|
|
3858
3858
|
"targets": {
|
|
3859
3859
|
"dotnet": {
|
|
@@ -4159,6 +4159,6 @@
|
|
|
4159
4159
|
"symbolId": "lib/index:IotToLambdaProps"
|
|
4160
4160
|
}
|
|
4161
4161
|
},
|
|
4162
|
-
"version": "2.
|
|
4163
|
-
"fingerprint": "
|
|
4162
|
+
"version": "2.81.0",
|
|
4163
|
+
"fingerprint": "kmc7RdasLy1+InhBPOo1UnKVFZru0xyI5heo9h5834I="
|
|
4164
4164
|
}
|
package/lib/index.js
CHANGED
|
@@ -41,5 +41,5 @@ class IotToLambda extends constructs_1.Construct {
|
|
|
41
41
|
}
|
|
42
42
|
exports.IotToLambda = IotToLambda;
|
|
43
43
|
_a = JSII_RTTI_SYMBOL_1;
|
|
44
|
-
IotToLambda[_a] = { fqn: "@aws-solutions-constructs/aws-iot-lambda.IotToLambda", version: "2.
|
|
44
|
+
IotToLambda[_a] = { fqn: "@aws-solutions-constructs/aws-iot-lambda.IotToLambda", version: "2.81.0" };
|
|
45
45
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQWNBLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0Msd0ZBQXdGO0FBQ3hGLDJDQUF1QztBQUN2QywyREFBMkQ7QUFDM0QseURBQStEO0FBMEIvRCxNQUFhLFdBQVksU0FBUSxzQkFBUztJQUl4Qzs7Ozs7OztPQU9HO0lBQ0gsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUF1QjtRQUMvRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ2pCLFFBQVEsQ0FBQyxnQkFBZ0IsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUVqQyxJQUFJLENBQUMsY0FBYyxHQUFHLFFBQVEsQ0FBQyxtQkFBbUIsQ0FBQyxJQUFJLEVBQUU7WUFDdkQsaUJBQWlCLEVBQUUsS0FBSyxDQUFDLGlCQUFpQjtZQUMxQyxtQkFBbUIsRUFBRSxLQUFLLENBQUMsbUJBQW1CO1NBQy9DLENBQUMsQ0FBQztRQUVILE1BQU0sb0JBQW9CLEdBQUcsUUFBUSxDQUFDLHdCQUF3QixDQUFDLENBQUM7Z0JBQzlELE1BQU0sRUFBRTtvQkFDTixXQUFXLEVB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1QgdG9waWMgcnVsZVxuICAgIHRoaXMuaW90VG9waWNSdWxlID0gbmV3IGlvdC5DZm5Ub3BpY1J1bGUodGhpcywgJ0lvdFRvcGljJywgaW90VG9waWNQcm9wcyk7XG5cbiAgICBkZWZhdWx0cy5hZGRQZXJtaXNzaW9uKHRoaXMubGFtYmRhRnVuY3Rpb24sIFwiQXdzSW90TGFtYmRhSW52b2tlUGVybWlzc2lvblwiLCB7XG4gICAgICBwcmluY2lwYWw6IG5ldyBpYW0uU2VydmljZVByaW5jaXBhbCgnaW90LmFtYXpvbmF3cy5jb20nKSxcbiAgICAgIHNvdXJjZUFybjogdGhpcy5pb3RUb3BpY1J1bGUuYXR0ckFyblxuICAgIH0pO1xuICB9XG59XG4iXX0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-solutions-constructs/aws-iot-lambda",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.81.0",
|
|
4
4
|
"description": "CDK Constructs for AWS IoT to AWS Lambda integration",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@aws-solutions-constructs/core": "2.
|
|
57
|
+
"@aws-solutions-constructs/core": "2.81.0",
|
|
58
58
|
"constructs": "^10.0.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-cdk/integ-tests-alpha": "2.
|
|
61
|
+
"@aws-cdk/integ-tests-alpha": "2.186.0-alpha.0",
|
|
62
62
|
"@types/node": "^10.3.0",
|
|
63
63
|
"constructs": "^10.0.0",
|
|
64
|
-
"aws-cdk-lib": "2.
|
|
64
|
+
"aws-cdk-lib": "2.186.0"
|
|
65
65
|
},
|
|
66
66
|
"jest": {
|
|
67
67
|
"moduleFileExtensions": [
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
]
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@aws-solutions-constructs/core": "2.
|
|
81
|
+
"@aws-solutions-constructs/core": "2.81.0",
|
|
82
82
|
"constructs": "^10.0.0",
|
|
83
|
-
"aws-cdk-lib": "^2.
|
|
83
|
+
"aws-cdk-lib": "^2.186.0"
|
|
84
84
|
},
|
|
85
85
|
"keywords": [
|
|
86
86
|
"aws",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
|
|
5
|
+
* with the License. A copy of the License is located at
|
|
6
|
+
*
|
|
7
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
|
|
10
|
+
* OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
|
|
11
|
+
* and limitations under the License.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
console.log('Loading function');
|
|
15
|
+
|
|
16
|
+
exports.handler = async (event, context) => {
|
|
17
|
+
console.log('Received event:', JSON.stringify(event, null, 2));
|
|
18
|
+
return {
|
|
19
|
+
statusCode: 200,
|
|
20
|
+
headers: { 'Content-Type': 'text/plain' },
|
|
21
|
+
body: `Hello from Project Vesper! You've hit ${event.path}\n`
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"40.0.0"}
|
package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlam-iot-lambda-new-func.assets.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "40.0.0",
|
|
3
3
|
"files": {
|
|
4
|
-
"
|
|
4
|
+
"3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f": {
|
|
5
5
|
"source": {
|
|
6
|
-
"path": "asset.
|
|
6
|
+
"path": "asset.3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f",
|
|
7
7
|
"packaging": "zip"
|
|
8
8
|
},
|
|
9
9
|
"destinations": {
|
|
10
10
|
"current_account-current_region": {
|
|
11
11
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
12
|
-
"objectKey": "
|
|
12
|
+
"objectKey": "3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f.zip",
|
|
13
13
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"
|
|
17
|
+
"f2aefc220f5fa6638f80e958c7a942487db3e323b7948289c85311c801c82bd0": {
|
|
18
18
|
"source": {
|
|
19
19
|
"path": "iotlam-iot-lambda-new-func.template.json",
|
|
20
20
|
"packaging": "file"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"destinations": {
|
|
23
23
|
"current_account-current_region": {
|
|
24
24
|
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
|
|
25
|
-
"objectKey": "
|
|
25
|
+
"objectKey": "f2aefc220f5fa6638f80e958c7a942487db3e323b7948289c85311c801c82bd0.json",
|
|
26
26
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlam-iot-lambda-new-func.template.json
CHANGED
|
@@ -62,40 +62,6 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
"testiotlambdaintegrationLambdaFunctionServiceRoleDefaultPolicy0FB2AE4D": {
|
|
66
|
-
"Type": "AWS::IAM::Policy",
|
|
67
|
-
"Properties": {
|
|
68
|
-
"PolicyDocument": {
|
|
69
|
-
"Statement": [
|
|
70
|
-
{
|
|
71
|
-
"Action": [
|
|
72
|
-
"xray:PutTelemetryRecords",
|
|
73
|
-
"xray:PutTraceSegments"
|
|
74
|
-
],
|
|
75
|
-
"Effect": "Allow",
|
|
76
|
-
"Resource": "*"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"Version": "2012-10-17"
|
|
80
|
-
},
|
|
81
|
-
"PolicyName": "testiotlambdaintegrationLambdaFunctionServiceRoleDefaultPolicy0FB2AE4D",
|
|
82
|
-
"Roles": [
|
|
83
|
-
{
|
|
84
|
-
"Ref": "testiotlambdaintegrationLambdaFunctionServiceRole27C3EE41"
|
|
85
|
-
}
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
"Metadata": {
|
|
89
|
-
"cfn_nag": {
|
|
90
|
-
"rules_to_suppress": [
|
|
91
|
-
{
|
|
92
|
-
"id": "W12",
|
|
93
|
-
"reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray and access ENIs in a VPC."
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
65
|
"testiotlambdaintegrationLambdaFunctionC5329DBA": {
|
|
100
66
|
"Type": "AWS::Lambda::Function",
|
|
101
67
|
"Properties": {
|
|
@@ -103,7 +69,7 @@
|
|
|
103
69
|
"S3Bucket": {
|
|
104
70
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
105
71
|
},
|
|
106
|
-
"S3Key": "
|
|
72
|
+
"S3Key": "3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f.zip"
|
|
107
73
|
},
|
|
108
74
|
"Environment": {
|
|
109
75
|
"Variables": {
|
|
@@ -123,7 +89,6 @@
|
|
|
123
89
|
}
|
|
124
90
|
},
|
|
125
91
|
"DependsOn": [
|
|
126
|
-
"testiotlambdaintegrationLambdaFunctionServiceRoleDefaultPolicy0FB2AE4D",
|
|
127
92
|
"testiotlambdaintegrationLambdaFunctionServiceRole27C3EE41"
|
|
128
93
|
],
|
|
129
94
|
"Metadata": {
|
|
@@ -145,6 +110,30 @@
|
|
|
145
110
|
}
|
|
146
111
|
}
|
|
147
112
|
},
|
|
113
|
+
"testiotlambdaintegrationLambdaFunctioninlinePolicyAddedToExecutionRole078F7FCF5": {
|
|
114
|
+
"Type": "AWS::IAM::Policy",
|
|
115
|
+
"Properties": {
|
|
116
|
+
"PolicyDocument": {
|
|
117
|
+
"Statement": [
|
|
118
|
+
{
|
|
119
|
+
"Action": [
|
|
120
|
+
"xray:PutTelemetryRecords",
|
|
121
|
+
"xray:PutTraceSegments"
|
|
122
|
+
],
|
|
123
|
+
"Effect": "Allow",
|
|
124
|
+
"Resource": "*"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"Version": "2012-10-17"
|
|
128
|
+
},
|
|
129
|
+
"PolicyName": "testiotlambdaintegrationLambdaFunctioninlinePolicyAddedToExecutionRole078F7FCF5",
|
|
130
|
+
"Roles": [
|
|
131
|
+
{
|
|
132
|
+
"Ref": "testiotlambdaintegrationLambdaFunctionServiceRole27C3EE41"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
148
137
|
"testiotlambdaintegrationLambdaFunctionAwsIotLambdaInvokePermission184E45B6F": {
|
|
149
138
|
"Type": "AWS::Lambda::Permission",
|
|
150
139
|
"Properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "42.0.0",
|
|
3
3
|
"artifacts": {
|
|
4
4
|
"iotlamiotlambdanewfuncIntegDefaultTestDeployAssert4A7D5BFD.assets": {
|
|
5
5
|
"type": "cdk:asset-manifest",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"validateOnSynth": false,
|
|
67
67
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
68
68
|
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
69
|
-
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/
|
|
69
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f2aefc220f5fa6638f80e958c7a942487db3e323b7948289c85311c801c82bd0.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|
|
@@ -82,16 +82,68 @@
|
|
|
82
82
|
"iotlam-iot-lambda-new-func.assets"
|
|
83
83
|
],
|
|
84
84
|
"metadata": {
|
|
85
|
+
"/iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole": [
|
|
86
|
+
{
|
|
87
|
+
"type": "aws:cdk:analytics:construct",
|
|
88
|
+
"data": {
|
|
89
|
+
"assumedBy": {
|
|
90
|
+
"principalAccount": "*",
|
|
91
|
+
"assumeRoleAction": "*"
|
|
92
|
+
},
|
|
93
|
+
"inlinePolicies": "*"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "aws:cdk:analytics:method",
|
|
98
|
+
"data": {
|
|
99
|
+
"attachInlinePolicy": [
|
|
100
|
+
"*"
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "aws:cdk:analytics:method",
|
|
106
|
+
"data": {
|
|
107
|
+
"attachInlinePolicy": [
|
|
108
|
+
"*"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"/iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole": [
|
|
114
|
+
{
|
|
115
|
+
"type": "aws:cdk:analytics:construct",
|
|
116
|
+
"data": "*"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
85
119
|
"/iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole/Resource": [
|
|
86
120
|
{
|
|
87
121
|
"type": "aws:cdk:logicalId",
|
|
88
122
|
"data": "testiotlambdaintegrationLambdaFunctionServiceRole27C3EE41"
|
|
89
123
|
}
|
|
90
124
|
],
|
|
91
|
-
"/iotlam-iot-lambda-new-func/test-iot-lambda-integration/
|
|
125
|
+
"/iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction": [
|
|
92
126
|
{
|
|
93
|
-
"type": "aws:cdk:
|
|
94
|
-
"data":
|
|
127
|
+
"type": "aws:cdk:analytics:construct",
|
|
128
|
+
"data": {
|
|
129
|
+
"role": "*",
|
|
130
|
+
"tracing": "Active",
|
|
131
|
+
"code": "*",
|
|
132
|
+
"runtime": "*",
|
|
133
|
+
"handler": "*"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "aws:cdk:analytics:method",
|
|
138
|
+
"data": {
|
|
139
|
+
"addEnvironment": [
|
|
140
|
+
"*",
|
|
141
|
+
"*",
|
|
142
|
+
{
|
|
143
|
+
"removeInEdge": true
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
|
95
147
|
}
|
|
96
148
|
],
|
|
97
149
|
"/iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/Resource": [
|
|
@@ -100,6 +152,44 @@
|
|
|
100
152
|
"data": "testiotlambdaintegrationLambdaFunctionC5329DBA"
|
|
101
153
|
}
|
|
102
154
|
],
|
|
155
|
+
"/iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/inlinePolicyAddedToExecutionRole-0": [
|
|
156
|
+
{
|
|
157
|
+
"type": "aws:cdk:analytics:construct",
|
|
158
|
+
"data": {
|
|
159
|
+
"statements": "*"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "aws:cdk:analytics:method",
|
|
164
|
+
"data": {
|
|
165
|
+
"addStatements": [
|
|
166
|
+
{}
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "aws:cdk:analytics:method",
|
|
172
|
+
"data": {
|
|
173
|
+
"attachToRole": [
|
|
174
|
+
"*"
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"type": "aws:cdk:analytics:method",
|
|
180
|
+
"data": {
|
|
181
|
+
"attachToRole": [
|
|
182
|
+
"*"
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"/iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource": [
|
|
188
|
+
{
|
|
189
|
+
"type": "aws:cdk:logicalId",
|
|
190
|
+
"data": "testiotlambdaintegrationLambdaFunctioninlinePolicyAddedToExecutionRole078F7FCF5"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
103
193
|
"/iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/AwsIotLambdaInvokePermission-1": [
|
|
104
194
|
{
|
|
105
195
|
"type": "aws:cdk:logicalId",
|
|
@@ -123,6 +213,15 @@
|
|
|
123
213
|
"type": "aws:cdk:logicalId",
|
|
124
214
|
"data": "CheckBootstrapVersion"
|
|
125
215
|
}
|
|
216
|
+
],
|
|
217
|
+
"testiotlambdaintegrationLambdaFunctionServiceRoleDefaultPolicy0FB2AE4D": [
|
|
218
|
+
{
|
|
219
|
+
"type": "aws:cdk:logicalId",
|
|
220
|
+
"data": "testiotlambdaintegrationLambdaFunctionServiceRoleDefaultPolicy0FB2AE4D",
|
|
221
|
+
"trace": [
|
|
222
|
+
"!!DESTRUCTIVE_CHANGES: WILL_DESTROY"
|
|
223
|
+
]
|
|
224
|
+
}
|
|
126
225
|
]
|
|
127
226
|
},
|
|
128
227
|
"displayName": "iotlam-iot-lambda-new-func"
|
|
@@ -133,5 +232,6 @@
|
|
|
133
232
|
"file": "tree.json"
|
|
134
233
|
}
|
|
135
234
|
}
|
|
136
|
-
}
|
|
235
|
+
},
|
|
236
|
+
"minimumCliVersion": "2.1006.0"
|
|
137
237
|
}
|