CfnComputationModelPropsMixin
- class aws_cdk.mixins_preview.aws_iotsitewise.mixins.CfnComputationModelPropsMixin(props, *, strategy=None)
Bases:
MixinCreate a computation model with a configuration and data binding.
- See:
- CloudformationResource:
AWS::IoTSiteWise::ComputationModel
- Mixin:
true
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_iotsitewise import mixins as iotsitewise_mixins # computation_model_data_binding_value_property_: iotsitewise_mixins.CfnComputationModelPropsMixin.ComputationModelDataBindingValueProperty cfn_computation_model_props_mixin = iotsitewise_mixins.CfnComputationModelPropsMixin(iotsitewise_mixins.CfnComputationModelMixinProps( computation_model_configuration=iotsitewise_mixins.CfnComputationModelPropsMixin.ComputationModelConfigurationProperty( anomaly_detection=iotsitewise_mixins.CfnComputationModelPropsMixin.AnomalyDetectionComputationModelConfigurationProperty( input_properties="inputProperties", result_property="resultProperty" ) ), computation_model_data_binding={ "computation_model_data_binding_key": iotsitewise_mixins.CfnComputationModelPropsMixin.ComputationModelDataBindingValueProperty( asset_model_property=iotsitewise_mixins.CfnComputationModelPropsMixin.AssetModelPropertyBindingValueProperty( asset_model_id="assetModelId", property_id="propertyId" ), asset_property=iotsitewise_mixins.CfnComputationModelPropsMixin.AssetPropertyBindingValueProperty( asset_id="assetId", property_id="propertyId" ), list=[computation_model_data_binding_value_property_] ) }, computation_model_description="computationModelDescription", computation_model_name="computationModelName", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::IoTSiteWise::ComputationModel.- Parameters:
props (
Union[CfnComputationModelMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['computationModelConfiguration', 'computationModelDataBinding', 'computationModelDescription', 'computationModelName', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AnomalyDetectionComputationModelConfigurationProperty
- class CfnComputationModelPropsMixin.AnomalyDetectionComputationModelConfigurationProperty(*, input_properties=None, result_property=None)
Bases:
objectContains the configuration for anomaly detection computation models.
- Parameters:
input_properties (
Optional[str]) – The list of input properties for the anomaly detection model.result_property (
Optional[str]) – The property where the anomaly detection results will be stored.
- See:
- 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.mixins_preview.aws_iotsitewise import mixins as iotsitewise_mixins anomaly_detection_computation_model_configuration_property = iotsitewise_mixins.CfnComputationModelPropsMixin.AnomalyDetectionComputationModelConfigurationProperty( input_properties="inputProperties", result_property="resultProperty" )
Attributes
- input_properties
The list of input properties for the anomaly detection model.
- result_property
The property where the anomaly detection results will be stored.
AssetModelPropertyBindingValueProperty
- class CfnComputationModelPropsMixin.AssetModelPropertyBindingValueProperty(*, asset_model_id=None, property_id=None)
Bases:
objectContains information about an
assetModelPropertybinding value.- Parameters:
asset_model_id (
Optional[str]) – The ID of the asset model, in UUID format.property_id (
Optional[str]) – The ID of the asset model property used in data binding value.
- See:
- 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.mixins_preview.aws_iotsitewise import mixins as iotsitewise_mixins asset_model_property_binding_value_property = iotsitewise_mixins.CfnComputationModelPropsMixin.AssetModelPropertyBindingValueProperty( asset_model_id="assetModelId", property_id="propertyId" )
Attributes
- asset_model_id
The ID of the asset model, in UUID format.
- property_id
The ID of the asset model property used in data binding value.
AssetPropertyBindingValueProperty
- class CfnComputationModelPropsMixin.AssetPropertyBindingValueProperty(*, asset_id=None, property_id=None)
Bases:
objectRepresents a data binding value referencing a specific asset property.
It’s used to bind computation model variables to actual asset property values for processing.
- Parameters:
asset_id (
Optional[str]) – The ID of the asset containing the property. This identifies the specific asset instance’s property value used in the computation model.property_id (
Optional[str]) – The ID of the property within the asset. This identifies the specific property’s value used in the computation model.
- See:
- 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.mixins_preview.aws_iotsitewise import mixins as iotsitewise_mixins asset_property_binding_value_property = iotsitewise_mixins.CfnComputationModelPropsMixin.AssetPropertyBindingValueProperty( asset_id="assetId", property_id="propertyId" )
Attributes
- asset_id
The ID of the asset containing the property.
This identifies the specific asset instance’s property value used in the computation model.
- property_id
The ID of the property within the asset.
This identifies the specific property’s value used in the computation model.
ComputationModelConfigurationProperty
- class CfnComputationModelPropsMixin.ComputationModelConfigurationProperty(*, anomaly_detection=None)
Bases:
objectThe configuration for the computation model.
- Parameters:
anomaly_detection (
Union[IResolvable,AnomalyDetectionComputationModelConfigurationProperty,Dict[str,Any],None]) – The configuration for the anomaly detection type of computation model.- See:
- 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.mixins_preview.aws_iotsitewise import mixins as iotsitewise_mixins computation_model_configuration_property = iotsitewise_mixins.CfnComputationModelPropsMixin.ComputationModelConfigurationProperty( anomaly_detection=iotsitewise_mixins.CfnComputationModelPropsMixin.AnomalyDetectionComputationModelConfigurationProperty( input_properties="inputProperties", result_property="resultProperty" ) )
Attributes
- anomaly_detection
The configuration for the anomaly detection type of computation model.
ComputationModelDataBindingValueProperty
- class CfnComputationModelPropsMixin.ComputationModelDataBindingValueProperty(*, asset_model_property=None, asset_property=None, list=None)
Bases:
objectContains computation model data binding value information, which can be one of
assetModelProperty,list.- Parameters:
asset_model_property (
Union[IResolvable,AssetModelPropertyBindingValueProperty,Dict[str,Any],None]) – Specifies an asset model property data binding value.asset_property (
Union[IResolvable,AssetPropertyBindingValueProperty,Dict[str,Any],None]) – The asset property value used for computation model data binding.list (
Union[IResolvable,Sequence[Union[IResolvable,ComputationModelDataBindingValueProperty,Dict[str,Any]]],None]) – Specifies a list of data binding value.
- See:
- 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.mixins_preview.aws_iotsitewise import mixins as iotsitewise_mixins # computation_model_data_binding_value_property_: iotsitewise_mixins.CfnComputationModelPropsMixin.ComputationModelDataBindingValueProperty computation_model_data_binding_value_property = iotsitewise_mixins.CfnComputationModelPropsMixin.ComputationModelDataBindingValueProperty( asset_model_property=iotsitewise_mixins.CfnComputationModelPropsMixin.AssetModelPropertyBindingValueProperty( asset_model_id="assetModelId", property_id="propertyId" ), asset_property=iotsitewise_mixins.CfnComputationModelPropsMixin.AssetPropertyBindingValueProperty( asset_id="assetId", property_id="propertyId" ), list=[computation_model_data_binding_value_property_] )
Attributes
- asset_model_property
Specifies an asset model property data binding value.
- asset_property
The asset property value used for computation model data binding.