mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 07:11:11 -05:00
Migrates AWS::SNS::Topic and AWS::SNS::Subscription out of the switch, completing the Wave 1 leaf slices. Behaviour-preserving. The care here is the subscription's attribute encoding. FilterPolicy and RedrivePolicy are JSON documents that SNS expects as JSON strings, so they go through resolveJsonAttribute, while FilterPolicyScope and RawMessageDelivery are scalars that go through resolve. Using the scalar resolver on a document flattens it to an empty string and silently breaks message filtering, which is the failure this type has had before, so the test stubs the two resolvers with distinct semantics and asserts the serialized form rather than only that an attribute was set. The topic's physical id is the ARN rather than the name, because Ref on an SNS topic returns the ARN.