create_cluster_extension
async
¶
create_cluster_extension(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
cluster_arn: Optional[ClusterArn] = None,
extension_name: Optional[ExtensionName] = None,
extension_version: Optional[ExtensionVersion] = None,
configuration_values: Optional[ExtensionConfigurationValues] = None,
tags: Optional[TagList] = None,
client_token: Optional[String] = None,
) -> CreateClusterExtensionResponse
Installs an extension, such as sagemaker-observability, on a SageMaker HyperPod cluster orchestrated by Slurm. The cluster must have NodeProvisioningMode set to Continuous and can have only one extension with a given name. To track the installation, call DescribeClusterExtension.
Parameters:
-
cluster_arn(Optional[ClusterArn], default:None) –The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster on which to install the extension. The cluster must use Slurm as the orchestrator and have
NodeProvisioningModeset toContinuous. -
extension_name(Optional[ExtensionName], default:None) –The name of the extension to install, for example
sagemaker-observability. -
extension_version(Optional[ExtensionVersion], default:None) –The version of the extension to install, in
MAJOR.MINOR.PATCHformat, for example1.0.0. If you don't specify a version, SageMaker HyperPod installs the latest available version of the extension. -
configuration_values(Optional[ExtensionConfigurationValues], default:None) –The configuration settings for the extension, as a JSON object serialized as a string, for example
{"metricsProvider":{"nodeMetrics":{"level":"ADVANCED"}}}. Each extension version defines which settings it accepts. SageMaker HyperPod validates the settings against that definition, and rejects the request if a setting is unknown or has an invalid value. Settings that you omit use the extension's default values. If you omitConfigurationValues, all settings use their default values. -
tags(Optional[TagList], default:None) –Custom tags for managing the extension as an Amazon Web Services resource. You can add tags to your extension in the same way you add them in other Amazon Web Services services that support tagging. To learn more about tagging Amazon Web Services resources in general, see Tagging Amazon Web Services Resources User Guide. To use this operation to add tags when you create an extension, you must have the
sagemaker:AddTagspermission. -
client_token(Optional[String], default:None) –A unique, case-sensitive identifier that you provide so that the operation completes no more than one time. This token is valid for 8 hours. If you retry the request with the same client token and the same parameters within this time, the API returns the Amazon Resource Name (ARN) of the extension that the original request created, without creating a duplicate. If you use the same client token with different parameters, the request fails.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
ResourceInUse–Resource being accessed is in use.
-
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
3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 | |