Class CfnTask
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.CfnTask
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITaskRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-10T17:51:47.410Z")
@Stability(Stable)
public class CfnTask
extends CfnResource
implements IInspectable, ITaskRef, ITaggableV2
Resource schema for AWS::IoTSiteWise::Task.
A task defines a reusable containerized compute workload that can be referenced by one or more pipeline compute nodes.
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.*;
CfnTask cfnTask = CfnTask.Builder.create(this, "MyCfnTask")
.taskConfiguration(TaskConfigurationProperty.builder()
.containerTaskConfiguration(ContainerTaskConfigurationProperty.builder()
.ecrUri("ecrUri")
.processingType("processingType")
.processingUnit("processingUnit")
.taskExecutionRole("taskExecutionRole")
// the properties below are optional
.command(List.of("command"))
.environmentVariables(Map.of(
"environmentVariablesKey", "environmentVariables"))
.timeoutSeconds(123)
.build())
.build())
.taskName("taskName")
.workspaceName("workspaceName")
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTask.static interfaceConfiguration for running a custom container image on managed compute.static interfaceThe task execution configuration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.iotsitewise.ITaskRef
ITaskRef.Jsii$Default, ITaskRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTask(software.amazon.jsii.JsiiObjectRef objRef) CfnTask(software.constructs.Construct scope, String id, CfnTaskProps props) Create a newAWS::IoTSiteWise::Task. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTask(ITaskRef resource) The current lifecycle status of the task.The ARN of the task.Tag Manager which manages the tags for this resource.A description of the task.getTags()An array of key-value pairs to apply to this resource.The task execution configuration.The name of the task.A reference to a Task resource.The name of the workspace.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTask.renderProperties(Map<String, Object> props) voidsetDescription(String value) A description of the task.voidAn array of key-value pairs to apply to this resource.voidsetTaskConfiguration(IResolvable value) The task execution configuration.voidThe task execution configuration.voidsetTaskName(String value) The name of the task.voidsetWorkspaceName(String value) The name of the workspace.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods 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
getNode, withMethods 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
-
CfnTask
protected CfnTask(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTask
protected CfnTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTask
@Stability(Stable) public CfnTask(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTaskProps props) Create a newAWS::IoTSiteWise::Task.- 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
-
arnForTask
- Parameters:
resource- This parameter is required.
-
isCfnTask
Checks whether the given object is a CfnTask.- Parameters:
x- 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.
-
getAttrStatus
The current lifecycle status of the task. -
getAttrTaskArn
The ARN of the task. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getTaskRef
A reference to a Task resource.- Specified by:
getTaskRefin interfaceITaskRef
-
getTaskConfiguration
The task execution configuration.Returns union: either
IResolvableorCfnTask.TaskConfigurationProperty -
setTaskConfiguration
The task execution configuration. -
setTaskConfiguration
@Stability(Stable) public void setTaskConfiguration(@NotNull CfnTask.TaskConfigurationProperty value) The task execution configuration. -
getTaskName
The name of the task. -
setTaskName
The name of the task. -
getWorkspaceName
The name of the workspace. -
setWorkspaceName
The name of the workspace. -
getDescription
A description of the task. -
setDescription
A description of the task. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-