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

main
ts 9 lines 440 Bytes
Raw
1 import * as elbv2 from "@distilled.cloud/aws/elastic-load-balancing-v2";
2 import * as Effect from "effect/Effect";
3 import { tagListRecord } from "../internal/Observe.ts";
4
5 /** The tags on one ELBv2 resource, as a record. */
6 export const readElbTags = Effect.fn(function* (resourceArn: string) {
7 const described = yield* elbv2.describeTags({ ResourceArns: [resourceArn] });
8 return tagListRecord(described.TagDescriptions?.[0]?.Tags);
9 });