Class: AWSCDK::QuickSight::CfnDashboard::DataFieldSeriesItemProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.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::CfnDashboard::LineChartSeriesSettingsProperty, nil) (defaults to: nil)

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



6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
# File 'quick_sight/cfn_dashboard.rb', line 6732

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::CfnDashboard::LineChartSeriesSettingsProperty.new(**settings.transform_keys(&:to_sym)) : settings
  Jsii::Type.check_type(@settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5MaW5lQ2hhcnRTZXJpZXNTZXR0aW5nc1Byb3BlcnR5In1dfX0=")), "settings") unless @settings.nil?
end

Instance Attribute Details

#axis_bindingString (readonly)

The axis that you are binding the field to.



6747
6748
6749
# File 'quick_sight/cfn_dashboard.rb', line 6747

def axis_binding
  @axis_binding
end

#field_idString (readonly)

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



6752
6753
6754
# File 'quick_sight/cfn_dashboard.rb', line 6752

def field_id
  @field_id
end

#field_valueString? (readonly)

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



6757
6758
6759
# File 'quick_sight/cfn_dashboard.rb', line 6757

def field_value
  @field_value
end

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

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



6762
6763
6764
# File 'quick_sight/cfn_dashboard.rb', line 6762

def settings
  @settings
end

Class Method Details

.jsii_propertiesObject



6764
6765
6766
6767
6768
6769
6770
6771
# File 'quick_sight/cfn_dashboard.rb', line 6764

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

Instance Method Details

#to_jsiiObject



6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
# File 'quick_sight/cfn_dashboard.rb', line 6773

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