update_model_package
async
¶
update_model_package(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
model_package_arn: Optional[ModelPackageArn] = None,
model_approval_status: Optional[ModelApprovalStatus] = None,
model_package_registration_type: Optional[ModelPackageRegistrationType] = None,
approval_description: Optional[ApprovalDescription] = None,
customer_metadata_properties: Optional[CustomerMetadataMap] = None,
customer_metadata_properties_to_remove: Optional[CustomerMetadataKeyList] = None,
additional_inference_specifications_to_add: Optional[
AdditionalInferenceSpecifications
] = None,
inference_specification: Optional[InferenceSpecification] = None,
source_uri: Optional[ModelPackageSourceUri] = None,
model_card: Optional[ModelPackageModelCard] = None,
model_life_cycle: Optional[ModelLifeCycle] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateModelPackageOutput
Updates a versioned model.
Parameters:
-
model_package_arn(Optional[ModelPackageArn], default:None) –The Amazon Resource Name (ARN) of the model package.
-
model_approval_status(Optional[ModelApprovalStatus], default:None) –The approval status of the model.
-
model_package_registration_type(Optional[ModelPackageRegistrationType], default:None) –The package registration type of the model package input.
-
approval_description(Optional[ApprovalDescription], default:None) –A description for the approval status of the model.
-
customer_metadata_properties(Optional[CustomerMetadataMap], default:None) –The metadata properties associated with the model package versions.
-
customer_metadata_properties_to_remove(Optional[CustomerMetadataKeyList], default:None) –The metadata properties associated with the model package versions to remove.
-
additional_inference_specifications_to_add(Optional[AdditionalInferenceSpecifications], default:None) –An array of additional Inference Specification objects to be added to the existing array additional Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
-
inference_specification(Optional[InferenceSpecification], default:None) –Specifies details about inference jobs that you can run with models based on this model package, including the following information:
-
The Amazon ECR paths of containers that contain the inference code and model artifacts.
-
The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
-
The input and output content formats that the model package supports for inference.
-
-
source_uri(Optional[ModelPackageSourceUri], default:None) –The URI of the source for the model package.
-
model_card(Optional[ModelPackageModelCard], default:None) –The model card associated with the model package. Since
ModelPackageModelCardis tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema ofModelCard. TheModelPackageModelCardschema does not includemodel_package_details, andmodel_overviewis composed of themodel_creatorandmodel_artifactproperties. For more information about the model package model card schema, see Model package model card schema. For more information about the model card associated with the model package, see View the Details of a Model Version. -
model_life_cycle(Optional[ModelLifeCycle], default:None) –A structure describing the current state of the model in its life cycle.
-
client_token(Optional[ClientToken], default:None) –A unique token that guarantees that the call to this API is idempotent.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
31233 31234 31235 31236 31237 31238 31239 31240 31241 31242 31243 31244 31245 31246 31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257 31258 31259 31260 31261 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 31275 31276 31277 31278 31279 31280 31281 31282 31283 31284 31285 31286 31287 31288 31289 31290 31291 31292 31293 31294 31295 31296 31297 31298 31299 31300 31301 31302 31303 31304 31305 31306 31307 31308 31309 31310 31311 31312 31313 31314 31315 31316 31317 31318 31319 31320 31321 31322 31323 31324 31325 31326 31327 31328 31329 31330 31331 31332 31333 31334 31335 31336 31337 31338 31339 31340 31341 31342 31343 31344 31345 31346 31347 31348 31349 31350 31351 31352 31353 31354 31355 31356 31357 | |