Class: AWSCDK::CloudWatch::DefaultValue

Inherits:
Jsii::Object
  • Object
show all
Defined in:
cloud_watch/default_value.rb

Overview

Default value for use in DashboardVariableOptions.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ DefaultValue

Returns a new instance of DefaultValue.

Raises:

  • (NoMethodError)


8
9
10
# File 'cloud_watch/default_value.rb', line 8

def initialize(*args)
  raise NoMethodError, "aws-cdk-lib.aws_cloudwatch.DefaultValue does not have a visible constructor; use the provided factory methods"
end

Class Method Details

.FIRSTAWSCDK::CloudWatch::DefaultValue

A special value for use with search expressions to have the default value be the first value returned from search.

Returns:

  • (AWSCDK::CloudWatch::DefaultValue)


30
31
32
# File 'cloud_watch/default_value.rb', line 30

def self.FIRST()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_cloudwatch.DefaultValue", "FIRST")
end

.jsii_overridable_methodsObject



12
13
14
15
16
# File 'cloud_watch/default_value.rb', line 12

def self.jsii_overridable_methods
  {
    :val => { kind: :property, name: "val", is_optional: false },
  }
end

.value(value) ⇒ AWSCDK::CloudWatch::DefaultValue

Create a default value.

Parameters:

  • value (Object)

    the value to be used as default.

Returns:

  • (AWSCDK::CloudWatch::DefaultValue)


22
23
24
25
# File 'cloud_watch/default_value.rb', line 22

def self.value(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "value")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_cloudwatch.DefaultValue", "value", [value])
end

Instance Method Details

#valObject

Returns:

  • (Object)


35
36
37
# File 'cloud_watch/default_value.rb', line 35

def val()
  jsii_get_property("val")
end