Struct aws_sdk_lightsail::input::StopInstanceInput [−][src]
#[non_exhaustive]pub struct StopInstanceInput {
pub instance_name: Option<String>,
pub force: Option<bool>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.instance_name: Option<String>
The name of the instance (a virtual private server) to stop.
force: Option<bool>
When set to True
, forces a Lightsail instance that is stuck in a
stopping
state to stop.
Only use the force
parameter if your instance is stuck in the
stopping
state. In any other state, your instance should stop normally
without adding this parameter to your API request.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopInstance, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopInstance, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<StopInstance
>
Creates a new builder-style object to manufacture StopInstanceInput
The name of the instance (a virtual private server) to stop.
When set to True
, forces a Lightsail instance that is stuck in a
stopping
state to stop.
Only use the force
parameter if your instance is stuck in the
stopping
state. In any other state, your instance should stop normally
without adding this parameter to your API request.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StopInstanceInput
impl Send for StopInstanceInput
impl Sync for StopInstanceInput
impl Unpin for StopInstanceInput
impl UnwindSafe for StopInstanceInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more