Skip to content

describe_workteam async

describe_workteam(
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
async def describe_workteam(
    self,
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = 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.
    """

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

        (
            output,
            http_response,
        ) = await capo_sagemaker._operations.sage_maker.describe_workteam.async_describe_workteam(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output