Class CfnTaskSet.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskSet>
- Enclosing class:
CfnTaskSet
CfnTaskSet
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.static CfnTaskSet.Builder
externalId
(String externalId) An optional non-unique tag that identifies this task set in external systems.launchType
(String launchType) The launch type that new tasks in the task set uses.loadBalancers
(List<? extends Object> loadBalancers) A load balancer object representing the load balancer to use with the task set.loadBalancers
(IResolvable loadBalancers) A load balancer object representing the load balancer to use with the task set.networkConfiguration
(IResolvable networkConfiguration) The network configuration for the task set.networkConfiguration
(CfnTaskSet.NetworkConfigurationProperty networkConfiguration) The network configuration for the task set.platformVersion
(String platformVersion) The platform version that the tasks in the task set uses.scale
(IResolvable scale) A floating-point percentage of your desired number of tasks to place and keep running in the task set.scale
(CfnTaskSet.ScaleProperty scale) A floating-point percentage of your desired number of tasks to place and keep running in the task set.The short name or full Amazon Resource Name (ARN) of the service to create the task set in.serviceRegistries
(List<? extends Object> serviceRegistries) The details of the service discovery registries to assign to this task set.serviceRegistries
(IResolvable serviceRegistries) The details of the service discovery registries to assign to this task set.taskDefinition
(String taskDefinition) The task definition for the tasks in the task set to use.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnTaskSet.Builder
.
-
cluster
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.- Parameters:
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in. This parameter is required.- Returns:
this
-
service
The short name or full Amazon Resource Name (ARN) of the service to create the task set in.- Parameters:
service
- The short name or full Amazon Resource Name (ARN) of the service to create the task set in. This parameter is required.- Returns:
this
-
taskDefinition
The task definition for the tasks in the task set to use.- Parameters:
taskDefinition
- The task definition for the tasks in the task set to use. This parameter is required.- Returns:
this
-
externalId
An optional non-unique tag that identifies this task set in external systems.If the task set is associated with a service discovery registry, the tasks in this task set will have the
ECS_TASK_SET_EXTERNAL_ID
AWS Cloud Map attribute set to the provided value.- Parameters:
externalId
- An optional non-unique tag that identifies this task set in external systems. This parameter is required.- Returns:
this
-
launchType
The launch type that new tasks in the task set uses.For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide .
If a
launchType
is specified, thecapacityProviderStrategy
parameter must be omitted.- Parameters:
launchType
- The launch type that new tasks in the task set uses. This parameter is required.- Returns:
this
-
loadBalancers
A load balancer object representing the load balancer to use with the task set.The supported load balancer types are either an Application Load Balancer or a Network Load Balancer.
- Parameters:
loadBalancers
- A load balancer object representing the load balancer to use with the task set. This parameter is required.- Returns:
this
-
loadBalancers
A load balancer object representing the load balancer to use with the task set.The supported load balancer types are either an Application Load Balancer or a Network Load Balancer.
- Parameters:
loadBalancers
- A load balancer object representing the load balancer to use with the task set. This parameter is required.- Returns:
this
-
networkConfiguration
The network configuration for the task set.- Parameters:
networkConfiguration
- The network configuration for the task set. This parameter is required.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnTaskSet.Builder networkConfiguration(CfnTaskSet.NetworkConfigurationProperty networkConfiguration) The network configuration for the task set.- Parameters:
networkConfiguration
- The network configuration for the task set. This parameter is required.- Returns:
this
-
platformVersion
The platform version that the tasks in the task set uses.A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the
LATEST
platform version is used.- Parameters:
platformVersion
- The platform version that the tasks in the task set uses. This parameter is required.- Returns:
this
-
scale
A floating-point percentage of your desired number of tasks to place and keep running in the task set.- Parameters:
scale
- A floating-point percentage of your desired number of tasks to place and keep running in the task set. This parameter is required.- Returns:
this
-
scale
A floating-point percentage of your desired number of tasks to place and keep running in the task set.- Parameters:
scale
- A floating-point percentage of your desired number of tasks to place and keep running in the task set. This parameter is required.- Returns:
this
-
serviceRegistries
The details of the service discovery registries to assign to this task set.For more information, see Service discovery .
- Parameters:
serviceRegistries
- The details of the service discovery registries to assign to this task set. This parameter is required.- Returns:
this
-
serviceRegistries
@Stability(Stable) public CfnTaskSet.Builder serviceRegistries(List<? extends Object> serviceRegistries) The details of the service discovery registries to assign to this task set.For more information, see Service discovery .
- Parameters:
serviceRegistries
- The details of the service discovery registries to assign to this task set. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskSet>
- Returns:
- a newly built instance of
CfnTaskSet
.
-