run_scheduled_instances
async
¶
run_scheduled_instances(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
instance_count: Optional[Integer] = None,
launch_specification: Optional[ScheduledInstancesLaunchSpecification] = None,
scheduled_instance_id: Optional[ScheduledInstanceId] = None,
) -> RunScheduledInstancesResult
Launches the specified Scheduled Instances.
Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.
You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes.
Parameters:
-
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
-
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. -
instance_count(Optional[Integer], default:None) –The number of instances.
Default: 1
-
launch_specification(Optional[ScheduledInstancesLaunchSpecification], default:None) –The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.
-
scheduled_instance_id(Optional[ScheduledInstanceId], default:None) –The Scheduled Instance ID.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
59769 59770 59771 59772 59773 59774 59775 59776 59777 59778 59779 59780 59781 59782 59783 59784 59785 59786 59787 59788 59789 59790 59791 59792 59793 59794 59795 59796 59797 59798 59799 59800 59801 59802 59803 59804 59805 59806 59807 59808 59809 59810 59811 59812 59813 59814 59815 59816 59817 59818 59819 59820 59821 59822 59823 59824 59825 59826 59827 59828 59829 59830 59831 59832 59833 59834 59835 59836 59837 59838 59839 59840 59841 59842 59843 | |