Class: AWSCDK::QuickSight::CfnAnalysis::TopBottomRankedComputationProperty

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

Overview

The top ranked and bottom ranked computation configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(computation_id:, type:, category: nil, name: nil, result_size: nil, value: nil) ⇒ TopBottomRankedComputationProperty

Returns a new instance of TopBottomRankedComputationProperty.

Parameters:



30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
# File 'quick_sight/cfn_analysis.rb', line 30014

def initialize(computation_id:, type:, category: nil, name: nil, result_size: nil, value: nil)
  @computation_id = computation_id
  Jsii::Type.check_type(@computation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computationId")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @category = category.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::DimensionFieldProperty.new(**category.transform_keys(&:to_sym)) : category
  Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRpbWVuc2lvbkZpZWxkUHJvcGVydHkifV19fQ==")), "category") unless @category.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @result_size = result_size
  Jsii::Type.check_type(@result_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "resultSize") unless @result_size.nil?
  @value = value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::MeasureFieldProperty.new(**value.transform_keys(&:to_sym)) : value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLk1lYXN1cmVGaWVsZFByb3BlcnR5In1dfX0=")), "value") unless @value.nil?
end

Instance Attribute Details

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

The category field that is used in a computation.



30046
30047
30048
# File 'quick_sight/cfn_analysis.rb', line 30046

def category
  @category
end

#computation_idString (readonly)

The ID for a computation.



30033
30034
30035
# File 'quick_sight/cfn_analysis.rb', line 30033

def computation_id
  @computation_id
end

#nameString? (readonly)

The name of a computation.



30051
30052
30053
# File 'quick_sight/cfn_analysis.rb', line 30051

def name
  @name
end

#result_sizeNumeric? (readonly)

Note:

Default: - 0

The result size of a top and bottom ranked computation.



30057
30058
30059
# File 'quick_sight/cfn_analysis.rb', line 30057

def result_size
  @result_size
end

#typeString (readonly)

The computation type. Choose one of the following options:.

  • TOP: A top ranked computation.
  • BOTTOM: A bottom ranked computation.


30041
30042
30043
# File 'quick_sight/cfn_analysis.rb', line 30041

def type
  @type
end

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

The value field that is used in a computation.



30062
30063
30064
# File 'quick_sight/cfn_analysis.rb', line 30062

def value
  @value
end

Class Method Details

.jsii_propertiesObject



30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
# File 'quick_sight/cfn_analysis.rb', line 30064

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

Instance Method Details

#to_jsiiObject



30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
# File 'quick_sight/cfn_analysis.rb', line 30075

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