Skip to content

get_application async

get_application(
    application_id: Name,
    *,
    config_overrides: Optional[AsyncAppConfigClientConfig] = None,
) -> Application

Retrieves information about an application.

Parameters:

  • application_id (Name) –

    The ID of the application you want to get.

Raises:

Examples:

To list details of an application The following get-application example lists the details of the specified application.

>>> await client.get_application(application_id='339ohji')
Source code in docs_src/capo_appconfig/_services/async_app_config.py
async def get_application(
    self,
    application_id: "capo_appconfig.types.name.Name",
    *,
    config_overrides: Optional[AsyncAppConfigClientConfig] = None,
) -> "capo_appconfig.types.application.Application":
    """<p>Retrieves information about an application.</p>

    Args:
        application_id: <p>The ID of the application you want to get.</p>

    Raises:
        capo_appconfig.errors.bad_request_exception.BadRequestException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_appconfig.errors.internal_server_exception.InternalServerException: <p>There was an internal failure in the AppConfig service.</p>
        capo_appconfig.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
        capo_appconfig.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To list details of an application
        The following get-application example lists the details of the specified application.

        >>> await client.get_application(application_id='339ohji')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appconfig.types.get_application_request.GetApplicationRequest]",
    ) -> AsyncOperationResponse["capo_appconfig.types.application.Application"]:
        import capo_appconfig._operations.amazon_app_config.get_application

        (
            output,
            http_response,
        ) = await capo_appconfig._operations.amazon_app_config.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_appconfig.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