Reboot an EC2 instance. Args: instance_id: The ID of the instance to reboot. Returns: Updated instance details.
(self, instance_id: str)
| 256 | |
| 257 | @aws_operation("reboot_instance") |
| 258 | def reboot_instance(self, instance_id: str) -> Dict[str, Any]: |
| 259 | """ |
| 260 | Reboot an EC2 instance. |
| 261 | |
| 262 | Args: |
| 263 | instance_id: The ID of the instance to reboot. |
| 264 | |
| 265 | Returns: |
| 266 | Updated instance details. |
| 267 | """ |
| 268 | self.client.reboot_instances(InstanceIds=[instance_id]) |
| 269 | |
| 270 | # Wait a moment for the reboot to initiate |
| 271 | time.sleep(10) |
| 272 | |
| 273 | return self.get_instance(instance_id) |
| 274 | |
| 275 | @aws_operation("resize_instance") |
| 276 | def resize_instance( |
no test coverage detected