Skip to content

describe_cluster_extension

describe_cluster_extension(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    cluster_arn: Optional[ClusterArn] = None,
    extension_arn: Optional[ExtensionArn] = None,
) -> DescribeClusterExtensionResponse

Retrieves information about an extension installed on a SageMaker HyperPod cluster. The information includes the extension's version, configuration, and status, and a summary of how many cluster nodes are running the current version and configuration of the extension. If the extension has problems on some nodes, the response also lists the problems and how many nodes each one affects.

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 describe. CreateClusterExtension returns this ARN, and ListClusterExtensions lists it. If you delete an extension and create it again, the new extension has a new ARN.

Raises:

Source code in docs_src/capo_sagemaker/_services/sage_maker.py
def describe_cluster_extension(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    cluster_arn: Optional["capo_sagemaker.types.cluster_arn.ClusterArn"] = None,
    extension_arn: Optional[
        "capo_sagemaker.types.extension_arn.ExtensionArn"
    ] = None,
) -> "capo_sagemaker.types.describe_cluster_extension_response.DescribeClusterExtensionResponse":
    """<p>Retrieves information about an extension installed on a SageMaker HyperPod cluster. The information includes the extension's version, configuration, and status, and a summary of how many cluster nodes are running the current version and configuration of the extension. If the extension has problems on some nodes, the response also lists the problems and how many nodes each one affects.</p>

    Args:
        cluster_arn: <p>The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster on which the extension is installed.</p>
        extension_arn: <p>The Amazon Resource Name (ARN) of the extension to describe. <code>CreateClusterExtension</code> returns this ARN, and <code>ListClusterExtensions</code> lists it. If you delete an extension and create it again, the new extension has a new ARN.</p>

    Raises:
        capo_sagemaker.errors.resource_not_found.ResourceNotFound: <p>Resource being access is not found.</p>
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_sagemaker.types.describe_cluster_extension_request.DescribeClusterExtensionRequest]",
    ) -> OperationResponse[
        "capo_sagemaker.types.describe_cluster_extension_response.DescribeClusterExtensionResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.describe_cluster_extension

        output, http_response = (
            capo_sagemaker._operations.sage_maker.describe_cluster_extension.describe_cluster_extension(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeClusterExtension")
    )
    input_: capo_sagemaker.types.describe_cluster_extension_request.DescribeClusterExtensionRequest = {}
    if cluster_arn is not None:
        input_["cluster_arn"] = cluster_arn
    if extension_arn is not None:
        input_["extension_arn"] = extension_arn

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output