Class: AWSCDK::QuickSight::CfnTemplate::TextFieldControlDisplayOptionsProperty

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

Overview

The display options of a control.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(info_icon_label_options: nil, placeholder_options: nil, title_options: nil) ⇒ TextFieldControlDisplayOptionsProperty

Returns a new instance of TextFieldControlDisplayOptionsProperty.

Parameters:



27446
27447
27448
27449
27450
27451
27452
27453
# File 'quick_sight/cfn_template.rb', line 27446

def initialize(info_icon_label_options: nil, placeholder_options: nil, title_options: nil)
  @info_icon_label_options = info_icon_label_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::SheetControlInfoIconLabelOptionsProperty.new(**info_icon_label_options.transform_keys(&:to_sym)) : info_icon_label_options
  Jsii::Type.check_type(@info_icon_label_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlNoZWV0Q29udHJvbEluZm9JY29uTGFiZWxPcHRpb25zUHJvcGVydHkifV19fQ==")), "infoIconLabelOptions") unless @info_icon_label_options.nil?
  @placeholder_options = placeholder_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::TextControlPlaceholderOptionsProperty.new(**placeholder_options.transform_keys(&:to_sym)) : placeholder_options
  Jsii::Type.check_type(@placeholder_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlRleHRDb250cm9sUGxhY2Vob2xkZXJPcHRpb25zUHJvcGVydHkifV19fQ==")), "placeholderOptions") unless @placeholder_options.nil?
  @title_options = title_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::LabelOptionsProperty.new(**title_options.transform_keys(&:to_sym)) : title_options
  Jsii::Type.check_type(@title_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkxhYmVsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "titleOptions") unless @title_options.nil?
end

Instance Attribute Details

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

The configuration of info icon label options.



27459
27460
27461
# File 'quick_sight/cfn_template.rb', line 27459

def info_icon_label_options
  @info_icon_label_options
end

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

The configuration of the placeholder options in a text field control.



27464
27465
27466
# File 'quick_sight/cfn_template.rb', line 27464

def placeholder_options
  @placeholder_options
end

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

The options to configure the title visibility, name, and font size.



27469
27470
27471
# File 'quick_sight/cfn_template.rb', line 27469

def title_options
  @title_options
end

Class Method Details

.jsii_propertiesObject



27471
27472
27473
27474
27475
27476
27477
# File 'quick_sight/cfn_template.rb', line 27471

def self.jsii_properties
  {
    :info_icon_label_options => "infoIconLabelOptions",
    :placeholder_options => "placeholderOptions",
    :title_options => "titleOptions",
  }
end

Instance Method Details

#to_jsiiObject



27479
27480
27481
27482
27483
27484
27485
27486
27487
# File 'quick_sight/cfn_template.rb', line 27479

def to_jsii
  result = {}
  result.merge!({
    "infoIconLabelOptions" => @info_icon_label_options,
    "placeholderOptions" => @placeholder_options,
    "titleOptions" => @title_options,
  })
  result.compact
end