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
34123 34124 34125 34126 34127 34128 34129 34130 34131 34132 34133 34134 34135 34136 34137 34138 34139 34140 34141 34142 34143 34144 34145 34146 34147 34148 34149 34150 34151 34152 34153 34154 34155 34156 34157 34158 34159 34160 34161 34162 34163 34164 34165 34166 34167 34168 34169 34170 34171 34172 34173 34174 34175 34176 34177 34178 34179 34180 34181 34182 34183 34184 34185 34186 34187 34188 34189 34190 34191 34192 34193 34194 34195 34196 34197 34198 34199 34200 34201 34202 34203 34204 34205 34206 34207 34208 34209 34210 34211 34212 34213 34214 34215 34216 34217 34218 34219 34220 34221 34222 34223 34224 34225 34226 34227 34228 34229 34230 34231 34232 34233 34234 34235 34236 34237 34238 34239 34240 34241 34242 34243 34244 34245 34246 | |