| 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 | ); |