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