Class CfnDaemonTaskDefinitionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnDaemonTaskDefinitionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinitionMixinProps>
- Enclosing interface:
CfnDaemonTaskDefinitionMixinProps
@Stability(Stable)
public static final class CfnDaemonTaskDefinitionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinitionMixinProps>
A builder for
CfnDaemonTaskDefinitionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerDefinitions(List<? extends Object> containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getContainerDefinitions()containerDefinitions(IResolvable containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getContainerDefinitions()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getCpu()executionRoleArn(String executionRoleArn) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getExecutionRoleArn()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getFamily()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getIpcMode()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getMemory()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getPidMode()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getTags()taskRoleArn(String taskRoleArn) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getTaskRoleArn()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getVolumes()volumes(IResolvable volumes) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getVolumes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerDefinitions
@Stability(Stable) public CfnDaemonTaskDefinitionMixinProps.Builder containerDefinitions(IResolvable containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionMixinProps.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 CfnDaemonTaskDefinitionMixinProps.Builder containerDefinitions(List<? extends Object> containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionMixinProps.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 ofCfnDaemonTaskDefinitionMixinProps.getCpu()- Parameters:
cpu- The number of CPU units used by the daemon task.- Returns:
this
-
executionRoleArn
@Stability(Stable) public CfnDaemonTaskDefinitionMixinProps.Builder executionRoleArn(String executionRoleArn) Sets the value ofCfnDaemonTaskDefinitionMixinProps.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 ofCfnDaemonTaskDefinitionMixinProps.getFamily()- Parameters:
family- The name of a family that this daemon task definition is registered to.- Returns:
this
-
ipcMode
Sets the value ofCfnDaemonTaskDefinitionMixinProps.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 ofCfnDaemonTaskDefinitionMixinProps.getMemory()- Parameters:
memory- The amount of memory (in MiB) used by the daemon task.- Returns:
this
-
pidMode
Sets the value ofCfnDaemonTaskDefinitionMixinProps.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
@Stability(Stable) public CfnDaemonTaskDefinitionMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getTags()- Parameters:
tags- the value to be set.- Returns:
this
-
taskRoleArn
Sets the value ofCfnDaemonTaskDefinitionMixinProps.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 ofCfnDaemonTaskDefinitionMixinProps.getVolumes()- Parameters:
volumes- The list of data volume definitions for the daemon task.- Returns:
this
-
volumes
@Stability(Stable) public CfnDaemonTaskDefinitionMixinProps.Builder volumes(List<? extends Object> volumes) Sets the value ofCfnDaemonTaskDefinitionMixinProps.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<CfnDaemonTaskDefinitionMixinProps>- Returns:
- a new instance of
CfnDaemonTaskDefinitionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-