Class CfnTaskSetProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • cluster

      @Stability(Stable) public CfnTaskSetProps.Builder cluster(String cluster)
      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 CfnTaskSetProps.Builder service(String service)
      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 CfnTaskSetProps.Builder taskDefinition(String taskDefinition)
      Parameters:
      taskDefinition - The task definition for the tasks in the task set to use. This parameter is required. If a revision isn't specified, the latest ACTIVE revision is used.
      Returns:
      this
    • externalId

      @Stability(Stable) public CfnTaskSetProps.Builder externalId(String externalId)
      Parameters:
      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.
      Returns:
      this
    • launchType

      @Stability(Stable) public CfnTaskSetProps.Builder launchType(String launchType)
      Parameters:
      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.

      Returns:
      this
    • loadBalancers

      @Stability(Stable) public CfnTaskSetProps.Builder loadBalancers(IResolvable loadBalancers)
      Parameters:
      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.
      Returns:
      this
    • loadBalancers

      @Stability(Stable) public CfnTaskSetProps.Builder loadBalancers(List<? extends Object> loadBalancers)
      Parameters:
      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.
      Returns:
      this
    • networkConfiguration

      @Stability(Stable) public CfnTaskSetProps.Builder networkConfiguration(IResolvable networkConfiguration)
      Parameters:
      networkConfiguration - The network configuration for the task set.
      Returns:
      this
    • networkConfiguration

      @Stability(Stable) public CfnTaskSetProps.Builder networkConfiguration(CfnTaskSet.NetworkConfigurationProperty networkConfiguration)
      Parameters:
      networkConfiguration - The network configuration for the task set.
      Returns:
      this
    • platformVersion

      @Stability(Stable) public CfnTaskSetProps.Builder platformVersion(String platformVersion)
      Parameters:
      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.
      Returns:
      this
    • scale

      @Stability(Stable) public CfnTaskSetProps.Builder scale(IResolvable scale)
      Sets the value of CfnTaskSetProps.getScale()
      Parameters:
      scale - A floating-point percentage of your desired number of tasks to place and keep running in the task set.
      Returns:
      this
    • scale

      @Stability(Stable) public CfnTaskSetProps.Builder scale(CfnTaskSet.ScaleProperty scale)
      Sets the value of CfnTaskSetProps.getScale()
      Parameters:
      scale - A floating-point percentage of your desired number of tasks to place and keep running in the task set.
      Returns:
      this
    • serviceRegistries

      @Stability(Stable) public CfnTaskSetProps.Builder serviceRegistries(IResolvable serviceRegistries)
      Parameters:
      serviceRegistries - The details of the service discovery registries to assign to this task set. For more information, see Service discovery .
      Returns:
      this
    • serviceRegistries

      @Stability(Stable) public CfnTaskSetProps.Builder serviceRegistries(List<? extends Object> serviceRegistries)
      Parameters:
      serviceRegistries - The details of the service discovery registries to assign to this task set. For more information, see Service discovery .
      Returns:
      this
    • tags

      @Stability(Stable) public CfnTaskSetProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnTaskSetProps.getTags()
      Parameters:
      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: + - = . _ : /
      Returns:
      this
    • build

      @Stability(Stable) public CfnTaskSetProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTaskSetProps>
      Returns:
      a new instance of CfnTaskSetProps
      Throws:
      NullPointerException - if any required attribute was not provided