Class: AWSCDK::APS::CfnScraper::ScraperLoggingDestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
aps/cfn_scraper.rb

Overview

The destination where scraper logs are sent.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch_logs: nil) ⇒ ScraperLoggingDestinationProperty

Returns a new instance of ScraperLoggingDestinationProperty.

Parameters:



977
978
979
980
# File 'aps/cfn_scraper.rb', line 977

def initialize(cloud_watch_logs: nil)
  @cloud_watch_logs = cloud_watch_logs.is_a?(Hash) ? ::AWSCDK::APS::CfnScraper::CloudWatchLogDestinationProperty.new(**cloud_watch_logs.transform_keys(&:to_sym)) : cloud_watch_logs
  Jsii::Type.check_type(@cloud_watch_logs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHMuQ2ZuU2NyYXBlci5DbG91ZFdhdGNoTG9nRGVzdGluYXRpb25Qcm9wZXJ0eSJ9XX19")), "cloudWatchLogs") unless @cloud_watch_logs.nil?
end

Instance Attribute Details

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

The CloudWatch Logs configuration for the scraper logging destination.



986
987
988
# File 'aps/cfn_scraper.rb', line 986

def cloud_watch_logs
  @cloud_watch_logs
end

Class Method Details

.jsii_propertiesObject



988
989
990
991
992
# File 'aps/cfn_scraper.rb', line 988

def self.jsii_properties
  {
    :cloud_watch_logs => "cloudWatchLogs",
  }
end

Instance Method Details

#to_jsiiObject



994
995
996
997
998
999
1000
# File 'aps/cfn_scraper.rb', line 994

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