Skip to content

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.

// init (provide SNS.SetSubscriptionAttributesHttp on the Function)
const setSubscriptionAttributes =
yield* SNS.SetSubscriptionAttributes(subscription);
// runtime
yield* setSubscriptionAttributes({
AttributeName: "FilterPolicy",
AttributeValue: JSON.stringify({ type: ["order"] }),
});