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