update_cluster_extension
¶
update_cluster_extension(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
cluster_arn: Optional[ClusterArn] = None,
extension_arn: Optional[ExtensionArn] = None,
extension_version: Optional[ExtensionVersion] = None,
configuration_values: Optional[ExtensionConfigurationValues] = None,
client_token: Optional[String] = None,
) -> UpdateClusterExtensionResponse
Updates the configuration or the version of an extension installed on a SageMaker HyperPod cluster. SageMaker HyperPod applies the change to every node in the cluster. You can change the configuration, the version, or both in one request.
-
Configuration: You can change settings by sending
ConfigurationValues. Settings that you include are changed. Settings that you omit keep their current values. A setting with the valuenullis removed and returns to its default value. -
Version: You can update to a later version. You can't update to an earlier version. To use an earlier version, delete the extension and create it again with that version.
To retry the operation on nodes where it failed, fix the cause that DescribeClusterExtension reports in Health, and then send an UpdateClusterExtension request that doesn't change the version or the configuration.
You can't update an extension while it is being deleted.
Parameters:
-
cluster_arn(Optional[ClusterArn], default:None) –The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster on which the extension is installed.
-
extension_arn(Optional[ExtensionArn], default:None) –The Amazon Resource Name (ARN) of the extension to update.
-
extension_version(Optional[ExtensionVersion], default:None) –The version to update the extension to, in
MAJOR.MINOR.PATCHformat. The version must be later than the extension's current version. If you omit this parameter, the extension keeps its current version. -
configuration_values(Optional[ExtensionConfigurationValues], default:None) –The configuration changes to apply, as a JSON object serialized as a string. Settings that you include are changed, settings that you omit are unchanged, and a setting with the value
nullreturns to its default value. The resulting configuration must be valid for the target extension version. If you omitConfigurationValues, the configuration is unchanged. -
client_token(Optional[String], default:None) –A unique, case-sensitive identifier that you provide so that the request is idempotent. If you send the same update more than once, SageMaker HyperPod applies it once and doesn't return an error.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
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/sage_maker.py
32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 | |