sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ ApplicationSignals/ ListServiceLevelObjectives.ts

import type * as appsignals from "@distilled.cloud/aws/application-signals";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for `application-signals:ListServiceLevelObjectives`.
 *
 * Lists the service level objectives in this account, optionally filtered by
 * service key attributes, operation name, or dependency config. Provide the
 * implementation with
 * `Effect.provide(AWS.ApplicationSignals.ListServiceLevelObjectivesHttp)`.
 * ### Listing Service Level Objectives
 * **Example:** List All SLOs
 * ```typescript
 * // init — account-level, no resource argument
 * const listSlos = yield* AWS.ApplicationSignals.ListServiceLevelObjectives();
 *
 * // runtime
 * const page = yield* listSlos({});
 * for (const slo of page.SloSummaries) {
 *   yield* Effect.log(`${slo.Name}: ${slo.Arn}`);
 * }
 * ```
 *
 * @binding
 */
export interface ListServiceLevelObjectives extends Binding.Service<
  ListServiceLevelObjectives,
  "AWS.ApplicationSignals.ListServiceLevelObjectives",
  () => Effect.Effect<
    (
      request: appsignals.ListServiceLevelObjectivesInput,
    ) => Effect.Effect<
      appsignals.ListServiceLevelObjectivesOutput,
      appsignals.ListServiceLevelObjectivesError
    >
  >
> {}

export const ListServiceLevelObjectives = Binding.Service<ListServiceLevelObjectives>(
  "AWS.ApplicationSignals.ListServiceLevelObjectives",
);