run_scheduled_instances
¶
run_scheduled_instances(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
58946 58947 58948 58949 58950 58951 58952 58953 58954 58955 58956 58957 58958 58959 58960 58961 58962 58963 58964 58965 58966 58967 58968 58969 58970 58971 58972 58973 58974 58975 58976 58977 58978 58979 58980 58981 58982 58983 58984 58985 58986 58987 58988 58989 58990 58991 58992 58993 58994 58995 58996 58997 58998 58999 59000 59001 59002 59003 59004 59005 59006 59007 59008 59009 59010 59011 59012 59013 59014 59015 59016 59017 59018 59019 | |