1. Packages
  2. AWS Classic
  3. API Docs
  4. autoscaling
  5. Schedule

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.31.0 published on Monday, Apr 15, 2024 by Pulumi

aws.autoscaling.Schedule

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.31.0 published on Monday, Apr 15, 2024 by Pulumi

    Provides an AutoScaling Schedule resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const foobar = new aws.autoscaling.Group("foobar", {
        availabilityZones: ["us-west-2a"],
        name: "test-foobar5",
        maxSize: 1,
        minSize: 1,
        healthCheckGracePeriod: 300,
        healthCheckType: "ELB",
        forceDelete: true,
        terminationPolicies: ["OldestInstance"],
    });
    const foobarSchedule = new aws.autoscaling.Schedule("foobar", {
        scheduledActionName: "foobar",
        minSize: 0,
        maxSize: 1,
        desiredCapacity: 0,
        startTime: "2016-12-11T18:00:00Z",
        endTime: "2016-12-12T06:00:00Z",
        autoscalingGroupName: foobar.name,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    foobar = aws.autoscaling.Group("foobar",
        availability_zones=["us-west-2a"],
        name="test-foobar5",
        max_size=1,
        min_size=1,
        health_check_grace_period=300,
        health_check_type="ELB",
        force_delete=True,
        termination_policies=["OldestInstance"])
    foobar_schedule = aws.autoscaling.Schedule("foobar",
        scheduled_action_name="foobar",
        min_size=0,
        max_size=1,
        desired_capacity=0,
        start_time="2016-12-11T18:00:00Z",
        end_time="2016-12-12T06:00:00Z",
        autoscaling_group_name=foobar.name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/autoscaling"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		foobar, err := autoscaling.NewGroup(ctx, "foobar", &autoscaling.GroupArgs{
    			AvailabilityZones: pulumi.StringArray{
    				pulumi.String("us-west-2a"),
    			},
    			Name:                   pulumi.String("test-foobar5"),
    			MaxSize:                pulumi.Int(1),
    			MinSize:                pulumi.Int(1),
    			HealthCheckGracePeriod: pulumi.Int(300),
    			HealthCheckType:        pulumi.String("ELB"),
    			ForceDelete:            pulumi.Bool(true),
    			TerminationPolicies: pulumi.StringArray{
    				pulumi.String("OldestInstance"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = autoscaling.NewSchedule(ctx, "foobar", &autoscaling.ScheduleArgs{
    			ScheduledActionName:  pulumi.String("foobar"),
    			MinSize:              pulumi.Int(0),
    			MaxSize:              pulumi.Int(1),
    			DesiredCapacity:      pulumi.Int(0),
    			StartTime:            pulumi.String("2016-12-11T18:00:00Z"),
    			EndTime:              pulumi.String("2016-12-12T06:00:00Z"),
    			AutoscalingGroupName: foobar.Name,
    		})
    		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 foobar = new Aws.AutoScaling.Group("foobar", new()
        {
            AvailabilityZones = new[]
            {
                "us-west-2a",
            },
            Name = "test-foobar5",
            MaxSize = 1,
            MinSize = 1,
            HealthCheckGracePeriod = 300,
            HealthCheckType = "ELB",
            ForceDelete = true,
            TerminationPolicies = new[]
            {
                "OldestInstance",
            },
        });
    
        var foobarSchedule = new Aws.AutoScaling.Schedule("foobar", new()
        {
            ScheduledActionName = "foobar",
            MinSize = 0,
            MaxSize = 1,
            DesiredCapacity = 0,
            StartTime = "2016-12-11T18:00:00Z",
            EndTime = "2016-12-12T06:00:00Z",
            AutoscalingGroupName = foobar.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.autoscaling.Group;
    import com.pulumi.aws.autoscaling.GroupArgs;
    import com.pulumi.aws.autoscaling.Schedule;
    import com.pulumi.aws.autoscaling.ScheduleArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 foobar = new Group("foobar", GroupArgs.builder()        
                .availabilityZones("us-west-2a")
                .name("test-foobar5")
                .maxSize(1)
                .minSize(1)
                .healthCheckGracePeriod(300)
                .healthCheckType("ELB")
                .forceDelete(true)
                .terminationPolicies("OldestInstance")
                .build());
    
            var foobarSchedule = new Schedule("foobarSchedule", ScheduleArgs.builder()        
                .scheduledActionName("foobar")
                .minSize(0)
                .maxSize(1)
                .desiredCapacity(0)
                .startTime("2016-12-11T18:00:00Z")
                .endTime("2016-12-12T06:00:00Z")
                .autoscalingGroupName(foobar.name())
                .build());
    
        }
    }
    
    resources:
      foobar:
        type: aws:autoscaling:Group
        properties:
          availabilityZones:
            - us-west-2a
          name: test-foobar5
          maxSize: 1
          minSize: 1
          healthCheckGracePeriod: 300
          healthCheckType: ELB
          forceDelete: true
          terminationPolicies:
            - OldestInstance
      foobarSchedule:
        type: aws:autoscaling:Schedule
        name: foobar
        properties:
          scheduledActionName: foobar
          minSize: 0
          maxSize: 1
          desiredCapacity: 0
          startTime: 2016-12-11T18:00:00Z
          endTime: 2016-12-12T06:00:00Z
          autoscalingGroupName: ${foobar.name}
    

    Create Schedule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Schedule(name: string, args: ScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def Schedule(resource_name: str,
                 args: ScheduleArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Schedule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 autoscaling_group_name: Optional[str] = None,
                 scheduled_action_name: Optional[str] = None,
                 desired_capacity: Optional[int] = None,
                 end_time: Optional[str] = None,
                 max_size: Optional[int] = None,
                 min_size: Optional[int] = None,
                 recurrence: Optional[str] = None,
                 start_time: Optional[str] = None,
                 time_zone: Optional[str] = None)
    func NewSchedule(ctx *Context, name string, args ScheduleArgs, opts ...ResourceOption) (*Schedule, error)
    public Schedule(string name, ScheduleArgs args, CustomResourceOptions? opts = null)
    public Schedule(String name, ScheduleArgs args)
    public Schedule(String name, ScheduleArgs args, CustomResourceOptions options)
    
    type: aws:autoscaling:Schedule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ScheduleArgs
    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 ScheduleArgs
    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 ScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var scheduleResource = new Aws.AutoScaling.Schedule("scheduleResource", new()
    {
        AutoscalingGroupName = "string",
        ScheduledActionName = "string",
        DesiredCapacity = 0,
        EndTime = "string",
        MaxSize = 0,
        MinSize = 0,
        Recurrence = "string",
        StartTime = "string",
        TimeZone = "string",
    });
    
    example, err := autoscaling.NewSchedule(ctx, "scheduleResource", &autoscaling.ScheduleArgs{
    	AutoscalingGroupName: pulumi.String("string"),
    	ScheduledActionName:  pulumi.String("string"),
    	DesiredCapacity:      pulumi.Int(0),
    	EndTime:              pulumi.String("string"),
    	MaxSize:              pulumi.Int(0),
    	MinSize:              pulumi.Int(0),
    	Recurrence:           pulumi.String("string"),
    	StartTime:            pulumi.String("string"),
    	TimeZone:             pulumi.String("string"),
    })
    
    var scheduleResource = new Schedule("scheduleResource", ScheduleArgs.builder()        
        .autoscalingGroupName("string")
        .scheduledActionName("string")
        .desiredCapacity(0)
        .endTime("string")
        .maxSize(0)
        .minSize(0)
        .recurrence("string")
        .startTime("string")
        .timeZone("string")
        .build());
    
    schedule_resource = aws.autoscaling.Schedule("scheduleResource",
        autoscaling_group_name="string",
        scheduled_action_name="string",
        desired_capacity=0,
        end_time="string",
        max_size=0,
        min_size=0,
        recurrence="string",
        start_time="string",
        time_zone="string")
    
    const scheduleResource = new aws.autoscaling.Schedule("scheduleResource", {
        autoscalingGroupName: "string",
        scheduledActionName: "string",
        desiredCapacity: 0,
        endTime: "string",
        maxSize: 0,
        minSize: 0,
        recurrence: "string",
        startTime: "string",
        timeZone: "string",
    });
    
    type: aws:autoscaling:Schedule
    properties:
        autoscalingGroupName: string
        desiredCapacity: 0
        endTime: string
        maxSize: 0
        minSize: 0
        recurrence: string
        scheduledActionName: string
        startTime: string
        timeZone: string
    

    Schedule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Schedule resource accepts the following input properties:

    AutoscalingGroupName string
    The name of the Auto Scaling group.
    ScheduledActionName string

    The name of this scaling action.

    The following arguments are optional:

    DesiredCapacity int
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    EndTime string
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    MaxSize int
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    MinSize int
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    Recurrence string
    The recurring schedule for this action specified using the Unix cron syntax format.
    StartTime string
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    TimeZone string

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    AutoscalingGroupName string
    The name of the Auto Scaling group.
    ScheduledActionName string

    The name of this scaling action.

    The following arguments are optional:

    DesiredCapacity int
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    EndTime string
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    MaxSize int
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    MinSize int
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    Recurrence string
    The recurring schedule for this action specified using the Unix cron syntax format.
    StartTime string
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    TimeZone string

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    autoscalingGroupName String
    The name of the Auto Scaling group.
    scheduledActionName String

    The name of this scaling action.

    The following arguments are optional:

    desiredCapacity Integer
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    endTime String
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    maxSize Integer
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    minSize Integer
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    recurrence String
    The recurring schedule for this action specified using the Unix cron syntax format.
    startTime String
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    timeZone String

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    autoscalingGroupName string
    The name of the Auto Scaling group.
    scheduledActionName string

    The name of this scaling action.

    The following arguments are optional:

    desiredCapacity number
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    endTime string
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    maxSize number
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    minSize number
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    recurrence string
    The recurring schedule for this action specified using the Unix cron syntax format.
    startTime string
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    timeZone string

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    autoscaling_group_name str
    The name of the Auto Scaling group.
    scheduled_action_name str

    The name of this scaling action.

    The following arguments are optional:

    desired_capacity int
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    end_time str
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    max_size int
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    min_size int
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    recurrence str
    The recurring schedule for this action specified using the Unix cron syntax format.
    start_time str
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    time_zone str

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    autoscalingGroupName String
    The name of the Auto Scaling group.
    scheduledActionName String

    The name of this scaling action.

    The following arguments are optional:

    desiredCapacity Number
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    endTime String
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    maxSize Number
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    minSize Number
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    recurrence String
    The recurring schedule for this action specified using the Unix cron syntax format.
    startTime String
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    timeZone String

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Schedule resource produces the following output properties:

    Arn string
    ARN assigned by AWS to the autoscaling schedule.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    ARN assigned by AWS to the autoscaling schedule.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    ARN assigned by AWS to the autoscaling schedule.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    ARN assigned by AWS to the autoscaling schedule.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    ARN assigned by AWS to the autoscaling schedule.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    ARN assigned by AWS to the autoscaling schedule.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Schedule Resource

    Get an existing Schedule 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?: ScheduleState, opts?: CustomResourceOptions): Schedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            autoscaling_group_name: Optional[str] = None,
            desired_capacity: Optional[int] = None,
            end_time: Optional[str] = None,
            max_size: Optional[int] = None,
            min_size: Optional[int] = None,
            recurrence: Optional[str] = None,
            scheduled_action_name: Optional[str] = None,
            start_time: Optional[str] = None,
            time_zone: Optional[str] = None) -> Schedule
    func GetSchedule(ctx *Context, name string, id IDInput, state *ScheduleState, opts ...ResourceOption) (*Schedule, error)
    public static Schedule Get(string name, Input<string> id, ScheduleState? state, CustomResourceOptions? opts = null)
    public static Schedule get(String name, Output<String> id, ScheduleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    Arn string
    ARN assigned by AWS to the autoscaling schedule.
    AutoscalingGroupName string
    The name of the Auto Scaling group.
    DesiredCapacity int
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    EndTime string
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    MaxSize int
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    MinSize int
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    Recurrence string
    The recurring schedule for this action specified using the Unix cron syntax format.
    ScheduledActionName string

    The name of this scaling action.

    The following arguments are optional:

    StartTime string
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    TimeZone string

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    Arn string
    ARN assigned by AWS to the autoscaling schedule.
    AutoscalingGroupName string
    The name of the Auto Scaling group.
    DesiredCapacity int
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    EndTime string
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    MaxSize int
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    MinSize int
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    Recurrence string
    The recurring schedule for this action specified using the Unix cron syntax format.
    ScheduledActionName string

    The name of this scaling action.

    The following arguments are optional:

    StartTime string
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    TimeZone string

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    arn String
    ARN assigned by AWS to the autoscaling schedule.
    autoscalingGroupName String
    The name of the Auto Scaling group.
    desiredCapacity Integer
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    endTime String
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    maxSize Integer
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    minSize Integer
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    recurrence String
    The recurring schedule for this action specified using the Unix cron syntax format.
    scheduledActionName String

    The name of this scaling action.

    The following arguments are optional:

    startTime String
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    timeZone String

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    arn string
    ARN assigned by AWS to the autoscaling schedule.
    autoscalingGroupName string
    The name of the Auto Scaling group.
    desiredCapacity number
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    endTime string
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    maxSize number
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    minSize number
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    recurrence string
    The recurring schedule for this action specified using the Unix cron syntax format.
    scheduledActionName string

    The name of this scaling action.

    The following arguments are optional:

    startTime string
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    timeZone string

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    arn str
    ARN assigned by AWS to the autoscaling schedule.
    autoscaling_group_name str
    The name of the Auto Scaling group.
    desired_capacity int
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    end_time str
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    max_size int
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    min_size int
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    recurrence str
    The recurring schedule for this action specified using the Unix cron syntax format.
    scheduled_action_name str

    The name of this scaling action.

    The following arguments are optional:

    start_time str
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    time_zone str

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    arn String
    ARN assigned by AWS to the autoscaling schedule.
    autoscalingGroupName String
    The name of the Auto Scaling group.
    desiredCapacity Number
    The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to -1 if you don't want to change the desired capacity at the scheduled time. Defaults to 0.
    endTime String
    The date and time for the recurring schedule to end, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    maxSize Number
    The maximum size of the Auto Scaling group. Set to -1 if you don't want to change the maximum size at the scheduled time. Defaults to 0.
    minSize Number
    The minimum size of the Auto Scaling group. Set to -1 if you don't want to change the minimum size at the scheduled time. Defaults to 0.
    recurrence String
    The recurring schedule for this action specified using the Unix cron syntax format.
    scheduledActionName String

    The name of this scaling action.

    The following arguments are optional:

    startTime String
    The date and time for the recurring schedule to start, in UTC with the format "YYYY-MM-DDThh:mm:ssZ" (e.g. "2021-06-01T00:00:00Z").
    timeZone String

    Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).

    NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

    Import

    Using pulumi import, import AutoScaling ScheduledAction using the auto-scaling-group-name and scheduled-action-name. For example:

    $ pulumi import aws:autoscaling/schedule:Schedule resource-name auto-scaling-group-name/scheduled-action-name
    

    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 aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.31.0 published on Monday, Apr 15, 2024 by Pulumi