#[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>,
pub instance_storage_configs: Option<Vec<ClusterInstanceStorageConfig>>,
}
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.
instance_storage_configs: Option<Vec<ClusterInstanceStorageConfig>>
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance group.
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.
sourcepub fn instance_storage_configs(&self) -> &[ClusterInstanceStorageConfig]
pub fn instance_storage_configs(&self) -> &[ClusterInstanceStorageConfig]
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster 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 .instance_storage_configs.is_none()
.
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 ==
.impl StructuralPartialEq for ClusterInstanceGroupSpecification
Auto Trait Implementations§
impl Freeze for ClusterInstanceGroupSpecification
impl RefUnwindSafe for ClusterInstanceGroupSpecification
impl Send for ClusterInstanceGroupSpecification
impl Sync for ClusterInstanceGroupSpecification
impl Unpin for ClusterInstanceGroupSpecification
impl UnwindSafe for ClusterInstanceGroupSpecification
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