private void initiateDeleteTable()

in aws-timestream-table/src/main/java/software/amazon/timestream/table/DeleteHandler.java [70:93]


    private void initiateDeleteTable(
            ResourceHandlerRequest<ResourceModel> request, CallbackContext callbackContext, ResourceModel model) {
        final DeleteTableRequest deleteTableRequest =
                new DeleteTableRequest()
                        .withDatabaseName(model.getDatabaseName())
                        .withTableName(model.getTableName());

        try {
            this.proxy.injectCredentialsAndInvoke(deleteTableRequest, timestreamClient::deleteTable);
        } catch (InternalServerException ex) {
            throw new CfnInternalFailureException(ex);
        } catch (ThrottlingException ex) {
            throw new CfnThrottlingException(DELETE_TABLE, ex);
        } catch (ValidationException | InvalidEndpointException ex) {
            throw new CfnInvalidRequestException(request.toString(), ex);
        } catch (ResourceNotFoundException ex) {
            // could be either database does not exist or table does not exist.
            throw new CfnNotFoundException(ex);
        } catch (AccessDeniedException ex) {
            throw new CfnAccessDeniedException(DELETE_TABLE, ex);
        }

        callbackContext.setDeleteTableStarted(true);
    }