stepAdjustments

@JvmName(name = "froqpmorjsnkskea")
suspend fun stepAdjustments(value: Output<List<PolicyStepAdjustmentArgs>>)
@JvmName(name = "docuijebtvkamisj")
suspend fun stepAdjustments(value: List<PolicyStepAdjustmentArgs>?)

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,
},
]});
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,
),
])
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,
},
},
});
});
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
})
}

The following fields are available in step adjustments:


@JvmName(name = "xemdkiaujsuqsssg")
suspend fun stepAdjustments(vararg values: Output<PolicyStepAdjustmentArgs>)


@JvmName(name = "tuqmbtkgeenoemin")
suspend fun stepAdjustments(values: List<Output<PolicyStepAdjustmentArgs>>)
@JvmName(name = "bikqdbdrmolrispo")
suspend fun stepAdjustments(vararg values: PolicyStepAdjustmentArgs)

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,
},
]});
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,
),
])
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,
},
},
});
});
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
})
}

The following fields are available in step adjustments:


@JvmName(name = "lxrffmgwujqwfqoq")
suspend fun stepAdjustments(argument: List<suspend PolicyStepAdjustmentArgsBuilder.() -> Unit>)
@JvmName(name = "elhmwbaupmarxtcv")
suspend fun stepAdjustments(vararg argument: suspend PolicyStepAdjustmentArgsBuilder.() -> Unit)
@JvmName(name = "wqmdagquvukhswkp")
suspend fun stepAdjustments(argument: suspend PolicyStepAdjustmentArgsBuilder.() -> Unit)

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,
},
]});
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,
),
])
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,
},
},
});
});
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
})
}

The following fields are available in step adjustments: