Class: AWSCDK::QuickSight::CfnTemplate::IntegerValueWhenUnsetConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.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:.



14690
14691
14692
14693
14694
14695
# File 'quick_sight/cfn_template.rb', line 14690

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.



14701
14702
14703
# File 'quick_sight/cfn_template.rb', line 14701

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.


14709
14710
14711
# File 'quick_sight/cfn_template.rb', line 14709

def value_when_unset_option
  @value_when_unset_option
end

Class Method Details

.jsii_propertiesObject



14711
14712
14713
14714
14715
14716
# File 'quick_sight/cfn_template.rb', line 14711

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

Instance Method Details

#to_jsiiObject



14718
14719
14720
14721
14722
14723
14724
14725
# File 'quick_sight/cfn_template.rb', line 14718

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