End of support notice: On December 15, 2025, AWS will end support for AWS IoT Analytics. After December 15, 2025, you will no longer be able to access the AWS IoT Analytics console, or AWS IoT Analytics resources. For more information, see AWS IoT Analytics end of support.
RemoveAttributes activity
A removeAttributes
activity removes attributes from a message. For example,
given the message that was the result of the addAttributes
activity.
{ "device": { "id": "device-123", "coord": [ 47.6, -122.3 ] }, "id": "device-123", "lat": 47.6, "lon": -122.3 }
To normalize that message so that it includes only the required data at the root level, use
the following removeAttributes
activity.
{ "removeAttributes": { "name": "MyRemoveAttributesActivity", "attributes": [ "device" ], "next": "MyDatastoreActivity" } }
This results in the following message flowing along the pipeline.
{ "id": "device-123", "lat": 47.6, "lon": -122.3 }