Class: AWSCDK::APS::CfnScraper::AmpConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workspace_arn:) ⇒ AmpConfigurationProperty

Returns a new instance of AmpConfigurationProperty.

Parameters:

  • workspace_arn (String)

    ARN of the Amazon Managed Service for Prometheus workspace.



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_arnString (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_propertiesObject



641
642
643
644
645
# File 'aps/cfn_scraper.rb', line 641

def self.jsii_properties
  {
    :workspace_arn => "workspaceArn",
  }
end

Instance Method Details

#to_jsiiObject



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