Skip to content

list_subscribed_workteams

list_subscribed_workteams(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    name_contains: Optional[WorkteamName] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListSubscribedWorkteamsResponse

Gets a list of the work teams that you are subscribed to in the Amazon Web Services Marketplace. The list may be empty if no work team satisfies the filter specified in the NameContains parameter.

Parameters:

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

    A string in the work team name. This filter returns only work teams whose name contains the specified string.

  • next_token (Optional[NextToken], default: None ) –

    If the result of the previous ListSubscribedWorkteams request was truncated, the response includes a NextToken. To retrieve the next set of labeling jobs, use the token in the next request.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of work teams to return in each page of the response.

Raises:

Source code in docs_src/capo_sagemaker/_services/sage_maker.py
def list_subscribed_workteams(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    name_contains: Optional[
        "capo_sagemaker.types.workteam_name.WorkteamName"
    ] = None,
    next_token: Optional["capo_sagemaker.types.next_token.NextToken"] = None,
    max_results: Optional["capo_sagemaker.types.max_results.MaxResults"] = None,
) -> "capo_sagemaker.types.list_subscribed_workteams_response.ListSubscribedWorkteamsResponse":
    """<p>Gets a list of the work teams that you are subscribed to in the Amazon Web Services Marketplace. The list may be empty if no work team satisfies the filter specified in the <code>NameContains</code> parameter.</p>

    Args:
        name_contains: <p>A string in the work team name. This filter returns only work teams whose name contains the specified string.</p>
        next_token: <p>If the result of the previous <code>ListSubscribedWorkteams</code> request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of labeling jobs, use the token in the next request.</p>
        max_results: <p>The maximum number of work teams to return in each page of the response.</p>

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

    def _handler(
        req: "OperationRequest[capo_sagemaker.types.list_subscribed_workteams_request.ListSubscribedWorkteamsRequest]",
    ) -> OperationResponse[
        "capo_sagemaker.types.list_subscribed_workteams_response.ListSubscribedWorkteamsResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.list_subscribed_workteams

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSubscribedWorkteams")
    )
    input_: capo_sagemaker.types.list_subscribed_workteams_request.ListSubscribedWorkteamsRequest = {}
    if name_contains is not None:
        input_["name_contains"] = name_contains
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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