StopInstancesRequest
¶
Source code in docs_src/capo_ec2/types/stop_instances_request.py
dry_run
instance-attribute
¶
dry_run: NotRequired[Boolean]
Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
force
instance-attribute
¶
force: NotRequired[Boolean]
Forces the instance to stop. The instance will first attempt a graceful shutdown, which includes flushing file system caches and metadata. If the graceful shutdown fails to complete within the timeout period, the instance shuts down forcibly without flushing the file system caches and metadata.
After using this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances. For more information, see Troubleshoot Amazon EC2 instance stop issues in the Amazon EC2 User Guide.
Default: false
hibernate
instance-attribute
¶
hibernate: NotRequired[Boolean]
Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
Default: false
instance_ids
instance-attribute
¶
instance_ids: NotRequired[InstanceIdStringList]
The IDs of the instances.
skip_os_shutdown
instance-attribute
¶
skip_os_shutdown: NotRequired[Boolean]
Specifies whether to bypass the graceful OS shutdown process when the instance is stopped.
Bypassing the graceful OS shutdown might result in data loss or corruption (for example, memory contents not flushed to disk or loss of in-flight IOs) or skipped shutdown scripts.
Default: false