Class: AWSCDK::QuickSight::CfnDashboard::IntegerValueWhenUnsetConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.rb

Overview

A parameter declaration for the Integer data type.

This is a union type structure. For this structure to be valid, only one of the attributes can be defined.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(custom_value: nil, value_when_unset_option: nil) ⇒ IntegerValueWhenUnsetConfigurationProperty

Returns a new instance of IntegerValueWhenUnsetConfigurationProperty.

Parameters:

  • custom_value (Numeric, nil) (defaults to: nil)

    A custom value that's used when the value of a parameter isn't set.

  • value_when_unset_option (String, nil) (defaults to: nil)

    The built-in options for default values. The value can be one of the following:.



17222
17223
17224
17225
17226
17227
# File 'quick_sight/cfn_dashboard.rb', line 17222

def initialize(custom_value: nil, value_when_unset_option: nil)
  @custom_value = custom_value
  Jsii::Type.check_type(@custom_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "customValue") unless @custom_value.nil?
  @value_when_unset_option = value_when_unset_option
  Jsii::Type.check_type(@value_when_unset_option, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "valueWhenUnsetOption") unless @value_when_unset_option.nil?
end

Instance Attribute Details

#custom_valueNumeric? (readonly)

A custom value that's used when the value of a parameter isn't set.



17233
17234
17235
# File 'quick_sight/cfn_dashboard.rb', line 17233

def custom_value
  @custom_value
end

#value_when_unset_optionString? (readonly)

The built-in options for default values. The value can be one of the following:.

  • RECOMMENDED : The recommended value.
  • NULL : The NULL value.


17241
17242
17243
# File 'quick_sight/cfn_dashboard.rb', line 17241

def value_when_unset_option
  @value_when_unset_option
end

Class Method Details

.jsii_propertiesObject



17243
17244
17245
17246
17247
17248
# File 'quick_sight/cfn_dashboard.rb', line 17243

def self.jsii_properties
  {
    :custom_value => "customValue",
    :value_when_unset_option => "valueWhenUnsetOption",
  }
end

Instance Method Details

#to_jsiiObject



17250
17251
17252
17253
17254
17255
17256
17257
# File 'quick_sight/cfn_dashboard.rb', line 17250

def to_jsii
  result = {}
  result.merge!({
    "customValue" => @custom_value,
    "valueWhenUnsetOption" => @value_when_unset_option,
  })
  result.compact
end