Class CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty>
- Enclosing interface:
CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containers(List<? extends Object> containers) containers(IResolvable containers) enableExecuteCommand(Boolean enableExecuteCommand) enableExecuteCommand(IResolvable enableExecuteCommand) executionRoleArn(String executionRoleArn) taskRoleArn(String taskRoleArn) volumes(IResolvable volumes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containers
@Stability(Stable) public CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder containers(IResolvable containers) - Parameters:
containers- This object is a list of containers.- Returns:
this
-
containers
@Stability(Stable) public CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder containers(List<? extends Object> containers) - Parameters:
containers- This object is a list of containers.- Returns:
this
-
enableExecuteCommand
@Stability(Stable) public CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder enableExecuteCommand(Boolean enableExecuteCommand) Sets the value ofCfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.getEnableExecuteCommand()- Parameters:
enableExecuteCommand- Determines whether execute command functionality is turned on for this task. Iftrue, execute command functionality is turned on all the containers in the task.- Returns:
this
-
enableExecuteCommand
@Stability(Stable) public CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder enableExecuteCommand(IResolvable enableExecuteCommand) Sets the value ofCfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.getEnableExecuteCommand()- Parameters:
enableExecuteCommand- Determines whether execute command functionality is turned on for this task. Iftrue, execute command functionality is turned on all the containers in the task.- Returns:
this
-
executionRoleArn
@Stability(Stable) public CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder executionRoleArn(String executionRoleArn) Sets the value ofCfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.getExecutionRoleArn()- Parameters:
executionRoleArn- The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see AWS Batch execution IAM role in the AWS Batch User Guide .- Returns:
this
-
ipcMode
@Stability(Stable) public CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder ipcMode(String ipcMode) - Parameters:
ipcMode- The IPC resource namespace to use for the containers in the task. The valid values arehost,task, ornone.If
hostis specified, all containers within the tasks that specified thehostIPC mode on the same container instance share the same IPC resources with the host Amazon EC2 instance.If
taskis specified, all containers within the specifiedtaskshare the same IPC resources.If
noneis specified, the IPC resources within the containers of a task are private, and are not shared with other containers in a task or on the container instance.If no value is specified, then the IPC resource namespace sharing depends on the Docker daemon setting on the container instance. For more information, see IPC settings in the Docker run reference.
- Returns:
this
-
pidMode
@Stability(Stable) public CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder pidMode(String pidMode) - Parameters:
pidMode- The process namespace to use for the containers in the task. The valid values arehostortask. For example, monitoring sidecars might needpidModeto access information about other containers running in the same task.If
hostis specified, all containers within the tasks that specified thehostPID mode on the same container instance share the process namespace with the host Amazon EC2 instance.If
taskis specified, all containers within the specified task share the same process namespace.If no value is specified, the default is a private namespace for each container. For more information, see PID settings in the Docker run reference.
- Returns:
this
-
taskRoleArn
@Stability(Stable) public CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder taskRoleArn(String taskRoleArn) - Parameters:
taskRoleArn- The Amazon Resource Name (ARN) that's associated with the Amazon ECS task.This is object is comparable to ContainerProperties:jobRoleArn .
- Returns:
this
-
volumes
@Stability(Stable) public CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder volumes(IResolvable volumes) - Parameters:
volumes- A list of volumes that are associated with the job.- Returns:
this
-
volumes
@Stability(Stable) public CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty.Builder volumes(List<? extends Object> volumes) - Parameters:
volumes- A list of volumes that are associated with the job.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty>- Returns:
- a new instance of
CfnJobDefinitionPropsMixin.MultiNodeEcsTaskPropertiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-