Class ScalableTaskCount.Builder

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

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

    • create

      @Stability(Stable) public static ScalableTaskCount.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of ScalableTaskCount.Builder.
    • maxCapacity

      @Stability(Stable) public ScalableTaskCount.Builder maxCapacity(Number maxCapacity)
      Maximum capacity to scale to.

      Parameters:
      maxCapacity - Maximum capacity to scale to. This parameter is required.
      Returns:
      this
    • minCapacity

      @Stability(Stable) public ScalableTaskCount.Builder minCapacity(Number minCapacity)
      Minimum capacity to scale to.

      Default: 1

      Parameters:
      minCapacity - Minimum capacity to scale to. This parameter is required.
      Returns:
      this
    • dimension

      @Stability(Stable) public ScalableTaskCount.Builder dimension(String dimension)
      Scalable dimension of the attribute.

      Parameters:
      dimension - Scalable dimension of the attribute. This parameter is required.
      Returns:
      this
    • resourceId

      @Stability(Stable) public ScalableTaskCount.Builder resourceId(String resourceId)
      Resource ID of the attribute.

      Parameters:
      resourceId - Resource ID of the attribute. This parameter is required.
      Returns:
      this
    • role

      @Stability(Stable) public ScalableTaskCount.Builder role(IRole role)
      Role to use for scaling.

      Parameters:
      role - Role to use for scaling. This parameter is required.
      Returns:
      this
    • serviceNamespace

      @Stability(Stable) public ScalableTaskCount.Builder serviceNamespace(ServiceNamespace serviceNamespace)
      Service namespace of the scalable attribute.

      Parameters:
      serviceNamespace - Service namespace of the scalable attribute. This parameter is required.
      Returns:
      this
    • build

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