update_model_package
¶
update_model_package(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
30831 30832 30833 30834 30835 30836 30837 30838 30839 30840 30841 30842 30843 30844 30845 30846 30847 30848 30849 30850 30851 30852 30853 30854 30855 30856 30857 30858 30859 30860 30861 30862 30863 30864 30865 30866 30867 30868 30869 30870 30871 30872 30873 30874 30875 30876 30877 30878 30879 30880 30881 30882 30883 30884 30885 30886 30887 30888 30889 30890 30891 30892 30893 30894 30895 30896 30897 30898 30899 30900 30901 30902 30903 30904 30905 30906 30907 30908 30909 30910 30911 30912 30913 30914 30915 30916 30917 30918 30919 30920 30921 30922 30923 30924 30925 30926 30927 30928 30929 30930 30931 30932 30933 30934 30935 30936 30937 30938 30939 30940 30941 30942 30943 30944 30945 30946 30947 30948 30949 30950 30951 30952 30953 30954 | |