Skip to content

GetSubscriptionAttributes

Source: src/AWS/SNS/GetSubscriptionAttributes.ts

Runtime binding for sns:GetSubscriptionAttributes.

Bind this operation to a Subscription inside a function runtime to read the subscription’s raw attribute map (filter policy, redrive policy, raw message delivery, etc.). The binding grants the host function sns:GetSubscriptionAttributes on the subscription. Provide the GetSubscriptionAttributesHttp layer on the Function to implement the binding.

// init (provide SNS.GetSubscriptionAttributesHttp on the Function)
const getSubscriptionAttributes =
yield* SNS.GetSubscriptionAttributes(subscription);
// runtime
const response = yield* getSubscriptionAttributes();
const filterPolicy = response.Attributes?.FilterPolicy;