Skip to content

delete_application

delete_application(
    application: ApplicationSpecifier,
    *,
    config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = None,
) -> DeleteApplicationResponse

Deletes an application that is specified either by its application ID, name, or ARN. All associated attribute groups and resources must be disassociated from it before deleting an application.

Parameters:

Raises:

Source code in docs_src/capo_service_catalog_appregistry/_services/service_catalog_app_registry.py
def delete_application(
    self,
    application: "capo_service_catalog_appregistry.types.application_specifier.ApplicationSpecifier",
    *,
    config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = None,
) -> "capo_service_catalog_appregistry.types.delete_application_response.DeleteApplicationResponse":
    """<p>Deletes an application that is specified either by its application ID, name, or ARN. All associated attribute groups and resources must be disassociated from it before deleting an application.</p>

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

    Raises:
        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.
    """

    def _handler(
        req: "OperationRequest[capo_service_catalog_appregistry.types.delete_application_request.DeleteApplicationRequest]",
    ) -> OperationResponse[
        "capo_service_catalog_appregistry.types.delete_application_response.DeleteApplicationResponse"
    ]:
        import capo_service_catalog_appregistry._operations.aws242_app_registry.delete_application

        output, http_response = (
            capo_service_catalog_appregistry._operations.aws242_app_registry.delete_application.delete_application(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteApplication")
    )
    input_: capo_service_catalog_appregistry.types.delete_application_request.DeleteApplicationRequest = {
        "application": application
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output