Skip to content
TypeScript
1.0 KB
Raw Blame
import type * as inspector2 from "@distilled.cloud/aws/inspector2";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for `inspector2:ListUsageTotals`.
 *
 * Lists the Amazon Inspector usage totals over the last 30 days.
 *
 * Provide the implementation with
 * `Effect.provide(AWS.Inspector2.ListUsageTotalsHttp)`.
 * ### Account Settings & Usage
 * **Example:** Monthly Usage Totals
 * ```typescript
 * // init
 * const listUsageTotals = yield* AWS.Inspector2.ListUsageTotals();
 *
 * // runtime
 * const { totals } = yield* listUsageTotals();
 * ```
 *
 * @binding
 */
export interface ListUsageTotals extends Binding.Service<
  ListUsageTotals,
  "AWS.Inspector2.ListUsageTotals",
  () => Effect.Effect<
    (
      request?: inspector2.ListUsageTotalsRequest,
    ) => Effect.Effect<inspector2.ListUsageTotalsResponse, inspector2.ListUsageTotalsError>
  >
> {}
export const ListUsageTotals = Binding.Service<ListUsageTotals>("AWS.Inspector2.ListUsageTotals");