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 Summary
Modifier and TypeMethodDescriptionbuild()
static ScalableTaskCount.Builder
Scalable dimension of the attribute.maxCapacity
(Number maxCapacity) Maximum capacity to scale to.minCapacity
(Number minCapacity) Minimum capacity to scale to.resourceId
(String resourceId) Resource ID of the attribute.Role to use for scaling.serviceNamespace
(ServiceNamespace serviceNamespace) Service namespace of the scalable attribute.
-
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
Maximum capacity to scale to.- Parameters:
maxCapacity
- Maximum capacity to scale to. This parameter is required.- Returns:
this
-
minCapacity
Minimum capacity to scale to.Default: 1
- Parameters:
minCapacity
- Minimum capacity to scale to. This parameter is required.- Returns:
this
-
dimension
Scalable dimension of the attribute.- Parameters:
dimension
- Scalable dimension of the attribute. This parameter is required.- Returns:
this
-
resourceId
Resource ID of the attribute.- Parameters:
resourceId
- Resource ID of the attribute. This parameter is required.- Returns:
this
-
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ScalableTaskCount>
- Returns:
- a newly built instance of
ScalableTaskCount
.
-