describe_model_package
¶
describe_model_package(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
model_package_name: Optional[VersionedArnOrName] = None,
included_data: Optional[IncludedData] = None,
) -> DescribeModelPackageOutput
Returns a description of the specified model package, which is used to create SageMaker models or list them on Amazon Web Services Marketplace.
If you provided a KMS Key ID when you created your model package, you will see the KMS Decrypt API call in your CloudTrail logs when you use this API. To call this operation without requiring kms:Decrypt permission on the customer-managed key, set IncludedData to MetadataOnly; the response is returned with the embedded ModelCard.ModelCardContent field sanitized.
To create models in SageMaker, buyers can subscribe to model packages listed on Amazon Web Services Marketplace.
Parameters:
-
model_package_name(Optional[VersionedArnOrName], default:None) –The name or Amazon Resource Name (ARN) of the model package to describe.
When you specify a name, the name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).
-
included_data(Optional[IncludedData], default:None) –Specifies the level of model package data to include in the response. Use this parameter to call
DescribeModelPackageon a model package that has an associated model card without requiringkms:Decryptpermission on the customer-managed KMS key associated with the embedded model card.-
AllData: Returns the full model package response, including the unredactedModelCard.ModelCardContent. This option requireskms:Decryptpermission on the customer-managed key, if one is associated with the embedded model card. This is the default. -
MetadataOnly: Returns the full model package response, but with the embeddedModelCard.ModelCardContentsanitized to include only a small set of unencrypted metadata fields. This option does not requirekms:Decryptpermission. All other top-level response fields, includingInferenceSpecification,ModelMetrics,DriftCheckBaselines, andSecurityConfig, are returned unchanged. For the list of fields preserved withinModelCardContent, see ModelCard.
If you don't specify a value, SageMaker returns
AllData. -
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 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 | |