Struct aws_sdk_sagemaker::client::fluent_builders::UpdateModelCard
source · pub struct UpdateModelCard { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateModelCard
.
Update an Amazon SageMaker Model Card.
You cannot update both model card content and model card status in a single call.
Implementations§
source§impl UpdateModelCard
impl UpdateModelCard
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateModelCard, AwsResponseRetryClassifier>, SdkError<UpdateModelCardError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateModelCard, AwsResponseRetryClassifier>, SdkError<UpdateModelCardError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateModelCardOutput, SdkError<UpdateModelCardError>>
pub async fn send(
self
) -> Result<UpdateModelCardOutput, SdkError<UpdateModelCardError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn model_card_name(self, input: impl Into<String>) -> Self
pub fn model_card_name(self, input: impl Into<String>) -> Self
The name of the model card to update.
sourcepub fn set_model_card_name(self, input: Option<String>) -> Self
pub fn set_model_card_name(self, input: Option<String>) -> Self
The name of the model card to update.
sourcepub fn content(self, input: impl Into<String>) -> Self
pub fn content(self, input: impl Into<String>) -> Self
The updated model card content. Content must be in model card JSON schema and provided as a string.
When updating model card content, be sure to include the full content and not just updated content.
sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
The updated model card content. Content must be in model card JSON schema and provided as a string.
When updating model card content, be sure to include the full content and not just updated content.
sourcepub fn model_card_status(self, input: ModelCardStatus) -> Self
pub fn model_card_status(self, input: ModelCardStatus) -> Self
The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
-
Draft
: The model card is a work in progress. -
PendingReview
: The model card is pending review. -
Approved
: The model card is approved. -
Archived
: The model card is archived. No more updates should be made to the model card, but it can still be exported.
sourcepub fn set_model_card_status(self, input: Option<ModelCardStatus>) -> Self
pub fn set_model_card_status(self, input: Option<ModelCardStatus>) -> Self
The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
-
Draft
: The model card is a work in progress. -
PendingReview
: The model card is pending review. -
Approved
: The model card is approved. -
Archived
: The model card is archived. No more updates should be made to the model card, but it can still be exported.
Trait Implementations§
source§impl Clone for UpdateModelCard
impl Clone for UpdateModelCard
source§fn clone(&self) -> UpdateModelCard
fn clone(&self) -> UpdateModelCard
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more