Class: AWSCDK::Elasticache::CfnReplicationGroup::LogDeliveryConfigurationRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elasticache/cfn_replication_group.rb

Overview

Specifies the destination, format and type of the logs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_details:, destination_type:, log_format:, log_type:) ⇒ LogDeliveryConfigurationRequestProperty

Returns a new instance of LogDeliveryConfigurationRequestProperty.

Parameters:

  • destination_details (AWSCDK::IResolvable, AWSCDK::Elasticache::CfnReplicationGroup::DestinationDetailsProperty)

    Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.

  • destination_type (String)

    Specify either CloudWatch Logs or Kinesis Data Firehose as the destination type.

  • log_format (String)

    Valid values are either json or text .

  • log_type (String)

    Valid value is either slow-log , which refers to slow-log or engine-log .



1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
# File 'elasticache/cfn_replication_group.rb', line 1325

def initialize(destination_details:, destination_type:, log_format:, log_type:)
  @destination_details = destination_details.is_a?(Hash) ? ::AWSCDK::Elasticache::CfnReplicationGroup::DestinationDetailsProperty.new(**destination_details.transform_keys(&:to_sym)) : destination_details
  Jsii::Type.check_type(@destination_details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGFzdGljYWNoZS5DZm5SZXBsaWNhdGlvbkdyb3VwLkRlc3RpbmF0aW9uRGV0YWlsc1Byb3BlcnR5In1dfX0=")), "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_detailsAWSCDK::IResolvable, AWSCDK::Elasticache::CfnReplicationGroup::DestinationDetailsProperty (readonly)

Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.



1340
1341
1342
# File 'elasticache/cfn_replication_group.rb', line 1340

def destination_details
  @destination_details
end

#destination_typeString (readonly)

Specify either CloudWatch Logs or Kinesis Data Firehose as the destination type.

Valid values are either cloudwatch-logs or kinesis-firehose .



1347
1348
1349
# File 'elasticache/cfn_replication_group.rb', line 1347

def destination_type
  @destination_type
end

#log_formatString (readonly)

Valid values are either json or text .



1352
1353
1354
# File 'elasticache/cfn_replication_group.rb', line 1352

def log_format
  @log_format
end

#log_typeString (readonly)

Valid value is either slow-log , which refers to slow-log or engine-log .



1357
1358
1359
# File 'elasticache/cfn_replication_group.rb', line 1357

def log_type
  @log_type
end

Class Method Details

.jsii_propertiesObject



1359
1360
1361
1362
1363
1364
1365
1366
# File 'elasticache/cfn_replication_group.rb', line 1359

def self.jsii_properties
  {
    :destination_details => "destinationDetails",
    :destination_type => "destinationType",
    :log_format => "logFormat",
    :log_type => "logType",
  }
end

Instance Method Details

#to_jsiiObject



1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
# File 'elasticache/cfn_replication_group.rb', line 1368

def to_jsii
  result = {}
  result.merge!({
    "destinationDetails" => @destination_details,
    "destinationType" => @destination_type,
    "logFormat" => @log_format,
    "logType" => @log_type,
  })
  result.compact
end