Class: AWSCDK::Elasticache::CfnReplicationGroup::CloudWatchLogsDestinationDetailsProperty

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

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_group:) ⇒ CloudWatchLogsDestinationDetailsProperty

Returns a new instance of CloudWatchLogsDestinationDetailsProperty.

Parameters:

  • log_group (String)

    The name of the CloudWatch Logs log group.



1166
1167
1168
1169
# File 'elasticache/cfn_replication_group.rb', line 1166

def initialize(log_group:)
  @log_group = log_group
  Jsii::Type.check_type(@log_group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroup")
end

Instance Attribute Details

#log_groupString (readonly)

The name of the CloudWatch Logs log group.



1175
1176
1177
# File 'elasticache/cfn_replication_group.rb', line 1175

def log_group
  @log_group
end

Class Method Details

.jsii_propertiesObject



1177
1178
1179
1180
1181
# File 'elasticache/cfn_replication_group.rb', line 1177

def self.jsii_properties
  {
    :log_group => "logGroup",
  }
end

Instance Method Details

#to_jsiiObject



1183
1184
1185
1186
1187
1188
1189
# File 'elasticache/cfn_replication_group.rb', line 1183

def to_jsii
  result = {}
  result.merge!({
    "logGroup" => @log_group,
  })
  result.compact
end