Class: AWSCDK::Elasticache::CfnCacheCluster::LogDeliveryConfigurationRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticache::CfnCacheCluster::LogDeliveryConfigurationRequestProperty
- Defined in:
- elasticache/cfn_cache_cluster.rb
Overview
Specifies the destination, format and type of the logs.
Instance Attribute Summary collapse
-
#destination_details ⇒ AWSCDK::IResolvable, AWSCDK::Elasticache::CfnCacheCluster::DestinationDetailsProperty
readonly
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
-
#destination_type ⇒ String
readonly
Specify either CloudWatch Logs or Kinesis Data Firehose as the destination type.
-
#log_format ⇒ String
readonly
Valid values are either
jsonortext. -
#log_type ⇒ String
readonly
Valid value is either
slow-log, which refers to slow-log orengine-log.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_details:, destination_type:, log_format:, log_type:) ⇒ LogDeliveryConfigurationRequestProperty
constructor
A new instance of LogDeliveryConfigurationRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_details:, destination_type:, log_format:, log_type:) ⇒ LogDeliveryConfigurationRequestProperty
Returns a new instance of LogDeliveryConfigurationRequestProperty.
1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 |
# File 'elasticache/cfn_cache_cluster.rb', line 1020 def initialize(destination_details:, destination_type:, log_format:, log_type:) @destination_details = destination_details.is_a?(Hash) ? ::AWSCDK::Elasticache::CfnCacheCluster::DestinationDetailsProperty.new(**destination_details.transform_keys(&:to_sym)) : destination_details Jsii::Type.check_type(@destination_details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGFzdGljYWNoZS5DZm5DYWNoZUNsdXN0ZXIuRGVzdGluYXRpb25EZXRhaWxzUHJvcGVydHkifV19fQ==")), "destinationDetails") @destination_type = destination_type Jsii::Type.check_type(@destination_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationType") @log_format = log_format Jsii::Type.check_type(@log_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logFormat") @log_type = log_type Jsii::Type.check_type(@log_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logType") end |
Instance Attribute Details
#destination_details ⇒ AWSCDK::IResolvable, AWSCDK::Elasticache::CfnCacheCluster::DestinationDetailsProperty (readonly)
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
1035 1036 1037 |
# File 'elasticache/cfn_cache_cluster.rb', line 1035 def destination_details @destination_details end |
#destination_type ⇒ String (readonly)
Specify either CloudWatch Logs or Kinesis Data Firehose as the destination type.
Valid values are either cloudwatch-logs or kinesis-firehose .
1042 1043 1044 |
# File 'elasticache/cfn_cache_cluster.rb', line 1042 def destination_type @destination_type end |
#log_format ⇒ String (readonly)
Valid values are either json or text .
1047 1048 1049 |
# File 'elasticache/cfn_cache_cluster.rb', line 1047 def log_format @log_format end |
#log_type ⇒ String (readonly)
Valid value is either slow-log , which refers to slow-log or engine-log .
1052 1053 1054 |
# File 'elasticache/cfn_cache_cluster.rb', line 1052 def log_type @log_type end |
Class Method Details
.jsii_properties ⇒ Object
1054 1055 1056 1057 1058 1059 1060 1061 |
# File 'elasticache/cfn_cache_cluster.rb', line 1054 def self.jsii_properties { :destination_details => "destinationDetails", :destination_type => "destinationType", :log_format => "logFormat", :log_type => "logType", } end |
Instance Method Details
#to_jsii ⇒ Object
1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 |
# File 'elasticache/cfn_cache_cluster.rb', line 1063 def to_jsii result = {} result.merge!({ "destinationDetails" => @destination_details, "destinationType" => @destination_type, "logFormat" => @log_format, "logType" => @log_type, }) result.compact end |