Sha256: 8d1c6efd11a9ddfbc1112772ff47dbf71e8c947b7ea234178c5ffa32e05aa167

Contents?: true

Size: 812 Bytes

Versions: 10

Compression:

Stored size: 812 Bytes

Contents

# frozen_string_literal: true

require 'cyclone_lariat/resources/topic'

module CycloneLariat
  module Generators
    module Topic
      def topic(type, fifo:, kind: :event, content_based_deduplication: nil, **options)
        options = CycloneLariat::Options.wrap(options)
        options.merge!(config)

        Resources::Topic.new(
          instance: options.instance,
          publisher: options.publisher,
          region: options.aws_region,
          account_id: options.aws_account_id,
          kind: kind,
          type: type,
          fifo: fifo,
          content_based_deduplication: content_based_deduplication
        )
      end

      def custom_topic(name)
        Resources::Topic.from_name(name, account_id: config.aws_account_id, region: config.aws_region)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cyclone_lariat-1.0.0 lib/cyclone_lariat/generators/topic.rb
cyclone_lariat-1.0.0.rc9 lib/cyclone_lariat/generators/topic.rb
cyclone_lariat-1.0.0.rc8 lib/cyclone_lariat/generators/topic.rb
cyclone_lariat-1.0.0.rc7 lib/cyclone_lariat/generators/topic.rb
cyclone_lariat-1.0.0.rc6 lib/cyclone_lariat/generators/topic.rb
cyclone_lariat-1.0.0.rc5 lib/cyclone_lariat/generators/topic.rb
cyclone_lariat-1.0.0.rc4 lib/cyclone_lariat/generators/topic.rb
cyclone_lariat-1.0.0.rc3 lib/cyclone_lariat/generators/topic.rb
cyclone_lariat-1.0.0.rc2 lib/cyclone_lariat/generators/topic.rb
cyclone_lariat-1.0.0.rc1 lib/cyclone_lariat/generators/topic.rb