Interface CfnTaskProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTaskProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-10T17:51:47.412Z")
@Stability(Stable)
public interface CfnTaskProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnTask.
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.*;
CfnTaskProps cfnTaskProps = CfnTaskProps.builder()
.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 TypeInterfaceDescriptionstatic final classA builder forCfnTaskPropsstatic final classAn implementation forCfnTaskProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnTaskProps.Builderbuilder()default StringA 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.The name of the workspace.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTaskConfiguration
The task execution configuration.Returns union: either
IResolvableorCfnTask.TaskConfigurationProperty- See Also:
-
getTaskName
The name of the task.Must be unique within the workspace.
- See Also:
-
getWorkspaceName
The name of the workspace.- See Also:
-
getDescription
A description of the task.- See Also:
-
getTags
An array of key-value pairs to apply to this resource.- See Also:
-
builder
- Returns:
- a
CfnTaskProps.BuilderofCfnTaskProps
-