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

main
ts 20 lines 694 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 GetAssetPropertyAggregates,
6 type GetAssetPropertyAggregatesRequest,
7 } from "./GetAssetPropertyAggregates.ts";
8
9 export const GetAssetPropertyAggregatesHttp = Layer.effect(
10 GetAssetPropertyAggregates,
11 makeSiteWiseAssetHttpBinding({
12 capability: "GetAssetPropertyAggregates",
13 iamActions: ["iotsitewise:GetAssetPropertyAggregates"],
14 operation: sitewise.getAssetPropertyAggregates,
15 prepare: (request: GetAssetPropertyAggregatesRequest, assetId) => ({
16 ...request,
17 assetId,
18 }),
19 }),
20 );