1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DescribeModelCard`](crate::operation::describe_model_card::builders::DescribeModelCardFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`model_card_name(impl Into<String>)`](crate::operation::describe_model_card::builders::DescribeModelCardFluentBuilder::model_card_name) / [`set_model_card_name(Option<String>)`](crate::operation::describe_model_card::builders::DescribeModelCardFluentBuilder::set_model_card_name): <p>The name of the model card to describe.</p>
/// - [`model_card_version(i32)`](crate::operation::describe_model_card::builders::DescribeModelCardFluentBuilder::model_card_version) / [`set_model_card_version(i32)`](crate::operation::describe_model_card::builders::DescribeModelCardFluentBuilder::set_model_card_version): <p>The version of the model card to describe. If a version is not provided, then the latest version of the model card is described.</p>
/// - On success, responds with [`DescribeModelCardOutput`](crate::operation::describe_model_card::DescribeModelCardOutput) with field(s):
/// - [`model_card_arn(Option<String>)`](crate::operation::describe_model_card::DescribeModelCardOutput::model_card_arn): <p>The Amazon Resource Name (ARN) of the model card.</p>
/// - [`model_card_name(Option<String>)`](crate::operation::describe_model_card::DescribeModelCardOutput::model_card_name): <p>The name of the model card.</p>
/// - [`model_card_version(i32)`](crate::operation::describe_model_card::DescribeModelCardOutput::model_card_version): <p>The version of the model card.</p>
/// - [`content(Option<String>)`](crate::operation::describe_model_card::DescribeModelCardOutput::content): <p>The content of the model card.</p>
/// - [`model_card_status(Option<ModelCardStatus>)`](crate::operation::describe_model_card::DescribeModelCardOutput::model_card_status): <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>
/// - [`security_config(Option<ModelCardSecurityConfig>)`](crate::operation::describe_model_card::DescribeModelCardOutput::security_config): <p>The security configuration used to protect model card content.</p>
/// - [`creation_time(Option<DateTime>)`](crate::operation::describe_model_card::DescribeModelCardOutput::creation_time): <p>The date and time the model card was created.</p>
/// - [`created_by(Option<UserContext>)`](crate::operation::describe_model_card::DescribeModelCardOutput::created_by): <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
/// - [`last_modified_time(Option<DateTime>)`](crate::operation::describe_model_card::DescribeModelCardOutput::last_modified_time): <p>The date and time the model card was last modified.</p>
/// - [`last_modified_by(Option<UserContext>)`](crate::operation::describe_model_card::DescribeModelCardOutput::last_modified_by): <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
/// - [`model_card_processing_status(Option<ModelCardProcessingStatus>)`](crate::operation::describe_model_card::DescribeModelCardOutput::model_card_processing_status): <p>The processing status of model card deletion. The <code>ModelCardProcessingStatus</code> updates throughout the different deletion steps.</p> <ul> <li> <p> <code>DeletePending</code>: Model card deletion request received.</p> </li> <li> <p> <code>DeleteInProgress</code>: Model card deletion is in progress.</p> </li> <li> <p> <code>ContentDeleted</code>: Deleted model card content.</p> </li> <li> <p> <code>ExportJobsDeleted</code>: Deleted all export jobs associated with the model card.</p> </li> <li> <p> <code>DeleteCompleted</code>: Successfully deleted the model card.</p> </li> <li> <p> <code>DeleteFailed</code>: The model card failed to delete.</p> </li> </ul>
/// - On failure, responds with [`SdkError<DescribeModelCardError>`](crate::operation::describe_model_card::DescribeModelCardError)
pub fn describe_model_card(
&self,
) -> crate::operation::describe_model_card::builders::DescribeModelCardFluentBuilder {
crate::operation::describe_model_card::builders::DescribeModelCardFluentBuilder::new(
self.handle.clone(),
)
}
}