#[non_exhaustive]pub struct ClusterInstanceGroupSpecificationBuilder { /* private fields */ }
Expand description
A builder for ClusterInstanceGroupSpecification
.
Implementations§
source§impl ClusterInstanceGroupSpecificationBuilder
impl ClusterInstanceGroupSpecificationBuilder
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
This field is required.sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_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, input: impl Into<String>) -> Self
pub fn instance_group_name(self, input: impl Into<String>) -> Self
Specifies the name of the instance group.
This field is required.sourcepub fn set_instance_group_name(self, input: Option<String>) -> Self
pub fn set_instance_group_name(self, input: Option<String>) -> Self
Specifies the name of the instance group.
sourcepub fn get_instance_group_name(&self) -> &Option<String>
pub fn get_instance_group_name(&self) -> &Option<String>
Specifies the name of the instance group.
sourcepub fn instance_type(self, input: ClusterInstanceType) -> Self
pub fn instance_type(self, input: ClusterInstanceType) -> Self
Specifies the instance type of the instance group.
This field is required.sourcepub fn set_instance_type(self, input: Option<ClusterInstanceType>) -> Self
pub fn set_instance_type(self, input: Option<ClusterInstanceType>) -> Self
Specifies the instance type of the instance group.
sourcepub fn get_instance_type(&self) -> &Option<ClusterInstanceType>
pub fn get_instance_type(&self) -> &Option<ClusterInstanceType>
Specifies the instance type of the instance group.
sourcepub fn life_cycle_config(self, input: ClusterLifeCycleConfig) -> Self
pub fn life_cycle_config(self, input: ClusterLifeCycleConfig) -> Self
Specifies the LifeCycle configuration for the instance group.
This field is required.sourcepub fn set_life_cycle_config(
self,
input: Option<ClusterLifeCycleConfig>,
) -> Self
pub fn set_life_cycle_config( self, input: Option<ClusterLifeCycleConfig>, ) -> Self
Specifies the LifeCycle configuration for the instance group.
sourcepub fn get_life_cycle_config(&self) -> &Option<ClusterLifeCycleConfig>
pub fn get_life_cycle_config(&self) -> &Option<ClusterLifeCycleConfig>
Specifies the LifeCycle configuration for the instance group.
sourcepub fn execution_role(self, input: impl Into<String>) -> Self
pub fn execution_role(self, input: impl Into<String>) -> Self
Specifies an IAM execution role to be assumed by the instance group.
This field is required.sourcepub fn set_execution_role(self, input: Option<String>) -> Self
pub fn set_execution_role(self, input: Option<String>) -> Self
Specifies an IAM execution role to be assumed by the instance group.
sourcepub fn get_execution_role(&self) -> &Option<String>
pub fn get_execution_role(&self) -> &Option<String>
Specifies an IAM execution role to be assumed by the instance group.
sourcepub fn threads_per_core(self, input: i32) -> Self
pub fn threads_per_core(self, input: i32) -> Self
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 set_threads_per_core(self, input: Option<i32>) -> Self
pub fn set_threads_per_core(self, input: Option<i32>) -> Self
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 get_threads_per_core(&self) -> &Option<i32>
pub fn get_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,
input: ClusterInstanceStorageConfig,
) -> Self
pub fn instance_storage_configs( self, input: ClusterInstanceStorageConfig, ) -> Self
Appends an item to instance_storage_configs
.
To override the contents of this collection use set_instance_storage_configs
.
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance group.
sourcepub fn set_instance_storage_configs(
self,
input: Option<Vec<ClusterInstanceStorageConfig>>,
) -> Self
pub fn set_instance_storage_configs( self, input: Option<Vec<ClusterInstanceStorageConfig>>, ) -> Self
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance group.
sourcepub fn get_instance_storage_configs(
&self,
) -> &Option<Vec<ClusterInstanceStorageConfig>>
pub fn get_instance_storage_configs( &self, ) -> &Option<Vec<ClusterInstanceStorageConfig>>
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance group.
sourcepub fn build(self) -> ClusterInstanceGroupSpecification
pub fn build(self) -> ClusterInstanceGroupSpecification
Consumes the builder and constructs a ClusterInstanceGroupSpecification
.
Trait Implementations§
source§impl Clone for ClusterInstanceGroupSpecificationBuilder
impl Clone for ClusterInstanceGroupSpecificationBuilder
source§fn clone(&self) -> ClusterInstanceGroupSpecificationBuilder
fn clone(&self) -> ClusterInstanceGroupSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ClusterInstanceGroupSpecificationBuilder
impl Default for ClusterInstanceGroupSpecificationBuilder
source§fn default() -> ClusterInstanceGroupSpecificationBuilder
fn default() -> ClusterInstanceGroupSpecificationBuilder
source§impl PartialEq for ClusterInstanceGroupSpecificationBuilder
impl PartialEq for ClusterInstanceGroupSpecificationBuilder
source§fn eq(&self, other: &ClusterInstanceGroupSpecificationBuilder) -> bool
fn eq(&self, other: &ClusterInstanceGroupSpecificationBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ClusterInstanceGroupSpecificationBuilder
Auto Trait Implementations§
impl Freeze for ClusterInstanceGroupSpecificationBuilder
impl RefUnwindSafe for ClusterInstanceGroupSpecificationBuilder
impl Send for ClusterInstanceGroupSpecificationBuilder
impl Sync for ClusterInstanceGroupSpecificationBuilder
impl Unpin for ClusterInstanceGroupSpecificationBuilder
impl UnwindSafe for ClusterInstanceGroupSpecificationBuilder
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