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.The metadata that you apply to the task set to help you categorize and organize them.taskDefinition
(String taskDefinition) The task definition for the tasks in the task set to use.
-
Method Details
-
create
@Stability(Stable) public static CfnTaskSet.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
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
- See Also:
-
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
- See Also:
-
taskDefinition
The task definition for the tasks in the task set to use.If a revision isn't specified, the latest
ACTIVE
revision is used.- Parameters:
taskDefinition
- The task definition for the tasks in the task set to use. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
networkConfiguration
The network configuration for the task set.- Parameters:
networkConfiguration
- The network configuration for the task set. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
tags
The metadata that you apply to the task set to help you categorize and organize them.Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : /
- Parameters:
tags
- The metadata that you apply to the task set to help you categorize and organize them. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskSet>
- Returns:
- a newly built instance of
CfnTaskSet
.
-