Skip to content

get_application async

get_application(
    application_name: ApplicationName,
    *,
    config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
) -> GetApplicationOutput

Gets information about an application.

Parameters:

  • application_name (ApplicationName) –

    The name of an CodeDeploy application associated with the user or Amazon Web Services account.

Raises:

Source code in docs_src/capo_codedeploy/_services/async_code_deploy.py
async def get_application(
    self,
    application_name: "capo_codedeploy.types.application_name.ApplicationName",
    *,
    config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
) -> "capo_codedeploy.types.get_application_output.GetApplicationOutput":
    """<p>Gets information about an application.</p>

    Args:
        application_name: <p>The name of an CodeDeploy application associated with the user or Amazon Web Services account.</p>

    Raises:
        capo_codedeploy.errors.application_does_not_exist_exception.ApplicationDoesNotExistException: <p>The application does not exist with the user or Amazon Web Services account.</p>
        capo_codedeploy.errors.application_name_required_exception.ApplicationNameRequiredException: <p>The minimum number of required application names was not specified.</p>
        capo_codedeploy.errors.invalid_application_name_exception.InvalidApplicationNameException: <p>The application name was specified in an invalid format.</p>
        capo_codedeploy.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_codedeploy.types.get_application_input.GetApplicationInput]",
    ) -> AsyncOperationResponse[
        "capo_codedeploy.types.get_application_output.GetApplicationOutput"
    ]:
        import capo_codedeploy._operations.code_deploy_20141006.get_application

        (
            output,
            http_response,
        ) = await capo_codedeploy._operations.code_deploy_20141006.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_codedeploy.types.get_application_input.GetApplicationInput = {
        "application_name": application_name
    }

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