The best way to control Claude Code, Codex and more from any computer or phone

main
ts 19 lines 872 Bytes
Raw
1 import * as kendra from "@distilled.cloud/aws/kendra";
2 import { toWireDays } from "alchemy/Util/Duration";
3 import * as Layer from "effect/Layer";
4 import { makeKendraIndexHttpBinding } from "./BindingHttp.ts";
5 import type { UpdateQuerySuggestionsConfigRequest } from "./UpdateQuerySuggestionsConfig.ts";
6 import { UpdateQuerySuggestionsConfig } from "./UpdateQuerySuggestionsConfig.ts";
7
8 export const UpdateQuerySuggestionsConfigHttp = Layer.effect(
9 UpdateQuerySuggestionsConfig,
10 makeKendraIndexHttpBinding({
11 tag: "AWS.Kendra.UpdateQuerySuggestionsConfig",
12 operation: kendra.updateQuerySuggestionsConfig,
13 actions: ["kendra:UpdateQuerySuggestionsConfig"],
14 prepare: ({ queryLogLookBackWindow, ...rest }: UpdateQuerySuggestionsConfigRequest = {}) => ({
15 ...rest,
16 QueryLogLookBackWindowInDays: toWireDays(queryLogLookBackWindow),
17 }),
18 }),
19 );