Schedule

class Schedule : KotlinCustomResource

Provides an AutoScaling Schedule resource.

Example Usage

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 foobarGroup = new Group("foobarGroup", GroupArgs.builder()
.availabilityZones("us-west-2a")
.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(foobarGroup.name())
.build());
}
}

Import

AutoScaling ScheduledAction can be imported using the auto-scaling-group-name and scheduled-action-name, e.g.,

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

Properties

Link copied to clipboard
val arn: Output<String>

ARN assigned by AWS to the autoscaling schedule.

Link copied to clipboard

The name of the Auto Scaling group.

Link copied to clipboard
val desiredCapacity: Output<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.

Link copied to clipboard
val endTime: Output<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").

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val maxSize: Output<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.

Link copied to clipboard
val minSize: Output<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.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val recurrence: Output<String>

The recurring schedule for this action specified using the Unix cron syntax format.

Link copied to clipboard

The name of this scaling action. The following arguments are optional:

Link copied to clipboard
val startTime: Output<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").

Link copied to clipboard
val timeZone: Output<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).

Link copied to clipboard
val urn: Output<String>