Skip to content

list_partner_apps

list_partner_apps(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListPartnerAppsResponse

Lists all of the SageMaker Partner AI Apps in an account.

Parameters:

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

    This parameter defines the maximum number of results that can be returned in a single response. The MaxResults parameter is an upper bound, not a target. If there are more results available than the value specified, a NextToken is provided in the response. The NextToken indicates that the user should get the next set of results by providing this token as a part of a subsequent call. The default value for MaxResults is 10.

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

    If the previous response was truncated, you will receive this token. Use it in your next request to receive the next set of results.

Raises:

Source code in docs_src/capo_sagemaker/_services/sage_maker.py
def list_partner_apps(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    max_results: Optional["capo_sagemaker.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_sagemaker.types.next_token.NextToken"] = None,
) -> "capo_sagemaker.types.list_partner_apps_response.ListPartnerAppsResponse":
    """<p>Lists all of the SageMaker Partner AI Apps in an account.</p>

    Args:
        max_results: <p>This parameter defines the maximum number of results that can be returned in a single response. The <code>MaxResults</code> parameter is an upper bound, not a target. If there are more results available than the value specified, a <code>NextToken</code> is provided in the response. The <code>NextToken</code> indicates that the user should get the next set of results by providing this token as a part of a subsequent call. The default value for <code>MaxResults</code> is 10.</p>
        next_token: <p>If the previous response was truncated, you will receive this token. Use it in your next request to receive the next set of results.</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_partner_apps_request.ListPartnerAppsRequest]",
    ) -> OperationResponse[
        "capo_sagemaker.types.list_partner_apps_response.ListPartnerAppsResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.list_partner_apps

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListPartnerApps")
    )
    input_: capo_sagemaker.types.list_partner_apps_request.ListPartnerAppsRequest = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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