Skip to content

get_application async

get_application(
    application_id: ApplicationId,
    *,
    config_overrides: Optional[AsyncEMRServerlessClientConfig] = None,
) -> GetApplicationResponse

Displays detailed information about a specified application.

Parameters:

  • application_id (ApplicationId) –

    The ID of the application that will be described.

Raises:

Source code in docs_src/capo_emr_serverless/_services/async_emr_serverless.py
async def get_application(
    self,
    application_id: "capo_emr_serverless.types.application_id.ApplicationId",
    *,
    config_overrides: Optional[AsyncEMRServerlessClientConfig] = None,
) -> "capo_emr_serverless.types.get_application_response.GetApplicationResponse":
    """<p>Displays detailed information about a specified application.</p>

    Args:
        application_id: <p>The ID of the application that will be described.</p>

    Raises:
        capo_emr_serverless.errors.internal_server_exception.InternalServerException: <p>Request processing failed because of an error or failure with the service.</p>
        capo_emr_serverless.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_emr_serverless.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_emr_serverless.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_emr_serverless.types.get_application_request.GetApplicationRequest]",
    ) -> AsyncOperationResponse[
        "capo_emr_serverless.types.get_application_response.GetApplicationResponse"
    ]:
        import capo_emr_serverless._operations.aws_toledo_web_service.get_application

        (
            output,
            http_response,
        ) = await capo_emr_serverless._operations.aws_toledo_web_service.get_application.async_get_application(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_emr_serverless.types.get_application_response.GetApplicationResponse",
    ) -> dict[str, Any]:
        import capo_emr_serverless.types.get_application_response

        return capo_emr_serverless.types.get_application_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetApplication", redact_output=_redact_output),
    )
    input_: capo_emr_serverless.types.get_application_request.GetApplicationRequest = {
        "application_id": application_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output