Class: AWSCDK::QuickSight::CfnAnalysis::FilterDateTimePickerControlProperty

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

Overview

A control from a date filter that is used to specify date and time.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filter_control_id:, source_filter_id:, title:, commit_mode: nil, display_options: nil, type: nil) ⇒ FilterDateTimePickerControlProperty

Returns a new instance of FilterDateTimePickerControlProperty.

Parameters:

  • filter_control_id (String)

    The ID of the FilterDateTimePickerControl .

  • source_filter_id (String)

    The source filter ID of the FilterDateTimePickerControl .

  • title (String)

    The title of the FilterDateTimePickerControl .

  • commit_mode (String, nil) (defaults to: nil)

    The visibility configurationof the Apply button on a DateTimePickerControl .

  • display_options (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::DateTimePickerControlDisplayOptionsProperty, nil) (defaults to: nil)

    The display options of a control.

  • type (String, nil) (defaults to: nil)

    The type of the FilterDropDownControl . Choose one of the following options:.



9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
# File 'quick_sight/cfn_analysis.rb', line 9895

def initialize(filter_control_id:, source_filter_id:, title:, commit_mode: nil, display_options: nil, type: nil)
  @filter_control_id = filter_control_id
  Jsii::Type.check_type(@filter_control_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "filterControlId")
  @source_filter_id = source_filter_id
  Jsii::Type.check_type(@source_filter_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceFilterId")
  @title = title
  Jsii::Type.check_type(@title, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "title")
  @commit_mode = commit_mode
  Jsii::Type.check_type(@commit_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "commitMode") unless @commit_mode.nil?
  @display_options = display_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::DateTimePickerControlDisplayOptionsProperty.new(**display_options.transform_keys(&:to_sym)) : display_options
  Jsii::Type.check_type(@display_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRhdGVUaW1lUGlja2VyQ29udHJvbERpc3BsYXlPcHRpb25zUHJvcGVydHkifV19fQ==")), "displayOptions") unless @display_options.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

#commit_modeString? (readonly)

The visibility configurationof the Apply button on a DateTimePickerControl .



9929
9930
9931
# File 'quick_sight/cfn_analysis.rb', line 9929

def commit_mode
  @commit_mode
end

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

The display options of a control.



9934
9935
9936
# File 'quick_sight/cfn_analysis.rb', line 9934

def display_options
  @display_options
end

#filter_control_idString (readonly)

The ID of the FilterDateTimePickerControl .



9914
9915
9916
# File 'quick_sight/cfn_analysis.rb', line 9914

def filter_control_id
  @filter_control_id
end

#source_filter_idString (readonly)

The source filter ID of the FilterDateTimePickerControl .



9919
9920
9921
# File 'quick_sight/cfn_analysis.rb', line 9919

def source_filter_id
  @source_filter_id
end

#titleString (readonly)

The title of the FilterDateTimePickerControl .



9924
9925
9926
# File 'quick_sight/cfn_analysis.rb', line 9924

def title
  @title
end

#typeString? (readonly)

The type of the FilterDropDownControl . Choose one of the following options:.

  • MULTI_SELECT : The user can select multiple entries from a dropdown menu.
  • SINGLE_SELECT : The user can select a single entry from a dropdown menu.


9942
9943
9944
# File 'quick_sight/cfn_analysis.rb', line 9942

def type
  @type
end

Class Method Details

.jsii_propertiesObject



9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
# File 'quick_sight/cfn_analysis.rb', line 9944

def self.jsii_properties
  {
    :filter_control_id => "filterControlId",
    :source_filter_id => "sourceFilterId",
    :title => "title",
    :commit_mode => "commitMode",
    :display_options => "displayOptions",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
# File 'quick_sight/cfn_analysis.rb', line 9955

def to_jsii
  result = {}
  result.merge!({
    "filterControlId" => @filter_control_id,
    "sourceFilterId" => @source_filter_id,
    "title" => @title,
    "commitMode" => @commit_mode,
    "displayOptions" => @display_options,
    "type" => @type,
  })
  result.compact
end