Class CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty>
- Enclosing interface:
CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty
CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containers(List<? extends Object> containers) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getContainers()containers(IResolvable containers) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getContainers()enableExecuteCommand(Boolean enableExecuteCommand) enableExecuteCommand(IResolvable enableExecuteCommand) ephemeralStorage(CfnJobDefinitionPropsMixin.EphemeralStorageProperty ephemeralStorage) ephemeralStorage(IResolvable ephemeralStorage) executionRoleArn(String executionRoleArn) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getIpcMode()networkConfiguration(CfnJobDefinitionPropsMixin.NetworkConfigurationProperty networkConfiguration) networkConfiguration(IResolvable networkConfiguration) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getPidMode()platformVersion(String platformVersion) runtimePlatform(CfnJobDefinitionPropsMixin.RuntimePlatformProperty runtimePlatform) runtimePlatform(IResolvable runtimePlatform) taskRoleArn(String taskRoleArn) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getTaskRoleArn()Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getVolumes()volumes(IResolvable volumes) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getVolumes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containers
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder containers(IResolvable containers) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getContainers()- Parameters:
containers- This object is a list of containers.- Returns:
this
-
containers
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder containers(List<? extends Object> containers) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getContainers()- Parameters:
containers- This object is a list of containers.- Returns:
this
-
enableExecuteCommand
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder enableExecuteCommand(Boolean enableExecuteCommand) - 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.EcsTaskPropertiesProperty.Builder enableExecuteCommand(IResolvable enableExecuteCommand) - 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
-
ephemeralStorage
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder ephemeralStorage(IResolvable ephemeralStorage) - Parameters:
ephemeralStorage- The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate .- Returns:
this
-
ephemeralStorage
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder ephemeralStorage(CfnJobDefinitionPropsMixin.EphemeralStorageProperty ephemeralStorage) - Parameters:
ephemeralStorage- The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate .- Returns:
this
-
executionRoleArn
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder executionRoleArn(String executionRoleArn) - 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.EcsTaskPropertiesProperty.Builder ipcMode(String ipcMode) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getIpcMode()- 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
-
networkConfiguration
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder networkConfiguration(IResolvable networkConfiguration) - Parameters:
networkConfiguration- The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder networkConfiguration(CfnJobDefinitionPropsMixin.NetworkConfigurationProperty networkConfiguration) - Parameters:
networkConfiguration- The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.- Returns:
this
-
pidMode
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder pidMode(String pidMode) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getPidMode()- 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
-
platformVersion
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder platformVersion(String platformVersion) - Parameters:
platformVersion- The Fargate platform version where the jobs are running. A platform version is specified only for jobs that are running on Fargate resources. If one isn't specified, theLATESTplatform version is used by default. This uses a recent, approved version of the Fargate platform for compute resources. For more information, see AWS Fargate platform versions in the Amazon Elastic Container Service Developer Guide .- Returns:
this
-
runtimePlatform
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder runtimePlatform(IResolvable runtimePlatform) - Parameters:
runtimePlatform- An object that represents the compute environment architecture for AWS Batch jobs on Fargate.- Returns:
this
-
runtimePlatform
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder runtimePlatform(CfnJobDefinitionPropsMixin.RuntimePlatformProperty runtimePlatform) - Parameters:
runtimePlatform- An object that represents the compute environment architecture for AWS Batch jobs on Fargate.- Returns:
this
-
taskRoleArn
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder taskRoleArn(String taskRoleArn) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getTaskRoleArn()- 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.EcsTaskPropertiesProperty.Builder volumes(IResolvable volumes) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getVolumes()- Parameters:
volumes- A list of volumes that are associated with the job.- Returns:
this
-
volumes
@Stability(Stable) public CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.Builder volumes(List<? extends Object> volumes) Sets the value ofCfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty.getVolumes()- 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.EcsTaskPropertiesProperty>- Returns:
- a new instance of
CfnJobDefinitionPropsMixin.EcsTaskPropertiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-