Class: AWSCDK::CloudWatch::DashboardVariable

Inherits:
Jsii::Object
  • Object
show all
Includes:
IVariable
Defined in:
cloud_watch/dashboard_variable.rb

Overview

Dashboard Variable.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DashboardVariable

Returns a new instance of DashboardVariable.



10
11
12
13
14
# File 'cloud_watch/dashboard_variable.rb', line 10

def initialize(options)
  options = options.is_a?(Hash) ? ::AWSCDK::CloudWatch::DashboardVariableOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5EYXNoYm9hcmRWYXJpYWJsZU9wdGlvbnMifQ==")), "options")
  Jsii::Object.instance_method(:initialize).bind(self).call(options)
end

Class Method Details

.jsii_overridable_methodsObject



16
17
18
19
20
# File 'cloud_watch/dashboard_variable.rb', line 16

def self.jsii_overridable_methods
  {
    :to_json => { kind: :method, name: "toJson", is_optional: false },
  }
end

Instance Method Details

#to_jsonObject

Return the variable JSON for use in the dashboard.

Returns:

  • (Object)


25
26
27
# File 'cloud_watch/dashboard_variable.rb', line 25

def to_json()
  jsii_call_method("toJson", [])
end