-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
(aws-iot): Support for Thing Groups and Thing Types #18872
Comments
I'll try it. |
Usage exampleThing, Thing Type, Thing Groupimport * as iot from "aws-cdk-lib/aws-iot";
const thingType = new iot.ThingType(this, "ThingType", {
thingTypeName: "example-thingTypeName",
thingTypeDescription: "example-thingTypeDescription",
searchableAttributes: ["xxx", "yyy"],
});
const thingGroup = new iot.ThingGroup(this, "ThingGroup", {
thingGroupName: "example-thingGroupName",
thingGroupDescription: "example-thingGroupDescription",
attributes: {
location: "xxxx",
},
mergeAttributes: true,
});
const thing = new iot.Thing(this, "Thing", {
thingName: "example-thingName",
attributes: {
location: "xxxx",
},
thingType,
thingGroup,
}); Add thing to thing groupimport * as iot from "aws-cdk-lib/aws-iot";
const thingGroup = new iot.Thing(this, "ThingGroup", {
thingGroupName: "example-thingGroupName",
});
const thing = new iot.Thing(this, "Thing", {
thingName: "example-thingName",
});
thing.addToGroup(thingGroup); Nested Groupimport * as iot from "aws-cdk-lib/aws-iot";
const thingGroupL1 = new iot.Thing(this, "ThingGroupLayer1", {
thingGroupName: "example-thingGroupName",
});
const thingGroupL2 = new iot.Thing(this, "ThingGroupLayer2", {
thingGroupName: "example-thingGroupName",
parentGroup: thingGroupL1,
}); ConcernCloudFormation supportCloudFormation don't have ThingGroup and ThingType resource type. So we should create Deleting a ThingTypeDeleting a ThingType is a bit difficult. Because when the ThingType is not statue |
CDK support for the Thing Groups would be very helpful. |
This issue has received a significant amount of attention so we are automatically upgrading its priority. A member of the community will see the re-prioritization and provide an update on the issue. |
Description
Support for IoT thing groups and thing types in the CDK.
Use Case
To provision thing groups and thing types in our environment with IaC.
Proposed Solution
Implement APIs to create the aforementioned resources.
Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: