Class: AWSCDK::APS::CfnScraper::AmpConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APS::CfnScraper::AmpConfigurationProperty
- Defined in:
- aps/cfn_scraper.rb
Overview
The AmpConfiguration structure defines the Amazon Managed Service for Prometheus instance a scraper should send metrics to.
Instance Attribute Summary collapse
-
#workspace_arn ⇒ String
readonly
ARN of the Amazon Managed Service for Prometheus workspace.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_arn:) ⇒ AmpConfigurationProperty
constructor
A new instance of AmpConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(workspace_arn:) ⇒ AmpConfigurationProperty
Returns a new instance of AmpConfigurationProperty.
630 631 632 633 |
# File 'aps/cfn_scraper.rb', line 630 def initialize(workspace_arn:) @workspace_arn = workspace_arn Jsii::Type.check_type(@workspace_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workspaceArn") end |
Instance Attribute Details
#workspace_arn ⇒ String (readonly)
ARN of the Amazon Managed Service for Prometheus workspace.
639 640 641 |
# File 'aps/cfn_scraper.rb', line 639 def workspace_arn @workspace_arn end |
Class Method Details
.jsii_properties ⇒ Object
641 642 643 644 645 |
# File 'aps/cfn_scraper.rb', line 641 def self.jsii_properties { :workspace_arn => "workspaceArn", } end |
Instance Method Details
#to_jsii ⇒ Object
647 648 649 650 651 652 653 |
# File 'aps/cfn_scraper.rb', line 647 def to_jsii result = {} result.merge!({ "workspaceArn" => @workspace_arn, }) result.compact end |