mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
Adds the type to SnsCfnProvisioner beside Topic and Subscription. A topic policy is not an entity of its own: it writes the Policy attribute of every topic the template lists, so re-applying on UpdateStack is what an update means. The document goes through resolveJsonAttribute like FilterPolicy, so a Ref to a topic inside Resource resolves to the ARN. The physical id is synthetic and stays put across updates, as AWS::SQS::QueuePolicy does, and Ref and Fn::GetAtt Id both return it. An empty Topics list or a missing PolicyDocument is refused. Delete touches nothing, as with QueuePolicy. Ported from lex00/floci#118. Tracked in lex00/floci#192.