#[non_exhaustive]pub struct SetTerminationProtectionInput {
pub job_flow_ids: Option<Vec<String>>,
pub termination_protected: Option<bool>,
}Expand description
The input argument to the TerminationProtection operation.
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.job_flow_ids: Option<Vec<String>>A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .
termination_protected: Option<bool>A Boolean that indicates whether to protect the cluster and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.
Implementations§
source§impl SetTerminationProtectionInput
impl SetTerminationProtectionInput
sourcepub fn job_flow_ids(&self) -> &[String]
pub fn job_flow_ids(&self) -> &[String]
A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .job_flow_ids.is_none().
sourcepub fn termination_protected(&self) -> Option<bool>
pub fn termination_protected(&self) -> Option<bool>
A Boolean that indicates whether to protect the cluster and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.
source§impl SetTerminationProtectionInput
impl SetTerminationProtectionInput
sourcepub fn builder() -> SetTerminationProtectionInputBuilder
pub fn builder() -> SetTerminationProtectionInputBuilder
Creates a new builder-style object to manufacture SetTerminationProtectionInput.
Trait Implementations§
source§impl Clone for SetTerminationProtectionInput
impl Clone for SetTerminationProtectionInput
source§fn clone(&self) -> SetTerminationProtectionInput
fn clone(&self) -> SetTerminationProtectionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for SetTerminationProtectionInput
impl PartialEq for SetTerminationProtectionInput
source§fn eq(&self, other: &SetTerminationProtectionInput) -> bool
fn eq(&self, other: &SetTerminationProtectionInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SetTerminationProtectionInput
Auto Trait Implementations§
impl Freeze for SetTerminationProtectionInput
impl RefUnwindSafe for SetTerminationProtectionInput
impl Send for SetTerminationProtectionInput
impl Sync for SetTerminationProtectionInput
impl Unpin for SetTerminationProtectionInput
impl UnwindSafe for SetTerminationProtectionInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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