CfnComputationModelProps

class aws_cdk.aws_iotsitewise.CfnComputationModelProps(*, computation_model_configuration, computation_model_data_binding, computation_model_name, computation_model_description=None, tags=None)

Bases: object

Properties for defining a CfnComputationModel.

Parameters:
  • computation_model_configuration (Union[IResolvable, ComputationModelConfigurationProperty, Dict[str, Any]]) – The configuration for the computation model.

  • computation_model_data_binding (Union[IResolvable, Mapping[str, Union[IResolvable, ComputationModelDataBindingValueProperty, Dict[str, Any]]]]) – The data binding for the computation model. Key is a variable name defined in configuration. Value is a ComputationModelDataBindingValue referenced by the variable.

  • computation_model_name (str) – The name of the computation model.

  • computation_model_description (Optional[str]) – The description of the computation model.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-computationmodel.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotsitewise as iotsitewise

# computation_model_data_binding_value_property_: iotsitewise.CfnComputationModel.ComputationModelDataBindingValueProperty

cfn_computation_model_props = iotsitewise.CfnComputationModelProps(
    computation_model_configuration=iotsitewise.CfnComputationModel.ComputationModelConfigurationProperty(
        anomaly_detection=iotsitewise.CfnComputationModel.AnomalyDetectionComputationModelConfigurationProperty(
            input_properties="inputProperties",
            result_property="resultProperty"
        )
    ),
    computation_model_data_binding={
        "computation_model_data_binding_key": iotsitewise.CfnComputationModel.ComputationModelDataBindingValueProperty(
            asset_model_property=iotsitewise.CfnComputationModel.AssetModelPropertyBindingValueProperty(
                asset_model_id="assetModelId",
                property_id="propertyId"
            ),
            asset_property=iotsitewise.CfnComputationModel.AssetPropertyBindingValueProperty(
                asset_id="assetId",
                property_id="propertyId"
            ),
            list=[computation_model_data_binding_value_property_]
        )
    },
    computation_model_name="computationModelName",

    # the properties below are optional
    computation_model_description="computationModelDescription",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

computation_model_configuration

The configuration for the computation model.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-computationmodel.html#cfn-iotsitewise-computationmodel-computationmodelconfiguration

computation_model_data_binding

The data binding for the computation model.

Key is a variable name defined in configuration. Value is a ComputationModelDataBindingValue referenced by the variable.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-computationmodel.html#cfn-iotsitewise-computationmodel-computationmodeldatabinding

computation_model_description

The description of the computation model.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-computationmodel.html#cfn-iotsitewise-computationmodel-computationmodeldescription

computation_model_name

The name of the computation model.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-computationmodel.html#cfn-iotsitewise-computationmodel-computationmodelname

tags

A list of key-value pairs that contain metadata for the asset.

For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-computationmodel.html#cfn-iotsitewise-computationmodel-tags