Class: AWSCDK::QuickSight::CfnTemplate::RelativeDateTimeControlDisplayOptionsProperty

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(date_time_format: nil, info_icon_label_options: nil, title_options: nil) ⇒ RelativeDateTimeControlDisplayOptionsProperty

Returns a new instance of RelativeDateTimeControlDisplayOptionsProperty.

Parameters:



22407
22408
22409
22410
22411
22412
22413
22414
# File 'quick_sight/cfn_template.rb', line 22407

def initialize(date_time_format: nil, info_icon_label_options: nil, title_options: nil)
  @date_time_format = date_time_format
  Jsii::Type.check_type(@date_time_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dateTimeFormat") unless @date_time_format.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?
  @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

#date_time_formatString? (readonly)

Customize how dates are formatted in controls.



22420
22421
22422
# File 'quick_sight/cfn_template.rb', line 22420

def date_time_format
  @date_time_format
end

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

The configuration of info icon label options.



22425
22426
22427
# File 'quick_sight/cfn_template.rb', line 22425

def info_icon_label_options
  @info_icon_label_options
end

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

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



22430
22431
22432
# File 'quick_sight/cfn_template.rb', line 22430

def title_options
  @title_options
end

Class Method Details

.jsii_propertiesObject



22432
22433
22434
22435
22436
22437
22438
# File 'quick_sight/cfn_template.rb', line 22432

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

Instance Method Details

#to_jsiiObject



22440
22441
22442
22443
22444
22445
22446
22447
22448
# File 'quick_sight/cfn_template.rb', line 22440

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