#[non_exhaustive]pub struct ClusterInstanceGroupDetails {
pub current_count: Option<i32>,
pub target_count: Option<i32>,
pub instance_group_name: Option<String>,
pub instance_type: Option<ClusterInstanceType>,
pub life_cycle_config: Option<ClusterLifeCycleConfig>,
pub execution_role: Option<String>,
pub threads_per_core: Option<i32>,
}
Expand description
Details of an instance group in a SageMaker HyperPod cluster.
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.current_count: Option<i32>
The number of instances that are currently in the instance group of a SageMaker HyperPod cluster.
target_count: Option<i32>
The number of instances you specified to add to the instance group of a SageMaker HyperPod cluster.
instance_group_name: Option<String>
The name of the instance group of a SageMaker HyperPod cluster.
instance_type: Option<ClusterInstanceType>
The instance type of the instance group of a SageMaker HyperPod cluster.
life_cycle_config: Option<ClusterLifeCycleConfig>
Details of LifeCycle configuration for the instance group.
execution_role: Option<String>
The execution role for the instance group to assume.
threads_per_core: Option<i32>
The number you specified to TreadsPerCore
in CreateCluster
for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.
Implementations§
source§impl ClusterInstanceGroupDetails
impl ClusterInstanceGroupDetails
sourcepub fn current_count(&self) -> Option<i32>
pub fn current_count(&self) -> Option<i32>
The number of instances that are currently in the instance group of a SageMaker HyperPod cluster.
sourcepub fn target_count(&self) -> Option<i32>
pub fn target_count(&self) -> Option<i32>
The number of instances you specified to add to the instance group of a SageMaker HyperPod cluster.
sourcepub fn instance_group_name(&self) -> Option<&str>
pub fn instance_group_name(&self) -> Option<&str>
The name of the instance group of a SageMaker HyperPod cluster.
sourcepub fn instance_type(&self) -> Option<&ClusterInstanceType>
pub fn instance_type(&self) -> Option<&ClusterInstanceType>
The instance type of the instance group of a SageMaker HyperPod cluster.
sourcepub fn life_cycle_config(&self) -> Option<&ClusterLifeCycleConfig>
pub fn life_cycle_config(&self) -> Option<&ClusterLifeCycleConfig>
Details of LifeCycle configuration for the instance group.
sourcepub fn execution_role(&self) -> Option<&str>
pub fn execution_role(&self) -> Option<&str>
The execution role for the instance group to assume.
sourcepub fn threads_per_core(&self) -> Option<i32>
pub fn threads_per_core(&self) -> Option<i32>
The number you specified to TreadsPerCore
in CreateCluster
for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.
source§impl ClusterInstanceGroupDetails
impl ClusterInstanceGroupDetails
sourcepub fn builder() -> ClusterInstanceGroupDetailsBuilder
pub fn builder() -> ClusterInstanceGroupDetailsBuilder
Creates a new builder-style object to manufacture ClusterInstanceGroupDetails
.
Trait Implementations§
source§impl Clone for ClusterInstanceGroupDetails
impl Clone for ClusterInstanceGroupDetails
source§fn clone(&self) -> ClusterInstanceGroupDetails
fn clone(&self) -> ClusterInstanceGroupDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClusterInstanceGroupDetails
impl Debug for ClusterInstanceGroupDetails
source§impl PartialEq for ClusterInstanceGroupDetails
impl PartialEq for ClusterInstanceGroupDetails
source§fn eq(&self, other: &ClusterInstanceGroupDetails) -> bool
fn eq(&self, other: &ClusterInstanceGroupDetails) -> bool
self
and other
values to be equal, and is used
by ==
.