Skip to main content

computation_models

Creates, updates, deletes or gets a computation_model resource or lists computation_models in a region

Overview

Namecomputation_models
TypeResource
DescriptionResource schema for AWS::IoTSiteWise::ComputationModel.
Idawscc.iotsitewise.computation_models

Fields

NameDatatypeDescription
computation_model_idstringThe ID of the computation model.
computation_model_arnstringThe ARN of the computation model.
computation_model_namestringThe name of the computation model.
computation_model_descriptionstringA description about the computation model.
computation_model_configurationobjectThe configuration for the computation model.
computation_model_data_bindingobjectThe data binding for the computation model.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::IoTSiteWise::ComputationModel.

Methods

NameAccessible byRequired Params
create_resourceINSERTComputationModelName, ComputationModelConfiguration, ComputationModelDataBinding, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual computation_model.

SELECT
region,
computation_model_id,
computation_model_arn,
computation_model_name,
computation_model_description,
computation_model_configuration,
computation_model_data_binding,
tags
FROM awscc.iotsitewise.computation_models
WHERE region = 'us-east-1' AND data__Identifier = '<ComputationModelId>';

INSERT example

Use the following StackQL query and manifest file to create a new computation_model resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.iotsitewise.computation_models (
ComputationModelName,
ComputationModelConfiguration,
ComputationModelDataBinding,
region
)
SELECT
'{{ ComputationModelName }}',
'{{ ComputationModelConfiguration }}',
'{{ ComputationModelDataBinding }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.iotsitewise.computation_models
WHERE data__Identifier = '<ComputationModelId>'
AND region = 'us-east-1';

Permissions

To operate on the computation_models resource, the following permissions are required:

Create

iotsitewise:CreateComputationModel,
iotsitewise:DescribeComputationModel,
iotsitewise:ListTagsForResource,
iotsitewise:TagResource

Read

iotsitewise:DescribeComputationModel,
iotsitewise:ListTagsForResource

Update

iotsitewise:UpdateComputationModel,
iotsitewise:DescribeComputationModel,
iotsitewise:ListTagsForResource,
iotsitewise:TagResource,
iotsitewise:UntagResource

Delete

iotsitewise:DeleteComputationModel,
iotsitewise:DescribeComputationModel,
iotsitewise:ListTagsForResource

List

iotsitewise:ListComputationModels,
iotsitewise:ListTagsForResource