#[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 ==.