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