Class CfnTaskSet.Builder

java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskSet.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskSet>
Enclosing class:
CfnTaskSet

@Stability(Stable) public static final class CfnTaskSet.Builder extends Object implements software.amazon.jsii.Builder<CfnTaskSet>
A fluent builder for CfnTaskSet.
  • Method Details

    • create

      @Stability(Stable) public static CfnTaskSet.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnTaskSet.Builder.
    • cluster

      @Stability(Stable) public 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.

      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

      @Stability(Stable) public CfnTaskSet.Builder service(String 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

      @Stability(Stable) public CfnTaskSet.Builder taskDefinition(String 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

      @Stability(Stable) public CfnTaskSet.Builder externalId(String 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

      @Stability(Stable) public CfnTaskSet.Builder launchType(String 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, the capacityProviderStrategy parameter must be omitted.

      Parameters:
      launchType - The launch type that new tasks in the task set uses. This parameter is required.
      Returns:
      this
    • loadBalancers

      @Stability(Stable) public CfnTaskSet.Builder loadBalancers(IResolvable 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

      @Stability(Stable) public CfnTaskSet.Builder loadBalancers(List<? extends Object> 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

      @Stability(Stable) public CfnTaskSet.Builder networkConfiguration(IResolvable 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

      @Stability(Stable) public CfnTaskSet.Builder platformVersion(String 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

      @Stability(Stable) public CfnTaskSet.Builder scale(IResolvable 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

      @Stability(Stable) public 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.

      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

      @Stability(Stable) public CfnTaskSet.Builder serviceRegistries(IResolvable 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

      @Stability(Stable) public CfnTaskSet build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTaskSet>
      Returns:
      a newly built instance of CfnTaskSet.