Class CfnDaemonTaskDefinitionPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnDaemonTaskDefinitionPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinitionPropsMixin>
- Enclosing class:
CfnDaemonTaskDefinitionPropsMixin
@Stability(Stable)
public static final class CfnDaemonTaskDefinitionPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinitionPropsMixin>
A fluent builder for
CfnDaemonTaskDefinitionPropsMixin.-
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.create()create(CfnPropertyMixinOptions options) 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 CfnDaemonTaskDefinitionPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnDaemonTaskDefinitionPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnDaemonTaskDefinitionPropsMixin.Builder.
-
containerDefinitions
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.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 CfnDaemonTaskDefinitionPropsMixin.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
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.Builder 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.- 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
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.Builder tags(List<? extends CfnTag> 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
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.Builder volumes(List<? extends Object> 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<CfnDaemonTaskDefinitionPropsMixin>- Returns:
- a newly built instance of
CfnDaemonTaskDefinitionPropsMixin.
-