Class: AWSCDK::QuickSight::CfnTemplate::KPIConfigurationProperty

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



14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
# File 'quick_sight/cfn_template.rb', line 14968

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

Instance Attribute Details

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

The field well configuration of a KPI visual.



14983
14984
14985
# File 'quick_sight/cfn_template.rb', line 14983

def field_wells
  @field_wells
end

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

The general visual interactions setup for a visual.



14988
14989
14990
# File 'quick_sight/cfn_template.rb', line 14988

def interactions
  @interactions
end

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

The options that determine the presentation of a KPI visual.



14993
14994
14995
# File 'quick_sight/cfn_template.rb', line 14993

def kpi_options
  @kpi_options
end

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

The sort configuration of a KPI visual.



14998
14999
15000
# File 'quick_sight/cfn_template.rb', line 14998

def sort_configuration
  @sort_configuration
end

Class Method Details

.jsii_propertiesObject



15000
15001
15002
15003
15004
15005
15006
15007
# File 'quick_sight/cfn_template.rb', line 15000

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

Instance Method Details

#to_jsiiObject



15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
# File 'quick_sight/cfn_template.rb', line 15009

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