aws_sdk_sagemaker/client/
update_model_card.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateModelCard`](crate::operation::update_model_card::builders::UpdateModelCardFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`model_card_name(impl Into<String>)`](crate::operation::update_model_card::builders::UpdateModelCardFluentBuilder::model_card_name) / [`set_model_card_name(Option<String>)`](crate::operation::update_model_card::builders::UpdateModelCardFluentBuilder::set_model_card_name):<br>required: **true**<br><p>The name or Amazon Resource Name (ARN) of the model card to update.</p><br>
7    ///   - [`content(impl Into<String>)`](crate::operation::update_model_card::builders::UpdateModelCardFluentBuilder::content) / [`set_content(Option<String>)`](crate::operation::update_model_card::builders::UpdateModelCardFluentBuilder::set_content):<br>required: **false**<br><p>The updated model card content. Content must be in <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema">model card JSON schema</a> and provided as a string.</p> <p>When updating model card content, be sure to include the full content and not just updated content.</p><br>
8    ///   - [`model_card_status(ModelCardStatus)`](crate::operation::update_model_card::builders::UpdateModelCardFluentBuilder::model_card_status) / [`set_model_card_status(Option<ModelCardStatus>)`](crate::operation::update_model_card::builders::UpdateModelCardFluentBuilder::set_model_card_status):<br>required: **false**<br><p>The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.</p> <ul>  <li>   <p><code>Draft</code>: The model card is a work in progress.</p></li>  <li>   <p><code>PendingReview</code>: The model card is pending review.</p></li>  <li>   <p><code>Approved</code>: The model card is approved.</p></li>  <li>   <p><code>Archived</code>: The model card is archived. No more updates should be made to the model card, but it can still be exported.</p></li> </ul><br>
9    /// - On success, responds with [`UpdateModelCardOutput`](crate::operation::update_model_card::UpdateModelCardOutput) with field(s):
10    ///   - [`model_card_arn(Option<String>)`](crate::operation::update_model_card::UpdateModelCardOutput::model_card_arn): <p>The Amazon Resource Name (ARN) of the updated model card.</p>
11    /// - On failure, responds with [`SdkError<UpdateModelCardError>`](crate::operation::update_model_card::UpdateModelCardError)
12    pub fn update_model_card(&self) -> crate::operation::update_model_card::builders::UpdateModelCardFluentBuilder {
13        crate::operation::update_model_card::builders::UpdateModelCardFluentBuilder::new(self.handle.clone())
14    }
15}