Skip to content

TagResource

Source: src/AWS/SNS/TagResource.ts

Runtime binding for sns:TagResource.

Bind this operation to a Topic inside a function runtime to add or overwrite tags on the topic; the ResourceArn is injected automatically. The binding grants the host function sns:TagResource on the topic. Provide the TagResourceHttp layer on the Function to implement the binding.

// init (provide SNS.TagResourceHttp on the Function)
const tagResource = yield* SNS.TagResource(topic);
// runtime
yield* tagResource({
Tags: [{ Key: "team", Value: "orders" }],
});