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
15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 | |