Struct aws_sdk_emr::types::InstanceGroupModifyConfig
source · #[non_exhaustive]pub struct InstanceGroupModifyConfig {
pub instance_group_id: Option<String>,
pub instance_count: Option<i32>,
pub ec2_instance_ids_to_terminate: Option<Vec<String>>,
pub shrink_policy: Option<ShrinkPolicy>,
pub reconfiguration_type: Option<ReconfigurationType>,
pub configurations: Option<Vec<Configuration>>,
}
Expand description
Modify the size or configurations of an instance group.
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_group_id: Option<String>
Unique ID of the instance group to modify.
instance_count: Option<i32>
Target size for the instance group.
ec2_instance_ids_to_terminate: Option<Vec<String>>
The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
shrink_policy: Option<ShrinkPolicy>
Policy for customizing shrink operations.
reconfiguration_type: Option<ReconfigurationType>
Type of reconfiguration requested. Valid values are MERGE and OVERWRITE.
configurations: Option<Vec<Configuration>>
A list of new or modified configurations to apply for an instance group.
Implementations§
source§impl InstanceGroupModifyConfig
impl InstanceGroupModifyConfig
sourcepub fn instance_group_id(&self) -> Option<&str>
pub fn instance_group_id(&self) -> Option<&str>
Unique ID of the instance group to modify.
sourcepub fn instance_count(&self) -> Option<i32>
pub fn instance_count(&self) -> Option<i32>
Target size for the instance group.
sourcepub fn ec2_instance_ids_to_terminate(&self) -> &[String]
pub fn ec2_instance_ids_to_terminate(&self) -> &[String]
The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ec2_instance_ids_to_terminate.is_none()
.
sourcepub fn shrink_policy(&self) -> Option<&ShrinkPolicy>
pub fn shrink_policy(&self) -> Option<&ShrinkPolicy>
Policy for customizing shrink operations.
sourcepub fn reconfiguration_type(&self) -> Option<&ReconfigurationType>
pub fn reconfiguration_type(&self) -> Option<&ReconfigurationType>
Type of reconfiguration requested. Valid values are MERGE and OVERWRITE.
sourcepub fn configurations(&self) -> &[Configuration]
pub fn configurations(&self) -> &[Configuration]
A list of new or modified configurations to apply for an instance group.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .configurations.is_none()
.
source§impl InstanceGroupModifyConfig
impl InstanceGroupModifyConfig
sourcepub fn builder() -> InstanceGroupModifyConfigBuilder
pub fn builder() -> InstanceGroupModifyConfigBuilder
Creates a new builder-style object to manufacture InstanceGroupModifyConfig
.
Trait Implementations§
source§impl Clone for InstanceGroupModifyConfig
impl Clone for InstanceGroupModifyConfig
source§fn clone(&self) -> InstanceGroupModifyConfig
fn clone(&self) -> InstanceGroupModifyConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceGroupModifyConfig
impl Debug for InstanceGroupModifyConfig
source§impl PartialEq for InstanceGroupModifyConfig
impl PartialEq for InstanceGroupModifyConfig
source§fn eq(&self, other: &InstanceGroupModifyConfig) -> bool
fn eq(&self, other: &InstanceGroupModifyConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceGroupModifyConfig
Auto Trait Implementations§
impl Freeze for InstanceGroupModifyConfig
impl RefUnwindSafe for InstanceGroupModifyConfig
impl Send for InstanceGroupModifyConfig
impl Sync for InstanceGroupModifyConfig
impl Unpin for InstanceGroupModifyConfig
impl UnwindSafe for InstanceGroupModifyConfig
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