Skip to content

list_applications

list_applications(
    *,
    config_overrides: Optional[SsmSapClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    filters: Optional[FilterList] = None,
) -> ListApplicationsOutput

Lists all the applications registered with AWS Systems Manager for SAP.

Parameters:

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

    The token for the next page of results.

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

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • filters (Optional[FilterList], default: None ) –

    The filter of name, value, and operator.

Raises:

Source code in docs_src/capo_ssm_sap/_services/ssm_sap.py
def list_applications(
    self,
    *,
    config_overrides: Optional[SsmSapClientConfig] = None,
    next_token: Optional["capo_ssm_sap.types.next_token.NextToken"] = None,
    max_results: Optional["capo_ssm_sap.types.max_results.MaxResults"] = None,
    filters: Optional["capo_ssm_sap.types.filter_list.FilterList"] = None,
) -> "capo_ssm_sap.types.list_applications_output.ListApplicationsOutput":
    """<p>Lists all the applications registered with AWS Systems Manager for SAP.</p>

    Args:
        next_token: <p>The token for the next page of results.</p>
        max_results: <p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.</p>
        filters: <p>The filter of name, value, and operator.</p>

    Raises:
        capo_ssm_sap.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred.</p>
        capo_ssm_sap.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource is not available.</p>
        capo_ssm_sap.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service. </p>
        capo_ssm_sap.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_ssm_sap.types.list_applications_input.ListApplicationsInput]",
    ) -> OperationResponse[
        "capo_ssm_sap.types.list_applications_output.ListApplicationsOutput"
    ]:
        import capo_ssm_sap._operations.ssm_sap.list_applications

        output, http_response = (
            capo_ssm_sap._operations.ssm_sap.list_applications.list_applications(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListApplications")
    )
    input_: capo_ssm_sap.types.list_applications_input.ListApplicationsInput = {}
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if filters is not None:
        input_["filters"] = filters

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