Class: AWSCDK::QuickSight::CfnDashboard::UniqueValuesComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::UniqueValuesComputationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The unique values computation configuration.
Instance Attribute Summary collapse
-
#category ⇒ AWSCDK::IResolvable, ...
readonly
The category field that is used in a computation.
-
#computation_id ⇒ String
readonly
The ID for a computation.
-
#name ⇒ String?
readonly
The name of a computation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(computation_id:, category: nil, name: nil) ⇒ UniqueValuesComputationProperty
constructor
A new instance of UniqueValuesComputationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(computation_id:, category: nil, name: nil) ⇒ UniqueValuesComputationProperty
Returns a new instance of UniqueValuesComputationProperty.
31849 31850 31851 31852 31853 31854 31855 31856 |
# File 'quick_sight/cfn_dashboard.rb', line 31849 def initialize(computation_id:, category: nil, name: nil) @computation_id = computation_id Jsii::Type.check_type(@computation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computationId") @category = category.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::DimensionFieldProperty.new(**category.transform_keys(&:to_sym)) : category Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EaW1lbnNpb25GaWVsZFByb3BlcnR5In1dfX0=")), "category") unless @category.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#category ⇒ AWSCDK::IResolvable, ... (readonly)
The category field that is used in a computation.
31867 31868 31869 |
# File 'quick_sight/cfn_dashboard.rb', line 31867 def category @category end |
#computation_id ⇒ String (readonly)
The ID for a computation.
31862 31863 31864 |
# File 'quick_sight/cfn_dashboard.rb', line 31862 def computation_id @computation_id end |
#name ⇒ String? (readonly)
The name of a computation.
31872 31873 31874 |
# File 'quick_sight/cfn_dashboard.rb', line 31872 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
31874 31875 31876 31877 31878 31879 31880 |
# File 'quick_sight/cfn_dashboard.rb', line 31874 def self.jsii_properties { :computation_id => "computationId", :category => "category", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
31882 31883 31884 31885 31886 31887 31888 31889 31890 |
# File 'quick_sight/cfn_dashboard.rb', line 31882 def to_jsii result = {} result.merge!({ "computationId" => @computation_id, "category" => @category, "name" => @name, }) result.compact end |