create_model_card
(**kwargs)¶Creates an Amazon SageMaker Model Card.
For information about how to use model cards, see Amazon SageMaker Model Card.
See also: AWS API Documentation
Request Syntax
response = client.create_model_card(
ModelCardName='string',
SecurityConfig={
'KmsKeyId': 'string'
},
Content='string',
ModelCardStatus='Draft'|'PendingReview'|'Approved'|'Archived',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The unique name of the model card.
An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card content for regulated workloads with highly sensitive data.
A Key Management Service key ID to use for encrypting a model card.
[REQUIRED]
The content of the model card. Content must be in model card JSON schema and provided as a string.
[REQUIRED]
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.Key-value pairs used to manage metadata for model cards.
A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.
You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags.
For more information on adding metadata to your Amazon Web Services resources with tagging, see Tagging Amazon Web Services resources. For advice on best practices for managing Amazon Web Services resources with tagging, see Tagging Best Practices: Implement an Effective Amazon Web Services Resource Tagging Strategy.
The tag key. Tag keys must be unique per resource.
The tag value.
dict
Response Syntax
{
'ModelCardArn': 'string'
}
Response Structure
(dict) --
ModelCardArn (string) --
The Amazon Resource Name (ARN) of the successfully created model card.
Exceptions
SageMaker.Client.exceptions.ResourceLimitExceeded
SageMaker.Client.exceptions.ConflictException