Class: AWSCDK::IVSChat::CfnLoggingConfiguration::DestinationConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IVSChat::CfnLoggingConfiguration::DestinationConfigurationProperty
- Defined in:
- ivs_chat/cfn_logging_configuration.rb
Overview
The DestinationConfiguration property type describes a location where chat logs will be stored.
Each member represents the configuration of one log destination. For logging, you define only one type of destination.
Instance Attribute Summary collapse
-
#cloud_watch_logs ⇒ AWSCDK::IResolvable, ...
readonly
An Amazon CloudWatch Logs destination configuration where chat activity will be logged.
-
#firehose ⇒ AWSCDK::IResolvable, ...
readonly
An Amazon Kinesis Data Firehose destination configuration where chat activity will be logged.
-
#s3 ⇒ AWSCDK::IResolvable, ...
readonly
An Amazon S3 destination configuration where chat activity will be logged.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cloud_watch_logs: nil, firehose: nil, s3: nil) ⇒ DestinationConfigurationProperty
constructor
A new instance of DestinationConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cloud_watch_logs: nil, firehose: nil, s3: nil) ⇒ DestinationConfigurationProperty
Returns a new instance of DestinationConfigurationProperty.
605 606 607 608 609 610 611 612 |
# File 'ivs_chat/cfn_logging_configuration.rb', line 605 def initialize(cloud_watch_logs: nil, firehose: nil, s3: nil) @cloud_watch_logs = cloud_watch_logs.is_a?(Hash) ? ::AWSCDK::IVSChat::CfnLoggingConfiguration::CloudWatchLogsDestinationConfigurationProperty.new(**cloud_watch_logs.transform_keys(&:to_sym)) : cloud_watch_logs Jsii::Type.check_type(@cloud_watch_logs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pdnNjaGF0LkNmbkxvZ2dpbmdDb25maWd1cmF0aW9uLkNsb3VkV2F0Y2hMb2dzRGVzdGluYXRpb25Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "cloudWatchLogs") unless @cloud_watch_logs.nil? @firehose = firehose.is_a?(Hash) ? ::AWSCDK::IVSChat::CfnLoggingConfiguration::FirehoseDestinationConfigurationProperty.new(**firehose.transform_keys(&:to_sym)) : firehose Jsii::Type.check_type(@firehose, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pdnNjaGF0LkNmbkxvZ2dpbmdDb25maWd1cmF0aW9uLkZpcmVob3NlRGVzdGluYXRpb25Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "firehose") unless @firehose.nil? @s3 = s3.is_a?(Hash) ? ::AWSCDK::IVSChat::CfnLoggingConfiguration::S3DestinationConfigurationProperty.new(**s3.transform_keys(&:to_sym)) : s3 Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pdnNjaGF0LkNmbkxvZ2dpbmdDb25maWd1cmF0aW9uLlMzRGVzdGluYXRpb25Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "s3") unless @s3.nil? end |
Instance Attribute Details
#cloud_watch_logs ⇒ AWSCDK::IResolvable, ... (readonly)
An Amazon CloudWatch Logs destination configuration where chat activity will be logged.
618 619 620 |
# File 'ivs_chat/cfn_logging_configuration.rb', line 618 def cloud_watch_logs @cloud_watch_logs end |
#firehose ⇒ AWSCDK::IResolvable, ... (readonly)
An Amazon Kinesis Data Firehose destination configuration where chat activity will be logged.
623 624 625 |
# File 'ivs_chat/cfn_logging_configuration.rb', line 623 def firehose @firehose end |
#s3 ⇒ AWSCDK::IResolvable, ... (readonly)
An Amazon S3 destination configuration where chat activity will be logged.
628 629 630 |
# File 'ivs_chat/cfn_logging_configuration.rb', line 628 def s3 @s3 end |
Class Method Details
.jsii_properties ⇒ Object
630 631 632 633 634 635 636 |
# File 'ivs_chat/cfn_logging_configuration.rb', line 630 def self.jsii_properties { :cloud_watch_logs => "cloudWatchLogs", :firehose => "firehose", :s3 => "s3", } end |
Instance Method Details
#to_jsii ⇒ Object
638 639 640 641 642 643 644 645 646 |
# File 'ivs_chat/cfn_logging_configuration.rb', line 638 def to_jsii result = {} result.merge!({ "cloudWatchLogs" => @cloud_watch_logs, "firehose" => @firehose, "s3" => @s3, }) result.compact end |