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
34567 34568 34569 34570 34571 34572 34573 34574 34575 34576 34577 34578 34579 34580 34581 34582 34583 34584 34585 34586 34587 34588 34589 34590 34591 34592 34593 34594 34595 34596 34597 34598 34599 34600 34601 34602 34603 34604 34605 34606 34607 34608 34609 34610 34611 34612 34613 34614 34615 34616 34617 34618 34619 34620 34621 34622 34623 34624 34625 34626 34627 34628 34629 34630 34631 34632 34633 34634 34635 34636 34637 34638 34639 34640 34641 34642 34643 34644 34645 34646 34647 34648 34649 34650 34651 34652 34653 34654 34655 34656 34657 34658 34659 34660 34661 34662 34663 34664 34665 34666 34667 34668 34669 34670 34671 34672 34673 34674 34675 34676 34677 34678 34679 34680 34681 34682 34683 34684 34685 34686 34687 34688 34689 34690 34691 | |