SetSubscriptionAttributes
Source:
src/AWS/SNS/SetSubscriptionAttributes.ts
Runtime binding for sns:SetSubscriptionAttributes.
Bind this operation to a Subscription inside a function runtime to
set a single subscription attribute by name (e.g. FilterPolicy,
RawMessageDelivery). The binding grants the host function
sns:SetSubscriptionAttributes on the subscription. Provide the
SetSubscriptionAttributesHttp layer on the Function to implement the
binding.
Updating Subscription Attributes
Section titled “Updating Subscription Attributes”// init (provide SNS.SetSubscriptionAttributesHttp on the Function)const setSubscriptionAttributes = yield* SNS.SetSubscriptionAttributes(subscription);
// runtimeyield* setSubscriptionAttributes({ AttributeName: "FilterPolicy", AttributeValue: JSON.stringify({ type: ["order"] }),});