Skip to content

get_application async

get_application(
    arn: ArnOrUUID,
    *,
    config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
) -> GetApplicationResponse

Get an Application resource.

Parameters:

  • arn (ArnOrUUID) –

    The Amazon Resource Name (ARN) of the Application.

Raises:

Examples:

To get an application The following retrives an application.

>>> await client.get_application(arn='arn:aws:app-integrations:us-west-2:0123456789012:application/98542c53-e8ac-4570-9c85-c6552c8d9c5e')
Source code in docs_src/capo_appintegrations/_services/async_app_integrations.py
async def get_application(
    self,
    arn: "capo_appintegrations.types.arn_or_uuid.ArnOrUUID",
    *,
    config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
) -> "capo_appintegrations.types.get_application_response.GetApplicationResponse":
    """<p>Get an Application resource.</p>

    Args:
        arn: <p>The Amazon Resource Name (ARN) of the Application.</p>

    Raises:
        capo_appintegrations.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_appintegrations.errors.internal_service_error.InternalServiceError: <p>Request processing failed due to an error or failure with the service.</p>
        capo_appintegrations.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid. </p>
        capo_appintegrations.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_appintegrations.errors.throttling_exception.ThrottlingException: <p>The throttling limit has been exceeded.</p>
        capo_appintegrations.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To get an application
        The following retrives an application.

        >>> await client.get_application(arn='arn:aws:app-integrations:us-west-2:0123456789012:application/98542c53-e8ac-4570-9c85-c6552c8d9c5e')
    """

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

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetApplication")
    )
    input_: capo_appintegrations.types.get_application_request.GetApplicationRequest = {
        "arn": arn
    }

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