Skip to content

ModelCard

Source code in docs_src/capo_sagemaker/types/model_card.py
class ModelCard(TypedDict, closed=True):
    model_card_arn: NotRequired["capo_sagemaker.types.model_card_arn.ModelCardArn"]
    """<p>The Amazon Resource Name (ARN) of the model card.</p>"""
    model_card_name: NotRequired["capo_sagemaker.types.entity_name.EntityName"]
    """<p>The unique name of the model card.</p>"""
    model_card_version: NotRequired["capo_sagemaker.types.integer.Integer"]
    """<p>The version of the model card.</p>"""
    content: NotRequired["capo_sagemaker.types.model_card_content.ModelCardContent"]
    """<p>The content of the model card. Content uses the <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>"""
    model_card_status: NotRequired[
        "capo_sagemaker.types.model_card_status.ModelCardStatus"
    ]
    """<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: NotRequired[
        "capo_sagemaker.types.model_card_security_config.ModelCardSecurityConfig"
    ]
    """<p>The security configuration used to protect model card data.</p>"""
    creation_time: NotRequired["capo_sagemaker.types.timestamp.Timestamp"]
    """<p>The date and time that the model card was created.</p>"""
    created_by: NotRequired["capo_sagemaker.types.user_context.UserContext"]
    last_modified_time: NotRequired["capo_sagemaker.types.timestamp.Timestamp"]
    """<p>The date and time that the model card was last modified.</p>"""
    last_modified_by: NotRequired["capo_sagemaker.types.user_context.UserContext"]
    tags: NotRequired["capo_sagemaker.types.tag_list.TagList"]
    """<p>Key-value pairs used to manage metadata for the model card.</p>"""
    model_id: NotRequired["capo_sagemaker.types.string.String"]
    """<p>The unique name (ID) of the model.</p>"""
    risk_rating: NotRequired["capo_sagemaker.types.string.String"]
    """<p>The risk rating of the model. Different organizations might have different criteria for model card risk ratings. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards-risk-rating.html">Risk ratings</a>.</p>"""
    model_package_group_name: NotRequired["capo_sagemaker.types.string.String"]
    """<p>The model package group that contains the model package. Only relevant for model cards created for model packages in the Amazon SageMaker Model Registry. </p>"""

content instance-attribute

content: NotRequired[ModelCardContent]

The content of the model card. Content uses the model card JSON schema and provided as a string.

created_by instance-attribute

created_by: NotRequired[UserContext]

creation_time instance-attribute

creation_time: NotRequired[Timestamp]

The date and time that the model card was created.

last_modified_by instance-attribute

last_modified_by: NotRequired[UserContext]

last_modified_time instance-attribute

last_modified_time: NotRequired[Timestamp]

The date and time that the model card was last modified.

model_card_arn instance-attribute

model_card_arn: NotRequired[ModelCardArn]

The Amazon Resource Name (ARN) of the model card.

model_card_name instance-attribute

model_card_name: NotRequired[EntityName]

The unique name of the model card.

model_card_status instance-attribute

model_card_status: NotRequired[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.

model_card_version instance-attribute

model_card_version: NotRequired[Integer]

The version of the model card.

model_id instance-attribute

model_id: NotRequired[String]

The unique name (ID) of the model.

model_package_group_name instance-attribute

model_package_group_name: NotRequired[String]

The model package group that contains the model package. Only relevant for model cards created for model packages in the Amazon SageMaker Model Registry.

risk_rating instance-attribute

risk_rating: NotRequired[String]

The risk rating of the model. Different organizations might have different criteria for model card risk ratings. For more information, see Risk ratings.

security_config instance-attribute

security_config: NotRequired[ModelCardSecurityConfig]

The security configuration used to protect model card data.

tags instance-attribute

tags: NotRequired[TagList]

Key-value pairs used to manage metadata for the model card.