describe_scheduled_instances
async
¶
describe_scheduled_instances(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
32754 32755 32756 32757 32758 32759 32760 32761 32762 32763 32764 32765 32766 32767 32768 32769 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779 32780 32781 32782 32783 32784 32785 32786 32787 32788 32789 32790 32791 32792 32793 32794 32795 32796 32797 32798 32799 32800 32801 32802 32803 32804 32805 32806 32807 32808 32809 32810 32811 32812 32813 32814 32815 32816 32817 32818 32819 32820 32821 | |