Class: AWSCDK::QuickSight::CfnDataSet::DateTimeDatasetParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDataSet::DateTimeDatasetParameterProperty
- Defined in:
- quick_sight/cfn_data_set.rb
Overview
A date time parameter that is created in the dataset.
Instance Attribute Summary collapse
-
#default_values ⇒ AWSCDK::IResolvable, ...
readonly
A list of default values for a given date time parameter.
-
#id ⇒ String
readonly
An identifier for the parameter that is created in the dataset.
-
#name ⇒ String
readonly
The name of the date time parameter that is created in the dataset.
-
#time_granularity ⇒ String?
readonly
The time granularity of the date time parameter.
-
#value_type ⇒ String
readonly
The value type of the dataset parameter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, name:, value_type:, default_values: nil, time_granularity: nil) ⇒ DateTimeDatasetParameterProperty
constructor
A new instance of DateTimeDatasetParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, name:, value_type:, default_values: nil, time_granularity: nil) ⇒ DateTimeDatasetParameterProperty
Returns a new instance of DateTimeDatasetParameterProperty.
2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 |
# File 'quick_sight/cfn_data_set.rb', line 2808 def initialize(id:, name:, value_type:, default_values: nil, time_granularity: nil) @id = id Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @value_type = value_type Jsii::Type.check_type(@value_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "valueType") @default_values = default_values.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDataSet::DateTimeDatasetParameterDefaultValuesProperty.new(**default_values.transform_keys(&:to_sym)) : default_values Jsii::Type.check_type(@default_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhdGFTZXQuRGF0ZVRpbWVEYXRhc2V0UGFyYW1ldGVyRGVmYXVsdFZhbHVlc1Byb3BlcnR5In1dfX0=")), "defaultValues") unless @default_values.nil? @time_granularity = time_granularity Jsii::Type.check_type(@time_granularity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timeGranularity") unless @time_granularity.nil? end |
Instance Attribute Details
#default_values ⇒ AWSCDK::IResolvable, ... (readonly)
A list of default values for a given date time parameter.
This structure only accepts static values.
2844 2845 2846 |
# File 'quick_sight/cfn_data_set.rb', line 2844 def default_values @default_values end |
#id ⇒ String (readonly)
An identifier for the parameter that is created in the dataset.
2825 2826 2827 |
# File 'quick_sight/cfn_data_set.rb', line 2825 def id @id end |
#name ⇒ String (readonly)
The name of the date time parameter that is created in the dataset.
2830 2831 2832 |
# File 'quick_sight/cfn_data_set.rb', line 2830 def name @name end |
#time_granularity ⇒ String? (readonly)
The time granularity of the date time parameter.
2849 2850 2851 |
# File 'quick_sight/cfn_data_set.rb', line 2849 def time_granularity @time_granularity end |
#value_type ⇒ String (readonly)
The value type of the dataset parameter.
Valid values are single value or multi value .
2837 2838 2839 |
# File 'quick_sight/cfn_data_set.rb', line 2837 def value_type @value_type end |
Class Method Details
.jsii_properties ⇒ Object
2851 2852 2853 2854 2855 2856 2857 2858 2859 |
# File 'quick_sight/cfn_data_set.rb', line 2851 def self.jsii_properties { :id => "id", :name => "name", :value_type => "valueType", :default_values => "defaultValues", :time_granularity => "timeGranularity", } end |
Instance Method Details
#to_jsii ⇒ Object
2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 |
# File 'quick_sight/cfn_data_set.rb', line 2861 def to_jsii result = {} result.merge!({ "id" => @id, "name" => @name, "valueType" => @value_type, "defaultValues" => @default_values, "timeGranularity" => @time_granularity, }) result.compact end |