Class: AWSCDK::OSIS::CfnPipeline::CloudWatchLogDestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
osis/cfn_pipeline.rb

Overview

The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_group:) ⇒ CloudWatchLogDestinationProperty

Returns a new instance of CloudWatchLogDestinationProperty.

Parameters:

  • log_group (String)

    The name of the CloudWatch Logs group to send pipeline logs to.



711
712
713
714
# File 'osis/cfn_pipeline.rb', line 711

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 group to send pipeline logs to.

You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines .



722
723
724
# File 'osis/cfn_pipeline.rb', line 722

def log_group
  @log_group
end

Class Method Details

.jsii_propertiesObject



724
725
726
727
728
# File 'osis/cfn_pipeline.rb', line 724

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

Instance Method Details

#to_jsiiObject



730
731
732
733
734
735
736
# File 'osis/cfn_pipeline.rb', line 730

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