Skip to content

ListTagsForResource

Source: src/AWS/Kinesis/ListTagsForResource.ts

Runtime binding for kinesis:ListTagsForResource.

Bind this operation to a Stream or StreamConsumer to read its tags — the resource ARN is injected automatically. Provide the implementation with Effect.provide(AWS.Kinesis.ListTagsForResourceHttp).

// init — works for a Stream or a StreamConsumer
const listTagsForResource = yield* AWS.Kinesis.ListTagsForResource(stream);
// runtime
const result = yield* listTagsForResource();
const tags = Object.fromEntries(
(result.Tags ?? []).map((tag) => [tag.Key, tag.Value]),
);