published on Thursday, May 14, 2026 by Pulumi
published on Thursday, May 14, 2026 by Pulumi
Manages an AWS Application Recovery Controller Zonal Shift Zonal Autoshift Configuration for a managed resource (such as a load balancer).
Zonal autoshift is a capability in AWS Application Recovery Controller (ARC) that automatically shifts traffic away from an Availability Zone when AWS identifies a potential issue, helping maintain application availability.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleLoadBalancer = new aws.lb.LoadBalancer("example", {
name: "example",
internal: true,
loadBalancerType: "application",
subnets: exampleAwsSubnet.map(__item => __item.id),
enableZonalShift: true,
});
const exampleMetricAlarm = new aws.cloudwatch.MetricAlarm("example", {
name: "example-outcome-alarm",
comparisonOperator: "GreaterThanOrEqualToThreshold",
evaluationPeriods: 1,
metricName: "TargetResponseTime",
namespace: "AWS/ApplicationELB",
period: 60,
statistic: "Average",
threshold: 1,
alarmDescription: "Outcome alarm for zonal autoshift practice run",
dimensions: {
LoadBalancer: exampleLoadBalancer.arnSuffix,
},
});
const example = new aws.arczonalshift.ZonalAutoshiftConfiguration("example", {
resourceArn: exampleLoadBalancer.arn,
zonalAutoshiftStatus: "ENABLED",
outcomeAlarms: [{
alarmIdentifier: exampleMetricAlarm.arn,
type: "CLOUDWATCH",
}],
});
import pulumi
import pulumi_aws as aws
example_load_balancer = aws.lb.LoadBalancer("example",
name="example",
internal=True,
load_balancer_type="application",
subnets=[__item["id"] for __item in example_aws_subnet],
enable_zonal_shift=True)
example_metric_alarm = aws.cloudwatch.MetricAlarm("example",
name="example-outcome-alarm",
comparison_operator="GreaterThanOrEqualToThreshold",
evaluation_periods=1,
metric_name="TargetResponseTime",
namespace="AWS/ApplicationELB",
period=60,
statistic="Average",
threshold=float(1),
alarm_description="Outcome alarm for zonal autoshift practice run",
dimensions={
"LoadBalancer": example_load_balancer.arn_suffix,
})
example = aws.arczonalshift.ZonalAutoshiftConfiguration("example",
resource_arn=example_load_balancer.arn,
zonal_autoshift_status="ENABLED",
outcome_alarms=[{
"alarm_identifier": example_metric_alarm.arn,
"type": "CLOUDWATCH",
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/arczonalshift"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudwatch"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
var splat0 []interface{}
for _, val0 := range exampleAwsSubnet {
splat0 = append(splat0, val0.(map[string]interface{})["id"])
}
exampleLoadBalancer, err := lb.NewLoadBalancer(ctx, "example", &lb.LoadBalancerArgs{
Name: pulumi.String("example"),
Internal: pulumi.Bool(true),
LoadBalancerType: pulumi.String("application"),
Subnets: toPulumiArray(splat0),
EnableZonalShift: pulumi.Bool(true),
})
if err != nil {
return err
}
exampleMetricAlarm, err := cloudwatch.NewMetricAlarm(ctx, "example", &cloudwatch.MetricAlarmArgs{
Name: pulumi.String("example-outcome-alarm"),
ComparisonOperator: pulumi.String("GreaterThanOrEqualToThreshold"),
EvaluationPeriods: pulumi.Int(1),
MetricName: pulumi.String("TargetResponseTime"),
Namespace: pulumi.String("AWS/ApplicationELB"),
Period: pulumi.Int(60),
Statistic: pulumi.String("Average"),
Threshold: pulumi.Float64(1),
AlarmDescription: pulumi.String("Outcome alarm for zonal autoshift practice run"),
Dimensions: pulumi.StringMap{
"LoadBalancer": exampleLoadBalancer.ArnSuffix,
},
})
if err != nil {
return err
}
_, err = arczonalshift.NewZonalAutoshiftConfiguration(ctx, "example", &arczonalshift.ZonalAutoshiftConfigurationArgs{
ResourceArn: exampleLoadBalancer.Arn,
ZonalAutoshiftStatus: pulumi.String("ENABLED"),
OutcomeAlarms: arczonalshift.ZonalAutoshiftConfigurationOutcomeAlarmArray{
&arczonalshift.ZonalAutoshiftConfigurationOutcomeAlarmArgs{
AlarmIdentifier: exampleMetricAlarm.Arn,
Type: pulumi.String("CLOUDWATCH"),
},
},
})
if err != nil {
return err
}
return nil
})
}
func toPulumiArray(arr []) pulumi.Array {
var pulumiArr pulumi.Array
for _, v := range arr {
pulumiArr = append(pulumiArr, pulumi.(v))
}
return pulumiArr
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleLoadBalancer = new Aws.LB.LoadBalancer("example", new()
{
Name = "example",
Internal = true,
LoadBalancerType = "application",
Subnets = exampleAwsSubnet.Select(__item => __item.Id).ToList(),
EnableZonalShift = true,
});
var exampleMetricAlarm = new Aws.CloudWatch.MetricAlarm("example", new()
{
Name = "example-outcome-alarm",
ComparisonOperator = "GreaterThanOrEqualToThreshold",
EvaluationPeriods = 1,
MetricName = "TargetResponseTime",
Namespace = "AWS/ApplicationELB",
Period = 60,
Statistic = "Average",
Threshold = 1,
AlarmDescription = "Outcome alarm for zonal autoshift practice run",
Dimensions =
{
{ "LoadBalancer", exampleLoadBalancer.ArnSuffix },
},
});
var example = new Aws.ArcZonalShift.ZonalAutoshiftConfiguration("example", new()
{
ResourceArn = exampleLoadBalancer.Arn,
ZonalAutoshiftStatus = "ENABLED",
OutcomeAlarms = new[]
{
new Aws.ArcZonalShift.Inputs.ZonalAutoshiftConfigurationOutcomeAlarmArgs
{
AlarmIdentifier = exampleMetricAlarm.Arn,
Type = "CLOUDWATCH",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lb.LoadBalancer;
import com.pulumi.aws.lb.LoadBalancerArgs;
import com.pulumi.aws.cloudwatch.MetricAlarm;
import com.pulumi.aws.cloudwatch.MetricAlarmArgs;
import com.pulumi.aws.arczonalshift.ZonalAutoshiftConfiguration;
import com.pulumi.aws.arczonalshift.ZonalAutoshiftConfigurationArgs;
import com.pulumi.aws.arczonalshift.inputs.ZonalAutoshiftConfigurationOutcomeAlarmArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleLoadBalancer = new LoadBalancer("exampleLoadBalancer", LoadBalancerArgs.builder()
.name("example")
.internal(true)
.loadBalancerType("application")
.subnets(exampleAwsSubnet.stream().map(element -> element.id()).collect(toList()))
.enableZonalShift(true)
.build());
var exampleMetricAlarm = new MetricAlarm("exampleMetricAlarm", MetricAlarmArgs.builder()
.name("example-outcome-alarm")
.comparisonOperator("GreaterThanOrEqualToThreshold")
.evaluationPeriods(1)
.metricName("TargetResponseTime")
.namespace("AWS/ApplicationELB")
.period(60)
.statistic("Average")
.threshold(1.0)
.alarmDescription("Outcome alarm for zonal autoshift practice run")
.dimensions(Map.of("LoadBalancer", exampleLoadBalancer.arnSuffix()))
.build());
var example = new ZonalAutoshiftConfiguration("example", ZonalAutoshiftConfigurationArgs.builder()
.resourceArn(exampleLoadBalancer.arn())
.zonalAutoshiftStatus("ENABLED")
.outcomeAlarms(ZonalAutoshiftConfigurationOutcomeAlarmArgs.builder()
.alarmIdentifier(exampleMetricAlarm.arn())
.type("CLOUDWATCH")
.build())
.build());
}
}
Example coming soon!
Example coming soon!
With Blocking Alarms
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.arczonalshift.ZonalAutoshiftConfiguration("example", {
resourceArn: exampleAwsLb.arn,
zonalAutoshiftStatus: "ENABLED",
outcomeAlarms: [{
alarmIdentifier: outcome.arn,
type: "CLOUDWATCH",
}],
blockingAlarms: [{
alarmIdentifier: blocking.arn,
type: "CLOUDWATCH",
}],
});
import pulumi
import pulumi_aws as aws
example = aws.arczonalshift.ZonalAutoshiftConfiguration("example",
resource_arn=example_aws_lb["arn"],
zonal_autoshift_status="ENABLED",
outcome_alarms=[{
"alarm_identifier": outcome["arn"],
"type": "CLOUDWATCH",
}],
blocking_alarms=[{
"alarm_identifier": blocking["arn"],
"type": "CLOUDWATCH",
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/arczonalshift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := arczonalshift.NewZonalAutoshiftConfiguration(ctx, "example", &arczonalshift.ZonalAutoshiftConfigurationArgs{
ResourceArn: pulumi.Any(exampleAwsLb.Arn),
ZonalAutoshiftStatus: pulumi.String("ENABLED"),
OutcomeAlarms: arczonalshift.ZonalAutoshiftConfigurationOutcomeAlarmArray{
&arczonalshift.ZonalAutoshiftConfigurationOutcomeAlarmArgs{
AlarmIdentifier: pulumi.Any(outcome.Arn),
Type: pulumi.String("CLOUDWATCH"),
},
},
BlockingAlarms: arczonalshift.ZonalAutoshiftConfigurationBlockingAlarmArray{
&arczonalshift.ZonalAutoshiftConfigurationBlockingAlarmArgs{
AlarmIdentifier: pulumi.Any(blocking.Arn),
Type: pulumi.String("CLOUDWATCH"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ArcZonalShift.ZonalAutoshiftConfiguration("example", new()
{
ResourceArn = exampleAwsLb.Arn,
ZonalAutoshiftStatus = "ENABLED",
OutcomeAlarms = new[]
{
new Aws.ArcZonalShift.Inputs.ZonalAutoshiftConfigurationOutcomeAlarmArgs
{
AlarmIdentifier = outcome.Arn,
Type = "CLOUDWATCH",
},
},
BlockingAlarms = new[]
{
new Aws.ArcZonalShift.Inputs.ZonalAutoshiftConfigurationBlockingAlarmArgs
{
AlarmIdentifier = blocking.Arn,
Type = "CLOUDWATCH",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.arczonalshift.ZonalAutoshiftConfiguration;
import com.pulumi.aws.arczonalshift.ZonalAutoshiftConfigurationArgs;
import com.pulumi.aws.arczonalshift.inputs.ZonalAutoshiftConfigurationOutcomeAlarmArgs;
import com.pulumi.aws.arczonalshift.inputs.ZonalAutoshiftConfigurationBlockingAlarmArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ZonalAutoshiftConfiguration("example", ZonalAutoshiftConfigurationArgs.builder()
.resourceArn(exampleAwsLb.arn())
.zonalAutoshiftStatus("ENABLED")
.outcomeAlarms(ZonalAutoshiftConfigurationOutcomeAlarmArgs.builder()
.alarmIdentifier(outcome.arn())
.type("CLOUDWATCH")
.build())
.blockingAlarms(ZonalAutoshiftConfigurationBlockingAlarmArgs.builder()
.alarmIdentifier(blocking.arn())
.type("CLOUDWATCH")
.build())
.build());
}
}
resources:
example:
type: aws:arczonalshift:ZonalAutoshiftConfiguration
properties:
resourceArn: ${exampleAwsLb.arn}
zonalAutoshiftStatus: ENABLED
outcomeAlarms:
- alarmIdentifier: ${outcome.arn}
type: CLOUDWATCH
blockingAlarms:
- alarmIdentifier: ${blocking.arn}
type: CLOUDWATCH
Example coming soon!
With Blocked Windows
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.arczonalshift.ZonalAutoshiftConfiguration("example", {
resourceArn: exampleAwsLb.arn,
zonalAutoshiftStatus: "ENABLED",
blockedWindows: ["Mon:00:00-Mon:08:00"],
outcomeAlarms: [{
alarmIdentifier: exampleAwsCloudwatchMetricAlarm.arn,
type: "CLOUDWATCH",
}],
});
import pulumi
import pulumi_aws as aws
example = aws.arczonalshift.ZonalAutoshiftConfiguration("example",
resource_arn=example_aws_lb["arn"],
zonal_autoshift_status="ENABLED",
blocked_windows=["Mon:00:00-Mon:08:00"],
outcome_alarms=[{
"alarm_identifier": example_aws_cloudwatch_metric_alarm["arn"],
"type": "CLOUDWATCH",
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/arczonalshift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := arczonalshift.NewZonalAutoshiftConfiguration(ctx, "example", &arczonalshift.ZonalAutoshiftConfigurationArgs{
ResourceArn: pulumi.Any(exampleAwsLb.Arn),
ZonalAutoshiftStatus: pulumi.String("ENABLED"),
BlockedWindows: pulumi.StringArray{
pulumi.String("Mon:00:00-Mon:08:00"),
},
OutcomeAlarms: arczonalshift.ZonalAutoshiftConfigurationOutcomeAlarmArray{
&arczonalshift.ZonalAutoshiftConfigurationOutcomeAlarmArgs{
AlarmIdentifier: pulumi.Any(exampleAwsCloudwatchMetricAlarm.Arn),
Type: pulumi.String("CLOUDWATCH"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ArcZonalShift.ZonalAutoshiftConfiguration("example", new()
{
ResourceArn = exampleAwsLb.Arn,
ZonalAutoshiftStatus = "ENABLED",
BlockedWindows = new[]
{
"Mon:00:00-Mon:08:00",
},
OutcomeAlarms = new[]
{
new Aws.ArcZonalShift.Inputs.ZonalAutoshiftConfigurationOutcomeAlarmArgs
{
AlarmIdentifier = exampleAwsCloudwatchMetricAlarm.Arn,
Type = "CLOUDWATCH",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.arczonalshift.ZonalAutoshiftConfiguration;
import com.pulumi.aws.arczonalshift.ZonalAutoshiftConfigurationArgs;
import com.pulumi.aws.arczonalshift.inputs.ZonalAutoshiftConfigurationOutcomeAlarmArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ZonalAutoshiftConfiguration("example", ZonalAutoshiftConfigurationArgs.builder()
.resourceArn(exampleAwsLb.arn())
.zonalAutoshiftStatus("ENABLED")
.blockedWindows("Mon:00:00-Mon:08:00")
.outcomeAlarms(ZonalAutoshiftConfigurationOutcomeAlarmArgs.builder()
.alarmIdentifier(exampleAwsCloudwatchMetricAlarm.arn())
.type("CLOUDWATCH")
.build())
.build());
}
}
resources:
example:
type: aws:arczonalshift:ZonalAutoshiftConfiguration
properties:
resourceArn: ${exampleAwsLb.arn}
zonalAutoshiftStatus: ENABLED
blockedWindows:
- Mon:00:00-Mon:08:00
outcomeAlarms:
- alarmIdentifier: ${exampleAwsCloudwatchMetricAlarm.arn}
type: CLOUDWATCH
Example coming soon!
Create ZonalAutoshiftConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZonalAutoshiftConfiguration(name: string, args: ZonalAutoshiftConfigurationArgs, opts?: CustomResourceOptions);@overload
def ZonalAutoshiftConfiguration(resource_name: str,
args: ZonalAutoshiftConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZonalAutoshiftConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_arn: Optional[str] = None,
zonal_autoshift_status: Optional[str] = None,
allowed_windows: Optional[Sequence[str]] = None,
blocked_dates: Optional[Sequence[str]] = None,
blocked_windows: Optional[Sequence[str]] = None,
blocking_alarms: Optional[Sequence[ZonalAutoshiftConfigurationBlockingAlarmArgs]] = None,
outcome_alarms: Optional[Sequence[ZonalAutoshiftConfigurationOutcomeAlarmArgs]] = None,
region: Optional[str] = None)func NewZonalAutoshiftConfiguration(ctx *Context, name string, args ZonalAutoshiftConfigurationArgs, opts ...ResourceOption) (*ZonalAutoshiftConfiguration, error)public ZonalAutoshiftConfiguration(string name, ZonalAutoshiftConfigurationArgs args, CustomResourceOptions? opts = null)
public ZonalAutoshiftConfiguration(String name, ZonalAutoshiftConfigurationArgs args)
public ZonalAutoshiftConfiguration(String name, ZonalAutoshiftConfigurationArgs args, CustomResourceOptions options)
type: aws:arczonalshift:ZonalAutoshiftConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_arczonalshift_zonalautoshiftconfiguration" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ZonalAutoshiftConfigurationArgs
- 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 ZonalAutoshiftConfigurationArgs
- 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 ZonalAutoshiftConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZonalAutoshiftConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZonalAutoshiftConfigurationArgs
- 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 zonalAutoshiftConfigurationResource = new Aws.ArcZonalShift.ZonalAutoshiftConfiguration("zonalAutoshiftConfigurationResource", new()
{
ResourceArn = "string",
ZonalAutoshiftStatus = "string",
AllowedWindows = new[]
{
"string",
},
BlockedDates = new[]
{
"string",
},
BlockedWindows = new[]
{
"string",
},
BlockingAlarms = new[]
{
new Aws.ArcZonalShift.Inputs.ZonalAutoshiftConfigurationBlockingAlarmArgs
{
AlarmIdentifier = "string",
Type = "string",
},
},
OutcomeAlarms = new[]
{
new Aws.ArcZonalShift.Inputs.ZonalAutoshiftConfigurationOutcomeAlarmArgs
{
AlarmIdentifier = "string",
Type = "string",
},
},
Region = "string",
});
example, err := arczonalshift.NewZonalAutoshiftConfiguration(ctx, "zonalAutoshiftConfigurationResource", &arczonalshift.ZonalAutoshiftConfigurationArgs{
ResourceArn: pulumi.String("string"),
ZonalAutoshiftStatus: pulumi.String("string"),
AllowedWindows: pulumi.StringArray{
pulumi.String("string"),
},
BlockedDates: pulumi.StringArray{
pulumi.String("string"),
},
BlockedWindows: pulumi.StringArray{
pulumi.String("string"),
},
BlockingAlarms: arczonalshift.ZonalAutoshiftConfigurationBlockingAlarmArray{
&arczonalshift.ZonalAutoshiftConfigurationBlockingAlarmArgs{
AlarmIdentifier: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
OutcomeAlarms: arczonalshift.ZonalAutoshiftConfigurationOutcomeAlarmArray{
&arczonalshift.ZonalAutoshiftConfigurationOutcomeAlarmArgs{
AlarmIdentifier: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Region: pulumi.String("string"),
})
resource "aws_arczonalshift_zonalautoshiftconfiguration" "zonalAutoshiftConfigurationResource" {
resource_arn = "string"
zonal_autoshift_status = "string"
allowed_windows = ["string"]
blocked_dates = ["string"]
blocked_windows = ["string"]
blocking_alarms {
alarm_identifier = "string"
type = "string"
}
outcome_alarms {
alarm_identifier = "string"
type = "string"
}
region = "string"
}
var zonalAutoshiftConfigurationResource = new ZonalAutoshiftConfiguration("zonalAutoshiftConfigurationResource", ZonalAutoshiftConfigurationArgs.builder()
.resourceArn("string")
.zonalAutoshiftStatus("string")
.allowedWindows("string")
.blockedDates("string")
.blockedWindows("string")
.blockingAlarms(ZonalAutoshiftConfigurationBlockingAlarmArgs.builder()
.alarmIdentifier("string")
.type("string")
.build())
.outcomeAlarms(ZonalAutoshiftConfigurationOutcomeAlarmArgs.builder()
.alarmIdentifier("string")
.type("string")
.build())
.region("string")
.build());
zonal_autoshift_configuration_resource = aws.arczonalshift.ZonalAutoshiftConfiguration("zonalAutoshiftConfigurationResource",
resource_arn="string",
zonal_autoshift_status="string",
allowed_windows=["string"],
blocked_dates=["string"],
blocked_windows=["string"],
blocking_alarms=[{
"alarm_identifier": "string",
"type": "string",
}],
outcome_alarms=[{
"alarm_identifier": "string",
"type": "string",
}],
region="string")
const zonalAutoshiftConfigurationResource = new aws.arczonalshift.ZonalAutoshiftConfiguration("zonalAutoshiftConfigurationResource", {
resourceArn: "string",
zonalAutoshiftStatus: "string",
allowedWindows: ["string"],
blockedDates: ["string"],
blockedWindows: ["string"],
blockingAlarms: [{
alarmIdentifier: "string",
type: "string",
}],
outcomeAlarms: [{
alarmIdentifier: "string",
type: "string",
}],
region: "string",
});
type: aws:arczonalshift:ZonalAutoshiftConfiguration
properties:
allowedWindows:
- string
blockedDates:
- string
blockedWindows:
- string
blockingAlarms:
- alarmIdentifier: string
type: string
outcomeAlarms:
- alarmIdentifier: string
type: string
region: string
resourceArn: string
zonalAutoshiftStatus: string
ZonalAutoshiftConfiguration 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 ZonalAutoshiftConfiguration resource accepts the following input properties:
- Resource
Arn string - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- Zonal
Autoshift stringStatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- Allowed
Windows List<string> - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - Blocked
Dates List<string> - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - Blocked
Windows List<string> - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - Blocking
Alarms List<ZonalAutoshift Configuration Blocking Alarm> - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - Outcome
Alarms List<ZonalAutoshift Configuration Outcome Alarm> - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - Region string
- AWS region where the resource is deployed.
- Resource
Arn string - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- Zonal
Autoshift stringStatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- Allowed
Windows []string - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - Blocked
Dates []string - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - Blocked
Windows []string - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - Blocking
Alarms []ZonalAutoshift Configuration Blocking Alarm Args - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - Outcome
Alarms []ZonalAutoshift Configuration Outcome Alarm Args - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - Region string
- AWS region where the resource is deployed.
- resource_
arn string - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- zonal_
autoshift_ stringstatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- allowed_
windows list(string) - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - blocked_
dates list(string) - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - blocked_
windows list(string) - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - blocking_
alarms list(object) - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - outcome_
alarms list(object) - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - region string
- AWS region where the resource is deployed.
- resource
Arn String - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- zonal
Autoshift StringStatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- allowed
Windows List<String> - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - blocked
Dates List<String> - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - blocked
Windows List<String> - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - blocking
Alarms List<ZonalAutoshift Configuration Blocking Alarm> - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - outcome
Alarms List<ZonalAutoshift Configuration Outcome Alarm> - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - region String
- AWS region where the resource is deployed.
- resource
Arn string - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- zonal
Autoshift stringStatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- allowed
Windows string[] - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - blocked
Dates string[] - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - blocked
Windows string[] - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - blocking
Alarms ZonalAutoshift Configuration Blocking Alarm[] - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - outcome
Alarms ZonalAutoshift Configuration Outcome Alarm[] - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - region string
- AWS region where the resource is deployed.
- resource_
arn str - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- zonal_
autoshift_ strstatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- allowed_
windows Sequence[str] - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - blocked_
dates Sequence[str] - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - blocked_
windows Sequence[str] - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - blocking_
alarms Sequence[ZonalAutoshift Configuration Blocking Alarm Args] - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - outcome_
alarms Sequence[ZonalAutoshift Configuration Outcome Alarm Args] - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - region str
- AWS region where the resource is deployed.
- resource
Arn String - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- zonal
Autoshift StringStatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- allowed
Windows List<String> - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - blocked
Dates List<String> - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - blocked
Windows List<String> - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - blocking
Alarms List<Property Map> - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - outcome
Alarms List<Property Map> - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - region String
- AWS region where the resource is deployed.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZonalAutoshiftConfiguration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ZonalAutoshiftConfiguration Resource
Get an existing ZonalAutoshiftConfiguration 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?: ZonalAutoshiftConfigurationState, opts?: CustomResourceOptions): ZonalAutoshiftConfiguration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_windows: Optional[Sequence[str]] = None,
blocked_dates: Optional[Sequence[str]] = None,
blocked_windows: Optional[Sequence[str]] = None,
blocking_alarms: Optional[Sequence[ZonalAutoshiftConfigurationBlockingAlarmArgs]] = None,
outcome_alarms: Optional[Sequence[ZonalAutoshiftConfigurationOutcomeAlarmArgs]] = None,
region: Optional[str] = None,
resource_arn: Optional[str] = None,
zonal_autoshift_status: Optional[str] = None) -> ZonalAutoshiftConfigurationfunc GetZonalAutoshiftConfiguration(ctx *Context, name string, id IDInput, state *ZonalAutoshiftConfigurationState, opts ...ResourceOption) (*ZonalAutoshiftConfiguration, error)public static ZonalAutoshiftConfiguration Get(string name, Input<string> id, ZonalAutoshiftConfigurationState? state, CustomResourceOptions? opts = null)public static ZonalAutoshiftConfiguration get(String name, Output<String> id, ZonalAutoshiftConfigurationState state, CustomResourceOptions options)resources: _: type: aws:arczonalshift:ZonalAutoshiftConfiguration get: id: ${id}import {
to = aws_arczonalshift_zonalautoshiftconfiguration.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.
- Allowed
Windows List<string> - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - Blocked
Dates List<string> - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - Blocked
Windows List<string> - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - Blocking
Alarms List<ZonalAutoshift Configuration Blocking Alarm> - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - Outcome
Alarms List<ZonalAutoshift Configuration Outcome Alarm> - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - Region string
- AWS region where the resource is deployed.
- Resource
Arn string - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- Zonal
Autoshift stringStatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- Allowed
Windows []string - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - Blocked
Dates []string - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - Blocked
Windows []string - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - Blocking
Alarms []ZonalAutoshift Configuration Blocking Alarm Args - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - Outcome
Alarms []ZonalAutoshift Configuration Outcome Alarm Args - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - Region string
- AWS region where the resource is deployed.
- Resource
Arn string - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- Zonal
Autoshift stringStatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- allowed_
windows list(string) - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - blocked_
dates list(string) - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - blocked_
windows list(string) - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - blocking_
alarms list(object) - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - outcome_
alarms list(object) - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - region string
- AWS region where the resource is deployed.
- resource_
arn string - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- zonal_
autoshift_ stringstatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- allowed
Windows List<String> - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - blocked
Dates List<String> - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - blocked
Windows List<String> - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - blocking
Alarms List<ZonalAutoshift Configuration Blocking Alarm> - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - outcome
Alarms List<ZonalAutoshift Configuration Outcome Alarm> - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - region String
- AWS region where the resource is deployed.
- resource
Arn String - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- zonal
Autoshift StringStatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- allowed
Windows string[] - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - blocked
Dates string[] - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - blocked
Windows string[] - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - blocking
Alarms ZonalAutoshift Configuration Blocking Alarm[] - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - outcome
Alarms ZonalAutoshift Configuration Outcome Alarm[] - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - region string
- AWS region where the resource is deployed.
- resource
Arn string - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- zonal
Autoshift stringStatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- allowed_
windows Sequence[str] - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - blocked_
dates Sequence[str] - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - blocked_
windows Sequence[str] - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - blocking_
alarms Sequence[ZonalAutoshift Configuration Blocking Alarm Args] - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - outcome_
alarms Sequence[ZonalAutoshift Configuration Outcome Alarm Args] - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - region str
- AWS region where the resource is deployed.
- resource_
arn str - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- zonal_
autoshift_ strstatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
- allowed
Windows List<String> - List of time windows during which practice runs are allowed, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:09:00-Mon:17:00). Cannot be used together withblockedWindows. - blocked
Dates List<String> - List of dates when practice runs should not be started, in the format
YYYY-MM-DD. - blocked
Windows List<String> - List of time windows during which practice runs should not be started, in the format
Day:HH:MM-Day:HH:MM(e.g.,Mon:00:00-Mon:08:00). Cannot be used together withallowedWindows. - blocking
Alarms List<Property Map> - List of CloudWatch alarms that can block practice runs when in alarm state. See
blockingAlarmsbelow. - outcome
Alarms List<Property Map> - List of CloudWatch alarms monitored during practice runs. See
outcomeAlarmsbelow. - region String
- AWS region where the resource is deployed.
- resource
Arn String - The ARN of the managed resource to configure zonal autoshift for (e.g., an Application Load Balancer). Changing this creates a new resource.
- zonal
Autoshift StringStatus The status of zonal autoshift. Valid values:
ENABLED,DISABLED.The following arguments are optional:
Supporting Types
ZonalAutoshiftConfigurationBlockingAlarm, ZonalAutoshiftConfigurationBlockingAlarmArgs
- Alarm
Identifier string - ARN of the CloudWatch alarm.
- Type string
- Type of control condition. Valid value:
CLOUDWATCH.
- Alarm
Identifier string - ARN of the CloudWatch alarm.
- Type string
- Type of control condition. Valid value:
CLOUDWATCH.
- alarm_
identifier string - ARN of the CloudWatch alarm.
- type string
- Type of control condition. Valid value:
CLOUDWATCH.
- alarm
Identifier String - ARN of the CloudWatch alarm.
- type String
- Type of control condition. Valid value:
CLOUDWATCH.
- alarm
Identifier string - ARN of the CloudWatch alarm.
- type string
- Type of control condition. Valid value:
CLOUDWATCH.
- alarm_
identifier str - ARN of the CloudWatch alarm.
- type str
- Type of control condition. Valid value:
CLOUDWATCH.
- alarm
Identifier String - ARN of the CloudWatch alarm.
- type String
- Type of control condition. Valid value:
CLOUDWATCH.
ZonalAutoshiftConfigurationOutcomeAlarm, ZonalAutoshiftConfigurationOutcomeAlarmArgs
- Alarm
Identifier string - ARN of the CloudWatch alarm.
- Type string
- Type of control condition. Valid value:
CLOUDWATCH.
- Alarm
Identifier string - ARN of the CloudWatch alarm.
- Type string
- Type of control condition. Valid value:
CLOUDWATCH.
- alarm_
identifier string - ARN of the CloudWatch alarm.
- type string
- Type of control condition. Valid value:
CLOUDWATCH.
- alarm
Identifier String - ARN of the CloudWatch alarm.
- type String
- Type of control condition. Valid value:
CLOUDWATCH.
- alarm
Identifier string - ARN of the CloudWatch alarm.
- type string
- Type of control condition. Valid value:
CLOUDWATCH.
- alarm_
identifier str - ARN of the CloudWatch alarm.
- type str
- Type of control condition. Valid value:
CLOUDWATCH.
- alarm
Identifier String - ARN of the CloudWatch alarm.
- type String
- Type of control condition. Valid value:
CLOUDWATCH.
Import
Identity Schema
Required
resourceArn(String) ARN of the managed resource to configure zonal autoshift for.
Using pulumi import, import ARC Zonal Shift Zonal Autoshift Configuration using the resourceArn. For example:
$ pulumi import aws:arczonalshift/zonalAutoshiftConfiguration:ZonalAutoshiftConfiguration example arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/example/50dc6c495c0c9188
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Thursday, May 14, 2026 by Pulumi
