Class: AWSCDK::QuickSight::CfnDashboard::ParameterListControlProperty

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

Overview

A control to display a list with buttons or boxes that are used to select either a single value or multiple values.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parameter_control_id:, source_parameter_name:, title:, cascading_control_configuration: nil, display_options: nil, selectable_values: nil, type: nil) ⇒ ParameterListControlProperty

Returns a new instance of ParameterListControlProperty.

Parameters:



21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
# File 'quick_sight/cfn_dashboard.rb', line 21391

def initialize(parameter_control_id:, source_parameter_name:, title:, cascading_control_configuration: nil, display_options: nil, selectable_values: nil, type: nil)
  @parameter_control_id = parameter_control_id
  Jsii::Type.check_type(@parameter_control_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterControlId")
  @source_parameter_name = source_parameter_name
  Jsii::Type.check_type(@source_parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceParameterName")
  @title = title
  Jsii::Type.check_type(@title, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "title")
  @cascading_control_configuration = cascading_control_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::CascadingControlConfigurationProperty.new(**cascading_control_configuration.transform_keys(&:to_sym)) : cascading_control_configuration
  Jsii::Type.check_type(@cascading_control_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5DYXNjYWRpbmdDb250cm9sQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "cascadingControlConfiguration") unless @cascading_control_configuration.nil?
  @display_options = display_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ListControlDisplayOptionsProperty.new(**display_options.transform_keys(&:to_sym)) : display_options
  Jsii::Type.check_type(@display_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5MaXN0Q29udHJvbERpc3BsYXlPcHRpb25zUHJvcGVydHkifV19fQ==")), "displayOptions") unless @display_options.nil?
  @selectable_values = selectable_values.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ParameterSelectableValuesProperty.new(**selectable_values.transform_keys(&:to_sym)) : selectable_values
  Jsii::Type.check_type(@selectable_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5QYXJhbWV0ZXJTZWxlY3RhYmxlVmFsdWVzUHJvcGVydHkifV19fQ==")), "selectableValues") unless @selectable_values.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

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

The values that are displayed in a control can be configured to only show values that are valid based on what's selected in other controls.



21427
21428
21429
# File 'quick_sight/cfn_dashboard.rb', line 21427

def cascading_control_configuration
  @cascading_control_configuration
end

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

The display options of a control.



21432
21433
21434
# File 'quick_sight/cfn_dashboard.rb', line 21432

def display_options
  @display_options
end

#parameter_control_idString (readonly)

The ID of the ParameterListControl .



21412
21413
21414
# File 'quick_sight/cfn_dashboard.rb', line 21412

def parameter_control_id
  @parameter_control_id
end

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

A list of selectable values that are used in a control.



21437
21438
21439
# File 'quick_sight/cfn_dashboard.rb', line 21437

def selectable_values
  @selectable_values
end

#source_parameter_nameString (readonly)

The source parameter name of the ParameterListControl .



21417
21418
21419
# File 'quick_sight/cfn_dashboard.rb', line 21417

def source_parameter_name
  @source_parameter_name
end

#titleString (readonly)

The title of the ParameterListControl .



21422
21423
21424
# File 'quick_sight/cfn_dashboard.rb', line 21422

def title
  @title
end

#typeString? (readonly)

The type of ParameterListControl .



21442
21443
21444
# File 'quick_sight/cfn_dashboard.rb', line 21442

def type
  @type
end

Class Method Details

.jsii_propertiesObject



21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
# File 'quick_sight/cfn_dashboard.rb', line 21444

def self.jsii_properties
  {
    :parameter_control_id => "parameterControlId",
    :source_parameter_name => "sourceParameterName",
    :title => "title",
    :cascading_control_configuration => "cascadingControlConfiguration",
    :display_options => "displayOptions",
    :selectable_values => "selectableValues",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
# File 'quick_sight/cfn_dashboard.rb', line 21456

def to_jsii
  result = {}
  result.merge!({
    "parameterControlId" => @parameter_control_id,
    "sourceParameterName" => @source_parameter_name,
    "title" => @title,
    "cascadingControlConfiguration" => @cascading_control_configuration,
    "displayOptions" => @display_options,
    "selectableValues" => @selectable_values,
    "type" => @type,
  })
  result.compact
end