describe_scheduled_instances
¶
describe_scheduled_instances(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
filters: Optional[FilterList] = None,
max_results: Optional[Integer] = None,
next_token: Optional[String] = None,
scheduled_instance_ids: Optional[ScheduledInstanceIdRequestSet] = None,
slot_start_time_range: Optional[SlotStartTimeRangeRequest] = None,
) -> DescribeScheduledInstancesResult
Describes the specified Scheduled Instances or all your Scheduled Instances.
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).
-
-
max_results(Optional[Integer], 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 100. To retrieve the remaining results, make another call with the returned
NextTokenvalue. -
next_token(Optional[String], default:None) –The token for the next set of results.
-
scheduled_instance_ids(Optional[ScheduledInstanceIdRequestSet], default:None) –The Scheduled Instance IDs.
-
slot_start_time_range(Optional[SlotStartTimeRangeRequest], default:None) –The time period for the first schedule to start.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
32322 32323 32324 32325 32326 32327 32328 32329 32330 32331 32332 32333 32334 32335 32336 32337 32338 32339 32340 32341 32342 32343 32344 32345 32346 32347 32348 32349 32350 32351 32352 32353 32354 32355 32356 32357 32358 32359 32360 32361 32362 32363 32364 32365 32366 32367 32368 32369 32370 32371 32372 32373 32374 32375 32376 32377 32378 32379 32380 32381 32382 32383 32384 32385 32386 32387 32388 | |