#[non_exhaustive]pub struct ClusterLifeCycleConfigBuilder { /* private fields */ }
Expand description
A builder for ClusterLifeCycleConfig
.
Implementations§
source§impl ClusterLifeCycleConfigBuilder
impl ClusterLifeCycleConfigBuilder
sourcepub fn source_s3_uri(self, input: impl Into<String>) -> Self
pub fn source_s3_uri(self, input: impl Into<String>) -> Self
An Amazon S3 bucket path where your lifecycle scripts are stored.
Make sure that the S3 bucket path starts with s3://sagemaker-
. The IAM role for SageMaker HyperPod has the managed AmazonSageMakerClusterInstanceRolePolicy
attached, which allows access to S3 buckets with the specific prefix sagemaker-
.
sourcepub fn set_source_s3_uri(self, input: Option<String>) -> Self
pub fn set_source_s3_uri(self, input: Option<String>) -> Self
An Amazon S3 bucket path where your lifecycle scripts are stored.
Make sure that the S3 bucket path starts with s3://sagemaker-
. The IAM role for SageMaker HyperPod has the managed AmazonSageMakerClusterInstanceRolePolicy
attached, which allows access to S3 buckets with the specific prefix sagemaker-
.
sourcepub fn get_source_s3_uri(&self) -> &Option<String>
pub fn get_source_s3_uri(&self) -> &Option<String>
An Amazon S3 bucket path where your lifecycle scripts are stored.
Make sure that the S3 bucket path starts with s3://sagemaker-
. The IAM role for SageMaker HyperPod has the managed AmazonSageMakerClusterInstanceRolePolicy
attached, which allows access to S3 buckets with the specific prefix sagemaker-
.
sourcepub fn on_create(self, input: impl Into<String>) -> Self
pub fn on_create(self, input: impl Into<String>) -> Self
The file name of the entrypoint script of lifecycle scripts under SourceS3Uri
. This entrypoint script runs during cluster creation.
sourcepub fn set_on_create(self, input: Option<String>) -> Self
pub fn set_on_create(self, input: Option<String>) -> Self
The file name of the entrypoint script of lifecycle scripts under SourceS3Uri
. This entrypoint script runs during cluster creation.
sourcepub fn get_on_create(&self) -> &Option<String>
pub fn get_on_create(&self) -> &Option<String>
The file name of the entrypoint script of lifecycle scripts under SourceS3Uri
. This entrypoint script runs during cluster creation.
sourcepub fn build(self) -> ClusterLifeCycleConfig
pub fn build(self) -> ClusterLifeCycleConfig
Consumes the builder and constructs a ClusterLifeCycleConfig
.
Trait Implementations§
source§impl Clone for ClusterLifeCycleConfigBuilder
impl Clone for ClusterLifeCycleConfigBuilder
source§fn clone(&self) -> ClusterLifeCycleConfigBuilder
fn clone(&self) -> ClusterLifeCycleConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ClusterLifeCycleConfigBuilder
impl Default for ClusterLifeCycleConfigBuilder
source§fn default() -> ClusterLifeCycleConfigBuilder
fn default() -> ClusterLifeCycleConfigBuilder
source§impl PartialEq for ClusterLifeCycleConfigBuilder
impl PartialEq for ClusterLifeCycleConfigBuilder
source§fn eq(&self, other: &ClusterLifeCycleConfigBuilder) -> bool
fn eq(&self, other: &ClusterLifeCycleConfigBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ClusterLifeCycleConfigBuilder
Auto Trait Implementations§
impl Freeze for ClusterLifeCycleConfigBuilder
impl RefUnwindSafe for ClusterLifeCycleConfigBuilder
impl Send for ClusterLifeCycleConfigBuilder
impl Sync for ClusterLifeCycleConfigBuilder
impl Unpin for ClusterLifeCycleConfigBuilder
impl UnwindSafe for ClusterLifeCycleConfigBuilder
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