sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ EMRContainers/ ListJobTemplates.ts

import type * as emrc from "@distilled.cloud/aws/emr-containers";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for `emr-containers:ListJobTemplates`.
 *
 * Enumerates the account's EMR on EKS job templates, optionally filtered by
 * creation time. Account-level — no resource argument. Provide the
 * implementation with
 * `Effect.provide(AWS.EMRContainers.ListJobTemplatesHttp)`.
 * ### Job Templates
 * **Example:** List All Templates
 * ```typescript
 * // init — account-level binding, no resource argument
 * const listJobTemplates = yield* AWS.EMRContainers.ListJobTemplates();
 *
 * // runtime
 * const { templates } = yield* listJobTemplates();
 * yield* Effect.log(`${templates?.length ?? 0} job templates`);
 * ```
 *
 * @binding
 */
export interface ListJobTemplates extends Binding.Service<
  ListJobTemplates,
  "AWS.EMRContainers.ListJobTemplates",
  () => Effect.Effect<
    (
      request?: emrc.ListJobTemplatesRequest,
    ) => Effect.Effect<emrc.ListJobTemplatesResponse, emrc.ListJobTemplatesError>
  >
> {}
export const ListJobTemplates = Binding.Service<ListJobTemplates>(
  "AWS.EMRContainers.ListJobTemplates",
);