step Adjustments
Parameters
value
Set of adjustments that manage group scaling. These have the following structure:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.autoscaling.Policy("example", {stepAdjustments: [
{
metricIntervalLowerBound: "1",
metricIntervalUpperBound: "2",
scalingAdjustment: -1,
},
{
metricIntervalLowerBound: "2",
metricIntervalUpperBound: "3",
scalingAdjustment: 1,
},
]});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.autoscaling.Policy("example", step_adjustments=[
aws.autoscaling.PolicyStepAdjustmentArgs(
metric_interval_lower_bound="1",
metric_interval_upper_bound="2",
scaling_adjustment=-1,
),
aws.autoscaling.PolicyStepAdjustmentArgs(
metric_interval_lower_bound="2",
metric_interval_upper_bound="3",
scaling_adjustment=1,
),
])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.AutoScaling.Policy("example", new()
{
StepAdjustments = new[]
{
new Aws.AutoScaling.Inputs.PolicyStepAdjustmentArgs
{
MetricIntervalLowerBound = "1",
MetricIntervalUpperBound = "2",
ScalingAdjustment = -1,
},
new Aws.AutoScaling.Inputs.PolicyStepAdjustmentArgs
{
MetricIntervalLowerBound = "2",
MetricIntervalUpperBound = "3",
ScalingAdjustment = 1,
},
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/autoscaling"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := autoscaling.NewPolicy(ctx, "example", &autoscaling.PolicyArgs{
StepAdjustments: autoscaling.PolicyStepAdjustmentArray{
&autoscaling.PolicyStepAdjustmentArgs{
MetricIntervalLowerBound: pulumi.String("1"),
MetricIntervalUpperBound: pulumi.String("2"),
ScalingAdjustment: -1,
},
&autoscaling.PolicyStepAdjustmentArgs{
MetricIntervalLowerBound: pulumi.String("2"),
MetricIntervalUpperBound: pulumi.String("3"),
ScalingAdjustment: pulumi.Int(1),
},
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
The following fields are available in step adjustments:
Parameters
values
Set of adjustments that manage group scaling. These have the following structure:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.autoscaling.Policy("example", {stepAdjustments: [
{
metricIntervalLowerBound: "1",
metricIntervalUpperBound: "2",
scalingAdjustment: -1,
},
{
metricIntervalLowerBound: "2",
metricIntervalUpperBound: "3",
scalingAdjustment: 1,
},
]});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.autoscaling.Policy("example", step_adjustments=[
aws.autoscaling.PolicyStepAdjustmentArgs(
metric_interval_lower_bound="1",
metric_interval_upper_bound="2",
scaling_adjustment=-1,
),
aws.autoscaling.PolicyStepAdjustmentArgs(
metric_interval_lower_bound="2",
metric_interval_upper_bound="3",
scaling_adjustment=1,
),
])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.AutoScaling.Policy("example", new()
{
StepAdjustments = new[]
{
new Aws.AutoScaling.Inputs.PolicyStepAdjustmentArgs
{
MetricIntervalLowerBound = "1",
MetricIntervalUpperBound = "2",
ScalingAdjustment = -1,
},
new Aws.AutoScaling.Inputs.PolicyStepAdjustmentArgs
{
MetricIntervalLowerBound = "2",
MetricIntervalUpperBound = "3",
ScalingAdjustment = 1,
},
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/autoscaling"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := autoscaling.NewPolicy(ctx, "example", &autoscaling.PolicyArgs{
StepAdjustments: autoscaling.PolicyStepAdjustmentArray{
&autoscaling.PolicyStepAdjustmentArgs{
MetricIntervalLowerBound: pulumi.String("1"),
MetricIntervalUpperBound: pulumi.String("2"),
ScalingAdjustment: -1,
},
&autoscaling.PolicyStepAdjustmentArgs{
MetricIntervalLowerBound: pulumi.String("2"),
MetricIntervalUpperBound: pulumi.String("3"),
ScalingAdjustment: pulumi.Int(1),
},
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
The following fields are available in step adjustments:
Parameters
argument
Set of adjustments that manage group scaling. These have the following structure:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.autoscaling.Policy("example", {stepAdjustments: [
{
metricIntervalLowerBound: "1",
metricIntervalUpperBound: "2",
scalingAdjustment: -1,
},
{
metricIntervalLowerBound: "2",
metricIntervalUpperBound: "3",
scalingAdjustment: 1,
},
]});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.autoscaling.Policy("example", step_adjustments=[
aws.autoscaling.PolicyStepAdjustmentArgs(
metric_interval_lower_bound="1",
metric_interval_upper_bound="2",
scaling_adjustment=-1,
),
aws.autoscaling.PolicyStepAdjustmentArgs(
metric_interval_lower_bound="2",
metric_interval_upper_bound="3",
scaling_adjustment=1,
),
])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.AutoScaling.Policy("example", new()
{
StepAdjustments = new[]
{
new Aws.AutoScaling.Inputs.PolicyStepAdjustmentArgs
{
MetricIntervalLowerBound = "1",
MetricIntervalUpperBound = "2",
ScalingAdjustment = -1,
},
new Aws.AutoScaling.Inputs.PolicyStepAdjustmentArgs
{
MetricIntervalLowerBound = "2",
MetricIntervalUpperBound = "3",
ScalingAdjustment = 1,
},
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/autoscaling"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := autoscaling.NewPolicy(ctx, "example", &autoscaling.PolicyArgs{
StepAdjustments: autoscaling.PolicyStepAdjustmentArray{
&autoscaling.PolicyStepAdjustmentArgs{
MetricIntervalLowerBound: pulumi.String("1"),
MetricIntervalUpperBound: pulumi.String("2"),
ScalingAdjustment: -1,
},
&autoscaling.PolicyStepAdjustmentArgs{
MetricIntervalLowerBound: pulumi.String("2"),
MetricIntervalUpperBound: pulumi.String("3"),
ScalingAdjustment: pulumi.Int(1),
},
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
The following fields are available in step adjustments: