@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

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