Struct aws_sdk_sagemaker::operation::create_model_card::builders::CreateModelCardFluentBuilder
source · pub struct CreateModelCardFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateModelCard
.
Creates an Amazon SageMaker Model Card.
For information about how to use model cards, see Amazon SageMaker Model Card.
Implementations§
source§impl CreateModelCardFluentBuilder
impl CreateModelCardFluentBuilder
sourcepub fn as_input(&self) -> &CreateModelCardInputBuilder
pub fn as_input(&self) -> &CreateModelCardInputBuilder
Access the CreateModelCard as a reference.
sourcepub async fn send(
self
) -> Result<CreateModelCardOutput, SdkError<CreateModelCardError, HttpResponse>>
pub async fn send( self ) -> Result<CreateModelCardOutput, SdkError<CreateModelCardError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<CreateModelCardOutput, CreateModelCardError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateModelCardOutput, CreateModelCardError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn model_card_name(self, input: impl Into<String>) -> Self
pub fn model_card_name(self, input: impl Into<String>) -> Self
The unique name of the model card.
sourcepub fn set_model_card_name(self, input: Option<String>) -> Self
pub fn set_model_card_name(self, input: Option<String>) -> Self
The unique name of the model card.
sourcepub fn get_model_card_name(&self) -> &Option<String>
pub fn get_model_card_name(&self) -> &Option<String>
The unique name of the model card.
sourcepub fn security_config(self, input: ModelCardSecurityConfig) -> Self
pub fn security_config(self, input: ModelCardSecurityConfig) -> Self
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated workloads with highly sensitive data.
sourcepub fn set_security_config(self, input: Option<ModelCardSecurityConfig>) -> Self
pub fn set_security_config(self, input: Option<ModelCardSecurityConfig>) -> Self
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated workloads with highly sensitive data.
sourcepub fn get_security_config(&self) -> &Option<ModelCardSecurityConfig>
pub fn get_security_config(&self) -> &Option<ModelCardSecurityConfig>
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated workloads with highly sensitive data.
sourcepub fn content(self, input: impl Into<String>) -> Self
pub fn content(self, input: impl Into<String>) -> Self
The content of the model card. Content must be in model card JSON schema and provided as a string.
sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
The content of the model card. Content must be in model card JSON schema and provided as a string.
sourcepub fn get_content(&self) -> &Option<String>
pub fn get_content(&self) -> &Option<String>
The content of the model card. Content must be in model card JSON schema and provided as a string.
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.
sourcepub fn get_model_card_status(&self) -> &Option<ModelCardStatus>
pub fn get_model_card_status(&self) -> &Option<ModelCardStatus>
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.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
Key-value pairs used to manage metadata for model cards.
Key-value pairs used to manage metadata for model cards.
Key-value pairs used to manage metadata for model cards.
Trait Implementations§
source§impl Clone for CreateModelCardFluentBuilder
impl Clone for CreateModelCardFluentBuilder
source§fn clone(&self) -> CreateModelCardFluentBuilder
fn clone(&self) -> CreateModelCardFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more