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.
Reading Topic Attributes
Section titled “Reading Topic Attributes”// init (provide SNS.GetTopicAttributesHttp on the Function)const getTopicAttributes = yield* SNS.GetTopicAttributes(topic);
// runtimeconst response = yield* getTopicAttributes();const displayName = response.Attributes?.DisplayName;