published on Friday, Aug 7, 2026 by Pulumi
published on Friday, Aug 7, 2026 by Pulumi
Provides an Application AutoScaling Policy resource.
Create Policy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Policy(name: string, args: PolicyArgs, opts?: CustomResourceOptions);@overload
def Policy(resource_name: str,
args: PolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Policy(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_id: Optional[str] = None,
scalable_dimension: Optional[str] = None,
service_namespace: Optional[str] = None,
name: Optional[str] = None,
policy_type: Optional[str] = None,
predictive_scaling_policy_configuration: Optional[PolicyPredictiveScalingPolicyConfigurationArgs] = None,
region: Optional[str] = None,
step_scaling_policy_configuration: Optional[PolicyStepScalingPolicyConfigurationArgs] = None,
target_tracking_scaling_policy_configuration: Optional[PolicyTargetTrackingScalingPolicyConfigurationArgs] = None)func NewPolicy(ctx *Context, name string, args PolicyArgs, opts ...ResourceOption) (*Policy, error)public Policy(string name, PolicyArgs args, CustomResourceOptions? opts = null)
public Policy(String name, PolicyArgs args)
public Policy(String name, PolicyArgs args, CustomResourceOptions options)
type: aws:appautoscaling:Policy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_appautoscaling_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var awsPolicyResource = new Aws.AppAutoScaling.Policy("awsPolicyResource", new()
{
ResourceId = "string",
ScalableDimension = "string",
ServiceNamespace = "string",
Name = "string",
PolicyType = "string",
PredictiveScalingPolicyConfiguration = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationArgs
{
MetricSpecifications = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationArgs
{
TargetValue = "string",
CustomizedCapacityMetricSpecification = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationArgs
{
MetricDataQueries = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryArgs
{
Id = "string",
Expression = "string",
Label = "string",
MetricStat = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatArgs
{
Metric = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetricArgs
{
Dimensions = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs
{
Name = "string",
Value = "string",
},
},
MetricName = "string",
Namespace = "string",
},
Stat = "string",
Unit = "string",
},
ReturnData = false,
},
},
},
CustomizedLoadMetricSpecification = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationArgs
{
MetricDataQueries = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryArgs
{
Id = "string",
Expression = "string",
Label = "string",
MetricStat = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatArgs
{
Metric = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetricArgs
{
Dimensions = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs
{
Name = "string",
Value = "string",
},
},
MetricName = "string",
Namespace = "string",
},
Stat = "string",
Unit = "string",
},
ReturnData = false,
},
},
},
CustomizedScalingMetricSpecification = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationArgs
{
MetricDataQueries = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryArgs
{
Id = "string",
Expression = "string",
Label = "string",
MetricStat = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatArgs
{
Metric = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetricArgs
{
Dimensions = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs
{
Name = "string",
Value = "string",
},
},
MetricName = "string",
Namespace = "string",
},
Stat = "string",
Unit = "string",
},
ReturnData = false,
},
},
},
PredefinedLoadMetricSpecification = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedLoadMetricSpecificationArgs
{
PredefinedMetricType = "string",
ResourceLabel = "string",
},
PredefinedMetricPairSpecification = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedMetricPairSpecificationArgs
{
PredefinedMetricType = "string",
ResourceLabel = "string",
},
PredefinedScalingMetricSpecification = new Aws.AppAutoScaling.Inputs.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedScalingMetricSpecificationArgs
{
PredefinedMetricType = "string",
ResourceLabel = "string",
},
},
},
MaxCapacityBreachBehavior = "string",
MaxCapacityBuffer = 0,
Mode = "string",
SchedulingBufferTime = 0,
},
Region = "string",
StepScalingPolicyConfiguration = new Aws.AppAutoScaling.Inputs.PolicyStepScalingPolicyConfigurationArgs
{
AdjustmentType = "string",
Cooldown = 0,
MetricAggregationType = "string",
MinAdjustmentMagnitude = 0,
StepAdjustments = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyStepScalingPolicyConfigurationStepAdjustmentArgs
{
ScalingAdjustment = 0,
MetricIntervalLowerBound = "string",
MetricIntervalUpperBound = "string",
},
},
},
TargetTrackingScalingPolicyConfiguration = new Aws.AppAutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationArgs
{
TargetValue = 0,
CustomizedMetricSpecification = new Aws.AppAutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationArgs
{
Dimensions = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationDimensionArgs
{
Name = "string",
Value = "string",
},
},
MetricName = "string",
Metrics = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricArgs
{
Id = "string",
Expression = "string",
Label = "string",
MetricStat = new Aws.AppAutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatArgs
{
Metric = new Aws.AppAutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs
{
MetricName = "string",
Namespace = "string",
Dimensions = new[]
{
new Aws.AppAutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetricDimensionArgs
{
Name = "string",
Value = "string",
},
},
},
Stat = "string",
Unit = "string",
},
ReturnData = false,
},
},
Namespace = "string",
Statistic = "string",
Unit = "string",
},
DisableScaleIn = false,
PredefinedMetricSpecification = new Aws.AppAutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecificationArgs
{
PredefinedMetricType = "string",
ResourceLabel = "string",
},
ScaleInCooldown = 0,
ScaleOutCooldown = 0,
},
});
example, err := appautoscaling.NewPolicy(ctx, "awsPolicyResource", &appautoscaling.PolicyArgs{
ResourceId: pulumi.String("string"),
ScalableDimension: pulumi.String("string"),
ServiceNamespace: pulumi.String("string"),
Name: pulumi.String("string"),
PolicyType: pulumi.String("string"),
PredictiveScalingPolicyConfiguration: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationArgs{
MetricSpecifications: appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationArray{
&appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationArgs{
TargetValue: pulumi.String("string"),
CustomizedCapacityMetricSpecification: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationArgs{
MetricDataQueries: appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryArray{
&appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryArgs{
Id: pulumi.String("string"),
Expression: pulumi.String("string"),
Label: pulumi.String("string"),
MetricStat: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatArgs{
Metric: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetricArgs{
Dimensions: appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetricDimensionArray{
&appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MetricName: pulumi.String("string"),
Namespace: pulumi.String("string"),
},
Stat: pulumi.String("string"),
Unit: pulumi.String("string"),
},
ReturnData: pulumi.Bool(false),
},
},
},
CustomizedLoadMetricSpecification: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationArgs{
MetricDataQueries: appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryArray{
&appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryArgs{
Id: pulumi.String("string"),
Expression: pulumi.String("string"),
Label: pulumi.String("string"),
MetricStat: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatArgs{
Metric: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetricArgs{
Dimensions: appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetricDimensionArray{
&appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MetricName: pulumi.String("string"),
Namespace: pulumi.String("string"),
},
Stat: pulumi.String("string"),
Unit: pulumi.String("string"),
},
ReturnData: pulumi.Bool(false),
},
},
},
CustomizedScalingMetricSpecification: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationArgs{
MetricDataQueries: appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryArray{
&appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryArgs{
Id: pulumi.String("string"),
Expression: pulumi.String("string"),
Label: pulumi.String("string"),
MetricStat: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatArgs{
Metric: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetricArgs{
Dimensions: appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetricDimensionArray{
&appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MetricName: pulumi.String("string"),
Namespace: pulumi.String("string"),
},
Stat: pulumi.String("string"),
Unit: pulumi.String("string"),
},
ReturnData: pulumi.Bool(false),
},
},
},
PredefinedLoadMetricSpecification: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedLoadMetricSpecificationArgs{
PredefinedMetricType: pulumi.String("string"),
ResourceLabel: pulumi.String("string"),
},
PredefinedMetricPairSpecification: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedMetricPairSpecificationArgs{
PredefinedMetricType: pulumi.String("string"),
ResourceLabel: pulumi.String("string"),
},
PredefinedScalingMetricSpecification: &appautoscaling.PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedScalingMetricSpecificationArgs{
PredefinedMetricType: pulumi.String("string"),
ResourceLabel: pulumi.String("string"),
},
},
},
MaxCapacityBreachBehavior: pulumi.String("string"),
MaxCapacityBuffer: pulumi.Int(0),
Mode: pulumi.String("string"),
SchedulingBufferTime: pulumi.Int(0),
},
Region: pulumi.String("string"),
StepScalingPolicyConfiguration: &appautoscaling.PolicyStepScalingPolicyConfigurationArgs{
AdjustmentType: pulumi.String("string"),
Cooldown: pulumi.Int(0),
MetricAggregationType: pulumi.String("string"),
MinAdjustmentMagnitude: pulumi.Int(0),
StepAdjustments: appautoscaling.PolicyStepScalingPolicyConfigurationStepAdjustmentArray{
&appautoscaling.PolicyStepScalingPolicyConfigurationStepAdjustmentArgs{
ScalingAdjustment: pulumi.Int(0),
MetricIntervalLowerBound: pulumi.String("string"),
MetricIntervalUpperBound: pulumi.String("string"),
},
},
},
TargetTrackingScalingPolicyConfiguration: &appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationArgs{
TargetValue: pulumi.Float64(0),
CustomizedMetricSpecification: &appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationArgs{
Dimensions: appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationDimensionArray{
&appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationDimensionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MetricName: pulumi.String("string"),
Metrics: appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricArray{
&appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricArgs{
Id: pulumi.String("string"),
Expression: pulumi.String("string"),
Label: pulumi.String("string"),
MetricStat: &appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatArgs{
Metric: &appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs{
MetricName: pulumi.String("string"),
Namespace: pulumi.String("string"),
Dimensions: appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetricDimensionArray{
&appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetricDimensionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
Stat: pulumi.String("string"),
Unit: pulumi.String("string"),
},
ReturnData: pulumi.Bool(false),
},
},
Namespace: pulumi.String("string"),
Statistic: pulumi.String("string"),
Unit: pulumi.String("string"),
},
DisableScaleIn: pulumi.Bool(false),
PredefinedMetricSpecification: &appautoscaling.PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecificationArgs{
PredefinedMetricType: pulumi.String("string"),
ResourceLabel: pulumi.String("string"),
},
ScaleInCooldown: pulumi.Int(0),
ScaleOutCooldown: pulumi.Int(0),
},
})
resource "aws_appautoscaling_policy" "awsPolicyResource" {
lifecycle {
create_before_destroy = true
}
resource_id = "string"
scalable_dimension = "string"
service_namespace = "string"
name = "string"
policy_type = "string"
predictive_scaling_policy_configuration = {
metric_specifications = [{
target_value = "string"
customized_capacity_metric_specification = {
metric_data_queries = [{
id = "string"
expression = "string"
label = "string"
metric_stat = {
metric = {
dimensions = [{
name = "string"
value = "string"
}]
metric_name = "string"
namespace = "string"
}
stat = "string"
unit = "string"
}
return_data = false
}]
}
customized_load_metric_specification = {
metric_data_queries = [{
id = "string"
expression = "string"
label = "string"
metric_stat = {
metric = {
dimensions = [{
name = "string"
value = "string"
}]
metric_name = "string"
namespace = "string"
}
stat = "string"
unit = "string"
}
return_data = false
}]
}
customized_scaling_metric_specification = {
metric_data_queries = [{
id = "string"
expression = "string"
label = "string"
metric_stat = {
metric = {
dimensions = [{
name = "string"
value = "string"
}]
metric_name = "string"
namespace = "string"
}
stat = "string"
unit = "string"
}
return_data = false
}]
}
predefined_load_metric_specification = {
predefined_metric_type = "string"
resource_label = "string"
}
predefined_metric_pair_specification = {
predefined_metric_type = "string"
resource_label = "string"
}
predefined_scaling_metric_specification = {
predefined_metric_type = "string"
resource_label = "string"
}
}]
max_capacity_breach_behavior = "string"
max_capacity_buffer = 0
mode = "string"
scheduling_buffer_time = 0
}
region = "string"
step_scaling_policy_configuration = {
adjustment_type = "string"
cooldown = 0
metric_aggregation_type = "string"
min_adjustment_magnitude = 0
step_adjustments = [{
scaling_adjustment = 0
metric_interval_lower_bound = "string"
metric_interval_upper_bound = "string"
}]
}
target_tracking_scaling_policy_configuration = {
target_value = 0
customized_metric_specification = {
dimensions = [{
name = "string"
value = "string"
}]
metric_name = "string"
metrics = [{
id = "string"
expression = "string"
label = "string"
metric_stat = {
metric = {
metric_name = "string"
namespace = "string"
dimensions = [{
name = "string"
value = "string"
}]
}
stat = "string"
unit = "string"
}
return_data = false
}]
namespace = "string"
statistic = "string"
unit = "string"
}
disable_scale_in = false
predefined_metric_specification = {
predefined_metric_type = "string"
resource_label = "string"
}
scale_in_cooldown = 0
scale_out_cooldown = 0
}
}
var awsPolicyResource = new com.pulumi.aws.appautoscaling.Policy("awsPolicyResource", com.pulumi.aws.appautoscaling.PolicyArgs.builder()
.resourceId("string")
.scalableDimension("string")
.serviceNamespace("string")
.name("string")
.policyType("string")
.predictiveScalingPolicyConfiguration(PolicyPredictiveScalingPolicyConfigurationArgs.builder()
.metricSpecifications(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationArgs.builder()
.targetValue("string")
.customizedCapacityMetricSpecification(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationArgs.builder()
.metricDataQueries(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryArgs.builder()
.id("string")
.expression("string")
.label("string")
.metricStat(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatArgs.builder()
.metric(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetricArgs.builder()
.dimensions(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs.builder()
.name("string")
.value("string")
.build())
.metricName("string")
.namespace("string")
.build())
.stat("string")
.unit("string")
.build())
.returnData(false)
.build())
.build())
.customizedLoadMetricSpecification(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationArgs.builder()
.metricDataQueries(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryArgs.builder()
.id("string")
.expression("string")
.label("string")
.metricStat(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatArgs.builder()
.metric(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetricArgs.builder()
.dimensions(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs.builder()
.name("string")
.value("string")
.build())
.metricName("string")
.namespace("string")
.build())
.stat("string")
.unit("string")
.build())
.returnData(false)
.build())
.build())
.customizedScalingMetricSpecification(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationArgs.builder()
.metricDataQueries(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryArgs.builder()
.id("string")
.expression("string")
.label("string")
.metricStat(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatArgs.builder()
.metric(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetricArgs.builder()
.dimensions(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs.builder()
.name("string")
.value("string")
.build())
.metricName("string")
.namespace("string")
.build())
.stat("string")
.unit("string")
.build())
.returnData(false)
.build())
.build())
.predefinedLoadMetricSpecification(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedLoadMetricSpecificationArgs.builder()
.predefinedMetricType("string")
.resourceLabel("string")
.build())
.predefinedMetricPairSpecification(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedMetricPairSpecificationArgs.builder()
.predefinedMetricType("string")
.resourceLabel("string")
.build())
.predefinedScalingMetricSpecification(PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedScalingMetricSpecificationArgs.builder()
.predefinedMetricType("string")
.resourceLabel("string")
.build())
.build())
.maxCapacityBreachBehavior("string")
.maxCapacityBuffer(0)
.mode("string")
.schedulingBufferTime(0)
.build())
.region("string")
.stepScalingPolicyConfiguration(PolicyStepScalingPolicyConfigurationArgs.builder()
.adjustmentType("string")
.cooldown(0)
.metricAggregationType("string")
.minAdjustmentMagnitude(0)
.stepAdjustments(PolicyStepScalingPolicyConfigurationStepAdjustmentArgs.builder()
.scalingAdjustment(0)
.metricIntervalLowerBound("string")
.metricIntervalUpperBound("string")
.build())
.build())
.targetTrackingScalingPolicyConfiguration(PolicyTargetTrackingScalingPolicyConfigurationArgs.builder()
.targetValue(0.0)
.customizedMetricSpecification(PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationArgs.builder()
.dimensions(PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationDimensionArgs.builder()
.name("string")
.value("string")
.build())
.metricName("string")
.metrics(PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricArgs.builder()
.id("string")
.expression("string")
.label("string")
.metricStat(PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatArgs.builder()
.metric(PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs.builder()
.metricName("string")
.namespace("string")
.dimensions(PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetricDimensionArgs.builder()
.name("string")
.value("string")
.build())
.build())
.stat("string")
.unit("string")
.build())
.returnData(false)
.build())
.namespace("string")
.statistic("string")
.unit("string")
.build())
.disableScaleIn(false)
.predefinedMetricSpecification(PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecificationArgs.builder()
.predefinedMetricType("string")
.resourceLabel("string")
.build())
.scaleInCooldown(0)
.scaleOutCooldown(0)
.build())
.build());
aws_policy_resource = aws.appautoscaling.Policy("awsPolicyResource",
resource_id="string",
scalable_dimension="string",
service_namespace="string",
name="string",
policy_type="string",
predictive_scaling_policy_configuration={
"metric_specifications": [{
"target_value": "string",
"customized_capacity_metric_specification": {
"metric_data_queries": [{
"id": "string",
"expression": "string",
"label": "string",
"metric_stat": {
"metric": {
"dimensions": [{
"name": "string",
"value": "string",
}],
"metric_name": "string",
"namespace": "string",
},
"stat": "string",
"unit": "string",
},
"return_data": False,
}],
},
"customized_load_metric_specification": {
"metric_data_queries": [{
"id": "string",
"expression": "string",
"label": "string",
"metric_stat": {
"metric": {
"dimensions": [{
"name": "string",
"value": "string",
}],
"metric_name": "string",
"namespace": "string",
},
"stat": "string",
"unit": "string",
},
"return_data": False,
}],
},
"customized_scaling_metric_specification": {
"metric_data_queries": [{
"id": "string",
"expression": "string",
"label": "string",
"metric_stat": {
"metric": {
"dimensions": [{
"name": "string",
"value": "string",
}],
"metric_name": "string",
"namespace": "string",
},
"stat": "string",
"unit": "string",
},
"return_data": False,
}],
},
"predefined_load_metric_specification": {
"predefined_metric_type": "string",
"resource_label": "string",
},
"predefined_metric_pair_specification": {
"predefined_metric_type": "string",
"resource_label": "string",
},
"predefined_scaling_metric_specification": {
"predefined_metric_type": "string",
"resource_label": "string",
},
}],
"max_capacity_breach_behavior": "string",
"max_capacity_buffer": 0,
"mode": "string",
"scheduling_buffer_time": 0,
},
region="string",
step_scaling_policy_configuration={
"adjustment_type": "string",
"cooldown": 0,
"metric_aggregation_type": "string",
"min_adjustment_magnitude": 0,
"step_adjustments": [{
"scaling_adjustment": 0,
"metric_interval_lower_bound": "string",
"metric_interval_upper_bound": "string",
}],
},
target_tracking_scaling_policy_configuration={
"target_value": float(0),
"customized_metric_specification": {
"dimensions": [{
"name": "string",
"value": "string",
}],
"metric_name": "string",
"metrics": [{
"id": "string",
"expression": "string",
"label": "string",
"metric_stat": {
"metric": {
"metric_name": "string",
"namespace": "string",
"dimensions": [{
"name": "string",
"value": "string",
}],
},
"stat": "string",
"unit": "string",
},
"return_data": False,
}],
"namespace": "string",
"statistic": "string",
"unit": "string",
},
"disable_scale_in": False,
"predefined_metric_specification": {
"predefined_metric_type": "string",
"resource_label": "string",
},
"scale_in_cooldown": 0,
"scale_out_cooldown": 0,
})
const awsPolicyResource = new aws.appautoscaling.Policy("awsPolicyResource", {
resourceId: "string",
scalableDimension: "string",
serviceNamespace: "string",
name: "string",
policyType: "string",
predictiveScalingPolicyConfiguration: {
metricSpecifications: [{
targetValue: "string",
customizedCapacityMetricSpecification: {
metricDataQueries: [{
id: "string",
expression: "string",
label: "string",
metricStat: {
metric: {
dimensions: [{
name: "string",
value: "string",
}],
metricName: "string",
namespace: "string",
},
stat: "string",
unit: "string",
},
returnData: false,
}],
},
customizedLoadMetricSpecification: {
metricDataQueries: [{
id: "string",
expression: "string",
label: "string",
metricStat: {
metric: {
dimensions: [{
name: "string",
value: "string",
}],
metricName: "string",
namespace: "string",
},
stat: "string",
unit: "string",
},
returnData: false,
}],
},
customizedScalingMetricSpecification: {
metricDataQueries: [{
id: "string",
expression: "string",
label: "string",
metricStat: {
metric: {
dimensions: [{
name: "string",
value: "string",
}],
metricName: "string",
namespace: "string",
},
stat: "string",
unit: "string",
},
returnData: false,
}],
},
predefinedLoadMetricSpecification: {
predefinedMetricType: "string",
resourceLabel: "string",
},
predefinedMetricPairSpecification: {
predefinedMetricType: "string",
resourceLabel: "string",
},
predefinedScalingMetricSpecification: {
predefinedMetricType: "string",
resourceLabel: "string",
},
}],
maxCapacityBreachBehavior: "string",
maxCapacityBuffer: 0,
mode: "string",
schedulingBufferTime: 0,
},
region: "string",
stepScalingPolicyConfiguration: {
adjustmentType: "string",
cooldown: 0,
metricAggregationType: "string",
minAdjustmentMagnitude: 0,
stepAdjustments: [{
scalingAdjustment: 0,
metricIntervalLowerBound: "string",
metricIntervalUpperBound: "string",
}],
},
targetTrackingScalingPolicyConfiguration: {
targetValue: 0,
customizedMetricSpecification: {
dimensions: [{
name: "string",
value: "string",
}],
metricName: "string",
metrics: [{
id: "string",
expression: "string",
label: "string",
metricStat: {
metric: {
metricName: "string",
namespace: "string",
dimensions: [{
name: "string",
value: "string",
}],
},
stat: "string",
unit: "string",
},
returnData: false,
}],
namespace: "string",
statistic: "string",
unit: "string",
},
disableScaleIn: false,
predefinedMetricSpecification: {
predefinedMetricType: "string",
resourceLabel: "string",
},
scaleInCooldown: 0,
scaleOutCooldown: 0,
},
});
type: aws:appautoscaling:Policy
properties:
name: string
policyType: string
predictiveScalingPolicyConfiguration:
maxCapacityBreachBehavior: string
maxCapacityBuffer: 0
metricSpecifications:
- customizedCapacityMetricSpecification:
metricDataQueries:
- expression: string
id: string
label: string
metricStat:
metric:
dimensions:
- name: string
value: string
metricName: string
namespace: string
stat: string
unit: string
returnData: false
customizedLoadMetricSpecification:
metricDataQueries:
- expression: string
id: string
label: string
metricStat:
metric:
dimensions:
- name: string
value: string
metricName: string
namespace: string
stat: string
unit: string
returnData: false
customizedScalingMetricSpecification:
metricDataQueries:
- expression: string
id: string
label: string
metricStat:
metric:
dimensions:
- name: string
value: string
metricName: string
namespace: string
stat: string
unit: string
returnData: false
predefinedLoadMetricSpecification:
predefinedMetricType: string
resourceLabel: string
predefinedMetricPairSpecification:
predefinedMetricType: string
resourceLabel: string
predefinedScalingMetricSpecification:
predefinedMetricType: string
resourceLabel: string
targetValue: string
mode: string
schedulingBufferTime: 0
region: string
resourceId: string
scalableDimension: string
serviceNamespace: string
stepScalingPolicyConfiguration:
adjustmentType: string
cooldown: 0
metricAggregationType: string
minAdjustmentMagnitude: 0
stepAdjustments:
- metricIntervalLowerBound: string
metricIntervalUpperBound: string
scalingAdjustment: 0
targetTrackingScalingPolicyConfiguration:
customizedMetricSpecification:
dimensions:
- name: string
value: string
metricName: string
metrics:
- expression: string
id: string
label: string
metricStat:
metric:
dimensions:
- name: string
value: string
metricName: string
namespace: string
stat: string
unit: string
returnData: false
namespace: string
statistic: string
unit: string
disableScaleIn: false
predefinedMetricSpecification:
predefinedMetricType: string
resourceLabel: string
scaleInCooldown: 0
scaleOutCooldown: 0
targetValue: 0
Policy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Policy resource accepts the following input properties:
- Resource
Id string - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - Scalable
Dimension string - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - Service
Namespace string - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - Name string
- Name of the policy. Must be between 1 and 255 characters in length.
- Policy
Type string - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - Predictive
Scaling PolicyPolicy Configuration Predictive Scaling Policy Configuration - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Step
Scaling PolicyPolicy Configuration Step Scaling Policy Configuration - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - Target
Tracking PolicyScaling Policy Configuration Target Tracking Scaling Policy Configuration - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- Resource
Id string - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - Scalable
Dimension string - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - Service
Namespace string - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - Name string
- Name of the policy. Must be between 1 and 255 characters in length.
- Policy
Type string - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - Predictive
Scaling PolicyPolicy Configuration Predictive Scaling Policy Configuration Args - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Step
Scaling PolicyPolicy Configuration Step Scaling Policy Configuration Args - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - Target
Tracking PolicyScaling Policy Configuration Target Tracking Scaling Policy Configuration Args - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- resource_
id string - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - scalable_
dimension string - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - service_
namespace string - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - name string
- Name of the policy. Must be between 1 and 255 characters in length.
- policy_
type string - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - predictive_
scaling_ objectpolicy_ configuration - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- step_
scaling_ objectpolicy_ configuration - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - target_
tracking_ objectscaling_ policy_ configuration - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- resource
Id String - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - scalable
Dimension String - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - service
Namespace String - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - name String
- Name of the policy. Must be between 1 and 255 characters in length.
- policy
Type String - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - predictive
Scaling PolicyPolicy Configuration Predictive Scaling Policy Configuration - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- step
Scaling PolicyPolicy Configuration Step Scaling Policy Configuration - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - target
Tracking PolicyScaling Policy Configuration Target Tracking Scaling Policy Configuration - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- resource
Id string - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - scalable
Dimension string - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - service
Namespace string - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - name string
- Name of the policy. Must be between 1 and 255 characters in length.
- policy
Type string - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - predictive
Scaling PolicyPolicy Configuration Predictive Scaling Policy Configuration - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- step
Scaling PolicyPolicy Configuration Step Scaling Policy Configuration - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - target
Tracking PolicyScaling Policy Configuration Target Tracking Scaling Policy Configuration - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- resource_
id str - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - scalable_
dimension str - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - service_
namespace str - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - name str
- Name of the policy. Must be between 1 and 255 characters in length.
- policy_
type str - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - predictive_
scaling_ Policypolicy_ configuration Predictive Scaling Policy Configuration Args - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- step_
scaling_ Policypolicy_ configuration Step Scaling Policy Configuration Args - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - target_
tracking_ Policyscaling_ policy_ configuration Target Tracking Scaling Policy Configuration Args - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- resource
Id String - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - scalable
Dimension String - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - service
Namespace String - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - name String
- Name of the policy. Must be between 1 and 255 characters in length.
- policy
Type String - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - predictive
Scaling Property MapPolicy Configuration - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- step
Scaling Property MapPolicy Configuration - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - target
Tracking Property MapScaling Policy Configuration - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Policy resource produces the following output properties:
- alarm_
arns list(string) - List of CloudWatch alarm ARNs associated with the scaling policy.
- arn string
- ARN assigned by AWS to the scaling policy.
- id string
- The provider-assigned unique ID for this managed resource.
- alarm_
arns Sequence[str] - List of CloudWatch alarm ARNs associated with the scaling policy.
- arn str
- ARN assigned by AWS to the scaling policy.
- id str
- The provider-assigned unique ID for this managed resource.
Look up Existing Policy Resource
Get an existing Policy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PolicyState, opts?: CustomResourceOptions): Policy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alarm_arns: Optional[Sequence[str]] = None,
arn: Optional[str] = None,
name: Optional[str] = None,
policy_type: Optional[str] = None,
predictive_scaling_policy_configuration: Optional[PolicyPredictiveScalingPolicyConfigurationArgs] = None,
region: Optional[str] = None,
resource_id: Optional[str] = None,
scalable_dimension: Optional[str] = None,
service_namespace: Optional[str] = None,
step_scaling_policy_configuration: Optional[PolicyStepScalingPolicyConfigurationArgs] = None,
target_tracking_scaling_policy_configuration: Optional[PolicyTargetTrackingScalingPolicyConfigurationArgs] = None) -> Policyfunc GetPolicy(ctx *Context, name string, id IDInput, state *PolicyState, opts ...ResourceOption) (*Policy, error)public static Policy Get(string name, Input<string> id, PolicyState? state, CustomResourceOptions? opts = null)public static Policy get(String name, Output<String> id, PolicyState state, CustomResourceOptions options)resources: _: type: aws:appautoscaling:Policy get: id: ${id}import {
to = aws_appautoscaling_policy.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alarm
Arns List<string> - List of CloudWatch alarm ARNs associated with the scaling policy.
- Arn string
- ARN assigned by AWS to the scaling policy.
- Name string
- Name of the policy. Must be between 1 and 255 characters in length.
- Policy
Type string - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - Predictive
Scaling PolicyPolicy Configuration Predictive Scaling Policy Configuration - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Resource
Id string - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - Scalable
Dimension string - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - Service
Namespace string - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - Step
Scaling PolicyPolicy Configuration Step Scaling Policy Configuration - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - Target
Tracking PolicyScaling Policy Configuration Target Tracking Scaling Policy Configuration - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- Alarm
Arns []string - List of CloudWatch alarm ARNs associated with the scaling policy.
- Arn string
- ARN assigned by AWS to the scaling policy.
- Name string
- Name of the policy. Must be between 1 and 255 characters in length.
- Policy
Type string - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - Predictive
Scaling PolicyPolicy Configuration Predictive Scaling Policy Configuration Args - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Resource
Id string - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - Scalable
Dimension string - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - Service
Namespace string - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - Step
Scaling PolicyPolicy Configuration Step Scaling Policy Configuration Args - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - Target
Tracking PolicyScaling Policy Configuration Target Tracking Scaling Policy Configuration Args - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- alarm_
arns list(string) - List of CloudWatch alarm ARNs associated with the scaling policy.
- arn string
- ARN assigned by AWS to the scaling policy.
- name string
- Name of the policy. Must be between 1 and 255 characters in length.
- policy_
type string - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - predictive_
scaling_ objectpolicy_ configuration - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource_
id string - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - scalable_
dimension string - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - service_
namespace string - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - step_
scaling_ objectpolicy_ configuration - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - target_
tracking_ objectscaling_ policy_ configuration - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- alarm
Arns List<String> - List of CloudWatch alarm ARNs associated with the scaling policy.
- arn String
- ARN assigned by AWS to the scaling policy.
- name String
- Name of the policy. Must be between 1 and 255 characters in length.
- policy
Type String - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - predictive
Scaling PolicyPolicy Configuration Predictive Scaling Policy Configuration - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource
Id String - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - scalable
Dimension String - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - service
Namespace String - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - step
Scaling PolicyPolicy Configuration Step Scaling Policy Configuration - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - target
Tracking PolicyScaling Policy Configuration Target Tracking Scaling Policy Configuration - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- alarm
Arns string[] - List of CloudWatch alarm ARNs associated with the scaling policy.
- arn string
- ARN assigned by AWS to the scaling policy.
- name string
- Name of the policy. Must be between 1 and 255 characters in length.
- policy
Type string - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - predictive
Scaling PolicyPolicy Configuration Predictive Scaling Policy Configuration - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource
Id string - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - scalable
Dimension string - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - service
Namespace string - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - step
Scaling PolicyPolicy Configuration Step Scaling Policy Configuration - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - target
Tracking PolicyScaling Policy Configuration Target Tracking Scaling Policy Configuration - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- alarm_
arns Sequence[str] - List of CloudWatch alarm ARNs associated with the scaling policy.
- arn str
- ARN assigned by AWS to the scaling policy.
- name str
- Name of the policy. Must be between 1 and 255 characters in length.
- policy_
type str - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - predictive_
scaling_ Policypolicy_ configuration Predictive Scaling Policy Configuration Args - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource_
id str - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - scalable_
dimension str - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - service_
namespace str - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - step_
scaling_ Policypolicy_ configuration Step Scaling Policy Configuration Args - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - target_
tracking_ Policyscaling_ policy_ configuration Target Tracking Scaling Policy Configuration Args - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
- alarm
Arns List<String> - List of CloudWatch alarm ARNs associated with the scaling policy.
- arn String
- ARN assigned by AWS to the scaling policy.
- name String
- Name of the policy. Must be between 1 and 255 characters in length.
- policy
Type String - Policy type. Valid values are
StepScaling,TargetTrackingScaling, andPredictiveScaling. Defaults toStepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. - predictive
Scaling Property MapPolicy Configuration - Predictive scaling policy configuration, requires
policyType = "PredictiveScaling". See supported fields below. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- resource
Id String - Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the
ResourceIdparameter at: AWS Application Auto Scaling API Reference - scalable
Dimension String - Scalable dimension of the scalable target. Documentation can be found in the
ScalableDimensionparameter at: AWS Application Auto Scaling API Reference - service
Namespace String - AWS service namespace of the scalable target. Documentation can be found in the
ServiceNamespaceparameter at: AWS Application Auto Scaling API Reference - step
Scaling Property MapPolicy Configuration - Step scaling policy configuration, requires
policyType = "StepScaling"(default). See supported fields below. - target
Tracking Property MapScaling Policy Configuration - Target tracking policy configuration, requires
policyType = "TargetTrackingScaling". See supported fields below.
Supporting Types
PolicyPredictiveScalingPolicyConfiguration, PolicyPredictiveScalingPolicyConfigurationArgs
- Metric
Specifications List<PolicyPredictive Scaling Policy Configuration Metric Specification> - Metrics and target utilization to use for predictive scaling. See
predictive_scaling_policy_configuration.metric_specificationBlock for details. - Max
Capacity stringBreach Behavior - Behavior applied if the forecast capacity approaches or exceeds the maximum capacity. Valid values are
HonorMaxCapacityandIncreaseMaxCapacity. - Max
Capacity intBuffer - Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. Required if the
maxCapacityBreachBehaviorargument is set toIncreaseMaxCapacity, and cannot be used otherwise. - Mode string
- Predictive scaling mode. Valid values are
ForecastOnlyandForecastAndScale. - Scheduling
Buffer intTime - Amount of time, in seconds, that the start time can be advanced.
- Metric
Specifications []PolicyPredictive Scaling Policy Configuration Metric Specification - Metrics and target utilization to use for predictive scaling. See
predictive_scaling_policy_configuration.metric_specificationBlock for details. - Max
Capacity stringBreach Behavior - Behavior applied if the forecast capacity approaches or exceeds the maximum capacity. Valid values are
HonorMaxCapacityandIncreaseMaxCapacity. - Max
Capacity intBuffer - Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. Required if the
maxCapacityBreachBehaviorargument is set toIncreaseMaxCapacity, and cannot be used otherwise. - Mode string
- Predictive scaling mode. Valid values are
ForecastOnlyandForecastAndScale. - Scheduling
Buffer intTime - Amount of time, in seconds, that the start time can be advanced.
- metric_
specifications list(object) - Metrics and target utilization to use for predictive scaling. See
predictive_scaling_policy_configuration.metric_specificationBlock for details. - max_
capacity_ stringbreach_ behavior - Behavior applied if the forecast capacity approaches or exceeds the maximum capacity. Valid values are
HonorMaxCapacityandIncreaseMaxCapacity. - max_
capacity_ numberbuffer - Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. Required if the
maxCapacityBreachBehaviorargument is set toIncreaseMaxCapacity, and cannot be used otherwise. - mode string
- Predictive scaling mode. Valid values are
ForecastOnlyandForecastAndScale. - scheduling_
buffer_ numbertime - Amount of time, in seconds, that the start time can be advanced.
- metric
Specifications List<PolicyPredictive Scaling Policy Configuration Metric Specification> - Metrics and target utilization to use for predictive scaling. See
predictive_scaling_policy_configuration.metric_specificationBlock for details. - max
Capacity StringBreach Behavior - Behavior applied if the forecast capacity approaches or exceeds the maximum capacity. Valid values are
HonorMaxCapacityandIncreaseMaxCapacity. - max
Capacity IntegerBuffer - Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. Required if the
maxCapacityBreachBehaviorargument is set toIncreaseMaxCapacity, and cannot be used otherwise. - mode String
- Predictive scaling mode. Valid values are
ForecastOnlyandForecastAndScale. - scheduling
Buffer IntegerTime - Amount of time, in seconds, that the start time can be advanced.
- metric
Specifications PolicyPredictive Scaling Policy Configuration Metric Specification[] - Metrics and target utilization to use for predictive scaling. See
predictive_scaling_policy_configuration.metric_specificationBlock for details. - max
Capacity stringBreach Behavior - Behavior applied if the forecast capacity approaches or exceeds the maximum capacity. Valid values are
HonorMaxCapacityandIncreaseMaxCapacity. - max
Capacity numberBuffer - Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. Required if the
maxCapacityBreachBehaviorargument is set toIncreaseMaxCapacity, and cannot be used otherwise. - mode string
- Predictive scaling mode. Valid values are
ForecastOnlyandForecastAndScale. - scheduling
Buffer numberTime - Amount of time, in seconds, that the start time can be advanced.
- metric_
specifications Sequence[PolicyPredictive Scaling Policy Configuration Metric Specification] - Metrics and target utilization to use for predictive scaling. See
predictive_scaling_policy_configuration.metric_specificationBlock for details. - max_
capacity_ strbreach_ behavior - Behavior applied if the forecast capacity approaches or exceeds the maximum capacity. Valid values are
HonorMaxCapacityandIncreaseMaxCapacity. - max_
capacity_ intbuffer - Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. Required if the
maxCapacityBreachBehaviorargument is set toIncreaseMaxCapacity, and cannot be used otherwise. - mode str
- Predictive scaling mode. Valid values are
ForecastOnlyandForecastAndScale. - scheduling_
buffer_ inttime - Amount of time, in seconds, that the start time can be advanced.
- metric
Specifications List<Property Map> - Metrics and target utilization to use for predictive scaling. See
predictive_scaling_policy_configuration.metric_specificationBlock for details. - max
Capacity StringBreach Behavior - Behavior applied if the forecast capacity approaches or exceeds the maximum capacity. Valid values are
HonorMaxCapacityandIncreaseMaxCapacity. - max
Capacity NumberBuffer - Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. Required if the
maxCapacityBreachBehaviorargument is set toIncreaseMaxCapacity, and cannot be used otherwise. - mode String
- Predictive scaling mode. Valid values are
ForecastOnlyandForecastAndScale. - scheduling
Buffer NumberTime - Amount of time, in seconds, that the start time can be advanced.
PolicyPredictiveScalingPolicyConfigurationMetricSpecification, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationArgs
- Target
Value string - Customized
Capacity PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification - Customized capacity metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_capacity_metric_specificationBlock for details. - Customized
Load PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification - Customized load metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_load_metric_specificationBlock for details. - Customized
Scaling PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification - Customized scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specificationBlock for details. - Predefined
Load PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Predefined Load Metric Specification - Predefined load metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_load_metric_specificationBlock for details. - Predefined
Metric PolicyPair Specification Predictive Scaling Policy Configuration Metric Specification Predefined Metric Pair Specification - Predefined metric pair specification that determines the appropriate scaling metric and load metric to use. See
predictive_scaling_policy_configuration.metric_specification.predefined_metric_pair_specificationBlock for details. - Predefined
Scaling PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Predefined Scaling Metric Specification - Predefined scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_scaling_metric_specificationBlock for details.
- Target
Value string - Customized
Capacity PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification - Customized capacity metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_capacity_metric_specificationBlock for details. - Customized
Load PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification - Customized load metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_load_metric_specificationBlock for details. - Customized
Scaling PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification - Customized scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specificationBlock for details. - Predefined
Load PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Predefined Load Metric Specification - Predefined load metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_load_metric_specificationBlock for details. - Predefined
Metric PolicyPair Specification Predictive Scaling Policy Configuration Metric Specification Predefined Metric Pair Specification - Predefined metric pair specification that determines the appropriate scaling metric and load metric to use. See
predictive_scaling_policy_configuration.metric_specification.predefined_metric_pair_specificationBlock for details. - Predefined
Scaling PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Predefined Scaling Metric Specification - Predefined scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_scaling_metric_specificationBlock for details.
- target_
value string - customized_
capacity_ objectmetric_ specification - Customized capacity metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_capacity_metric_specificationBlock for details. - customized_
load_ objectmetric_ specification - Customized load metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_load_metric_specificationBlock for details. - customized_
scaling_ objectmetric_ specification - Customized scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specificationBlock for details. - predefined_
load_ objectmetric_ specification - Predefined load metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_load_metric_specificationBlock for details. - predefined_
metric_ objectpair_ specification - Predefined metric pair specification that determines the appropriate scaling metric and load metric to use. See
predictive_scaling_policy_configuration.metric_specification.predefined_metric_pair_specificationBlock for details. - predefined_
scaling_ objectmetric_ specification - Predefined scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_scaling_metric_specificationBlock for details.
- target
Value String - customized
Capacity PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification - Customized capacity metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_capacity_metric_specificationBlock for details. - customized
Load PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification - Customized load metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_load_metric_specificationBlock for details. - customized
Scaling PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification - Customized scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specificationBlock for details. - predefined
Load PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Predefined Load Metric Specification - Predefined load metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_load_metric_specificationBlock for details. - predefined
Metric PolicyPair Specification Predictive Scaling Policy Configuration Metric Specification Predefined Metric Pair Specification - Predefined metric pair specification that determines the appropriate scaling metric and load metric to use. See
predictive_scaling_policy_configuration.metric_specification.predefined_metric_pair_specificationBlock for details. - predefined
Scaling PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Predefined Scaling Metric Specification - Predefined scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_scaling_metric_specificationBlock for details.
- target
Value string - customized
Capacity PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification - Customized capacity metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_capacity_metric_specificationBlock for details. - customized
Load PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification - Customized load metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_load_metric_specificationBlock for details. - customized
Scaling PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification - Customized scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specificationBlock for details. - predefined
Load PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Predefined Load Metric Specification - Predefined load metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_load_metric_specificationBlock for details. - predefined
Metric PolicyPair Specification Predictive Scaling Policy Configuration Metric Specification Predefined Metric Pair Specification - Predefined metric pair specification that determines the appropriate scaling metric and load metric to use. See
predictive_scaling_policy_configuration.metric_specification.predefined_metric_pair_specificationBlock for details. - predefined
Scaling PolicyMetric Specification Predictive Scaling Policy Configuration Metric Specification Predefined Scaling Metric Specification - Predefined scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_scaling_metric_specificationBlock for details.
- target_
value str - customized_
capacity_ Policymetric_ specification Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification - Customized capacity metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_capacity_metric_specificationBlock for details. - customized_
load_ Policymetric_ specification Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification - Customized load metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_load_metric_specificationBlock for details. - customized_
scaling_ Policymetric_ specification Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification - Customized scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specificationBlock for details. - predefined_
load_ Policymetric_ specification Predictive Scaling Policy Configuration Metric Specification Predefined Load Metric Specification - Predefined load metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_load_metric_specificationBlock for details. - predefined_
metric_ Policypair_ specification Predictive Scaling Policy Configuration Metric Specification Predefined Metric Pair Specification - Predefined metric pair specification that determines the appropriate scaling metric and load metric to use. See
predictive_scaling_policy_configuration.metric_specification.predefined_metric_pair_specificationBlock for details. - predefined_
scaling_ Policymetric_ specification Predictive Scaling Policy Configuration Metric Specification Predefined Scaling Metric Specification - Predefined scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_scaling_metric_specificationBlock for details.
- target
Value String - customized
Capacity Property MapMetric Specification - Customized capacity metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_capacity_metric_specificationBlock for details. - customized
Load Property MapMetric Specification - Customized load metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_load_metric_specificationBlock for details. - customized
Scaling Property MapMetric Specification - Customized scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specificationBlock for details. - predefined
Load Property MapMetric Specification - Predefined load metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_load_metric_specificationBlock for details. - predefined
Metric Property MapPair Specification - Predefined metric pair specification that determines the appropriate scaling metric and load metric to use. See
predictive_scaling_policy_configuration.metric_specification.predefined_metric_pair_specificationBlock for details. - predefined
Scaling Property MapMetric Specification - Predefined scaling metric specification. See
predictive_scaling_policy_configuration.metric_specification.predefined_scaling_metric_specificationBlock for details.
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecification, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationArgs
- Metric
Data List<PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification Metric Data Query> - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- Metric
Data []PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification Metric Data Query - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric_
data_ list(object)queries - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric
Data List<PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification Metric Data Query> - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric
Data PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification Metric Data Query[] - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric_
data_ Sequence[Policyqueries Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification Metric Data Query] - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric
Data List<Property Map>Queries - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryArgs
- id string
- expression string
- label string
- metric_
stat object - return_
data bool
- id String
- expression String
- label String
- metric
Stat Property Map - return
Data Boolean
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatArgs
- metric Property Map
- stat String
- unit String
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetricArgs
- Dimensions
List<Policy
Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification Metric Data Query Metric Stat Metric Dimension> - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - Metric
Name string - Namespace string
- Dimensions
[]Policy
Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification Metric Data Query Metric Stat Metric Dimension - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - Metric
Name string - Namespace string
- dimensions list(object)
- Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric_
name string - namespace string
- dimensions
List<Policy
Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification Metric Data Query Metric Stat Metric Dimension> - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric
Name String - namespace String
- dimensions
Policy
Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification Metric Data Query Metric Stat Metric Dimension[] - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric
Name string - namespace string
- dimensions
Sequence[Policy
Predictive Scaling Policy Configuration Metric Specification Customized Capacity Metric Specification Metric Data Query Metric Stat Metric Dimension] - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric_
name str - namespace str
- dimensions List<Property Map>
- Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric
Name String - namespace String
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetricDimension, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecification, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationArgs
- Metric
Data List<PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification Metric Data Query> - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- Metric
Data []PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification Metric Data Query - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric_
data_ list(object)queries - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric
Data List<PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification Metric Data Query> - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric
Data PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification Metric Data Query[] - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric_
data_ Sequence[Policyqueries Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification Metric Data Query] - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric
Data List<Property Map>Queries - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryArgs
- id string
- expression string
- label string
- metric_
stat object - return_
data bool
- id String
- expression String
- label String
- metric
Stat Property Map - return
Data Boolean
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatArgs
- metric Property Map
- stat String
- unit String
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetricArgs
- Dimensions
List<Policy
Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification Metric Data Query Metric Stat Metric Dimension> - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - Metric
Name string - Namespace string
- Dimensions
[]Policy
Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification Metric Data Query Metric Stat Metric Dimension - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - Metric
Name string - Namespace string
- dimensions list(object)
- Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric_
name string - namespace string
- dimensions
List<Policy
Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification Metric Data Query Metric Stat Metric Dimension> - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric
Name String - namespace String
- dimensions
Policy
Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification Metric Data Query Metric Stat Metric Dimension[] - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric
Name string - namespace string
- dimensions
Sequence[Policy
Predictive Scaling Policy Configuration Metric Specification Customized Load Metric Specification Metric Data Query Metric Stat Metric Dimension] - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric_
name str - namespace str
- dimensions List<Property Map>
- Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric
Name String - namespace String
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetricDimension, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecification, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationArgs
- Metric
Data List<PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification Metric Data Query> - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- Metric
Data []PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification Metric Data Query - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric_
data_ list(object)queries - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric
Data List<PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification Metric Data Query> - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric
Data PolicyQueries Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification Metric Data Query[] - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric_
data_ Sequence[Policyqueries Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification Metric Data Query] - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
- metric
Data List<Property Map>Queries - One or more metric data queries to provide data points for a metric specification. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_queryBlock for details.
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryArgs
- id string
- expression string
- label string
- metric_
stat object - return_
data bool
- id String
- expression String
- label String
- metric
Stat Property Map - return
Data Boolean
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatArgs
- metric Property Map
- stat String
- unit String
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetricArgs
- Dimensions
List<Policy
Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification Metric Data Query Metric Stat Metric Dimension> - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - Metric
Name string - Namespace string
- Dimensions
[]Policy
Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification Metric Data Query Metric Stat Metric Dimension - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - Metric
Name string - Namespace string
- dimensions list(object)
- Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric_
name string - namespace string
- dimensions
List<Policy
Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification Metric Data Query Metric Stat Metric Dimension> - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric
Name String - namespace String
- dimensions
Policy
Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification Metric Data Query Metric Stat Metric Dimension[] - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric
Name string - namespace string
- dimensions
Sequence[Policy
Predictive Scaling Policy Configuration Metric Specification Customized Scaling Metric Specification Metric Data Query Metric Stat Metric Dimension] - Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric_
name str - namespace str
- dimensions List<Property Map>
- Dimensions of the metric. See
predictive_scaling_policy_configuration.metric_specification.customized_scaling_metric_specification.metric_data_query.metric_stat.metric.dimensionBlock for details. - metric
Name String - namespace String
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetricDimension, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetricDimensionArgs
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedLoadMetricSpecification, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedLoadMetricSpecificationArgs
- Predefined
Metric stringType - Resource
Label string
- Predefined
Metric stringType - Resource
Label string
- predefined_
metric_ stringtype - resource_
label string
- predefined
Metric StringType - resource
Label String
- predefined
Metric stringType - resource
Label string
- predefined
Metric StringType - resource
Label String
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedMetricPairSpecification, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedMetricPairSpecificationArgs
- Predefined
Metric stringType - Resource
Label string
- Predefined
Metric stringType - Resource
Label string
- predefined_
metric_ stringtype - resource_
label string
- predefined
Metric StringType - resource
Label String
- predefined
Metric stringType - resource
Label string
- predefined
Metric StringType - resource
Label String
PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedScalingMetricSpecification, PolicyPredictiveScalingPolicyConfigurationMetricSpecificationPredefinedScalingMetricSpecificationArgs
- Predefined
Metric stringType - Resource
Label string
- Predefined
Metric stringType - Resource
Label string
- predefined_
metric_ stringtype - resource_
label string
- predefined
Metric StringType - resource
Label String
- predefined
Metric stringType - resource
Label string
- predefined
Metric StringType - resource
Label String
PolicyStepScalingPolicyConfiguration, PolicyStepScalingPolicyConfigurationArgs
- Adjustment
Type string - Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are
ChangeInCapacity,ExactCapacity, andPercentChangeInCapacity. - Cooldown int
- Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start.
- Metric
Aggregation stringType - Aggregation type for the policy's metrics. Valid values are
Minimum,Maximum, andAverage. Without a value, AWS treats the aggregation type asAverage. - Min
Adjustment intMagnitude - Minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is
PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. - Step
Adjustments List<PolicyStep Scaling Policy Configuration Step Adjustment> - Set of adjustments that manage scaling. See
step_scaling_policy_configuration.step_adjustmentBlock for details.
- Adjustment
Type string - Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are
ChangeInCapacity,ExactCapacity, andPercentChangeInCapacity. - Cooldown int
- Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start.
- Metric
Aggregation stringType - Aggregation type for the policy's metrics. Valid values are
Minimum,Maximum, andAverage. Without a value, AWS treats the aggregation type asAverage. - Min
Adjustment intMagnitude - Minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is
PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. - Step
Adjustments []PolicyStep Scaling Policy Configuration Step Adjustment - Set of adjustments that manage scaling. See
step_scaling_policy_configuration.step_adjustmentBlock for details.
- adjustment_
type string - Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are
ChangeInCapacity,ExactCapacity, andPercentChangeInCapacity. - cooldown number
- Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start.
- metric_
aggregation_ stringtype - Aggregation type for the policy's metrics. Valid values are
Minimum,Maximum, andAverage. Without a value, AWS treats the aggregation type asAverage. - min_
adjustment_ numbermagnitude - Minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is
PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. - step_
adjustments list(object) - Set of adjustments that manage scaling. See
step_scaling_policy_configuration.step_adjustmentBlock for details.
- adjustment
Type String - Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are
ChangeInCapacity,ExactCapacity, andPercentChangeInCapacity. - cooldown Integer
- Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start.
- metric
Aggregation StringType - Aggregation type for the policy's metrics. Valid values are
Minimum,Maximum, andAverage. Without a value, AWS treats the aggregation type asAverage. - min
Adjustment IntegerMagnitude - Minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is
PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. - step
Adjustments List<PolicyStep Scaling Policy Configuration Step Adjustment> - Set of adjustments that manage scaling. See
step_scaling_policy_configuration.step_adjustmentBlock for details.
- adjustment
Type string - Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are
ChangeInCapacity,ExactCapacity, andPercentChangeInCapacity. - cooldown number
- Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start.
- metric
Aggregation stringType - Aggregation type for the policy's metrics. Valid values are
Minimum,Maximum, andAverage. Without a value, AWS treats the aggregation type asAverage. - min
Adjustment numberMagnitude - Minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is
PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. - step
Adjustments PolicyStep Scaling Policy Configuration Step Adjustment[] - Set of adjustments that manage scaling. See
step_scaling_policy_configuration.step_adjustmentBlock for details.
- adjustment_
type str - Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are
ChangeInCapacity,ExactCapacity, andPercentChangeInCapacity. - cooldown int
- Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start.
- metric_
aggregation_ strtype - Aggregation type for the policy's metrics. Valid values are
Minimum,Maximum, andAverage. Without a value, AWS treats the aggregation type asAverage. - min_
adjustment_ intmagnitude - Minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is
PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. - step_
adjustments Sequence[PolicyStep Scaling Policy Configuration Step Adjustment] - Set of adjustments that manage scaling. See
step_scaling_policy_configuration.step_adjustmentBlock for details.
- adjustment
Type String - Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are
ChangeInCapacity,ExactCapacity, andPercentChangeInCapacity. - cooldown Number
- Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start.
- metric
Aggregation StringType - Aggregation type for the policy's metrics. Valid values are
Minimum,Maximum, andAverage. Without a value, AWS treats the aggregation type asAverage. - min
Adjustment NumberMagnitude - Minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is
PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. - step
Adjustments List<Property Map> - Set of adjustments that manage scaling. See
step_scaling_policy_configuration.step_adjustmentBlock for details.
PolicyStepScalingPolicyConfigurationStepAdjustment, PolicyStepScalingPolicyConfigurationStepAdjustmentArgs
- Scaling
Adjustment int - Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down.
- Metric
Interval stringLower Bound - Lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as negative infinity.
- Metric
Interval stringUpper Bound - Upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as infinity. The upper bound must be greater than the lower bound.
- Scaling
Adjustment int - Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down.
- Metric
Interval stringLower Bound - Lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as negative infinity.
- Metric
Interval stringUpper Bound - Upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as infinity. The upper bound must be greater than the lower bound.
- scaling_
adjustment number - Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down.
- metric_
interval_ stringlower_ bound - Lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as negative infinity.
- metric_
interval_ stringupper_ bound - Upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as infinity. The upper bound must be greater than the lower bound.
- scaling
Adjustment Integer - Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down.
- metric
Interval StringLower Bound - Lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as negative infinity.
- metric
Interval StringUpper Bound - Upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as infinity. The upper bound must be greater than the lower bound.
- scaling
Adjustment number - Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down.
- metric
Interval stringLower Bound - Lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as negative infinity.
- metric
Interval stringUpper Bound - Upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as infinity. The upper bound must be greater than the lower bound.
- scaling_
adjustment int - Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down.
- metric_
interval_ strlower_ bound - Lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as negative infinity.
- metric_
interval_ strupper_ bound - Upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as infinity. The upper bound must be greater than the lower bound.
- scaling
Adjustment Number - Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down.
- metric
Interval StringLower Bound - Lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as negative infinity.
- metric
Interval StringUpper Bound - Upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS treats this bound as infinity. The upper bound must be greater than the lower bound.
PolicyTargetTrackingScalingPolicyConfiguration, PolicyTargetTrackingScalingPolicyConfigurationArgs
- Target
Value double - Target value for the metric.
- Customized
Metric PolicySpecification Target Tracking Scaling Policy Configuration Customized Metric Specification - Custom CloudWatch metric. See the AWS Customized Metric Specification documentation. See
target_tracking_scaling_policy_configuration.customized_metric_specificationBlock for details. - Disable
Scale boolIn - Whether scale in by the target tracking policy is disabled. If
true, scale in is disabled and the target tracking policy does not remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. Defaults tofalse. - Predefined
Metric PolicySpecification Target Tracking Scaling Policy Configuration Predefined Metric Specification - Predefined metric. See
target_tracking_scaling_policy_configuration.predefined_metric_specificationBlock for details. - Scale
In intCooldown - Amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
- Scale
Out intCooldown - Amount of time, in seconds, after a scale out activity completes before another scale out activity can start.
- Target
Value float64 - Target value for the metric.
- Customized
Metric PolicySpecification Target Tracking Scaling Policy Configuration Customized Metric Specification - Custom CloudWatch metric. See the AWS Customized Metric Specification documentation. See
target_tracking_scaling_policy_configuration.customized_metric_specificationBlock for details. - Disable
Scale boolIn - Whether scale in by the target tracking policy is disabled. If
true, scale in is disabled and the target tracking policy does not remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. Defaults tofalse. - Predefined
Metric PolicySpecification Target Tracking Scaling Policy Configuration Predefined Metric Specification - Predefined metric. See
target_tracking_scaling_policy_configuration.predefined_metric_specificationBlock for details. - Scale
In intCooldown - Amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
- Scale
Out intCooldown - Amount of time, in seconds, after a scale out activity completes before another scale out activity can start.
- target_
value number - Target value for the metric.
- customized_
metric_ objectspecification - Custom CloudWatch metric. See the AWS Customized Metric Specification documentation. See
target_tracking_scaling_policy_configuration.customized_metric_specificationBlock for details. - disable_
scale_ boolin - Whether scale in by the target tracking policy is disabled. If
true, scale in is disabled and the target tracking policy does not remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. Defaults tofalse. - predefined_
metric_ objectspecification - Predefined metric. See
target_tracking_scaling_policy_configuration.predefined_metric_specificationBlock for details. - scale_
in_ numbercooldown - Amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
- scale_
out_ numbercooldown - Amount of time, in seconds, after a scale out activity completes before another scale out activity can start.
- target
Value Double - Target value for the metric.
- customized
Metric PolicySpecification Target Tracking Scaling Policy Configuration Customized Metric Specification - Custom CloudWatch metric. See the AWS Customized Metric Specification documentation. See
target_tracking_scaling_policy_configuration.customized_metric_specificationBlock for details. - disable
Scale BooleanIn - Whether scale in by the target tracking policy is disabled. If
true, scale in is disabled and the target tracking policy does not remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. Defaults tofalse. - predefined
Metric PolicySpecification Target Tracking Scaling Policy Configuration Predefined Metric Specification - Predefined metric. See
target_tracking_scaling_policy_configuration.predefined_metric_specificationBlock for details. - scale
In IntegerCooldown - Amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
- scale
Out IntegerCooldown - Amount of time, in seconds, after a scale out activity completes before another scale out activity can start.
- target
Value number - Target value for the metric.
- customized
Metric PolicySpecification Target Tracking Scaling Policy Configuration Customized Metric Specification - Custom CloudWatch metric. See the AWS Customized Metric Specification documentation. See
target_tracking_scaling_policy_configuration.customized_metric_specificationBlock for details. - disable
Scale booleanIn - Whether scale in by the target tracking policy is disabled. If
true, scale in is disabled and the target tracking policy does not remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. Defaults tofalse. - predefined
Metric PolicySpecification Target Tracking Scaling Policy Configuration Predefined Metric Specification - Predefined metric. See
target_tracking_scaling_policy_configuration.predefined_metric_specificationBlock for details. - scale
In numberCooldown - Amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
- scale
Out numberCooldown - Amount of time, in seconds, after a scale out activity completes before another scale out activity can start.
- target_
value float - Target value for the metric.
- customized_
metric_ Policyspecification Target Tracking Scaling Policy Configuration Customized Metric Specification - Custom CloudWatch metric. See the AWS Customized Metric Specification documentation. See
target_tracking_scaling_policy_configuration.customized_metric_specificationBlock for details. - disable_
scale_ boolin - Whether scale in by the target tracking policy is disabled. If
true, scale in is disabled and the target tracking policy does not remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. Defaults tofalse. - predefined_
metric_ Policyspecification Target Tracking Scaling Policy Configuration Predefined Metric Specification - Predefined metric. See
target_tracking_scaling_policy_configuration.predefined_metric_specificationBlock for details. - scale_
in_ intcooldown - Amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
- scale_
out_ intcooldown - Amount of time, in seconds, after a scale out activity completes before another scale out activity can start.
- target
Value Number - Target value for the metric.
- customized
Metric Property MapSpecification - Custom CloudWatch metric. See the AWS Customized Metric Specification documentation. See
target_tracking_scaling_policy_configuration.customized_metric_specificationBlock for details. - disable
Scale BooleanIn - Whether scale in by the target tracking policy is disabled. If
true, scale in is disabled and the target tracking policy does not remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. Defaults tofalse. - predefined
Metric Property MapSpecification - Predefined metric. See
target_tracking_scaling_policy_configuration.predefined_metric_specificationBlock for details. - scale
In NumberCooldown - Amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
- scale
Out NumberCooldown - Amount of time, in seconds, after a scale out activity completes before another scale out activity can start.
PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification, PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationArgs
- Dimensions
List<Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Dimension> - Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details. - Metric
Name string - Metrics
List<Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Metric> - Metrics to include, as a metric data query. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metricsBlock for details. - Namespace string
- Statistic string
- Statistic of the metric. Valid values are
Average,Minimum,Maximum,SampleCount, andSum. - Unit string
- Dimensions
[]Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Dimension - Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details. - Metric
Name string - Metrics
[]Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Metric - Metrics to include, as a metric data query. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metricsBlock for details. - Namespace string
- Statistic string
- Statistic of the metric. Valid values are
Average,Minimum,Maximum,SampleCount, andSum. - Unit string
- dimensions list(object)
- Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details. - metric_
name string - metrics list(object)
- Metrics to include, as a metric data query. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metricsBlock for details. - namespace string
- statistic string
- Statistic of the metric. Valid values are
Average,Minimum,Maximum,SampleCount, andSum. - unit string
- dimensions
List<Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Dimension> - Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details. - metric
Name String - metrics
List<Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Metric> - Metrics to include, as a metric data query. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metricsBlock for details. - namespace String
- statistic String
- Statistic of the metric. Valid values are
Average,Minimum,Maximum,SampleCount, andSum. - unit String
- dimensions
Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Dimension[] - Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details. - metric
Name string - metrics
Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Metric[] - Metrics to include, as a metric data query. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metricsBlock for details. - namespace string
- statistic string
- Statistic of the metric. Valid values are
Average,Minimum,Maximum,SampleCount, andSum. - unit string
- dimensions
Sequence[Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Dimension] - Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details. - metric_
name str - metrics
Sequence[Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Metric] - Metrics to include, as a metric data query. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metricsBlock for details. - namespace str
- statistic str
- Statistic of the metric. Valid values are
Average,Minimum,Maximum,SampleCount, andSum. - unit str
- dimensions List<Property Map>
- Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details. - metric
Name String - metrics List<Property Map>
- Metrics to include, as a metric data query. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metricsBlock for details. - namespace String
- statistic String
- Statistic of the metric. Valid values are
Average,Minimum,Maximum,SampleCount, andSum. - unit String
PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationDimension, PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationDimensionArgs
PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetric, PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricArgs
- id string
- expression string
- label string
- metric_
stat object - return_
data bool
- id String
- expression String
- label String
- metric
Stat Property Map - return
Data Boolean
PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStat, PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatArgs
- metric Property Map
- stat String
- unit String
PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetric, PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs
- Metric
Name string - Namespace string
- Dimensions
List<Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Metric Metric Stat Metric Dimension> - Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details.
- Metric
Name string - Namespace string
- Dimensions
[]Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Metric Metric Stat Metric Dimension - Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details.
- metric_
name string - namespace string
- dimensions list(object)
- Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details.
- metric
Name String - namespace String
- dimensions
List<Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Metric Metric Stat Metric Dimension> - Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details.
- metric
Name string - namespace string
- dimensions
Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Metric Metric Stat Metric Dimension[] - Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details.
- metric_
name str - namespace str
- dimensions
Sequence[Policy
Target Tracking Scaling Policy Configuration Customized Metric Specification Metric Metric Stat Metric Dimension] - Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details.
- metric
Name String - namespace String
- dimensions List<Property Map>
- Dimensions of the metric. See
target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensionsBlock for details.
PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetricDimension, PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecificationMetricMetricStatMetricDimensionArgs
PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification, PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecificationArgs
- Predefined
Metric stringType - Resource
Label string
- Predefined
Metric stringType - Resource
Label string
- predefined_
metric_ stringtype - resource_
label string
- predefined
Metric StringType - resource
Label String
- predefined
Metric stringType - resource
Label string
- predefined
Metric StringType - resource
Label String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Friday, Aug 7, 2026 by Pulumi