Class: AWSCDK::QuickSight::CfnDashboard::PercentageDisplayFormatConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::PercentageDisplayFormatConfigurationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The options that determine the percentage display format configuration.
Instance Attribute Summary collapse
-
#decimal_places_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The option that determines the decimal places configuration.
-
#negative_value_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The options that determine the negative value configuration.
-
#null_value_format_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The options that determine the null value format configuration.
-
#prefix ⇒ String?
readonly
Determines the prefix value of the percentage format.
-
#separator_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The options that determine the numeric separator configuration.
-
#suffix ⇒ String?
readonly
Determines the suffix value of the percentage format.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(decimal_places_configuration: nil, negative_value_configuration: nil, null_value_format_configuration: nil, prefix: nil, separator_configuration: nil, suffix: nil) ⇒ PercentageDisplayFormatConfigurationProperty
constructor
A new instance of PercentageDisplayFormatConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(decimal_places_configuration: nil, negative_value_configuration: nil, null_value_format_configuration: nil, prefix: nil, separator_configuration: nil, suffix: nil) ⇒ PercentageDisplayFormatConfigurationProperty
Returns a new instance of PercentageDisplayFormatConfigurationProperty.
21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 |
# File 'quick_sight/cfn_dashboard.rb', line 21866 def initialize(decimal_places_configuration: nil, negative_value_configuration: nil, null_value_format_configuration: nil, prefix: nil, separator_configuration: nil, suffix: nil) @decimal_places_configuration = decimal_places_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::DecimalPlacesConfigurationProperty.new(**decimal_places_configuration.transform_keys(&:to_sym)) : decimal_places_configuration Jsii::Type.check_type(@decimal_places_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EZWNpbWFsUGxhY2VzQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "decimalPlacesConfiguration") unless @decimal_places_configuration.nil? @negative_value_configuration = negative_value_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::NegativeValueConfigurationProperty.new(**negative_value_configuration.transform_keys(&:to_sym)) : negative_value_configuration Jsii::Type.check_type(@negative_value_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5OZWdhdGl2ZVZhbHVlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "negativeValueConfiguration") unless @negative_value_configuration.nil? @null_value_format_configuration = null_value_format_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5OdWxsVmFsdWVGb3JtYXRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "nullValueFormatConfiguration") unless @null_value_format_configuration.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::CfnDashboard::NumericSeparatorConfigurationProperty.new(**separator_configuration.transform_keys(&:to_sym)) : separator_configuration Jsii::Type.check_type(@separator_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5OdW1lcmljU2VwYXJhdG9yQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "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_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The option that determines the decimal places configuration.
21885 21886 21887 |
# File 'quick_sight/cfn_dashboard.rb', line 21885 def decimal_places_configuration @decimal_places_configuration end |
#negative_value_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine the negative value configuration.
21890 21891 21892 |
# File 'quick_sight/cfn_dashboard.rb', line 21890 def negative_value_configuration @negative_value_configuration end |
#null_value_format_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine the null value format configuration.
21895 21896 21897 |
# File 'quick_sight/cfn_dashboard.rb', line 21895 def null_value_format_configuration @null_value_format_configuration end |
#prefix ⇒ String? (readonly)
Determines the prefix value of the percentage format.
21900 21901 21902 |
# File 'quick_sight/cfn_dashboard.rb', line 21900 def prefix @prefix end |
#separator_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine the numeric separator configuration.
21905 21906 21907 |
# File 'quick_sight/cfn_dashboard.rb', line 21905 def separator_configuration @separator_configuration end |
#suffix ⇒ String? (readonly)
Determines the suffix value of the percentage format.
21910 21911 21912 |
# File 'quick_sight/cfn_dashboard.rb', line 21910 def suffix @suffix end |
Class Method Details
.jsii_properties ⇒ Object
21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 |
# File 'quick_sight/cfn_dashboard.rb', line 21912 def self.jsii_properties { :decimal_places_configuration => "decimalPlacesConfiguration", :negative_value_configuration => "negativeValueConfiguration", :null_value_format_configuration => "nullValueFormatConfiguration", :prefix => "prefix", :separator_configuration => "separatorConfiguration", :suffix => "suffix", } end |
Instance Method Details
#to_jsii ⇒ Object
21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 |
# File 'quick_sight/cfn_dashboard.rb', line 21923 def to_jsii result = {} result.merge!({ "decimalPlacesConfiguration" => @decimal_places_configuration, "negativeValueConfiguration" => @negative_value_configuration, "nullValueFormatConfiguration" => @null_value_format_configuration, "prefix" => @prefix, "separatorConfiguration" => @separator_configuration, "suffix" => @suffix, }) result.compact end |