We recommend new projects start with resources from the AWS provider.
aws-native.autoscaling.ScheduledAction
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::AutoScaling::ScheduledAction resource specifies an Amazon EC2 Auto Scaling scheduled action so that the Auto Scaling group can change the number of instances available for your application in response to predictable load changes.
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,
auto_scaling_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,
start_time: Optional[str] = None,
time_zone: 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-native:autoscaling:ScheduledAction
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 ScheduledActionArgs
- 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 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 string
- The unique name of the resource.
- args ScheduledActionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduledActionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScheduledActionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
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
The ScheduledAction resource accepts the following input properties:
- Auto
Scaling stringGroup Name - The name of the Auto Scaling group.
- Desired
Capacity int - The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain.
- End
Time string - The latest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- Max
Size int - The minimum size of the Auto Scaling group.
- Min
Size int - The minimum size of the Auto Scaling group.
- Recurrence string
- The recurring schedule for the action, in Unix cron syntax format. When StartTime and EndTime are specified with Recurrence , they form the boundaries of when the recurring action starts and stops.
- Start
Time string - The earliest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- Time
Zone string - The time zone for the cron expression.
- Auto
Scaling stringGroup Name - The name of the Auto Scaling group.
- Desired
Capacity int - The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain.
- End
Time string - The latest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- Max
Size int - The minimum size of the Auto Scaling group.
- Min
Size int - The minimum size of the Auto Scaling group.
- Recurrence string
- The recurring schedule for the action, in Unix cron syntax format. When StartTime and EndTime are specified with Recurrence , they form the boundaries of when the recurring action starts and stops.
- Start
Time string - The earliest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- Time
Zone string - The time zone for the cron expression.
- auto
Scaling StringGroup Name - The name of the Auto Scaling group.
- desired
Capacity Integer - The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain.
- end
Time String - The latest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- max
Size Integer - The minimum size of the Auto Scaling group.
- min
Size Integer - The minimum size of the Auto Scaling group.
- recurrence String
- The recurring schedule for the action, in Unix cron syntax format. When StartTime and EndTime are specified with Recurrence , they form the boundaries of when the recurring action starts and stops.
- start
Time String - The earliest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- time
Zone String - The time zone for the cron expression.
- auto
Scaling stringGroup Name - The name of the Auto Scaling group.
- desired
Capacity number - The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain.
- end
Time string - The latest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- max
Size number - The minimum size of the Auto Scaling group.
- min
Size number - The minimum size of the Auto Scaling group.
- recurrence string
- The recurring schedule for the action, in Unix cron syntax format. When StartTime and EndTime are specified with Recurrence , they form the boundaries of when the recurring action starts and stops.
- start
Time string - The earliest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- time
Zone string - The time zone for the cron expression.
- auto_
scaling_ strgroup_ name - The name of the Auto Scaling group.
- desired_
capacity int - The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain.
- end_
time str - The latest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- max_
size int - The minimum size of the Auto Scaling group.
- min_
size int - The minimum size of the Auto Scaling group.
- recurrence str
- The recurring schedule for the action, in Unix cron syntax format. When StartTime and EndTime are specified with Recurrence , they form the boundaries of when the recurring action starts and stops.
- start_
time str - The earliest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- time_
zone str - The time zone for the cron expression.
- auto
Scaling StringGroup Name - The name of the Auto Scaling group.
- desired
Capacity Number - The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain.
- end
Time String - The latest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- max
Size Number - The minimum size of the Auto Scaling group.
- min
Size Number - The minimum size of the Auto Scaling group.
- recurrence String
- The recurring schedule for the action, in Unix cron syntax format. When StartTime and EndTime are specified with Recurrence , they form the boundaries of when the recurring action starts and stops.
- start
Time String - The earliest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.
- time
Zone String - The time zone for the cron expression.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduledAction resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Scheduled
Action stringName - Auto-generated unique identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Scheduled
Action stringName - Auto-generated unique identifier
- id String
- The provider-assigned unique ID for this managed resource.
- scheduled
Action StringName - Auto-generated unique identifier
- id string
- The provider-assigned unique ID for this managed resource.
- scheduled
Action stringName - Auto-generated unique identifier
- id str
- The provider-assigned unique ID for this managed resource.
- scheduled_
action_ strname - Auto-generated unique identifier
- id String
- The provider-assigned unique ID for this managed resource.
- scheduled
Action StringName - Auto-generated unique identifier
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.