Class: AWSCDK::QuickSight::CfnAnalysis::MaximumMinimumComputationProperty

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

Overview

The maximum and minimum computation configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(computation_id:, type:, name: nil, time: nil, value: nil) ⇒ MaximumMinimumComputationProperty

Returns a new instance of MaximumMinimumComputationProperty.

Parameters:



18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
# File 'quick_sight/cfn_analysis.rb', line 18691

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

#computation_idString (readonly)

The ID for a computation.



18708
18709
18710
# File 'quick_sight/cfn_analysis.rb', line 18708

def computation_id
  @computation_id
end

#nameString? (readonly)

The name of a computation.



18721
18722
18723
# File 'quick_sight/cfn_analysis.rb', line 18721

def name
  @name
end

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

The time field that is used in a computation.



18726
18727
18728
# File 'quick_sight/cfn_analysis.rb', line 18726

def time
  @time
end

#typeString (readonly)

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

  • MAXIMUM: A maximum computation.
  • MINIMUM: A minimum computation.


18716
18717
18718
# File 'quick_sight/cfn_analysis.rb', line 18716

def type
  @type
end

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

The value field that is used in a computation.



18731
18732
18733
# File 'quick_sight/cfn_analysis.rb', line 18731

def value
  @value
end

Class Method Details

.jsii_propertiesObject



18733
18734
18735
18736
18737
18738
18739
18740
18741
# File 'quick_sight/cfn_analysis.rb', line 18733

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

Instance Method Details

#to_jsiiObject



18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
# File 'quick_sight/cfn_analysis.rb', line 18743

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