Class: AWSCDK::OSIS::CfnPipeline::LogPublishingOptionsProperty

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

Overview

Container for the values required to configure logging for the pipeline.

If you don't specify these values, OpenSearch Ingestion will not publish logs from your application to CloudWatch Logs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch_log_destination: nil, is_logging_enabled: nil) ⇒ LogPublishingOptionsProperty

Returns a new instance of LogPublishingOptionsProperty.

Parameters:



784
785
786
787
788
789
# File 'osis/cfn_pipeline.rb', line 784

def initialize(cloud_watch_log_destination: nil, is_logging_enabled: nil)
  @cloud_watch_log_destination = cloud_watch_log_destination.is_a?(Hash) ? ::AWSCDK::OSIS::CfnPipeline::CloudWatchLogDestinationProperty.new(**cloud_watch_log_destination.transform_keys(&:to_sym)) : cloud_watch_log_destination
  Jsii::Type.check_type(@cloud_watch_log_destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vc2lzLkNmblBpcGVsaW5lLkNsb3VkV2F0Y2hMb2dEZXN0aW5hdGlvblByb3BlcnR5In1dfX0=")), "cloudWatchLogDestination") unless @cloud_watch_log_destination.nil?
  @is_logging_enabled = is_logging_enabled
  Jsii::Type.check_type(@is_logging_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isLoggingEnabled") unless @is_logging_enabled.nil?
end

Instance Attribute Details

#cloud_watch_log_destinationAWSCDK::IResolvable, ... (readonly)

The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs.

This parameter is required if IsLoggingEnabled is set to true .



797
798
799
# File 'osis/cfn_pipeline.rb', line 797

def cloud_watch_log_destination
  @cloud_watch_log_destination
end

#is_logging_enabledBoolean, ... (readonly)

Whether logs should be published.



802
803
804
# File 'osis/cfn_pipeline.rb', line 802

def is_logging_enabled
  @is_logging_enabled
end

Class Method Details

.jsii_propertiesObject



804
805
806
807
808
809
# File 'osis/cfn_pipeline.rb', line 804

def self.jsii_properties
  {
    :cloud_watch_log_destination => "cloudWatchLogDestination",
    :is_logging_enabled => "isLoggingEnabled",
  }
end

Instance Method Details

#to_jsiiObject



811
812
813
814
815
816
817
818
# File 'osis/cfn_pipeline.rb', line 811

def to_jsii
  result = {}
  result.merge!({
    "cloudWatchLogDestination" => @cloud_watch_log_destination,
    "isLoggingEnabled" => @is_logging_enabled,
  })
  result.compact
end