Sha256: cc159b6408f67fed967abcb7a2fd45a2d1b6e8d2c8298305d5f2e3cc6ead6195
Contents?: true
Size: 567 Bytes
Versions: 6
Compression:
Stored size: 567 Bytes
Contents
module OpenStax::Aws class MskCluster attr_reader :client, :cluster_arn delegate_missing_to :@client def self.physical_resource_id_attribute :cluster_arn end def initialize(cluster_arn:, region:) @cluster_arn = cluster_arn @client = ::Aws::Kafka::Client.new(region: region) end def bootstrap_broker_string client.get_bootstrap_brokers(cluster_arn: cluster_arn).bootstrap_broker_string end def sorted_bootstrap_broker_string bootstrap_broker_string.split(',').sort.join(',') end end end
Version data entries
6 entries across 6 versions & 1 rubygems