update_cluster_extension
async
¶
update_cluster_extension(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
32584 32585 32586 32587 32588 32589 32590 32591 32592 32593 32594 32595 32596 32597 32598 32599 32600 32601 32602 32603 32604 32605 32606 32607 32608 32609 32610 32611 32612 32613 32614 32615 32616 32617 32618 32619 32620 32621 32622 32623 32624 32625 32626 32627 32628 32629 32630 32631 32632 32633 32634 32635 32636 32637 32638 32639 32640 32641 32642 32643 32644 32645 32646 32647 32648 32649 32650 32651 32652 | |