CmdID / aws / aws iotsitewise
aws iotsitewise create-asset
Creates an asset from an existing asset model. AWS CLI reference
1 example 7 options Its page in the AWS CLI reference
Examples
To create an asset
The following create-asset example creates a wind turbine asset from a wind turbine asset model.
aws iotsitewise create-asset --asset-model-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --asset-name "Wind Turbine 1"Identify--asset-model-idThe ID of the asset model from which to create the asset.--asset-nameA friendly name for the asset.Its output
{
"assetId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"assetArn": "arn:aws:iotsitewise:us-west-2:123456789012:asset/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"assetStatus": {
"state": "CREATING"
}
}For more information, see Creating assets in the AWS IoT SiteWise User Guide.
Options
--asset-descriptionA description for the asset.--asset-external-idAn external ID to assign to the asset.--asset-idThe ID to assign to the asset, if desired.--asset-model-idThe ID of the asset model from which to create the asset.--asset-nameA friendly name for the asset.--client-tokenA unique case-sensitive identifier that you can provide to ensure the idempotency of the request.--tagsA list of key-value pairs that contain metadata for the asset.