Class: AWSCDK::APS::CfnScraper::DestinationProperty

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

Overview

Where to send the metrics from a scraper.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(amp_configuration:) ⇒ DestinationProperty

Returns a new instance of DestinationProperty.

Parameters:



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_configurationAWSCDK::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_propertiesObject



740
741
742
743
744
# File 'aps/cfn_scraper.rb', line 740

def self.jsii_properties
  {
    :amp_configuration => "ampConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



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