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.
Tagging Topics
Section titled “Tagging Topics”// init (provide SNS.TagResourceHttp on the Function)const tagResource = yield* SNS.TagResource(topic);
// runtimeyield* tagResource({ Tags: [{ Key: "team", Value: "orders" }],});