Class: AWSCDK::QuickSight::CfnDashboard::DateTimeParameterDeclarationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::DateTimeParameterDeclarationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
A parameter declaration for the DateTime data type.
Instance Attribute Summary collapse
-
#default_values ⇒ AWSCDK::IResolvable, ...
readonly
The default values of a parameter.
- #mapped_data_set_parameters ⇒ AWSCDK::IResolvable, ... readonly
-
#name ⇒ String
readonly
The name of the parameter that is being declared.
-
#time_granularity ⇒ String?
readonly
The level of time precision that is used to aggregate
DateTimevalues. -
#value_when_unset ⇒ AWSCDK::IResolvable, ...
readonly
The configuration that defines the default value of a
DateTimeparameter when a value has not been set.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, default_values: nil, mapped_data_set_parameters: nil, time_granularity: nil, value_when_unset: nil) ⇒ DateTimeParameterDeclarationProperty
constructor
A new instance of DateTimeParameterDeclarationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, default_values: nil, mapped_data_set_parameters: nil, time_granularity: nil, value_when_unset: nil) ⇒ DateTimeParameterDeclarationProperty
Returns a new instance of DateTimeParameterDeclarationProperty.
7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 |
# File 'quick_sight/cfn_dashboard.rb', line 7819 def initialize(name:, default_values: nil, mapped_data_set_parameters: nil, time_granularity: nil, value_when_unset: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @default_values = default_values.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::DateTimeDefaultValuesProperty.new(**default_values.transform_keys(&:to_sym)) : default_values Jsii::Type.check_type(@default_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EYXRlVGltZURlZmF1bHRWYWx1ZXNQcm9wZXJ0eSJ9XX19")), "defaultValues") unless @default_values.nil? @mapped_data_set_parameters = mapped_data_set_parameters Jsii::Type.check_type(@mapped_data_set_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuTWFwcGVkRGF0YVNldFBhcmFtZXRlclByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "mappedDataSetParameters") unless @mapped_data_set_parameters.nil? @time_granularity = time_granularity Jsii::Type.check_type(@time_granularity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timeGranularity") unless @time_granularity.nil? @value_when_unset = value_when_unset.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::DateTimeValueWhenUnsetConfigurationProperty.new(**value_when_unset.transform_keys(&:to_sym)) : value_when_unset Jsii::Type.check_type(@value_when_unset, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EYXRlVGltZVZhbHVlV2hlblVuc2V0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "valueWhenUnset") unless @value_when_unset.nil? end |
Instance Attribute Details
#default_values ⇒ AWSCDK::IResolvable, ... (readonly)
The default values of a parameter.
If the parameter is a single-value parameter, a maximum of one default value can be provided.
7843 7844 7845 |
# File 'quick_sight/cfn_dashboard.rb', line 7843 def default_values @default_values end |
#mapped_data_set_parameters ⇒ AWSCDK::IResolvable, ... (readonly)
7846 7847 7848 |
# File 'quick_sight/cfn_dashboard.rb', line 7846 def mapped_data_set_parameters @mapped_data_set_parameters end |
#name ⇒ String (readonly)
The name of the parameter that is being declared.
7836 7837 7838 |
# File 'quick_sight/cfn_dashboard.rb', line 7836 def name @name end |
#time_granularity ⇒ String? (readonly)
The level of time precision that is used to aggregate DateTime values.
7851 7852 7853 |
# File 'quick_sight/cfn_dashboard.rb', line 7851 def time_granularity @time_granularity end |
#value_when_unset ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration that defines the default value of a DateTime parameter when a value has not been set.
7856 7857 7858 |
# File 'quick_sight/cfn_dashboard.rb', line 7856 def value_when_unset @value_when_unset end |
Class Method Details
.jsii_properties ⇒ Object
7858 7859 7860 7861 7862 7863 7864 7865 7866 |
# File 'quick_sight/cfn_dashboard.rb', line 7858 def self.jsii_properties { :name => "name", :default_values => "defaultValues", :mapped_data_set_parameters => "mappedDataSetParameters", :time_granularity => "timeGranularity", :value_when_unset => "valueWhenUnset", } end |
Instance Method Details
#to_jsii ⇒ Object
7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 |
# File 'quick_sight/cfn_dashboard.rb', line 7868 def to_jsii result = {} result.merge!({ "name" => @name, "defaultValues" => @default_values, "mappedDataSetParameters" => @mapped_data_set_parameters, "timeGranularity" => @time_granularity, "valueWhenUnset" => @value_when_unset, }) result.compact end |