Describe Scheduled Instance Availability
| ec2_describe_scheduled_instance_availability | R Documentation |
Finds available schedules that meet the specified criteria¶
Description¶
Finds available schedules that meet the specified criteria.
You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.
After you find a schedule that meets your needs, call
purchase_scheduled_instances to purchase Scheduled Instances with that
schedule.
Usage¶
ec2_describe_scheduled_instance_availability(DryRun, Filters,
FirstSlotStartTimeRange, MaxResults, MaxSlotDurationInHours,
MinSlotDurationInHours, NextToken, Recurrence)
Arguments¶
DryRunChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.FiltersThe filters.
availability-zone- The Availability Zone (for example,us-west-2a).instance-type- The instance type (for example,c4.large).platform- The platform (Linux/UNIXorWindows).
FirstSlotStartTimeRange[required] The time period for the first schedule to start.
MaxResultsThe maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 300. To retrieve the remaining results, make another call with the returned
NextTokenvalue.MaxSlotDurationInHoursThe maximum available duration, in hours. This value must be greater than
MinSlotDurationInHoursand less than 1,720.MinSlotDurationInHoursThe minimum available duration, in hours. The minimum required duration is 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.
NextTokenThe token for the next set of results.
Recurrence[required] The schedule recurrence.
Value¶
A list with the following syntax:
list(
NextToken = "string",
ScheduledInstanceAvailabilitySet = list(
list(
AvailabilityZone = "string",
AvailableInstanceCount = 123,
FirstSlotStartTime = as.POSIXct(
"2015-01-01"
),
HourlyPrice = "string",
InstanceType = "string",
MaxTermDurationInDays = 123,
MinTermDurationInDays = 123,
NetworkPlatform = "string",
Platform = "string",
PurchaseToken = "string",
Recurrence = list(
Frequency = "string",
Interval = 123,
OccurrenceDaySet = list(
123
),
OccurrenceRelativeToEnd = TRUE|FALSE,
OccurrenceUnit = "string"
),
SlotDurationInHours = 123,
TotalScheduledInstanceHours = 123
)
)
)
Request syntax¶
svc$describe_scheduled_instance_availability(
DryRun = TRUE|FALSE,
Filters = list(
list(
Name = "string",
Values = list(
"string"
)
)
),
FirstSlotStartTimeRange = list(
EarliestTime = as.POSIXct(
"2015-01-01"
),
LatestTime = as.POSIXct(
"2015-01-01"
)
),
MaxResults = 123,
MaxSlotDurationInHours = 123,
MinSlotDurationInHours = 123,
NextToken = "string",
Recurrence = list(
Frequency = "string",
Interval = 123,
OccurrenceDays = list(
123
),
OccurrenceRelativeToEnd = TRUE|FALSE,
OccurrenceUnit = "string"
)
)