#[non_exhaustive]pub struct ClusterInstanceGroupSpecification {
pub instance_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
The specifications of an instance group that you need to define.
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_count: Option<i32>
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
instance_group_name: Option<String>
Specifies the name of the instance group.
instance_type: Option<ClusterInstanceType>
Specifies the instance type of the instance group.
life_cycle_config: Option<ClusterLifeCycleConfig>
Specifies the LifeCycle configuration for the instance group.
execution_role: Option<String>
Specifies an IAM execution role to be assumed by the instance group.
threads_per_core: Option<i32>
Specifies the value for Threads per core. For instance types that support multithreading, you can specify 1
for disabling multithreading and 2
for enabling multithreading. For instance types that doesn't support multithreading, specify 1
. 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 ClusterInstanceGroupSpecification
impl ClusterInstanceGroupSpecification
sourcepub fn instance_count(&self) -> Option<i32>
pub fn instance_count(&self) -> Option<i32>
Specifies the number of instances 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>
Specifies the name of the instance group.
sourcepub fn instance_type(&self) -> Option<&ClusterInstanceType>
pub fn instance_type(&self) -> Option<&ClusterInstanceType>
Specifies the instance type of the instance group.
sourcepub fn life_cycle_config(&self) -> Option<&ClusterLifeCycleConfig>
pub fn life_cycle_config(&self) -> Option<&ClusterLifeCycleConfig>
Specifies the LifeCycle configuration for the instance group.
sourcepub fn execution_role(&self) -> Option<&str>
pub fn execution_role(&self) -> Option<&str>
Specifies an IAM execution role to be assumed by the instance group.
sourcepub fn threads_per_core(&self) -> Option<i32>
pub fn threads_per_core(&self) -> Option<i32>
Specifies the value for Threads per core. For instance types that support multithreading, you can specify 1
for disabling multithreading and 2
for enabling multithreading. For instance types that doesn't support multithreading, specify 1
. 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 ClusterInstanceGroupSpecification
impl ClusterInstanceGroupSpecification
sourcepub fn builder() -> ClusterInstanceGroupSpecificationBuilder
pub fn builder() -> ClusterInstanceGroupSpecificationBuilder
Creates a new builder-style object to manufacture ClusterInstanceGroupSpecification
.
Trait Implementations§
source§impl Clone for ClusterInstanceGroupSpecification
impl Clone for ClusterInstanceGroupSpecification
source§fn clone(&self) -> ClusterInstanceGroupSpecification
fn clone(&self) -> ClusterInstanceGroupSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ClusterInstanceGroupSpecification
impl PartialEq for ClusterInstanceGroupSpecification
source§fn eq(&self, other: &ClusterInstanceGroupSpecification) -> bool
fn eq(&self, other: &ClusterInstanceGroupSpecification) -> bool
self
and other
values to be equal, and is used
by ==
.