Class: AWSCDK::QuickSight::CfnAnalysis::DataFieldSeriesItemProperty

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

Overview

The data field series item configuration of a line chart.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(axis_binding:, field_id:, field_value: nil, settings: nil) ⇒ DataFieldSeriesItemProperty

Returns a new instance of DataFieldSeriesItemProperty.

Parameters:

  • axis_binding (String)

    The axis that you are binding the field to.

  • field_id (String)

    The field ID of the field that you are setting the axis binding to.

  • field_value (String, nil) (defaults to: nil)

    The field value of the field that you are setting the axis binding to.

  • settings (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::LineChartSeriesSettingsProperty, nil) (defaults to: nil)

    The options that determine the presentation of line series associated to the field.



6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
# File 'quick_sight/cfn_analysis.rb', line 6278

def initialize(axis_binding:, field_id:, field_value: nil, settings: nil)
  @axis_binding = axis_binding
  Jsii::Type.check_type(@axis_binding, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "axisBinding")
  @field_id = field_id
  Jsii::Type.check_type(@field_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldId")
  @field_value = field_value
  Jsii::Type.check_type(@field_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldValue") unless @field_value.nil?
  @settings = settings.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::LineChartSeriesSettingsProperty.new(**settings.transform_keys(&:to_sym)) : settings
  Jsii::Type.check_type(@settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkxpbmVDaGFydFNlcmllc1NldHRpbmdzUHJvcGVydHkifV19fQ==")), "settings") unless @settings.nil?
end

Instance Attribute Details

#axis_bindingString (readonly)

The axis that you are binding the field to.



6293
6294
6295
# File 'quick_sight/cfn_analysis.rb', line 6293

def axis_binding
  @axis_binding
end

#field_idString (readonly)

The field ID of the field that you are setting the axis binding to.



6298
6299
6300
# File 'quick_sight/cfn_analysis.rb', line 6298

def field_id
  @field_id
end

#field_valueString? (readonly)

The field value of the field that you are setting the axis binding to.



6303
6304
6305
# File 'quick_sight/cfn_analysis.rb', line 6303

def field_value
  @field_value
end

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

The options that determine the presentation of line series associated to the field.



6308
6309
6310
# File 'quick_sight/cfn_analysis.rb', line 6308

def settings
  @settings
end

Class Method Details

.jsii_propertiesObject



6310
6311
6312
6313
6314
6315
6316
6317
# File 'quick_sight/cfn_analysis.rb', line 6310

def self.jsii_properties
  {
    :axis_binding => "axisBinding",
    :field_id => "fieldId",
    :field_value => "fieldValue",
    :settings => "settings",
  }
end

Instance Method Details

#to_jsiiObject



6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
# File 'quick_sight/cfn_analysis.rb', line 6319

def to_jsii
  result = {}
  result.merge!({
    "axisBinding" => @axis_binding,
    "fieldId" => @field_id,
    "fieldValue" => @field_value,
    "settings" => @settings,
  })
  result.compact
end