Class: AWSCDK::Elasticache::CfnCacheCluster::DestinationDetailsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticache::CfnCacheCluster::DestinationDetailsProperty
- Defined in:
- elasticache/cfn_cache_cluster.rb
Overview
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
Instance Attribute Summary collapse
-
#cloud_watch_logs_details ⇒ AWSCDK::IResolvable, ...
readonly
The configuration details of the CloudWatch Logs destination.
-
#kinesis_firehose_details ⇒ AWSCDK::IResolvable, ...
readonly
The configuration details of the Kinesis Data Firehose destination.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cloud_watch_logs_details: nil, kinesis_firehose_details: nil) ⇒ DestinationDetailsProperty
constructor
A new instance of DestinationDetailsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cloud_watch_logs_details: nil, kinesis_firehose_details: nil) ⇒ DestinationDetailsProperty
Returns a new instance of DestinationDetailsProperty.
899 900 901 902 903 904 |
# File 'elasticache/cfn_cache_cluster.rb', line 899 def initialize(cloud_watch_logs_details: nil, kinesis_firehose_details: nil) @cloud_watch_logs_details = cloud_watch_logs_details.is_a?(Hash) ? ::AWSCDK::Elasticache::CfnCacheCluster::CloudWatchLogsDestinationDetailsProperty.new(**cloud_watch_logs_details.transform_keys(&:to_sym)) : cloud_watch_logs_details Jsii::Type.check_type(@cloud_watch_logs_details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGFzdGljYWNoZS5DZm5DYWNoZUNsdXN0ZXIuQ2xvdWRXYXRjaExvZ3NEZXN0aW5hdGlvbkRldGFpbHNQcm9wZXJ0eSJ9XX19")), "cloudWatchLogsDetails") unless @cloud_watch_logs_details.nil? @kinesis_firehose_details = kinesis_firehose_details.is_a?(Hash) ? ::AWSCDK::Elasticache::CfnCacheCluster::KinesisFirehoseDestinationDetailsProperty.new(**kinesis_firehose_details.transform_keys(&:to_sym)) : kinesis_firehose_details Jsii::Type.check_type(@kinesis_firehose_details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGFzdGljYWNoZS5DZm5DYWNoZUNsdXN0ZXIuS2luZXNpc0ZpcmVob3NlRGVzdGluYXRpb25EZXRhaWxzUHJvcGVydHkifV19fQ==")), "kinesisFirehoseDetails") unless @kinesis_firehose_details.nil? end |
Instance Attribute Details
#cloud_watch_logs_details ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration details of the CloudWatch Logs destination.
Note that this field is marked as required but only if CloudWatch Logs was chosen as the destination.
912 913 914 |
# File 'elasticache/cfn_cache_cluster.rb', line 912 def cloud_watch_logs_details @cloud_watch_logs_details end |
#kinesis_firehose_details ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration details of the Kinesis Data Firehose destination.
Note that this field is marked as required but only if Kinesis Data Firehose was chosen as the destination.
919 920 921 |
# File 'elasticache/cfn_cache_cluster.rb', line 919 def kinesis_firehose_details @kinesis_firehose_details end |
Class Method Details
.jsii_properties ⇒ Object
921 922 923 924 925 926 |
# File 'elasticache/cfn_cache_cluster.rb', line 921 def self.jsii_properties { :cloud_watch_logs_details => "cloudWatchLogsDetails", :kinesis_firehose_details => "kinesisFirehoseDetails", } end |
Instance Method Details
#to_jsii ⇒ Object
928 929 930 931 932 933 934 935 |
# File 'elasticache/cfn_cache_cluster.rb', line 928 def to_jsii result = {} result.merge!({ "cloudWatchLogsDetails" => @cloud_watch_logs_details, "kinesisFirehoseDetails" => @kinesis_firehose_details, }) result.compact end |