1. Packages
  2. AWS
  3. API Docs
  4. appautoscaling
  5. ScheduledAction
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.appautoscaling.ScheduledAction

Explore with Pulumi AI

Provides an Application AutoScaling ScheduledAction resource.

Example Usage

DynamoDB Table Autoscaling

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const dynamodb = new aws.appautoscaling.Target("dynamodb", {
    maxCapacity: 100,
    minCapacity: 5,
    resourceId: "table/tableName",
    scalableDimension: "dynamodb:table:ReadCapacityUnits",
    serviceNamespace: "dynamodb",
});
const dynamodbScheduledAction = new aws.appautoscaling.ScheduledAction("dynamodb", {
    name: "dynamodb",
    serviceNamespace: dynamodb.serviceNamespace,
    resourceId: dynamodb.resourceId,
    scalableDimension: dynamodb.scalableDimension,
    schedule: "at(2006-01-02T15:04:05)",
    scalableTargetAction: {
        minCapacity: 1,
        maxCapacity: 200,
    },
});
Copy
import pulumi
import pulumi_aws as aws

dynamodb = aws.appautoscaling.Target("dynamodb",
    max_capacity=100,
    min_capacity=5,
    resource_id="table/tableName",
    scalable_dimension="dynamodb:table:ReadCapacityUnits",
    service_namespace="dynamodb")
dynamodb_scheduled_action = aws.appautoscaling.ScheduledAction("dynamodb",
    name="dynamodb",
    service_namespace=dynamodb.service_namespace,
    resource_id=dynamodb.resource_id,
    scalable_dimension=dynamodb.scalable_dimension,
    schedule="at(2006-01-02T15:04:05)",
    scalable_target_action={
        "min_capacity": 1,
        "max_capacity": 200,
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appautoscaling"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		dynamodb, err := appautoscaling.NewTarget(ctx, "dynamodb", &appautoscaling.TargetArgs{
			MaxCapacity:       pulumi.Int(100),
			MinCapacity:       pulumi.Int(5),
			ResourceId:        pulumi.String("table/tableName"),
			ScalableDimension: pulumi.String("dynamodb:table:ReadCapacityUnits"),
			ServiceNamespace:  pulumi.String("dynamodb"),
		})
		if err != nil {
			return err
		}
		_, err = appautoscaling.NewScheduledAction(ctx, "dynamodb", &appautoscaling.ScheduledActionArgs{
			Name:              pulumi.String("dynamodb"),
			ServiceNamespace:  dynamodb.ServiceNamespace,
			ResourceId:        dynamodb.ResourceId,
			ScalableDimension: dynamodb.ScalableDimension,
			Schedule:          pulumi.String("at(2006-01-02T15:04:05)"),
			ScalableTargetAction: &appautoscaling.ScheduledActionScalableTargetActionArgs{
				MinCapacity: pulumi.Int(1),
				MaxCapacity: pulumi.Int(200),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var dynamodb = new Aws.AppAutoScaling.Target("dynamodb", new()
    {
        MaxCapacity = 100,
        MinCapacity = 5,
        ResourceId = "table/tableName",
        ScalableDimension = "dynamodb:table:ReadCapacityUnits",
        ServiceNamespace = "dynamodb",
    });

    var dynamodbScheduledAction = new Aws.AppAutoScaling.ScheduledAction("dynamodb", new()
    {
        Name = "dynamodb",
        ServiceNamespace = dynamodb.ServiceNamespace,
        ResourceId = dynamodb.ResourceId,
        ScalableDimension = dynamodb.ScalableDimension,
        Schedule = "at(2006-01-02T15:04:05)",
        ScalableTargetAction = new Aws.AppAutoScaling.Inputs.ScheduledActionScalableTargetActionArgs
        {
            MinCapacity = 1,
            MaxCapacity = 200,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appautoscaling.Target;
import com.pulumi.aws.appautoscaling.TargetArgs;
import com.pulumi.aws.appautoscaling.ScheduledAction;
import com.pulumi.aws.appautoscaling.ScheduledActionArgs;
import com.pulumi.aws.appautoscaling.inputs.ScheduledActionScalableTargetActionArgs;
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 dynamodb = new Target("dynamodb", TargetArgs.builder()
            .maxCapacity(100)
            .minCapacity(5)
            .resourceId("table/tableName")
            .scalableDimension("dynamodb:table:ReadCapacityUnits")
            .serviceNamespace("dynamodb")
            .build());

        var dynamodbScheduledAction = new ScheduledAction("dynamodbScheduledAction", ScheduledActionArgs.builder()
            .name("dynamodb")
            .serviceNamespace(dynamodb.serviceNamespace())
            .resourceId(dynamodb.resourceId())
            .scalableDimension(dynamodb.scalableDimension())
            .schedule("at(2006-01-02T15:04:05)")
            .scalableTargetAction(ScheduledActionScalableTargetActionArgs.builder()
                .minCapacity(1)
                .maxCapacity(200)
                .build())
            .build());

    }
}
Copy
resources:
  dynamodb:
    type: aws:appautoscaling:Target
    properties:
      maxCapacity: 100
      minCapacity: 5
      resourceId: table/tableName
      scalableDimension: dynamodb:table:ReadCapacityUnits
      serviceNamespace: dynamodb
  dynamodbScheduledAction:
    type: aws:appautoscaling:ScheduledAction
    name: dynamodb
    properties:
      name: dynamodb
      serviceNamespace: ${dynamodb.serviceNamespace}
      resourceId: ${dynamodb.resourceId}
      scalableDimension: ${dynamodb.scalableDimension}
      schedule: at(2006-01-02T15:04:05)
      scalableTargetAction:
        minCapacity: 1
        maxCapacity: 200
Copy

ECS Service Autoscaling

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const ecs = new aws.appautoscaling.Target("ecs", {
    maxCapacity: 4,
    minCapacity: 1,
    resourceId: "service/clusterName/serviceName",
    scalableDimension: "ecs:service:DesiredCount",
    serviceNamespace: "ecs",
});
const ecsScheduledAction = new aws.appautoscaling.ScheduledAction("ecs", {
    name: "ecs",
    serviceNamespace: ecs.serviceNamespace,
    resourceId: ecs.resourceId,
    scalableDimension: ecs.scalableDimension,
    schedule: "at(2006-01-02T15:04:05)",
    scalableTargetAction: {
        minCapacity: 1,
        maxCapacity: 10,
    },
});
Copy
import pulumi
import pulumi_aws as aws

ecs = aws.appautoscaling.Target("ecs",
    max_capacity=4,
    min_capacity=1,
    resource_id="service/clusterName/serviceName",
    scalable_dimension="ecs:service:DesiredCount",
    service_namespace="ecs")
ecs_scheduled_action = aws.appautoscaling.ScheduledAction("ecs",
    name="ecs",
    service_namespace=ecs.service_namespace,
    resource_id=ecs.resource_id,
    scalable_dimension=ecs.scalable_dimension,
    schedule="at(2006-01-02T15:04:05)",
    scalable_target_action={
        "min_capacity": 1,
        "max_capacity": 10,
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appautoscaling"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ecs, err := appautoscaling.NewTarget(ctx, "ecs", &appautoscaling.TargetArgs{
			MaxCapacity:       pulumi.Int(4),
			MinCapacity:       pulumi.Int(1),
			ResourceId:        pulumi.String("service/clusterName/serviceName"),
			ScalableDimension: pulumi.String("ecs:service:DesiredCount"),
			ServiceNamespace:  pulumi.String("ecs"),
		})
		if err != nil {
			return err
		}
		_, err = appautoscaling.NewScheduledAction(ctx, "ecs", &appautoscaling.ScheduledActionArgs{
			Name:              pulumi.String("ecs"),
			ServiceNamespace:  ecs.ServiceNamespace,
			ResourceId:        ecs.ResourceId,
			ScalableDimension: ecs.ScalableDimension,
			Schedule:          pulumi.String("at(2006-01-02T15:04:05)"),
			ScalableTargetAction: &appautoscaling.ScheduledActionScalableTargetActionArgs{
				MinCapacity: pulumi.Int(1),
				MaxCapacity: pulumi.Int(10),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var ecs = new Aws.AppAutoScaling.Target("ecs", new()
    {
        MaxCapacity = 4,
        MinCapacity = 1,
        ResourceId = "service/clusterName/serviceName",
        ScalableDimension = "ecs:service:DesiredCount",
        ServiceNamespace = "ecs",
    });

    var ecsScheduledAction = new Aws.AppAutoScaling.ScheduledAction("ecs", new()
    {
        Name = "ecs",
        ServiceNamespace = ecs.ServiceNamespace,
        ResourceId = ecs.ResourceId,
        ScalableDimension = ecs.ScalableDimension,
        Schedule = "at(2006-01-02T15:04:05)",
        ScalableTargetAction = new Aws.AppAutoScaling.Inputs.ScheduledActionScalableTargetActionArgs
        {
            MinCapacity = 1,
            MaxCapacity = 10,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appautoscaling.Target;
import com.pulumi.aws.appautoscaling.TargetArgs;
import com.pulumi.aws.appautoscaling.ScheduledAction;
import com.pulumi.aws.appautoscaling.ScheduledActionArgs;
import com.pulumi.aws.appautoscaling.inputs.ScheduledActionScalableTargetActionArgs;
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 ecs = new Target("ecs", TargetArgs.builder()
            .maxCapacity(4)
            .minCapacity(1)
            .resourceId("service/clusterName/serviceName")
            .scalableDimension("ecs:service:DesiredCount")
            .serviceNamespace("ecs")
            .build());

        var ecsScheduledAction = new ScheduledAction("ecsScheduledAction", ScheduledActionArgs.builder()
            .name("ecs")
            .serviceNamespace(ecs.serviceNamespace())
            .resourceId(ecs.resourceId())
            .scalableDimension(ecs.scalableDimension())
            .schedule("at(2006-01-02T15:04:05)")
            .scalableTargetAction(ScheduledActionScalableTargetActionArgs.builder()
                .minCapacity(1)
                .maxCapacity(10)
                .build())
            .build());

    }
}
Copy
resources:
  ecs:
    type: aws:appautoscaling:Target
    properties:
      maxCapacity: 4
      minCapacity: 1
      resourceId: service/clusterName/serviceName
      scalableDimension: ecs:service:DesiredCount
      serviceNamespace: ecs
  ecsScheduledAction:
    type: aws:appautoscaling:ScheduledAction
    name: ecs
    properties:
      name: ecs
      serviceNamespace: ${ecs.serviceNamespace}
      resourceId: ${ecs.resourceId}
      scalableDimension: ${ecs.scalableDimension}
      schedule: at(2006-01-02T15:04:05)
      scalableTargetAction:
        minCapacity: 1
        maxCapacity: 10
Copy

Create ScheduledAction Resource

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

Constructor syntax

new ScheduledAction(name: string, args: ScheduledActionArgs, opts?: CustomResourceOptions);
@overload
def ScheduledAction(resource_name: str,
                    args: ScheduledActionArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def ScheduledAction(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    resource_id: Optional[str] = None,
                    scalable_dimension: Optional[str] = None,
                    scalable_target_action: Optional[ScheduledActionScalableTargetActionArgs] = None,
                    schedule: Optional[str] = None,
                    service_namespace: Optional[str] = None,
                    end_time: Optional[str] = None,
                    name: Optional[str] = None,
                    start_time: Optional[str] = None,
                    timezone: Optional[str] = None)
func NewScheduledAction(ctx *Context, name string, args ScheduledActionArgs, opts ...ResourceOption) (*ScheduledAction, error)
public ScheduledAction(string name, ScheduledActionArgs args, CustomResourceOptions? opts = null)
public ScheduledAction(String name, ScheduledActionArgs args)
public ScheduledAction(String name, ScheduledActionArgs args, CustomResourceOptions options)
type: aws:appautoscaling:ScheduledAction
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ScheduledActionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ScheduledActionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ScheduledActionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ScheduledActionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ScheduledActionArgs
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 scheduledActionResource = new Aws.AppAutoScaling.ScheduledAction("scheduledActionResource", new()
{
    ResourceId = "string",
    ScalableDimension = "string",
    ScalableTargetAction = new Aws.AppAutoScaling.Inputs.ScheduledActionScalableTargetActionArgs
    {
        MaxCapacity = 0,
        MinCapacity = 0,
    },
    Schedule = "string",
    ServiceNamespace = "string",
    EndTime = "string",
    Name = "string",
    StartTime = "string",
    Timezone = "string",
});
Copy
example, err := appautoscaling.NewScheduledAction(ctx, "scheduledActionResource", &appautoscaling.ScheduledActionArgs{
	ResourceId:        pulumi.String("string"),
	ScalableDimension: pulumi.String("string"),
	ScalableTargetAction: &appautoscaling.ScheduledActionScalableTargetActionArgs{
		MaxCapacity: pulumi.Int(0),
		MinCapacity: pulumi.Int(0),
	},
	Schedule:         pulumi.String("string"),
	ServiceNamespace: pulumi.String("string"),
	EndTime:          pulumi.String("string"),
	Name:             pulumi.String("string"),
	StartTime:        pulumi.String("string"),
	Timezone:         pulumi.String("string"),
})
Copy
var scheduledActionResource = new ScheduledAction("scheduledActionResource", ScheduledActionArgs.builder()
    .resourceId("string")
    .scalableDimension("string")
    .scalableTargetAction(ScheduledActionScalableTargetActionArgs.builder()
        .maxCapacity(0)
        .minCapacity(0)
        .build())
    .schedule("string")
    .serviceNamespace("string")
    .endTime("string")
    .name("string")
    .startTime("string")
    .timezone("string")
    .build());
Copy
scheduled_action_resource = aws.appautoscaling.ScheduledAction("scheduledActionResource",
    resource_id="string",
    scalable_dimension="string",
    scalable_target_action={
        "max_capacity": 0,
        "min_capacity": 0,
    },
    schedule="string",
    service_namespace="string",
    end_time="string",
    name="string",
    start_time="string",
    timezone="string")
Copy
const scheduledActionResource = new aws.appautoscaling.ScheduledAction("scheduledActionResource", {
    resourceId: "string",
    scalableDimension: "string",
    scalableTargetAction: {
        maxCapacity: 0,
        minCapacity: 0,
    },
    schedule: "string",
    serviceNamespace: "string",
    endTime: "string",
    name: "string",
    startTime: "string",
    timezone: "string",
});
Copy
type: aws:appautoscaling:ScheduledAction
properties:
    endTime: string
    name: string
    resourceId: string
    scalableDimension: string
    scalableTargetAction:
        maxCapacity: 0
        minCapacity: 0
    schedule: string
    serviceNamespace: string
    startTime: string
    timezone: string
Copy

ScheduledAction 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 ScheduledAction resource accepts the following input properties:

ResourceId
This property is required.
Changes to this property will trigger replacement.
string
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
ScalableDimension
This property is required.
Changes to this property will trigger replacement.
string
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
ScalableTargetAction This property is required. ScheduledActionScalableTargetAction
New minimum and maximum capacity. You can set both values or just one. See below
Schedule This property is required. string
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
ServiceNamespace
This property is required.
Changes to this property will trigger replacement.
string
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
EndTime string
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
Name Changes to this property will trigger replacement. string
Name of the scheduled action.
StartTime string
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
Timezone string
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.
ResourceId
This property is required.
Changes to this property will trigger replacement.
string
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
ScalableDimension
This property is required.
Changes to this property will trigger replacement.
string
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
ScalableTargetAction This property is required. ScheduledActionScalableTargetActionArgs
New minimum and maximum capacity. You can set both values or just one. See below
Schedule This property is required. string
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
ServiceNamespace
This property is required.
Changes to this property will trigger replacement.
string
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
EndTime string
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
Name Changes to this property will trigger replacement. string
Name of the scheduled action.
StartTime string
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
Timezone string
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
scalableDimension
This property is required.
Changes to this property will trigger replacement.
String
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
scalableTargetAction This property is required. ScheduledActionScalableTargetAction
New minimum and maximum capacity. You can set both values or just one. See below
schedule This property is required. String
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
serviceNamespace
This property is required.
Changes to this property will trigger replacement.
String
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
endTime String
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
name Changes to this property will trigger replacement. String
Name of the scheduled action.
startTime String
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
timezone String
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.
resourceId
This property is required.
Changes to this property will trigger replacement.
string
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
scalableDimension
This property is required.
Changes to this property will trigger replacement.
string
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
scalableTargetAction This property is required. ScheduledActionScalableTargetAction
New minimum and maximum capacity. You can set both values or just one. See below
schedule This property is required. string
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
serviceNamespace
This property is required.
Changes to this property will trigger replacement.
string
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
endTime string
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
name Changes to this property will trigger replacement. string
Name of the scheduled action.
startTime string
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
timezone string
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.
resource_id
This property is required.
Changes to this property will trigger replacement.
str
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
scalable_dimension
This property is required.
Changes to this property will trigger replacement.
str
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
scalable_target_action This property is required. ScheduledActionScalableTargetActionArgs
New minimum and maximum capacity. You can set both values or just one. See below
schedule This property is required. str
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
service_namespace
This property is required.
Changes to this property will trigger replacement.
str
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
end_time str
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
name Changes to this property will trigger replacement. str
Name of the scheduled action.
start_time str
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
timezone str
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
scalableDimension
This property is required.
Changes to this property will trigger replacement.
String
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
scalableTargetAction This property is required. Property Map
New minimum and maximum capacity. You can set both values or just one. See below
schedule This property is required. String
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
serviceNamespace
This property is required.
Changes to this property will trigger replacement.
String
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
endTime String
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
name Changes to this property will trigger replacement. String
Name of the scheduled action.
startTime String
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
timezone String
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.

Outputs

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

Arn string
ARN of the scheduled action.
Id string
The provider-assigned unique ID for this managed resource.
Arn string
ARN of the scheduled action.
Id string
The provider-assigned unique ID for this managed resource.
arn String
ARN of the scheduled action.
id String
The provider-assigned unique ID for this managed resource.
arn string
ARN of the scheduled action.
id string
The provider-assigned unique ID for this managed resource.
arn str
ARN of the scheduled action.
id str
The provider-assigned unique ID for this managed resource.
arn String
ARN of the scheduled action.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ScheduledAction Resource

Get an existing ScheduledAction 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?: ScheduledActionState, opts?: CustomResourceOptions): ScheduledAction
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        end_time: Optional[str] = None,
        name: Optional[str] = None,
        resource_id: Optional[str] = None,
        scalable_dimension: Optional[str] = None,
        scalable_target_action: Optional[ScheduledActionScalableTargetActionArgs] = None,
        schedule: Optional[str] = None,
        service_namespace: Optional[str] = None,
        start_time: Optional[str] = None,
        timezone: Optional[str] = None) -> ScheduledAction
func GetScheduledAction(ctx *Context, name string, id IDInput, state *ScheduledActionState, opts ...ResourceOption) (*ScheduledAction, error)
public static ScheduledAction Get(string name, Input<string> id, ScheduledActionState? state, CustomResourceOptions? opts = null)
public static ScheduledAction get(String name, Output<String> id, ScheduledActionState state, CustomResourceOptions options)
resources:  _:    type: aws:appautoscaling:ScheduledAction    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 of the scheduled action.
EndTime string
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
Name Changes to this property will trigger replacement. string
Name of the scheduled action.
ResourceId Changes to this property will trigger replacement. string
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
ScalableDimension Changes to this property will trigger replacement. string
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
ScalableTargetAction ScheduledActionScalableTargetAction
New minimum and maximum capacity. You can set both values or just one. See below
Schedule string
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
ServiceNamespace Changes to this property will trigger replacement. string
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
StartTime string
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
Timezone string
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.
Arn string
ARN of the scheduled action.
EndTime string
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
Name Changes to this property will trigger replacement. string
Name of the scheduled action.
ResourceId Changes to this property will trigger replacement. string
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
ScalableDimension Changes to this property will trigger replacement. string
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
ScalableTargetAction ScheduledActionScalableTargetActionArgs
New minimum and maximum capacity. You can set both values or just one. See below
Schedule string
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
ServiceNamespace Changes to this property will trigger replacement. string
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
StartTime string
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
Timezone string
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.
arn String
ARN of the scheduled action.
endTime String
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
name Changes to this property will trigger replacement. String
Name of the scheduled action.
resourceId Changes to this property will trigger replacement. String
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
scalableDimension Changes to this property will trigger replacement. String
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
scalableTargetAction ScheduledActionScalableTargetAction
New minimum and maximum capacity. You can set both values or just one. See below
schedule String
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
serviceNamespace Changes to this property will trigger replacement. String
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
startTime String
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
timezone String
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.
arn string
ARN of the scheduled action.
endTime string
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
name Changes to this property will trigger replacement. string
Name of the scheduled action.
resourceId Changes to this property will trigger replacement. string
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
scalableDimension Changes to this property will trigger replacement. string
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
scalableTargetAction ScheduledActionScalableTargetAction
New minimum and maximum capacity. You can set both values or just one. See below
schedule string
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
serviceNamespace Changes to this property will trigger replacement. string
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
startTime string
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
timezone string
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.
arn str
ARN of the scheduled action.
end_time str
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
name Changes to this property will trigger replacement. str
Name of the scheduled action.
resource_id Changes to this property will trigger replacement. str
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
scalable_dimension Changes to this property will trigger replacement. str
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
scalable_target_action ScheduledActionScalableTargetActionArgs
New minimum and maximum capacity. You can set both values or just one. See below
schedule str
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
service_namespace Changes to this property will trigger replacement. str
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
start_time str
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
timezone str
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.
arn String
ARN of the scheduled action.
endTime String
Date and time for the scheduled action to end in RFC 3339 format. The timezone is not affected by the setting of timezone.
name Changes to this property will trigger replacement. String
Name of the scheduled action.
resourceId Changes to this property will trigger replacement. String
Identifier of the resource associated with the scheduled action. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference
scalableDimension Changes to this property will trigger replacement. String
Scalable dimension. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference Example: ecs:service:DesiredCount
scalableTargetAction Property Map
New minimum and maximum capacity. You can set both values or just one. See below
schedule String
Schedule for this action. The following formats are supported: At expressions - at(yyyy-mm-ddThh:mm:ss), Rate expressions - rate(valueunit), Cron expressions - cron(fields). Times for at expressions and cron expressions are evaluated using the time zone configured in timezone. Documentation can be found in the Timezone parameter at: AWS Application Auto Scaling API Reference
serviceNamespace Changes to this property will trigger replacement. String
Namespace of the AWS service. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference Example: ecs
startTime String
Date and time for the scheduled action to start in RFC 3339 format. The timezone is not affected by the setting of timezone.
timezone String
Time zone used when setting a scheduled action by using an at or cron expression. Does not affect timezone for start_time and end_time. Valid values are the canonical names of the IANA time zones supported by Joda-Time, such as Etc/GMT+9 or Pacific/Tahiti. Default is UTC.

Supporting Types

ScheduledActionScalableTargetAction
, ScheduledActionScalableTargetActionArgs

MaxCapacity int
Maximum capacity. At least one of max_capacity or min_capacity must be set.
MinCapacity int
Minimum capacity. At least one of min_capacity or max_capacity must be set.
MaxCapacity int
Maximum capacity. At least one of max_capacity or min_capacity must be set.
MinCapacity int
Minimum capacity. At least one of min_capacity or max_capacity must be set.
maxCapacity Integer
Maximum capacity. At least one of max_capacity or min_capacity must be set.
minCapacity Integer
Minimum capacity. At least one of min_capacity or max_capacity must be set.
maxCapacity number
Maximum capacity. At least one of max_capacity or min_capacity must be set.
minCapacity number
Minimum capacity. At least one of min_capacity or max_capacity must be set.
max_capacity int
Maximum capacity. At least one of max_capacity or min_capacity must be set.
min_capacity int
Minimum capacity. At least one of min_capacity or max_capacity must be set.
maxCapacity Number
Maximum capacity. At least one of max_capacity or min_capacity must be set.
minCapacity Number
Minimum capacity. At least one of min_capacity or max_capacity must be set.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.