1import type * as licensemanager from "@distilled.cloud/aws/license-manager";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Request for {@link ListTokens}.
7 */
8export interface ListTokensRequest extends licensemanager.ListTokensRequest {}
9
10/**
11 * Runtime binding for `license-manager:ListTokens` — enumerate the refresh
12 * tokens minted for the account's licenses (token metadata only; the token
13 * material itself is returned once by `CreateToken`).
14 *
15 * Provide the implementation with
16 * `Effect.provide(AWS.LicenseManager.ListTokensHttp)`.
17 * ### License Checkout Data Plane
18 * **Example:** List Activation Tokens
19 * ```typescript
20 * // init
21 * const listTokens = yield* AWS.LicenseManager.ListTokens();
22 *
23 * // runtime
24 * const { Tokens } = yield* listTokens();
25 * ```
26 *
27 * @binding
28 */
29export interface ListTokens extends Binding.Service<
30 ListTokens,
31 "AWS.LicenseManager.ListTokens",
32 () => Effect.Effect<
33 (
34 request?: ListTokensRequest,
35 ) => Effect.Effect<
36 licensemanager.ListTokensResponse,
37 licensemanager.ListTokensError
38 >
39 >
40> {}
41export const ListTokens = Binding.Service<ListTokens>(
42 "AWS.LicenseManager.ListTokens",
43);