// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import * as QueuesAPI from 'cloudflaredev/resources/event-notifications/r2/configuration/queues';
export class Configuration extends APIResource {
    constructor() {
        super(...arguments);
        this.queues = new QueuesAPI.Queues(this._client);
    }
    /**
     * Returns all notification rules for each queue for which bucket notifications are
     * produced.
     */
    get(bucketName, params, options) {
        const { account_id } = params;
        return this._client.get(`/accounts/${account_id}/event_notifications/r2/${bucketName}/configuration`, options)._thenUnwrap((obj) => obj.result);
    }
}
(function (Configuration) {
    Configuration.Queues = QueuesAPI.Queues;
})(Configuration || (Configuration = {}));
//# sourceMappingURL=configuration.mjs.map