Skip to content

ListTagsForResource

Source: src/AWS/AIOps/ListTagsForResource.ts

Runtime binding for aiops:ListTagsForResource.

Reads the tags on the bound InvestigationGroup — useful for ownership/audit reporting from an ops function. The group’s ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.AIOps.ListTagsForResourceHttp).

// init — grants aiops:ListTagsForResource on the group
const listTagsForResource = yield* AWS.AIOps.ListTagsForResource(group);
// runtime
const { tags } = yield* listTagsForResource();
yield* Effect.log(`owned by team ${tags?.Team}`);