Class: AWSCDK::QuickSight::CfnAnalysis::DateTimeParameterDeclarationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::DateTimeParameterDeclarationProperty
- Defined in:
- quick_sight/cfn_analysis.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.
7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 |
# File 'quick_sight/cfn_analysis.rb', line 7198 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::CfnAnalysis::DateTimeDefaultValuesProperty.new(**default_values.transform_keys(&:to_sym)) : default_values Jsii::Type.check_type(@default_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRhdGVUaW1lRGVmYXVsdFZhbHVlc1Byb3BlcnR5In1dfX0=")), "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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5BbmFseXNpcy5NYXBwZWREYXRhU2V0UGFyYW1ldGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "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::CfnAnalysis::DateTimeValueWhenUnsetConfigurationProperty.new(**value_when_unset.transform_keys(&:to_sym)) : value_when_unset Jsii::Type.check_type(@value_when_unset, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRhdGVUaW1lVmFsdWVXaGVuVW5zZXRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "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.
7222 7223 7224 |
# File 'quick_sight/cfn_analysis.rb', line 7222 def default_values @default_values end |
#mapped_data_set_parameters ⇒ AWSCDK::IResolvable, ... (readonly)
7225 7226 7227 |
# File 'quick_sight/cfn_analysis.rb', line 7225 def mapped_data_set_parameters @mapped_data_set_parameters end |
#name ⇒ String (readonly)
The name of the parameter that is being declared.
7215 7216 7217 |
# File 'quick_sight/cfn_analysis.rb', line 7215 def name @name end |
#time_granularity ⇒ String? (readonly)
The level of time precision that is used to aggregate DateTime values.
7230 7231 7232 |
# File 'quick_sight/cfn_analysis.rb', line 7230 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.
7235 7236 7237 |
# File 'quick_sight/cfn_analysis.rb', line 7235 def value_when_unset @value_when_unset end |
Class Method Details
.jsii_properties ⇒ Object
7237 7238 7239 7240 7241 7242 7243 7244 7245 |
# File 'quick_sight/cfn_analysis.rb', line 7237 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
7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 |
# File 'quick_sight/cfn_analysis.rb', line 7247 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 |