DescribeAssetModelCompositeModel - AWS IoT SiteWise

DescribeAssetModelCompositeModel

Retrieves information about an asset model composite model (also known as an asset model component). For more information, see Custom composite models (Components) in the AWS IoT SiteWise User Guide.

Request Syntax

GET /asset-models/assetModelId/composite-models/assetModelCompositeModelId?assetModelVersion=assetModelVersion HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

assetModelCompositeModelId

The ID of a composite model on this asset model. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the AWS IoT SiteWise User Guide.

Length Constraints: Minimum length of 13. Maximum length of 139.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^externalId:[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+

Required: Yes

assetModelId

The ID of the asset model. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the AWS IoT SiteWise User Guide.

Length Constraints: Minimum length of 13. Maximum length of 139.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^externalId:[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+

Required: Yes

assetModelVersion

The version alias that specifies the latest or active version of the asset model. The details are returned in the response. The default value is LATEST. See Asset model versions in the AWS IoT SiteWise User Guide.

Pattern: ^(LATEST|ACTIVE)$

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-type: application/json { "actionDefinitions": [ { "actionDefinitionId": "string", "actionName": "string", "actionType": "string" } ], "assetModelCompositeModelDescription": "string", "assetModelCompositeModelExternalId": "string", "assetModelCompositeModelId": "string", "assetModelCompositeModelName": "string", "assetModelCompositeModelPath": [ { "id": "string", "name": "string" } ], "assetModelCompositeModelProperties": [ { "dataType": "string", "dataTypeSpec": "string", "externalId": "string", "id": "string", "name": "string", "path": [ { "id": "string", "name": "string" } ], "type": { "attribute": { "defaultValue": "string" }, "measurement": { "processingConfig": { "forwardingConfig": { "state": "string" } } }, "metric": { "expression": "string", "processingConfig": { "computeLocation": "string" }, "variables": [ { "name": "string", "value": { "hierarchyId": "string", "propertyId": "string", "propertyPath": [ { "id": "string", "name": "string" } ] } } ], "window": { "tumbling": { "interval": "string", "offset": "string" } } }, "transform": { "expression": "string", "processingConfig": { "computeLocation": "string", "forwardingConfig": { "state": "string" } }, "variables": [ { "name": "string", "value": { "hierarchyId": "string", "propertyId": "string", "propertyPath": [ { "id": "string", "name": "string" } ] } } ] } }, "unit": "string" } ], "assetModelCompositeModelSummaries": [ { "description": "string", "externalId": "string", "id": "string", "name": "string", "path": [ { "id": "string", "name": "string" } ], "type": "string" } ], "assetModelCompositeModelType": "string", "assetModelId": "string", "compositionDetails": { "compositionRelationship": [ { "id": "string" } ] } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

actionDefinitions

The available actions for a composite model on this asset model.

Type: Array of ActionDefinition objects

assetModelCompositeModelDescription

The description for the composite model.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: [^\u0000-\u001F\u007F]+

assetModelCompositeModelExternalId

The external ID of a composite model on this asset model.

Type: String

Length Constraints: Minimum length of 2. Maximum length of 128.

Pattern: [a-zA-Z0-9_][a-zA-Z_\-0-9.:]*[a-zA-Z0-9_]+

assetModelCompositeModelId

The ID of a composite model on this asset model.

Type: String

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

assetModelCompositeModelName

The unique, friendly name for the composite model.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: [^\u0000-\u001F\u007F]+

assetModelCompositeModelPath

The path to the composite model listing the parent composite models.

Type: Array of AssetModelCompositeModelPathSegment objects

assetModelCompositeModelProperties

The property definitions of the composite model.

Type: Array of AssetModelProperty objects

assetModelCompositeModelSummaries

The list of composite model summaries for the composite model.

Type: Array of AssetModelCompositeModelSummary objects

assetModelCompositeModelType

The composite model type. Valid values are AWS/ALARM, CUSTOM, or AWS/L4E_ANOMALY.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: [^\u0000-\u001F\u007F]+

assetModelId

The ID of the asset model, in UUID format.

Type: String

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

compositionDetails

Metadata for the composition relationship established by using composedAssetModelId in CreateAssetModelCompositeModel. For instance, an array detailing the path of the composition relationship for this composite model.

Type: CompositionDetails object

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalFailureException

AWS IoT SiteWise can't process your request right now. Try again later.

HTTP Status Code: 500

InvalidRequestException

The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.

HTTP Status Code: 400

ResourceNotFoundException

The requested resource can't be found.

HTTP Status Code: 404

ThrottlingException

Your request exceeded a rate limit. For example, you might have exceeded the number of AWS IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: