Class: AWSCDK::CloudWatch::DashboardVariable
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::CloudWatch::DashboardVariable
- Includes:
- IVariable
- Defined in:
- cloud_watch/dashboard_variable.rb
Overview
Dashboard Variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ DashboardVariable
constructor
A new instance of DashboardVariable.
-
#to_json ⇒ Object
Return the variable JSON for use in the dashboard.
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() = .is_a?(Hash) ? ::AWSCDK::CloudWatch::DashboardVariableOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5EYXNoYm9hcmRWYXJpYWJsZU9wdGlvbnMifQ==")), "options") Jsii::Object.instance_method(:initialize).bind(self).call() end |
Class Method Details
.jsii_overridable_methods ⇒ Object
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_json ⇒ Object
Return the variable JSON for use in the dashboard.
25 26 27 |
# File 'cloud_watch/dashboard_variable.rb', line 25 def to_json() jsii_call_method("toJson", []) end |