We recommend new projects start with resources from the AWS provider.
aws-native.autoscaling.getScheduledAction
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.
Using getScheduledAction
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getScheduledAction(args: GetScheduledActionArgs, opts?: InvokeOptions): Promise<GetScheduledActionResult>
function getScheduledActionOutput(args: GetScheduledActionOutputArgs, opts?: InvokeOptions): Output<GetScheduledActionResult>
def get_scheduled_action(auto_scaling_group_name: Optional[str] = None,
scheduled_action_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScheduledActionResult
def get_scheduled_action_output(auto_scaling_group_name: Optional[pulumi.Input[str]] = None,
scheduled_action_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetScheduledActionResult]
func LookupScheduledAction(ctx *Context, args *LookupScheduledActionArgs, opts ...InvokeOption) (*LookupScheduledActionResult, error)
func LookupScheduledActionOutput(ctx *Context, args *LookupScheduledActionOutputArgs, opts ...InvokeOption) LookupScheduledActionResultOutput
> Note: This function is named LookupScheduledAction
in the Go SDK.
public static class GetScheduledAction
{
public static Task<GetScheduledActionResult> InvokeAsync(GetScheduledActionArgs args, InvokeOptions? opts = null)
public static Output<GetScheduledActionResult> Invoke(GetScheduledActionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetScheduledActionResult> getScheduledAction(GetScheduledActionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:autoscaling:getScheduledAction
arguments:
# arguments dictionary
The following arguments are supported:
- Auto
Scaling stringGroup Name - The name of the Auto Scaling group.
- Scheduled
Action stringName - Auto-generated unique identifier
- Auto
Scaling stringGroup Name - The name of the Auto Scaling group.
- Scheduled
Action stringName - Auto-generated unique identifier
- auto
Scaling StringGroup Name - The name of the Auto Scaling group.
- scheduled
Action StringName - Auto-generated unique identifier
- auto
Scaling stringGroup Name - The name of the Auto Scaling group.
- scheduled
Action stringName - Auto-generated unique identifier
- auto_
scaling_ strgroup_ name - The name of the Auto Scaling group.
- scheduled_
action_ strname - Auto-generated unique identifier
- auto
Scaling StringGroup Name - The name of the Auto Scaling group.
- scheduled
Action StringName - Auto-generated unique identifier
getScheduledAction Result
The following output properties are available:
- 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.
- Scheduled
Action stringName - Auto-generated unique identifier
- 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.
- 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.
- Scheduled
Action stringName - Auto-generated unique identifier
- 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.
- 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.
- scheduled
Action StringName - Auto-generated unique identifier
- 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.
- 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.
- scheduled
Action stringName - Auto-generated unique identifier
- 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.
- 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.
- scheduled_
action_ strname - Auto-generated unique identifier
- 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.
- 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.
- scheduled
Action StringName - Auto-generated unique identifier
- 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.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.