Class: AWSCDK::QuickSight::CfnTemplate::CalculatedFieldProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.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.



2997
2998
2999
3000
3001
3002
3003
3004
# File 'quick_sight/cfn_template.rb', line 2997

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.



3010
3011
3012
# File 'quick_sight/cfn_template.rb', line 3010

def data_set_identifier
  @data_set_identifier
end

#expressionString (readonly)

The expression of the calculated field.



3015
3016
3017
# File 'quick_sight/cfn_template.rb', line 3015

def expression
  @expression
end

#nameString (readonly)

The name of the calculated field.



3020
3021
3022
# File 'quick_sight/cfn_template.rb', line 3020

def name
  @name
end

Class Method Details

.jsii_propertiesObject



3022
3023
3024
3025
3026
3027
3028
# File 'quick_sight/cfn_template.rb', line 3022

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

Instance Method Details

#to_jsiiObject



3030
3031
3032
3033
3034
3035
3036
3037
3038
# File 'quick_sight/cfn_template.rb', line 3030

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