Smaws_Client_Lightsail.StopInstance
Stops a specific Amazon Lightsail instance that is currently running.
When you start a stopped instance, Lightsail assigns a new public IP address to the instance. To use the same IP address after stopping and starting an instance, create a static IP address and attach it to the instance. For more information, see the Amazon Lightsail Developer Guide.
The stop instance
operation supports tag-based access control via resource tags applied to the resource identified by instance name
. For more information, see the Amazon Lightsail Developer Guide.
val request :
Smaws_Lib.Context.t ->
Types.stop_instance_request ->
(Types.stop_instance_result,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `AccountSetupInProgressException of
Types.account_setup_in_progress_exception
| `InvalidInputException of Types.invalid_input_exception
| `NotFoundException of Types.not_found_exception
| `OperationFailureException of Types.operation_failure_exception
| `ServiceException of Types.service_exception
| `UnauthenticatedException of Types.unauthenticated_exception ])
Stdlib.result