Class: AWSCDK::APS::CfnScraper::ScraperComponentProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APS::CfnScraper::ScraperComponentProperty
- 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
-
#config ⇒ AWSCDK::IResolvable, ...
readonly
The configuration settings for the scraper component.
-
#type ⇒ String
readonly
The type of the scraper component.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, config: nil) ⇒ ScraperComponentProperty
constructor
A new instance of ScraperComponentProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, config: nil) ⇒ ScraperComponentProperty
Returns a new instance of ScraperComponentProperty.
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
#config ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration settings for the scraper component.
910 911 912 |
# File 'aps/cfn_scraper.rb', line 910 def config @config end |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |