Class: AWSCDK::APS::CfnScraper::ScraperComponentProperty

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

Overview

A component of a Amazon Managed Service for Prometheus scraper that can be configured for logging.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, config: nil) ⇒ ScraperComponentProperty

Returns a new instance of ScraperComponentProperty.

Parameters:



894
895
896
897
898
899
# File 'aps/cfn_scraper.rb', line 894

def initialize(type:, config: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @config = config.is_a?(Hash) ? ::AWSCDK::APS::CfnScraper::ComponentConfigProperty.new(**config.transform_keys(&:to_sym)) : config
  Jsii::Type.check_type(@config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHMuQ2ZuU2NyYXBlci5Db21wb25lbnRDb25maWdQcm9wZXJ0eSJ9XX19")), "config") unless @config.nil?
end

Instance Attribute Details

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

The configuration settings for the scraper component.



910
911
912
# File 'aps/cfn_scraper.rb', line 910

def config
  @config
end

#typeString (readonly)

The type of the scraper component.



905
906
907
# File 'aps/cfn_scraper.rb', line 905

def type
  @type
end

Class Method Details

.jsii_propertiesObject



912
913
914
915
916
917
# File 'aps/cfn_scraper.rb', line 912

def self.jsii_properties
  {
    :type => "type",
    :config => "config",
  }
end

Instance Method Details

#to_jsiiObject



919
920
921
922
923
924
925
926
# File 'aps/cfn_scraper.rb', line 919

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