@Stability(value=Experimental) public static final class ScalableTarget.Builder extends Object implements software.amazon.jsii.Builder<ScalableTarget>
ScalableTarget.| Modifier and Type | Method and Description |
|---|---|
ScalableTarget |
build() |
static ScalableTarget.Builder |
create(software.constructs.Construct scope,
String id) |
ScalableTarget.Builder |
maxCapacity(Number maxCapacity)
(experimental) The maximum value that Application Auto Scaling can use to scale a target during a scaling activity.
|
ScalableTarget.Builder |
minCapacity(Number minCapacity)
(experimental) The minimum value that Application Auto Scaling can use to scale a target during a scaling activity.
|
ScalableTarget.Builder |
resourceId(String resourceId)
(experimental) The resource identifier to associate with this scalable target.
|
ScalableTarget.Builder |
role(IRole role)
(experimental) Role that allows Application Auto Scaling to modify your scalable target.
|
ScalableTarget.Builder |
scalableDimension(String scalableDimension)
(experimental) The scalable dimension that's associated with the scalable target.
|
ScalableTarget.Builder |
serviceNamespace(ServiceNamespace serviceNamespace)
(experimental) The namespace of the AWS service that provides the resource or custom-resource for a resource provided by your own application or service.
|
@Stability(value=Experimental) public static ScalableTarget.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ScalableTarget.Builder.@Stability(value=Experimental) public ScalableTarget.Builder maxCapacity(Number maxCapacity)
maxCapacity - The maximum value that Application Auto Scaling can use to scale a target during a scaling activity. This parameter is required.this@Stability(value=Experimental) public ScalableTarget.Builder minCapacity(Number minCapacity)
minCapacity - The minimum value that Application Auto Scaling can use to scale a target during a scaling activity. This parameter is required.this@Stability(value=Experimental) public ScalableTarget.Builder resourceId(String resourceId)
This string consists of the resource type and unique identifier.
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 service / ecsStack - MyECSCluster - AB12CDE3F4GH / ecsStack - MyECSService - AB12CDE3F4GH;
resourceId - The resource identifier to associate with this scalable target. This parameter is required.thishttps://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html@Stability(value=Experimental) public ScalableTarget.Builder scalableDimension(String scalableDimension)
Specify the service namespace, resource type, and scaling property.
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 ecs:service:DesiredCount
scalableDimension - The scalable dimension that's associated with the scalable target. This parameter is required.thishttps://docs.aws.amazon.com/autoscaling/application/APIReference/API_ScalingPolicy.html@Stability(value=Experimental) public ScalableTarget.Builder serviceNamespace(ServiceNamespace serviceNamespace)
For valid AWS service namespace values, see the RegisterScalableTarget action in the Application Auto Scaling API Reference.
serviceNamespace - The namespace of the AWS service that provides the resource or custom-resource for a resource provided by your own application or service. This parameter is required.thishttps://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html@Stability(value=Experimental) public ScalableTarget.Builder role(IRole role)
Default: A role is automatically created
role - Role that allows Application Auto Scaling to modify your scalable target. This parameter is required.this@Stability(value=Experimental) public ScalableTarget build()
build in interface software.amazon.jsii.Builder<ScalableTarget>Copyright © 2021. All rights reserved.