Sha256: 2604cfdbf74850731a9e24a009fedb90f6a31f9ef6bbc3aec73e3b581fdfd7f9
Contents?: true
Size: 458 Bytes
Versions: 6
Compression:
Stored size: 458 Bytes
Contents
module Jets::Stack::Main::Dsl module Sqs def sqs_queue(id, props={}) # props[:queue_name] ||= id.to_s # comment out to allow CloudFormation to generate name resource(id, "AWS::SQS::Queue", props) output(id, Value: get_att("#{id}.Arn")) # normal !Ref returns the sqs url the ARN is useful for nested stacks depends_on output("#{id}Url", ref(id)) # useful for Stack.lookup method. IE: List.lookup(:waitlist_url) end end end
Version data entries
6 entries across 6 versions & 1 rubygems