Class: AWSCDK::QuickSight::CfnDashboard::CalculatedFieldProperty

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



3141
3142
3143
3144
3145
3146
3147
3148
# File 'quick_sight/cfn_dashboard.rb', line 3141

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.



3154
3155
3156
# File 'quick_sight/cfn_dashboard.rb', line 3154

def data_set_identifier
  @data_set_identifier
end

#expressionString (readonly)

The expression of the calculated field.



3159
3160
3161
# File 'quick_sight/cfn_dashboard.rb', line 3159

def expression
  @expression
end

#nameString (readonly)

The name of the calculated field.



3164
3165
3166
# File 'quick_sight/cfn_dashboard.rb', line 3164

def name
  @name
end

Class Method Details

.jsii_propertiesObject



3166
3167
3168
3169
3170
3171
3172
# File 'quick_sight/cfn_dashboard.rb', line 3166

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

Instance Method Details

#to_jsiiObject



3174
3175
3176
3177
3178
3179
3180
3181
3182
# File 'quick_sight/cfn_dashboard.rb', line 3174

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