Class CfnComputationModel
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.iotsitewise.CfnComputationModel
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IComputationModelRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:23.532Z")
@Stability(Stable)
public class CfnComputationModel
extends CfnResource
implements IInspectable, IComputationModelRef, ITaggableV2
Create a computation model with a configuration and data binding.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotsitewise.*;
ComputationModelDataBindingValueProperty computationModelDataBindingValueProperty_;
CfnComputationModel cfnComputationModel = CfnComputationModel.Builder.create(this, "MyCfnComputationModel")
.computationModelConfiguration(ComputationModelConfigurationProperty.builder()
.anomalyDetection(AnomalyDetectionComputationModelConfigurationProperty.builder()
.inputProperties("inputProperties")
.resultProperty("resultProperty")
.build())
.build())
.computationModelDataBinding(Map.of(
"computationModelDataBindingKey", ComputationModelDataBindingValueProperty.builder()
.assetModelProperty(AssetModelPropertyBindingValueProperty.builder()
.assetModelId("assetModelId")
.propertyId("propertyId")
.build())
.assetProperty(AssetPropertyBindingValueProperty.builder()
.assetId("assetId")
.propertyId("propertyId")
.build())
.list(List.of(computationModelDataBindingValueProperty_))
.build()))
.computationModelName("computationModelName")
// the properties below are optional
.computationModelDescription("computationModelDescription")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContains the configuration for anomaly detection computation models.static interfaceContains information about anassetModelPropertybinding value.static interfaceRepresents a data binding value referencing a specific asset property.static final classA fluent builder forCfnComputationModel.static interfaceThe configuration for the computation model.static interfaceContains computation model data binding value information, which can be one ofassetModelProperty,list.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.iotsitewise.IComputationModelRef
IComputationModelRef.Jsii$Default, IComputationModelRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnComputationModel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnComputationModel(software.amazon.jsii.JsiiObjectRef objRef) CfnComputationModel(software.constructs.Construct scope, String id, CfnComputationModelProps props) Create a newAWS::IoTSiteWise::ComputationModel. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForComputationModel(IComputationModelRef resource) static IComputationModelReffromComputationModelArn(software.constructs.Construct scope, String id, String arn) Creates a new IComputationModelRef from an ARN.static IComputationModelReffromComputationModelId(software.constructs.Construct scope, String id, String computationModelId) Creates a new IComputationModelRef from a computationModelId.The ARN of the computation model, which has the following format.The ID of the computation model.Tag Manager which manages the tags for this resource.The configuration for the computation model.The data binding for the computation model.The description of the computation model.The name of the computation model.A reference to a ComputationModel resource.getTags()A list of key-value pairs that contain metadata for the asset.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe configuration for the computation model.voidThe configuration for the computation model.voidThe data binding for the computation model.voidThe data binding for the computation model.voidThe description of the computation model.voidsetComputationModelName(String value) The name of the computation model.voidA list of key-value pairs that contain metadata for the asset.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnComputationModel
protected CfnComputationModel(software.amazon.jsii.JsiiObjectRef objRef) -
CfnComputationModel
protected CfnComputationModel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnComputationModel
@Stability(Stable) public CfnComputationModel(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnComputationModelProps props) Create a newAWS::IoTSiteWise::ComputationModel.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForComputationModel
@Stability(Stable) @NotNull public static String arnForComputationModel(@NotNull IComputationModelRef resource) - Parameters:
resource- This parameter is required.
-
fromComputationModelArn
@Stability(Stable) @NotNull public static IComputationModelRef fromComputationModelArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IComputationModelRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromComputationModelId
@Stability(Stable) @NotNull public static IComputationModelRef fromComputationModelId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String computationModelId) Creates a new IComputationModelRef from a computationModelId.- Parameters:
scope- This parameter is required.id- This parameter is required.computationModelId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrComputationModelArn
The ARN of the computation model, which has the following format.arn:${Partition}:iotsitewise:${Region}:${Account}:computation-model/${ComputationModelId} -
getAttrComputationModelId
The ID of the computation model. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getComputationModelRef
A reference to a ComputationModel resource.- Specified by:
getComputationModelRefin interfaceIComputationModelRef
-
getComputationModelConfiguration
The configuration for the computation model.Returns union: either
IResolvableorCfnComputationModel.ComputationModelConfigurationProperty -
setComputationModelConfiguration
The configuration for the computation model. -
setComputationModelConfiguration
@Stability(Stable) public void setComputationModelConfiguration(@NotNull CfnComputationModel.ComputationModelConfigurationProperty value) The configuration for the computation model. -
getComputationModelDataBinding
The data binding for the computation model.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnComputationModel.ComputationModelDataBindingValueProperty> -
setComputationModelDataBinding
The data binding for the computation model. -
setComputationModelDataBinding
The data binding for the computation model. -
getComputationModelName
The name of the computation model. -
setComputationModelName
The name of the computation model. -
getComputationModelDescription
The description of the computation model. -
setComputationModelDescription
The description of the computation model. -
getTags
A list of key-value pairs that contain metadata for the asset. -
setTags
A list of key-value pairs that contain metadata for the asset.
-