Skip to content

GetTopicAttributes

Source: src/AWS/SNS/GetTopicAttributes.ts

Runtime binding for sns:GetTopicAttributes.

Bind this operation to a Topic inside a function runtime to read the topic’s raw attribute map (policy, delivery status, KMS key, etc.). The binding grants the host function sns:GetTopicAttributes on the topic. Provide the GetTopicAttributesHttp layer on the Function to implement the binding.

// init (provide SNS.GetTopicAttributesHttp on the Function)
const getTopicAttributes = yield* SNS.GetTopicAttributes(topic);
// runtime
const response = yield* getTopicAttributes();
const displayName = response.Attributes?.DisplayName;