Class: AWSCDK::APS::CfnScraper::ScraperLoggingConfigurationProperty

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

Overview

Configuration for scraper logging.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logging_destination:, scraper_components:) ⇒ ScraperLoggingConfigurationProperty

Returns a new instance of ScraperLoggingConfigurationProperty.



937
938
939
940
941
942
# File 'aps/cfn_scraper.rb', line 937

def initialize(logging_destination:, scraper_components:)
  @logging_destination = logging_destination.is_a?(Hash) ? ::AWSCDK::APS::CfnScraper::ScraperLoggingDestinationProperty.new(**logging_destination.transform_keys(&:to_sym)) : logging_destination
  Jsii::Type.check_type(@logging_destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHMuQ2ZuU2NyYXBlci5TY3JhcGVyTG9nZ2luZ0Rlc3RpbmF0aW9uUHJvcGVydHkifV19fQ==")), "loggingDestination")
  @scraper_components = scraper_components
  Jsii::Type.check_type(@scraper_components, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBzLkNmblNjcmFwZXIuU2NyYXBlckNvbXBvbmVudFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "scraperComponents")
end

Class Method Details

.jsii_propertiesObject



953
954
955
956
957
958
# File 'aps/cfn_scraper.rb', line 953

def self.jsii_properties
  {
    :logging_destination => "loggingDestination",
    :scraper_components => "scraperComponents",
  }
end

Instance Method Details

#to_jsiiObject



960
961
962
963
964
965
966
967
# File 'aps/cfn_scraper.rb', line 960

def to_jsii
  result = {}
  result.merge!({
    "loggingDestination" => @logging_destination,
    "scraperComponents" => @scraper_components,
  })
  result.compact
end