describe_model_card
async
¶
describe_model_card(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
model_card_name: Optional[ModelCardNameOrArn] = None,
model_card_version: Optional[Integer] = None,
included_data: Optional[IncludedData] = None,
) -> DescribeModelCardResponse
Describes the content, creation time, and security configuration of an Amazon SageMaker Model Card.
To retrieve only metadata about a model card without requiring kms:Decrypt permission on the associated customer-managed Amazon Web Services KMS key, set IncludedData to MetadataOnly. The default is AllData, which returns the full model card Content and requires kms:Decrypt permission when a customer-managed key is configured.
Parameters:
-
model_card_name(Optional[ModelCardNameOrArn], default:None) –The name or Amazon Resource Name (ARN) of the model card to describe.
-
model_card_version(Optional[Integer], default:None) –The version of the model card to describe. If a version is not provided, then the latest version of the model card is described.
-
included_data(Optional[IncludedData], default:None) –Specifies the level of model card data to include in the response. Use this parameter to call
DescribeModelCardwithout requiringkms:Decryptpermission on the customer-managed Amazon Web Services KMS key.-
AllData: Returns the full model cardContent. This option requireskms:Decryptpermission on the customer-managed key, if one is associated with the model card. This is the default. -
MetadataOnly: Returns the model card with sanitizedContentthat includes only a small set of unencrypted metadata fields. This option does not requirekms:Decryptpermission. For the list of fields preserved in the response, seeContent.
If you don't specify a value, SageMaker returns
AllData. -
Raises:
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 | |