Class: AWSCDK::APS::CfnScraper::DestinationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APS::CfnScraper::DestinationProperty
- Defined in:
- aps/cfn_scraper.rb
Overview
Where to send the metrics from a scraper.
Instance Attribute Summary collapse
-
#amp_configuration ⇒ AWSCDK::IResolvable, AWSCDK::APS::CfnScraper::AmpConfigurationProperty
readonly
The Amazon Managed Service for Prometheus workspace to send metrics to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(amp_configuration:) ⇒ DestinationProperty
constructor
A new instance of DestinationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(amp_configuration:) ⇒ DestinationProperty
Returns a new instance of DestinationProperty.
729 730 731 732 |
# File 'aps/cfn_scraper.rb', line 729 def initialize(amp_configuration:) @amp_configuration = amp_configuration.is_a?(Hash) ? ::AWSCDK::APS::CfnScraper::AmpConfigurationProperty.new(**amp_configuration.transform_keys(&:to_sym)) : amp_configuration Jsii::Type.check_type(@amp_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHMuQ2ZuU2NyYXBlci5BbXBDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "ampConfiguration") end |
Instance Attribute Details
#amp_configuration ⇒ AWSCDK::IResolvable, AWSCDK::APS::CfnScraper::AmpConfigurationProperty (readonly)
The Amazon Managed Service for Prometheus workspace to send metrics to.
738 739 740 |
# File 'aps/cfn_scraper.rb', line 738 def amp_configuration @amp_configuration end |
Class Method Details
.jsii_properties ⇒ Object
740 741 742 743 744 |
# File 'aps/cfn_scraper.rb', line 740 def self.jsii_properties { :amp_configuration => "ampConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
746 747 748 749 750 751 752 |
# File 'aps/cfn_scraper.rb', line 746 def to_jsii result = {} result.merge!({ "ampConfiguration" => @amp_configuration, }) result.compact end |