Class: AWSCDK::QuickSight::CfnTemplate::NumberDisplayFormatConfigurationProperty

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

Overview

The options that determine the number display format configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(decimal_places_configuration: nil, negative_value_configuration: nil, null_value_format_configuration: nil, number_scale: nil, prefix: nil, separator_configuration: nil, suffix: nil) ⇒ NumberDisplayFormatConfigurationProperty

Returns a new instance of NumberDisplayFormatConfigurationProperty.

Parameters:



17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
# File 'quick_sight/cfn_template.rb', line 17294

def initialize(decimal_places_configuration: nil, negative_value_configuration: nil, null_value_format_configuration: nil, number_scale: nil, prefix: nil, separator_configuration: nil, suffix: nil)
  @decimal_places_configuration = decimal_places_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DecimalPlacesConfigurationProperty.new(**decimal_places_configuration.transform_keys(&:to_sym)) : decimal_places_configuration
  Jsii::Type.check_type(@decimal_places_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRlY2ltYWxQbGFjZXNDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "decimalPlacesConfiguration") unless @decimal_places_configuration.nil?
  @negative_value_configuration = negative_value_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::NegativeValueConfigurationProperty.new(**negative_value_configuration.transform_keys(&:to_sym)) : negative_value_configuration
  Jsii::Type.check_type(@negative_value_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLk5lZ2F0aXZlVmFsdWVDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "negativeValueConfiguration") unless @negative_value_configuration.nil?
  @null_value_format_configuration = null_value_format_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::NullValueFormatConfigurationProperty.new(**null_value_format_configuration.transform_keys(&:to_sym)) : null_value_format_configuration
  Jsii::Type.check_type(@null_value_format_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLk51bGxWYWx1ZUZvcm1hdENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "nullValueFormatConfiguration") unless @null_value_format_configuration.nil?
  @number_scale = number_scale
  Jsii::Type.check_type(@number_scale, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "numberScale") unless @number_scale.nil?
  @prefix = prefix
  Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil?
  @separator_configuration = separator_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::NumericSeparatorConfigurationProperty.new(**separator_configuration.transform_keys(&:to_sym)) : separator_configuration
  Jsii::Type.check_type(@separator_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLk51bWVyaWNTZXBhcmF0b3JDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "separatorConfiguration") unless @separator_configuration.nil?
  @suffix = suffix
  Jsii::Type.check_type(@suffix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "suffix") unless @suffix.nil?
end

Instance Attribute Details

#decimal_places_configurationAWSCDK::IResolvable, ... (readonly)

The option that determines the decimal places configuration.



17315
17316
17317
# File 'quick_sight/cfn_template.rb', line 17315

def decimal_places_configuration
  @decimal_places_configuration
end

#negative_value_configurationAWSCDK::IResolvable, ... (readonly)

The options that determine the negative value configuration.



17320
17321
17322
# File 'quick_sight/cfn_template.rb', line 17320

def negative_value_configuration
  @negative_value_configuration
end

#null_value_format_configurationAWSCDK::IResolvable, ... (readonly)

The options that determine the null value format configuration.



17325
17326
17327
# File 'quick_sight/cfn_template.rb', line 17325

def null_value_format_configuration
  @null_value_format_configuration
end

#number_scaleString? (readonly)

Determines the number scale value of the number format.



17330
17331
17332
# File 'quick_sight/cfn_template.rb', line 17330

def number_scale
  @number_scale
end

#prefixString? (readonly)

Determines the prefix value of the number format.



17335
17336
17337
# File 'quick_sight/cfn_template.rb', line 17335

def prefix
  @prefix
end

#separator_configurationAWSCDK::IResolvable, ... (readonly)

The options that determine the numeric separator configuration.



17340
17341
17342
# File 'quick_sight/cfn_template.rb', line 17340

def separator_configuration
  @separator_configuration
end

#suffixString? (readonly)

Determines the suffix value of the number format.



17345
17346
17347
# File 'quick_sight/cfn_template.rb', line 17345

def suffix
  @suffix
end

Class Method Details

.jsii_propertiesObject



17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
# File 'quick_sight/cfn_template.rb', line 17347

def self.jsii_properties
  {
    :decimal_places_configuration => "decimalPlacesConfiguration",
    :negative_value_configuration => "negativeValueConfiguration",
    :null_value_format_configuration => "nullValueFormatConfiguration",
    :number_scale => "numberScale",
    :prefix => "prefix",
    :separator_configuration => "separatorConfiguration",
    :suffix => "suffix",
  }
end

Instance Method Details

#to_jsiiObject



17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
# File 'quick_sight/cfn_template.rb', line 17359

def to_jsii
  result = {}
  result.merge!({
    "decimalPlacesConfiguration" => @decimal_places_configuration,
    "negativeValueConfiguration" => @negative_value_configuration,
    "nullValueFormatConfiguration" => @null_value_format_configuration,
    "numberScale" => @number_scale,
    "prefix" => @prefix,
    "separatorConfiguration" => @separator_configuration,
    "suffix" => @suffix,
  })
  result.compact
end