Skip to content

SetTopicAttributes

Source: src/AWS/SNS/SetTopicAttributes.ts

Runtime binding for sns:SetTopicAttributes.

Bind this operation to a Topic inside a function runtime to set a single topic attribute by name. The binding grants the host function sns:SetTopicAttributes on the topic. Provide the SetTopicAttributesHttp layer on the Function to implement the binding.

// init (provide SNS.SetTopicAttributesHttp on the Function)
const setTopicAttributes = yield* SNS.SetTopicAttributes(topic);
// runtime
yield* setTopicAttributes({
AttributeName: "DisplayName",
AttributeValue: "order-events",
});