Class CfnDaemonTaskDefinitionProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnDaemonTaskDefinitionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinitionProps>
- Enclosing interface:
CfnDaemonTaskDefinitionProps
@Stability(Stable)
public static final class CfnDaemonTaskDefinitionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinitionProps>
A builder for
CfnDaemonTaskDefinitionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerDefinitions(List<? extends Object> containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionProps.getContainerDefinitions()containerDefinitions(IResolvable containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionProps.getContainerDefinitions()Sets the value ofCfnDaemonTaskDefinitionProps.getCpu()executionRoleArn(String executionRoleArn) Sets the value ofCfnDaemonTaskDefinitionProps.getExecutionRoleArn()Sets the value ofCfnDaemonTaskDefinitionProps.getFamily()Sets the value ofCfnDaemonTaskDefinitionProps.getIpcMode()Sets the value ofCfnDaemonTaskDefinitionProps.getMemory()Sets the value ofCfnDaemonTaskDefinitionProps.getPidMode()Sets the value ofCfnDaemonTaskDefinitionProps.getTags()taskRoleArn(String taskRoleArn) Sets the value ofCfnDaemonTaskDefinitionProps.getTaskRoleArn()Sets the value ofCfnDaemonTaskDefinitionProps.getVolumes()volumes(IResolvable volumes) Sets the value ofCfnDaemonTaskDefinitionProps.getVolumes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerDefinitions
@Stability(Stable) public CfnDaemonTaskDefinitionProps.Builder containerDefinitions(IResolvable containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionProps.getContainerDefinitions()- Parameters:
containerDefinitions- A list of container definitions in JSON format that describe the containers that make up the daemon task.- Returns:
this
-
containerDefinitions
@Stability(Stable) public CfnDaemonTaskDefinitionProps.Builder containerDefinitions(List<? extends Object> containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionProps.getContainerDefinitions()- Parameters:
containerDefinitions- A list of container definitions in JSON format that describe the containers that make up the daemon task.- Returns:
this
-
cpu
Sets the value ofCfnDaemonTaskDefinitionProps.getCpu()- Parameters:
cpu- The number of CPU units used by the daemon task.- Returns:
this
-
executionRoleArn
@Stability(Stable) public CfnDaemonTaskDefinitionProps.Builder executionRoleArn(String executionRoleArn) Sets the value ofCfnDaemonTaskDefinitionProps.getExecutionRoleArn()- Parameters:
executionRoleArn- The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf.- Returns:
this
-
family
Sets the value ofCfnDaemonTaskDefinitionProps.getFamily()- Parameters:
family- The name of a family that this daemon task definition is registered to.- Returns:
this
-
ipcMode
Sets the value ofCfnDaemonTaskDefinitionProps.getIpcMode()- Parameters:
ipcMode- The IPC namespace mode for the daemon. The valid values arenoneandshared. The default isnone. Ifnoneis specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that useipcMode: "host"or other daemons that useipcMode: "shared".- Returns:
this
-
memory
Sets the value ofCfnDaemonTaskDefinitionProps.getMemory()- Parameters:
memory- The amount of memory (in MiB) used by the daemon task.- Returns:
this
-
pidMode
Sets the value ofCfnDaemonTaskDefinitionProps.getPidMode()- Parameters:
pidMode- The PID namespace mode for the daemon. The valid values arenoneandshared. The default isnone. Ifnoneis specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that usepidMode: "host"or other daemons that usepidMode: "shared".- Returns:
this
-
tags
Sets the value ofCfnDaemonTaskDefinitionProps.getTags()- Parameters:
tags- the value to be set.- Returns:
this
-
taskRoleArn
Sets the value ofCfnDaemonTaskDefinitionProps.getTaskRoleArn()- Parameters:
taskRoleArn- The short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs on your behalf.- Returns:
this
-
volumes
Sets the value ofCfnDaemonTaskDefinitionProps.getVolumes()- Parameters:
volumes- The list of data volume definitions for the daemon task.- Returns:
this
-
volumes
@Stability(Stable) public CfnDaemonTaskDefinitionProps.Builder volumes(List<? extends Object> volumes) Sets the value ofCfnDaemonTaskDefinitionProps.getVolumes()- Parameters:
volumes- The list of data volume definitions for the daemon task.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDaemonTaskDefinitionProps>- Returns:
- a new instance of
CfnDaemonTaskDefinitionProps - Throws:
NullPointerException- if any required attribute was not provided
-