ListTagsForResource
Source:
src/AWS/CloudWatch/ListTagsForResource.ts
Runtime binding for cloudwatch:ListTagsForResource — read the tags on
a bound CloudWatch resource (alarm, dashboard, metric stream, insight
rule, or mute rule); the resource ARN is injected automatically.
Provide CloudWatch.ListTagsForResourceHttp on the hosting Lambda
Function to satisfy the requirement.
Reading Tags
Section titled “Reading Tags”// init — grants cloudwatch:ListTagsForResource on the alarm's ARNconst listTagsForResource = yield* AWS.CloudWatch.ListTagsForResource(alarm);
// runtimeconst result = yield* listTagsForResource();const tags = result.Tags ?? [];