Class: AWSCDK::QuickSight::CfnTemplate::GrowthRateComputationProperty

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

Overview

The growth rate computation configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(computation_id:, name: nil, period_size: nil, time: nil, value: nil) ⇒ GrowthRateComputationProperty

Returns a new instance of GrowthRateComputationProperty.

Parameters:



13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
# File 'quick_sight/cfn_template.rb', line 13374

def initialize(computation_id:, name: nil, period_size: nil, time: 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?
  @period_size = period_size
  Jsii::Type.check_type(@period_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "periodSize") unless @period_size.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

#computation_idString (readonly)

The ID for a computation.



13391
13392
13393
# File 'quick_sight/cfn_template.rb', line 13391

def computation_id
  @computation_id
end

#nameString? (readonly)

The name of a computation.



13396
13397
13398
# File 'quick_sight/cfn_template.rb', line 13396

def name
  @name
end

#period_sizeNumeric? (readonly)

Note:

Default: - 0

The period size setup of a growth rate computation.



13402
13403
13404
# File 'quick_sight/cfn_template.rb', line 13402

def period_size
  @period_size
end

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

The time field that is used in a computation.



13407
13408
13409
# File 'quick_sight/cfn_template.rb', line 13407

def time
  @time
end

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

The value field that is used in a computation.



13412
13413
13414
# File 'quick_sight/cfn_template.rb', line 13412

def value
  @value
end

Class Method Details

.jsii_propertiesObject



13414
13415
13416
13417
13418
13419
13420
13421
13422
# File 'quick_sight/cfn_template.rb', line 13414

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

Instance Method Details

#to_jsiiObject



13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
# File 'quick_sight/cfn_template.rb', line 13424

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