Class CfnComputationModel

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-08-12T14:44:17.162Z") @Stability(Stable) public class CfnComputationModel extends CfnResource implements IInspectable, ITaggableV2
Resource schema for AWS::IoTSiteWise::ComputationModel.

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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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)
      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

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrComputationModelArn

      @Stability(Stable) @NotNull public String getAttrComputationModelArn()
      The ARN of the computation model.
    • getAttrComputationModelId

      @Stability(Stable) @NotNull public String getAttrComputationModelId()
      The ID of the computation model.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getComputationModelConfiguration

      @Stability(Stable) @NotNull public Object getComputationModelConfiguration()
    • setComputationModelConfiguration

      @Stability(Stable) public void setComputationModelConfiguration(@NotNull IResolvable value)
    • setComputationModelConfiguration

      @Stability(Stable) public void setComputationModelConfiguration(@NotNull CfnComputationModel.ComputationModelConfigurationProperty value)
    • getComputationModelDataBinding

      @Stability(Stable) @NotNull public Object getComputationModelDataBinding()
    • setComputationModelDataBinding

      @Stability(Stable) public void setComputationModelDataBinding(@NotNull IResolvable value)
    • setComputationModelDataBinding

      @Stability(Stable) public void setComputationModelDataBinding(@NotNull Map<String,Object> value)
    • getComputationModelName

      @Stability(Stable) @NotNull public String getComputationModelName()
      The name of the computation model.
    • setComputationModelName

      @Stability(Stable) public void setComputationModelName(@NotNull String value)
      The name of the computation model.
    • getComputationModelDescription

      @Stability(Stable) @Nullable public String getComputationModelDescription()
      A description about the computation model.
    • setComputationModelDescription

      @Stability(Stable) public void setComputationModelDescription(@Nullable String value)
      A description about the computation model.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An array of key-value pairs to apply to this resource.