| 1 | import type * as inspector2 from "@distilled.cloud/aws/inspector2"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `inspector2:ListUsageTotals`. |
| 7 | * |
| 8 | * Lists the Amazon Inspector usage totals over the last 30 days. |
| 9 | * |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.Inspector2.ListUsageTotalsHttp)`. |
| 12 | * ### Account Settings & Usage |
| 13 | * **Example:** Monthly Usage Totals |
| 14 | * ```typescript |
| 15 | * // init |
| 16 | * const listUsageTotals = yield* AWS.Inspector2.ListUsageTotals(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { totals } = yield* listUsageTotals(); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface ListUsageTotals extends Binding.Service< |
| 25 | ListUsageTotals, |
| 26 | "AWS.Inspector2.ListUsageTotals", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request?: inspector2.ListUsageTotalsRequest, |
| 30 | ) => Effect.Effect< |
| 31 | inspector2.ListUsageTotalsResponse, |
| 32 | inspector2.ListUsageTotalsError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const ListUsageTotals = Binding.Service<ListUsageTotals>( |
| 37 | "AWS.Inspector2.ListUsageTotals", |
| 38 | ); |