Skip to content

describe_workteam

describe_workteam(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    workteam_name: Optional[WorkteamName] = None,
) -> DescribeWorkteamResponse

Gets information about a specific work team. You can see information such as the creation date, the last updated date, membership information, and the work team's Amazon Resource Name (ARN).

Parameters:

  • workteam_name (Optional[WorkteamName], default: None ) –

    The name of the work team to return a description of.

Raises:

Source code in docs_src/capo_sagemaker/_services/sage_maker.py
def describe_workteam(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    workteam_name: Optional[
        "capo_sagemaker.types.workteam_name.WorkteamName"
    ] = None,
) -> "capo_sagemaker.types.describe_workteam_response.DescribeWorkteamResponse":
    """<p>Gets information about a specific work team. You can see information such as the creation date, the last updated date, membership information, and the work team's Amazon Resource Name (ARN).</p>

    Args:
        workteam_name: <p>The name of the work team to return a description of.</p>

    Raises:
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_sagemaker.types.describe_workteam_request.DescribeWorkteamRequest]",
    ) -> OperationResponse[
        "capo_sagemaker.types.describe_workteam_response.DescribeWorkteamResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.describe_workteam

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeWorkteam")
    )
    input_: capo_sagemaker.types.describe_workteam_request.DescribeWorkteamRequest = {}
    if workteam_name is not None:
        input_["workteam_name"] = workteam_name

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