Class: AWSCDK::QuickSight::CfnTemplate::UniqueValuesComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::UniqueValuesComputationProperty
- Defined in:
- quick_sight/cfn_template.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.
29093 29094 29095 29096 29097 29098 29099 29100 |
# File 'quick_sight/cfn_template.rb', line 29093 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::CfnTemplate::DimensionFieldProperty.new(**category.transform_keys(&:to_sym)) : category Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRpbWVuc2lvbkZpZWxkUHJvcGVydHkifV19fQ==")), "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.
29111 29112 29113 |
# File 'quick_sight/cfn_template.rb', line 29111 def category @category end |
#computation_id ⇒ String (readonly)
The ID for a computation.
29106 29107 29108 |
# File 'quick_sight/cfn_template.rb', line 29106 def computation_id @computation_id end |
#name ⇒ String? (readonly)
The name of a computation.
29116 29117 29118 |
# File 'quick_sight/cfn_template.rb', line 29116 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
29118 29119 29120 29121 29122 29123 29124 |
# File 'quick_sight/cfn_template.rb', line 29118 def self.jsii_properties { :computation_id => "computationId", :category => "category", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
29126 29127 29128 29129 29130 29131 29132 29133 29134 |
# File 'quick_sight/cfn_template.rb', line 29126 def to_jsii result = {} result.merge!({ "computationId" => @computation_id, "category" => @category, "name" => @name, }) result.compact end |