Class: AWSCDK::QuickSight::CfnTemplate::InsightConfigurationProperty

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

Overview

The configuration of an insight visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(computations: nil, custom_narrative: nil, interactions: nil) ⇒ InsightConfigurationProperty

Returns a new instance of InsightConfigurationProperty.

Parameters:



14421
14422
14423
14424
14425
14426
14427
14428
# File 'quick_sight/cfn_template.rb', line 14421

def initialize(computations: nil, custom_narrative: nil, interactions: nil)
  @computations = computations
  Jsii::Type.check_type(@computations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5Db21wdXRhdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "computations") unless @computations.nil?
  @custom_narrative = custom_narrative.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::CustomNarrativeOptionsProperty.new(**custom_narrative.transform_keys(&:to_sym)) : custom_narrative
  Jsii::Type.check_type(@custom_narrative, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkN1c3RvbU5hcnJhdGl2ZU9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "customNarrative") unless @custom_narrative.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?
end

Instance Attribute Details

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

The computations configurations of the insight visual.



14434
14435
14436
# File 'quick_sight/cfn_template.rb', line 14434

def computations
  @computations
end

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

The custom narrative of the insight visual.



14439
14440
14441
# File 'quick_sight/cfn_template.rb', line 14439

def custom_narrative
  @custom_narrative
end

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

The general visual interactions setup for a visual.



14444
14445
14446
# File 'quick_sight/cfn_template.rb', line 14444

def interactions
  @interactions
end

Class Method Details

.jsii_propertiesObject



14446
14447
14448
14449
14450
14451
14452
# File 'quick_sight/cfn_template.rb', line 14446

def self.jsii_properties
  {
    :computations => "computations",
    :custom_narrative => "customNarrative",
    :interactions => "interactions",
  }
end

Instance Method Details

#to_jsiiObject



14454
14455
14456
14457
14458
14459
14460
14461
14462
# File 'quick_sight/cfn_template.rb', line 14454

def to_jsii
  result = {}
  result.merge!({
    "computations" => @computations,
    "customNarrative" => @custom_narrative,
    "interactions" => @interactions,
  })
  result.compact
end