aws-samples / aws-iot-twinmaker-samples

Apache License 2.0
97 stars 77 forks source link

Improve sitewise components clean up #43

Closed MaxZyantao closed 2 years ago

MaxZyantao commented 2 years ago

Issue #, if available: Current SiteWise clean up does not delete components in entity, which prevents users to recreate SiteWise resources

Description of changes:

  1. Refactor the logic for update entity to unify create / delete components
  2. Add SiteWise components delete logic

Tests Tested on both single-mixer & multi-mixer import -> delete -> re-import -> test in Zeplin notebook

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.