Class: AWSCDK::QuickSight::CfnAnalysis::CalculatedFieldProperty

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

Overview

The calculated field of an analysis.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_set_identifier:, expression:, name:) ⇒ CalculatedFieldProperty

Returns a new instance of CalculatedFieldProperty.

Parameters:

  • data_set_identifier (String)

    The data set that is used in this calculated field.

  • expression (String)

    The expression of the calculated field.

  • name (String)

    The name of the calculated field.



3275
3276
3277
3278
3279
3280
3281
3282
# File 'quick_sight/cfn_analysis.rb', line 3275

def initialize(data_set_identifier:, expression:, name:)
  @data_set_identifier = data_set_identifier
  Jsii::Type.check_type(@data_set_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataSetIdentifier")
  @expression = expression
  Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
end

Instance Attribute Details

#data_set_identifierString (readonly)

The data set that is used in this calculated field.



3288
3289
3290
# File 'quick_sight/cfn_analysis.rb', line 3288

def data_set_identifier
  @data_set_identifier
end

#expressionString (readonly)

The expression of the calculated field.



3293
3294
3295
# File 'quick_sight/cfn_analysis.rb', line 3293

def expression
  @expression
end

#nameString (readonly)

The name of the calculated field.



3298
3299
3300
# File 'quick_sight/cfn_analysis.rb', line 3298

def name
  @name
end

Class Method Details

.jsii_propertiesObject



3300
3301
3302
3303
3304
3305
3306
# File 'quick_sight/cfn_analysis.rb', line 3300

def self.jsii_properties
  {
    :data_set_identifier => "dataSetIdentifier",
    :expression => "expression",
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



3308
3309
3310
3311
3312
3313
3314
3315
3316
# File 'quick_sight/cfn_analysis.rb', line 3308

def to_jsii
  result = {}
  result.merge!({
    "dataSetIdentifier" => @data_set_identifier,
    "expression" => @expression,
    "name" => @name,
  })
  result.compact
end