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.
Reading Subscription Attributes
Section titled “Reading Subscription Attributes”// init (provide SNS.GetSubscriptionAttributesHttp on the Function)const getSubscriptionAttributes = yield* SNS.GetSubscriptionAttributes(subscription);
// runtimeconst response = yield* getSubscriptionAttributes();const filterPolicy = response.Attributes?.FilterPolicy;