Files
floci/src
Hector Ventura 9f7b7117f1 refactor(cloudformation): move AWS::SNS::* into its own provisioner (#2759)
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.
2026-08-31 00:06:05 -04:00
..