@Stability(value=Stable) public static final class CfnTaskSet.Builder extends Object implements software.amazon.jsii.Builder<CfnTaskSet>
CfnTaskSet.| Modifier and Type | Method and Description |
|---|---|
CfnTaskSet |
build() |
CfnTaskSet.Builder |
cluster(String cluster)
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 |
create(software.constructs.Construct scope,
String id) |
CfnTaskSet.Builder |
externalId(String externalId)
An optional non-unique tag that identifies this task set in external systems.
|
CfnTaskSet.Builder |
launchType(String launchType)
The launch type that new tasks in the task set uses.
|
CfnTaskSet.Builder |
loadBalancers(IResolvable loadBalancers)
A load balancer object representing the load balancer to use with the task set.
|
CfnTaskSet.Builder |
loadBalancers(List<? extends Object> loadBalancers)
A load balancer object representing the load balancer to use with the task set.
|
CfnTaskSet.Builder |
networkConfiguration(CfnTaskSet.NetworkConfigurationProperty networkConfiguration)
The network configuration for the task set.
|
CfnTaskSet.Builder |
networkConfiguration(IResolvable networkConfiguration)
The network configuration for the task set.
|
CfnTaskSet.Builder |
platformVersion(String platformVersion)
The platform version that the tasks in the task set uses.
|
CfnTaskSet.Builder |
scale(CfnTaskSet.ScaleProperty scale)
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
|
CfnTaskSet.Builder |
scale(IResolvable scale)
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
|
CfnTaskSet.Builder |
service(String service)
The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
|
CfnTaskSet.Builder |
serviceRegistries(IResolvable serviceRegistries)
The details of the service discovery registries to assign to this task set.
|
CfnTaskSet.Builder |
serviceRegistries(List<? extends Object> serviceRegistries)
The details of the service discovery registries to assign to this task set.
|
CfnTaskSet.Builder |
taskDefinition(String taskDefinition)
The task definition for the tasks in the task set to use.
|
@Stability(value=Stable) public static CfnTaskSet.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnTaskSet.AwsVpcConfigurationProperty.Builder.@Stability(value=Stable) public CfnTaskSet.Builder cluster(String cluster)
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.this@Stability(value=Stable) public CfnTaskSet.Builder service(String service)
service - The short name or full Amazon Resource Name (ARN) of the service to create the task set in. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder taskDefinition(String taskDefinition)
taskDefinition - The task definition for the tasks in the task set to use. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder externalId(String externalId)
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.
externalId - An optional non-unique tag that identifies this task set in external systems. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder launchType(String launchType)
For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide .
If a launchType is specified, the capacityProviderStrategy parameter must be omitted.
launchType - The launch type that new tasks in the task set uses. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder loadBalancers(IResolvable loadBalancers)
The supported load balancer types are either an Application Load Balancer or a Network Load Balancer.
loadBalancers - A load balancer object representing the load balancer to use with the task set. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder loadBalancers(List<? extends Object> loadBalancers)
The supported load balancer types are either an Application Load Balancer or a Network Load Balancer.
loadBalancers - A load balancer object representing the load balancer to use with the task set. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder networkConfiguration(CfnTaskSet.NetworkConfigurationProperty networkConfiguration)
networkConfiguration - The network configuration for the task set. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder networkConfiguration(IResolvable networkConfiguration)
networkConfiguration - The network configuration for the task set. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder platformVersion(String platformVersion)
A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the LATEST platform version is used.
platformVersion - The platform version that the tasks in the task set uses. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder scale(CfnTaskSet.ScaleProperty scale)
scale - A floating-point percentage of your desired number of tasks to place and keep running in the task set. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder scale(IResolvable scale)
scale - A floating-point percentage of your desired number of tasks to place and keep running in the task set. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder serviceRegistries(IResolvable serviceRegistries)
For more information, see Service discovery .
serviceRegistries - The details of the service discovery registries to assign to this task set. This parameter is required.this@Stability(value=Stable) public CfnTaskSet.Builder serviceRegistries(List<? extends Object> serviceRegistries)
For more information, see Service discovery .
serviceRegistries - The details of the service discovery registries to assign to this task set. This parameter is required.this@Stability(value=Stable) public CfnTaskSet build()
build in interface software.amazon.jsii.Builder<CfnTaskSet>Copyright © 2022. All rights reserved.