CmdID / aws / aws iotsitewise
aws iotsitewise associate-assets
Associates a child asset with the given parent asset through a hierarchy defined in the parent asset's model. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To associate a child asset to a parent asset
The following associate-assets example associates a wind turbine asset to a wind farm asset, where the wind turbine asset model exists as a hierarchy in the wind farm asset model.
aws iotsitewise associate-assets --asset-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --hierarchy-id a1b2c3d4-5678-90ab-cdef-EXAMPLE22222 --child-asset-id a1b2c3d4-5678-90ab-cdef-EXAMPLE33333Identify--asset-idThe ID of the parent asset.--hierarchy-idThe ID of a hierarchy in the parent asset's model.--child-asset-idThe ID of the child asset to be associated.This command produces no output.
For more information, see Associating assets in the AWS IoT SiteWise User Guide.
Options
--asset-idThe ID of the parent asset.--child-asset-idThe ID of the child asset to be associated.--client-tokenA unique case-sensitive identifier that you can provide to ensure the idempotency of the request.--hierarchy-idThe ID of a hierarchy in the parent asset's model.