Sha256: 46d7b2d4c4315927bbf51cd5ed758ca1b9bbab511a072cd878dc20ca1c4e075e

Contents?: true

Size: 967 Bytes

Versions: 67

Compression:

Stored size: 967 Bytes

Contents

require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        # @example
        #   sqs_queue 'NotifyQueue' do
        #     queue_name "my-notify-queue"
        #     visibility_timeout 3600
        #   end
        class SQSQueue < Resource
          include Model::Mixin::Taggable

          type 'AWS::SQS::Queue'
          property :delay_seconds, 'DelaySeconds'
          property :maximum_message_size, 'MaximumMessageSize'
          property :message_retention_period, 'MessageRetentionPeriod'
          property :queue_name, 'QueueName'
          property :receive_message_wait_time_seconds, 'ReceiveMessageWaitTimeSeconds'
          property :redrive_policy, 'RedrivePolicy'
          property :visibility_timeout, 'VisibilityTimeout'

          def render(*args)
            super.tap do |resource|
              render_tags(resource)
            end
          end
        end
      end
    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
convection-0.4.1 lib/convection/model/template/resource/aws_sqs_queue.rb
convection-0.4.0 lib/convection/model/template/resource/aws_sqs_queue.rb
convection-0.3.3.pre.beta.1 lib/convection/model/template/resource/aws_sqs_queue.rb
convection-0.3.2 lib/convection/model/template/resource/aws_sqs_queue.rb
convection-0.3.1 lib/convection/model/template/resource/aws_sqs_queue.rb
convection-0.3.0 lib/convection/model/template/resource/aws_sqs_queue.rb
convection-0.2.34.pre.beta.1 lib/convection/model/template/resource/aws_sqs_queue.rb