Class: AWSCDK::MSK::CfnCluster::BrokerLogsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
msk/cfn_cluster.rb

Overview

The broker logs configuration for this MSK cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch_logs: nil, firehose: nil, s3: nil) ⇒ BrokerLogsProperty

Returns a new instance of BrokerLogsProperty.

Parameters:



710
711
712
713
714
715
716
717
# File 'msk/cfn_cluster.rb', line 710

def initialize(cloud_watch_logs: nil, firehose: nil, s3: nil)
  @cloud_watch_logs = cloud_watch_logs.is_a?(Hash) ? ::AWSCDK::MSK::CfnCluster::CloudWatchLogsProperty.new(**cloud_watch_logs.transform_keys(&:to_sym)) : cloud_watch_logs
  Jsii::Type.check_type(@cloud_watch_logs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuQ2x1c3Rlci5DbG91ZFdhdGNoTG9nc1Byb3BlcnR5In1dfX0=")), "cloudWatchLogs") unless @cloud_watch_logs.nil?
  @firehose = firehose.is_a?(Hash) ? ::AWSCDK::MSK::CfnCluster::FirehoseProperty.new(**firehose.transform_keys(&:to_sym)) : firehose
  Jsii::Type.check_type(@firehose, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuQ2x1c3Rlci5GaXJlaG9zZVByb3BlcnR5In1dfX0=")), "firehose") unless @firehose.nil?
  @s3 = s3.is_a?(Hash) ? ::AWSCDK::MSK::CfnCluster::S3Property.new(**s3.transform_keys(&:to_sym)) : s3
  Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuQ2x1c3Rlci5TM1Byb3BlcnR5In1dfX0=")), "s3") unless @s3.nil?
end

Instance Attribute Details

#cloud_watch_logsAWSCDK::IResolvable, ... (readonly)



721
722
723
# File 'msk/cfn_cluster.rb', line 721

def cloud_watch_logs
  @cloud_watch_logs
end

#firehoseAWSCDK::IResolvable, ... (readonly)

Details of the Kinesis Data Firehose delivery stream that is the destination for broker logs.



726
727
728
# File 'msk/cfn_cluster.rb', line 726

def firehose
  @firehose
end

#s3AWSCDK::IResolvable, ... (readonly)

Details of the Amazon S3 destination for broker logs.



731
732
733
# File 'msk/cfn_cluster.rb', line 731

def s3
  @s3
end

Class Method Details

.jsii_propertiesObject



733
734
735
736
737
738
739
# File 'msk/cfn_cluster.rb', line 733

def self.jsii_properties
  {
    :cloud_watch_logs => "cloudWatchLogs",
    :firehose => "firehose",
    :s3 => "s3",
  }
end

Instance Method Details

#to_jsiiObject



741
742
743
744
745
746
747
748
749
# File 'msk/cfn_cluster.rb', line 741

def to_jsii
  result = {}
  result.merge!({
    "cloudWatchLogs" => @cloud_watch_logs,
    "firehose" => @firehose,
    "s3" => @s3,
  })
  result.compact
end