Class: AWSCDK::QuickSight::CfnDashboard::KPIConfigurationProperty

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

Overview

The configuration of a KPI visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_wells: nil, interactions: nil, kpi_options: nil, sort_configuration: nil) ⇒ KPIConfigurationProperty

Returns a new instance of KPIConfigurationProperty.

Parameters:



17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
# File 'quick_sight/cfn_dashboard.rb', line 17500

def initialize(field_wells: nil, interactions: nil, kpi_options: nil, sort_configuration: nil)
  @field_wells = field_wells.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::KPIFieldWellsProperty.new(**field_wells.transform_keys(&:to_sym)) : field_wells
  Jsii::Type.check_type(@field_wells, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5LUElGaWVsZFdlbGxzUHJvcGVydHkifV19fQ==")), "fieldWells") unless @field_wells.nil?
  @interactions = interactions.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::VisualInteractionOptionsProperty.new(**interactions.transform_keys(&:to_sym)) : interactions
  Jsii::Type.check_type(@interactions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5WaXN1YWxJbnRlcmFjdGlvbk9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "interactions") unless @interactions.nil?
  @kpi_options = kpi_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::KPIOptionsProperty.new(**kpi_options.transform_keys(&:to_sym)) : kpi_options
  Jsii::Type.check_type(@kpi_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5LUElPcHRpb25zUHJvcGVydHkifV19fQ==")), "kpiOptions") unless @kpi_options.nil?
  @sort_configuration = sort_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::KPISortConfigurationProperty.new(**sort_configuration.transform_keys(&:to_sym)) : sort_configuration
  Jsii::Type.check_type(@sort_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5LUElTb3J0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "sortConfiguration") unless @sort_configuration.nil?
end

Instance Attribute Details

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

The field well configuration of a KPI visual.



17515
17516
17517
# File 'quick_sight/cfn_dashboard.rb', line 17515

def field_wells
  @field_wells
end

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

The general visual interactions setup for a visual.



17520
17521
17522
# File 'quick_sight/cfn_dashboard.rb', line 17520

def interactions
  @interactions
end

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

The options that determine the presentation of a KPI visual.



17525
17526
17527
# File 'quick_sight/cfn_dashboard.rb', line 17525

def kpi_options
  @kpi_options
end

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

The sort configuration of a KPI visual.



17530
17531
17532
# File 'quick_sight/cfn_dashboard.rb', line 17530

def sort_configuration
  @sort_configuration
end

Class Method Details

.jsii_propertiesObject



17532
17533
17534
17535
17536
17537
17538
17539
# File 'quick_sight/cfn_dashboard.rb', line 17532

def self.jsii_properties
  {
    :field_wells => "fieldWells",
    :interactions => "interactions",
    :kpi_options => "kpiOptions",
    :sort_configuration => "sortConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
# File 'quick_sight/cfn_dashboard.rb', line 17541

def to_jsii
  result = {}
  result.merge!({
    "fieldWells" => @field_wells,
    "interactions" => @interactions,
    "kpiOptions" => @kpi_options,
    "sortConfiguration" => @sort_configuration,
  })
  result.compact
end