Class: AWSCDK::QuickSight::CfnTemplate::TotalAggregationComputationProperty

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

Overview

The total aggregation computation configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(computation_id:, name: nil, value: nil) ⇒ TotalAggregationComputationProperty

Returns a new instance of TotalAggregationComputationProperty.

Parameters:



28380
28381
28382
28383
28384
28385
28386
28387
# File 'quick_sight/cfn_template.rb', line 28380

def initialize(computation_id:, name: nil, value: nil)
  @computation_id = computation_id
  Jsii::Type.check_type(@computation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computationId")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @value = value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::MeasureFieldProperty.new(**value.transform_keys(&:to_sym)) : value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLk1lYXN1cmVGaWVsZFByb3BlcnR5In1dfX0=")), "value") unless @value.nil?
end

Instance Attribute Details

#computation_idString (readonly)

The ID for a computation.



28393
28394
28395
# File 'quick_sight/cfn_template.rb', line 28393

def computation_id
  @computation_id
end

#nameString? (readonly)

The name of a computation.



28398
28399
28400
# File 'quick_sight/cfn_template.rb', line 28398

def name
  @name
end

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

The value field that is used in a computation.



28403
28404
28405
# File 'quick_sight/cfn_template.rb', line 28403

def value
  @value
end

Class Method Details

.jsii_propertiesObject



28405
28406
28407
28408
28409
28410
28411
# File 'quick_sight/cfn_template.rb', line 28405

def self.jsii_properties
  {
    :computation_id => "computationId",
    :name => "name",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



28413
28414
28415
28416
28417
28418
28419
28420
28421
# File 'quick_sight/cfn_template.rb', line 28413

def to_jsii
  result = {}
  result.merge!({
    "computationId" => @computation_id,
    "name" => @name,
    "value" => @value,
  })
  result.compact
end