#[non_exhaustive]pub struct StopInstanceInput {
pub instance_id: 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_id: Option<String>The instance ID.
force: Option<bool>Specifies whether to force an instance to stop. If the instance's root device type is ebs, or EBS-backed, adding the Force parameter to the StopInstances API call disassociates the AWS OpsWorks Stacks instance from EC2, and forces deletion of only the OpsWorks Stacks instance. You must also delete the formerly-associated instance in EC2 after troubleshooting and replacing the AWS OpsWorks Stacks instance with a new one.
Implementations§
source§impl StopInstanceInput
impl StopInstanceInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The instance ID.
sourcepub fn force(&self) -> Option<bool>
pub fn force(&self) -> Option<bool>
Specifies whether to force an instance to stop. If the instance's root device type is ebs, or EBS-backed, adding the Force parameter to the StopInstances API call disassociates the AWS OpsWorks Stacks instance from EC2, and forces deletion of only the OpsWorks Stacks instance. You must also delete the formerly-associated instance in EC2 after troubleshooting and replacing the AWS OpsWorks Stacks instance with a new one.
source§impl StopInstanceInput
impl StopInstanceInput
sourcepub fn builder() -> StopInstanceInputBuilder
pub fn builder() -> StopInstanceInputBuilder
Creates a new builder-style object to manufacture StopInstanceInput.
Trait Implementations§
source§impl Clone for StopInstanceInput
impl Clone for StopInstanceInput
source§fn clone(&self) -> StopInstanceInput
fn clone(&self) -> StopInstanceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StopInstanceInput
impl Debug for StopInstanceInput
source§impl PartialEq for StopInstanceInput
impl PartialEq for StopInstanceInput
source§fn eq(&self, other: &StopInstanceInput) -> bool
fn eq(&self, other: &StopInstanceInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StopInstanceInput
Auto Trait Implementations§
impl Freeze for StopInstanceInput
impl RefUnwindSafe for StopInstanceInput
impl Send for StopInstanceInput
impl Sync for StopInstanceInput
impl Unpin for StopInstanceInput
impl UnwindSafe for StopInstanceInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more