Class: AWSCDK::QuickSight::CfnTemplate::TopBottomMoversComputationProperty

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

Overview

The top movers and bottom movers computation setup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(computation_id:, type:, category: nil, mover_size: nil, name: nil, sort_order: nil, time: nil, value: nil) ⇒ TopBottomMoversComputationProperty

Returns a new instance of TopBottomMoversComputationProperty.

Parameters:



28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
# File 'quick_sight/cfn_template.rb', line 28191

def initialize(computation_id:, type:, category: nil, mover_size: nil, name: nil, sort_order: nil, time: 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::CfnTemplate::DimensionFieldProperty.new(**category.transform_keys(&:to_sym)) : category
  Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRpbWVuc2lvbkZpZWxkUHJvcGVydHkifV19fQ==")), "category") unless @category.nil?
  @mover_size = mover_size
  Jsii::Type.check_type(@mover_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "moverSize") unless @mover_size.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @sort_order = sort_order
  Jsii::Type.check_type(@sort_order, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sortOrder") unless @sort_order.nil?
  @time = time.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DimensionFieldProperty.new(**time.transform_keys(&:to_sym)) : time
  Jsii::Type.check_type(@time, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRpbWVuc2lvbkZpZWxkUHJvcGVydHkifV19fQ==")), "time") unless @time.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

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

The category field that is used in a computation.



28227
28228
28229
# File 'quick_sight/cfn_template.rb', line 28227

def category
  @category
end

#computation_idString (readonly)

The ID for a computation.



28214
28215
28216
# File 'quick_sight/cfn_template.rb', line 28214

def computation_id
  @computation_id
end

#mover_sizeNumeric? (readonly)

Note:

Default: - 0

The mover size setup of the top and bottom movers computation.



28233
28234
28235
# File 'quick_sight/cfn_template.rb', line 28233

def mover_size
  @mover_size
end

#nameString? (readonly)

The name of a computation.



28238
28239
28240
# File 'quick_sight/cfn_template.rb', line 28238

def name
  @name
end

#sort_orderString? (readonly)

The sort order setup of the top and bottom movers computation.



28243
28244
28245
# File 'quick_sight/cfn_template.rb', line 28243

def sort_order
  @sort_order
end

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

The time field that is used in a computation.



28248
28249
28250
# File 'quick_sight/cfn_template.rb', line 28248

def time
  @time
end

#typeString (readonly)

The computation type. Choose from the following options:.

  • TOP: Top movers computation.
  • BOTTOM: Bottom movers computation.


28222
28223
28224
# File 'quick_sight/cfn_template.rb', line 28222

def type
  @type
end

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

The value field that is used in a computation.



28253
28254
28255
# File 'quick_sight/cfn_template.rb', line 28253

def value
  @value
end

Class Method Details

.jsii_propertiesObject



28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
# File 'quick_sight/cfn_template.rb', line 28255

def self.jsii_properties
  {
    :computation_id => "computationId",
    :type => "type",
    :category => "category",
    :mover_size => "moverSize",
    :name => "name",
    :sort_order => "sortOrder",
    :time => "time",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
# File 'quick_sight/cfn_template.rb', line 28268

def to_jsii
  result = {}
  result.merge!({
    "computationId" => @computation_id,
    "type" => @type,
    "category" => @category,
    "moverSize" => @mover_size,
    "name" => @name,
    "sortOrder" => @sort_order,
    "time" => @time,
    "value" => @value,
  })
  result.compact
end