describe_scheduled_instance_availability
¶
describe_scheduled_instance_availability(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
filters: Optional[FilterList] = None,
first_slot_start_time_range: Optional[SlotDateTimeRangeRequest] = None,
max_results: Optional[DescribeScheduledInstanceAvailabilityMaxResults] = None,
max_slot_duration_in_hours: Optional[Integer] = None,
min_slot_duration_in_hours: Optional[Integer] = None,
next_token: Optional[String] = None,
recurrence: Optional[ScheduledInstanceRecurrenceRequest] = None,
) -> DescribeScheduledInstanceAvailabilityResult
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 PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks 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. -
filters(Optional[FilterList], default:None) –The 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).
-
-
first_slot_start_time_range(Optional[SlotDateTimeRangeRequest], default:None) –The time period for the first schedule to start.
-
max_results(Optional[DescribeScheduledInstanceAvailabilityMaxResults], default:None) –The 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. -
max_slot_duration_in_hours(Optional[Integer], default:None) –The maximum available duration, in hours. This value must be greater than
MinSlotDurationInHoursand less than 1,720. -
min_slot_duration_in_hours(Optional[Integer], default:None) –The 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.
-
next_token(Optional[String], default:None) –The token for the next set of results.
-
recurrence(Optional[ScheduledInstanceRecurrenceRequest], default:None) –The schedule recurrence.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278 32279 32280 32281 | |