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

main
ts 20 lines 712 Bytes
Raw
1 import * as sitewise from "@distilled.cloud/aws/iotsitewise";
2 import * as Layer from "effect/Layer";
3 import { makeSiteWiseAssetHttpBinding } from "./BindingHttp.ts";
4 import {
5 GetAssetPropertyValueHistory,
6 type GetAssetPropertyValueHistoryRequest,
7 } from "./GetAssetPropertyValueHistory.ts";
8
9 export const GetAssetPropertyValueHistoryHttp = Layer.effect(
10 GetAssetPropertyValueHistory,
11 makeSiteWiseAssetHttpBinding({
12 capability: "GetAssetPropertyValueHistory",
13 iamActions: ["iotsitewise:GetAssetPropertyValueHistory"],
14 operation: sitewise.getAssetPropertyValueHistory,
15 prepare: (request: GetAssetPropertyValueHistoryRequest, assetId) => ({
16 ...request,
17 assetId,
18 }),
19 }),
20 );