Class CfnTask.ContainerTaskConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnTask.ContainerTaskConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTask.ContainerTaskConfigurationProperty>
- Enclosing interface:
CfnTask.ContainerTaskConfigurationProperty
@Stability(Stable)
public static final class CfnTask.ContainerTaskConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTask.ContainerTaskConfigurationProperty>
A builder for
CfnTask.ContainerTaskConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getCommand()Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getEcrUri()environmentVariables(Map<String, String> environmentVariables) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getEnvironmentVariables()environmentVariables(IResolvable environmentVariables) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getEnvironmentVariables()processingType(String processingType) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getProcessingType()processingUnit(String processingUnit) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getProcessingUnit()taskExecutionRole(String taskExecutionRole) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getTaskExecutionRole()timeoutSeconds(Number timeoutSeconds) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getTimeoutSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ecrUri
Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getEcrUri()- Parameters:
ecrUri- The Amazon ECR image URI for the task container. This parameter is required.- Returns:
this
-
processingType
@Stability(Stable) public CfnTask.ContainerTaskConfigurationProperty.Builder processingType(String processingType) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getProcessingType()- Parameters:
processingType- The processing type for compute resources. This parameter is required.- Returns:
this
-
processingUnit
@Stability(Stable) public CfnTask.ContainerTaskConfigurationProperty.Builder processingUnit(String processingUnit) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getProcessingUnit()- Parameters:
processingUnit- The processing unit allocation that determines vCPU, memory, and GPU resources. This parameter is required.- Returns:
this
-
taskExecutionRole
@Stability(Stable) public CfnTask.ContainerTaskConfigurationProperty.Builder taskExecutionRole(String taskExecutionRole) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getTaskExecutionRole()- Parameters:
taskExecutionRole- The ARN of the IAM role that grants the containerized workload permissions to access AWS resources. This parameter is required.- Returns:
this
-
command
@Stability(Stable) public CfnTask.ContainerTaskConfigurationProperty.Builder command(List<String> command) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getCommand()- Parameters:
command- The command to execute in the container.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnTask.ContainerTaskConfigurationProperty.Builder environmentVariables(IResolvable environmentVariables) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getEnvironmentVariables()- Parameters:
environmentVariables- A map of environment variable key-value pairs.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnTask.ContainerTaskConfigurationProperty.Builder environmentVariables(Map<String, String> environmentVariables) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getEnvironmentVariables()- Parameters:
environmentVariables- A map of environment variable key-value pairs.- Returns:
this
-
timeoutSeconds
@Stability(Stable) public CfnTask.ContainerTaskConfigurationProperty.Builder timeoutSeconds(Number timeoutSeconds) Sets the value ofCfnTask.ContainerTaskConfigurationProperty.getTimeoutSeconds()- Parameters:
timeoutSeconds- The timeout in seconds for task execution. Default: 3600 (1 hour).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTask.ContainerTaskConfigurationProperty>- Returns:
- a new instance of
CfnTask.ContainerTaskConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-