Class: AWSCDK::OSIS::CfnPipeline::LogPublishingOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OSIS::CfnPipeline::LogPublishingOptionsProperty
- 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
-
#cloud_watch_log_destination ⇒ AWSCDK::IResolvable, ...
readonly
The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs.
-
#is_logging_enabled ⇒ Boolean, ...
readonly
Whether logs should be published.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cloud_watch_log_destination: nil, is_logging_enabled: nil) ⇒ LogPublishingOptionsProperty
constructor
A new instance of LogPublishingOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cloud_watch_log_destination: nil, is_logging_enabled: nil) ⇒ LogPublishingOptionsProperty
Returns a new instance of LogPublishingOptionsProperty.
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_destination ⇒ AWSCDK::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_enabled ⇒ Boolean, ... (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_properties ⇒ Object
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_jsii ⇒ Object
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 |