Skip to content

ListTagsForResource

Source: src/AWS/CostAndUsageReport/ListTagsForResource.ts

Runtime binding for cur:ListTagsForResource — read the tags on the bound ReportDefinition. The report’s name is injected automatically, so the runtime callable takes no arguments.

Provide the implementation with Effect.provide(AWS.CostAndUsageReport.ListTagsForResourceHttp).

// init — grants cur:ListTagsForResource on the report's ARN
const listReportTags =
yield* AWS.CostAndUsageReport.ListTagsForResource(report);
// runtime
const { Tags } = yield* listReportTags();
for (const tag of Tags ?? []) {
yield* Effect.log(`${tag.Key}=${tag.Value}`);
}