Class CfnDaemonTaskDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnDaemonTaskDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinition>
- Enclosing class:
CfnDaemonTaskDefinition
@Stability(Stable)
public static final class CfnDaemonTaskDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinition>
A fluent builder for
CfnDaemonTaskDefinition.-
Method Summary
Modifier and TypeMethodDescriptionbuild()containerDefinitions(List<? extends Object> containerDefinitions) A list of container definitions in JSON format that describe the containers that make up the daemon task.containerDefinitions(IResolvable containerDefinitions) A list of container definitions in JSON format that describe the containers that make up the daemon task.The number of CPU units used by the daemon task.executionRoleArn(String 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.The name of a family that this daemon task definition is registered to.The amount of memory (in MiB) used by the daemon task.taskRoleArn(String 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.The list of data volume definitions for the daemon task.volumes(IResolvable volumes) The list of data volume definitions for the daemon task.
-
Method Details
-
create
@Stability(Stable) public static CfnDaemonTaskDefinition.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnDaemonTaskDefinition.Builder.
-
containerDefinitions
@Stability(Stable) public CfnDaemonTaskDefinition.Builder containerDefinitions(IResolvable containerDefinitions) A list of container definitions in JSON format that describe the containers that make up the daemon task.- Parameters:
containerDefinitions- A list of container definitions in JSON format that describe the containers that make up the daemon task. This parameter is required.- Returns:
this- See Also:
-
containerDefinitions
@Stability(Stable) public CfnDaemonTaskDefinition.Builder containerDefinitions(List<? extends Object> containerDefinitions) A list of container definitions in JSON format that describe the containers that make up the daemon task.- Parameters:
containerDefinitions- A list of container definitions in JSON format that describe the containers that make up the daemon task. This parameter is required.- Returns:
this- See Also:
-
cpu
The number of CPU units used by the daemon task.- Parameters:
cpu- The number of CPU units used by the daemon task. This parameter is required.- Returns:
this- See Also:
-
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.- 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. This parameter is required.- Returns:
this- See Also:
-
family
The name of a family that this daemon task definition is registered to.- Parameters:
family- The name of a family that this daemon task definition is registered to. This parameter is required.- Returns:
this- See Also:
-
memory
The amount of memory (in MiB) used by the daemon task.- Parameters:
memory- The amount of memory (in MiB) used by the daemon task. This parameter is required.- Returns:
this- See Also:
-
tags
- Parameters:
tags- This parameter is required.- Returns:
this- See Also:
-
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.- 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. This parameter is required.- Returns:
this- See Also:
-
volumes
The list of data volume definitions for the daemon task.- Parameters:
volumes- The list of data volume definitions for the daemon task. This parameter is required.- Returns:
this- See Also:
-
volumes
The list of data volume definitions for the daemon task.- Parameters:
volumes- The list of data volume definitions for the daemon task. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDaemonTaskDefinition>- Returns:
- a newly built instance of
CfnDaemonTaskDefinition.
-