Class ScalingPlanScalingInstruction
- java.lang.Object
-
- com.pulumi.aws.autoscalingplans.outputs.ScalingPlanScalingInstruction
-
public final class ScalingPlanScalingInstruction extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScalingPlanScalingInstruction.Builder
-
Method Summary
-
-
-
Method Detail
-
customizedLoadMetricSpecification
public java.util.Optional<ScalingPlanScalingInstructionCustomizedLoadMetricSpecification> customizedLoadMetricSpecification()
- Returns:
- Customized load metric to use for predictive scaling. You must specify either `customizedLoadMetricSpecification` or `predefinedLoadMetricSpecification` when configuring predictive scaling. More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedLoadMetricSpecification.html).
-
disableDynamicScaling
public java.util.Optional<java.lang.Boolean> disableDynamicScaling()
- Returns:
- Boolean controlling whether dynamic scaling by AWS Auto Scaling is disabled. Defaults to `false`.
-
maxCapacity
public java.lang.Integer maxCapacity()
- Returns:
- Maximum capacity of the resource. The exception to this upper limit is if you specify a non-default setting for `predictiveScalingMaxCapacityBehavior`.
-
minCapacity
public java.lang.Integer minCapacity()
- Returns:
- Minimum capacity of the resource.
-
predefinedLoadMetricSpecification
public java.util.Optional<ScalingPlanScalingInstructionPredefinedLoadMetricSpecification> predefinedLoadMetricSpecification()
- Returns:
- Predefined load metric to use for predictive scaling. You must specify either `predefinedLoadMetricSpecification` or `customizedLoadMetricSpecification` when configuring predictive scaling. More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedLoadMetricSpecification.html).
-
predictiveScalingMaxCapacityBehavior
public java.util.Optional<java.lang.String> predictiveScalingMaxCapacityBehavior()
- Returns:
- Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity specified for the resource. Valid values: `SetForecastCapacityToMaxCapacity`, `SetMaxCapacityAboveForecastCapacity`, `SetMaxCapacityToForecastCapacity`.
-
predictiveScalingMaxCapacityBuffer
public java.util.Optional<java.lang.Integer> predictiveScalingMaxCapacityBuffer()
- Returns:
- Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity.
-
predictiveScalingMode
public java.util.Optional<java.lang.String> predictiveScalingMode()
- Returns:
- Predictive scaling mode. Valid values: `ForecastAndScale`, `ForecastOnly`.
-
resourceId
public java.lang.String resourceId()
- Returns:
- ID of the resource. This string consists of the resource type and unique identifier.
-
scalableDimension
public java.lang.String scalableDimension()
- Returns:
- Scalable dimension associated with the resource. Valid values: `autoscaling:autoScalingGroup:DesiredCapacity`, `dynamodb:index:ReadCapacityUnits`, `dynamodb:index:WriteCapacityUnits`, `dynamodb:table:ReadCapacityUnits`, `dynamodb:table:WriteCapacityUnits`, `ecs:service:DesiredCount`, `ec2:spot-fleet-request:TargetCapacity`, `rds:cluster:ReadReplicaCount`.
-
scalingPolicyUpdateBehavior
public java.util.Optional<java.lang.String> scalingPolicyUpdateBehavior()
- Returns:
- Controls whether a resource's externally created scaling policies are kept or replaced. Valid values: `KeepExternalPolicies`, `ReplaceExternalPolicies`. Defaults to `KeepExternalPolicies`.
-
scheduledActionBufferTime
public java.util.Optional<java.lang.Integer> scheduledActionBufferTime()
- Returns:
- Amount of time, in seconds, to buffer the run time of scheduled scaling actions when scaling out.
-
serviceNamespace
public java.lang.String serviceNamespace()
- Returns:
- Namespace of the AWS service. Valid values: `autoscaling`, `dynamodb`, `ecs`, `ec2`, `rds`.
-
targetTrackingConfigurations
public java.util.List<ScalingPlanScalingInstructionTargetTrackingConfiguration> targetTrackingConfigurations()
- Returns:
- Structure that defines new target tracking configurations. Each of these structures includes a specific scaling metric and a target value for the metric, along with various parameters to use with dynamic scaling. More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_TargetTrackingConfiguration.html).
-
builder
public static ScalingPlanScalingInstruction.Builder builder()
-
builder
public static ScalingPlanScalingInstruction.Builder builder(ScalingPlanScalingInstruction defaults)
-
-