Class: AWSCDK::Elasticache::CfnCacheCluster::CloudWatchLogsDestinationDetailsProperty

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

Overview

Configuration details of a 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.



865
866
867
868
# File 'elasticache/cfn_cache_cluster.rb', line 865

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.



874
875
876
# File 'elasticache/cfn_cache_cluster.rb', line 874

def log_group
  @log_group
end

Class Method Details

.jsii_propertiesObject



876
877
878
879
880
# File 'elasticache/cfn_cache_cluster.rb', line 876

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

Instance Method Details

#to_jsiiObject



882
883
884
885
886
887
888
# File 'elasticache/cfn_cache_cluster.rb', line 882

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