Skip to content

get_application async

get_application(
    application: ApplicationSpecifier,
    *,
    config_overrides: Optional[AsyncServiceCatalogAppRegistryClientConfig] = None,
) -> GetApplicationResponse

Retrieves metadata information about one of your applications. The application can be specified by its ARN, ID, or name (which is unique within one account in one region at a given point in time). Specify by ARN or ID in automated workflows if you want to make sure that the exact same application is returned or a ResourceNotFoundException is thrown, avoiding the ABA addressing problem.

Parameters:

Raises:

Source code in docs_src/capo_service_catalog_appregistry/_services/async_service_catalog_app_registry.py
async def get_application(
    self,
    application: "capo_service_catalog_appregistry.types.application_specifier.ApplicationSpecifier",
    *,
    config_overrides: Optional[AsyncServiceCatalogAppRegistryClientConfig] = None,
) -> "capo_service_catalog_appregistry.types.get_application_response.GetApplicationResponse":
    """<p> Retrieves metadata information about one of your applications. The application can be specified by its ARN, ID, or name (which is unique within one account in one region at a given point in time). Specify by ARN or ID in automated workflows if you want to make sure that the exact same application is returned or a <code>ResourceNotFoundException</code> is thrown, avoiding the ABA addressing problem. </p>

    Args:
        application: <p> The name, ID, or ARN of the application. </p>

    Raises:
        capo_service_catalog_appregistry.errors.conflict_exception.ConflictException: <p>There was a conflict when processing the request (for example, a resource with the given name already exists within the account).</p>
        capo_service_catalog_appregistry.errors.internal_server_exception.InternalServerException: <p>The service is experiencing internal problems.</p>
        capo_service_catalog_appregistry.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
        capo_service_catalog_appregistry.errors.validation_exception.ValidationException: <p>The request has invalid or missing parameters.</p>
        capo_service_catalog_appregistry.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

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

        (
            output,
            http_response,
        ) = await capo_service_catalog_appregistry._operations.aws242_app_registry.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_service_catalog_appregistry.types.get_application_request.GetApplicationRequest = {
        "application": application
    }

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