Skip to content

delete_app_bundle

delete_app_bundle(
    app_bundle_identifier: Identifier,
    *,
    config_overrides: Optional[AppFabricClientConfig] = None,
) -> DeleteAppBundleResponse

Deletes an app bundle. You must delete all associated app authorizations before you can delete an app bundle.

Parameters:

  • app_bundle_identifier (Identifier) –

    The ID or Amazon Resource Name (ARN) of the app bundle that needs to be deleted.

Raises:

Source code in docs_src/capo_appfabric/_services/app_fabric.py
def delete_app_bundle(
    self,
    app_bundle_identifier: "capo_appfabric.types.identifier.Identifier",
    *,
    config_overrides: Optional[AppFabricClientConfig] = None,
) -> "capo_appfabric.types.delete_app_bundle_response.DeleteAppBundleResponse":
    """<p>Deletes an app bundle. You must delete all associated app authorizations before you can delete an app bundle.</p>

    Args:
        app_bundle_identifier: <p>The ID or Amazon Resource Name (ARN) of the app bundle that needs to be deleted.</p>

    Raises:
        capo_appfabric.errors.access_denied_exception.AccessDeniedException: <p>You are not authorized to perform this operation.</p>
        capo_appfabric.errors.conflict_exception.ConflictException: <p>The request has created a conflict. Check the request parameters and try again.</p>
        capo_appfabric.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure with an internal server.</p>
        capo_appfabric.errors.throttling_exception.ThrottlingException: <p>The request rate exceeds the limit.</p>
        capo_appfabric.errors.validation_exception.ValidationException: <p>The request has invalid or missing parameters.</p>
        capo_appfabric.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_appfabric.types.delete_app_bundle_request.DeleteAppBundleRequest]",
    ) -> OperationResponse[
        "capo_appfabric.types.delete_app_bundle_response.DeleteAppBundleResponse"
    ]:
        import capo_appfabric._operations.fabric_front_end_service.delete_app_bundle

        output, http_response = (
            capo_appfabric._operations.fabric_front_end_service.delete_app_bundle.delete_app_bundle(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteAppBundle")
    )
    input_: capo_appfabric.types.delete_app_bundle_request.DeleteAppBundleRequest = {
        "app_bundle_identifier": app_bundle_identifier
    }

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