Class: AWSCDK::QuickSight::CfnTemplate::DateTimeParameterDeclarationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::DateTimeParameterDeclarationProperty
- Defined in:
- quick_sight/cfn_template.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.
7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 |
# File 'quick_sight/cfn_template.rb', line 7092 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::CfnTemplate::DateTimeDefaultValuesProperty.new(**default_values.transform_keys(&:to_sym)) : default_values Jsii::Type.check_type(@default_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRhdGVUaW1lRGVmYXVsdFZhbHVlc1Byb3BlcnR5In1dfX0=")), "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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5NYXBwZWREYXRhU2V0UGFyYW1ldGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "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::CfnTemplate::DateTimeValueWhenUnsetConfigurationProperty.new(**value_when_unset.transform_keys(&:to_sym)) : value_when_unset Jsii::Type.check_type(@value_when_unset, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRhdGVUaW1lVmFsdWVXaGVuVW5zZXRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "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.
7116 7117 7118 |
# File 'quick_sight/cfn_template.rb', line 7116 def default_values @default_values end |
#mapped_data_set_parameters ⇒ AWSCDK::IResolvable, ... (readonly)
7119 7120 7121 |
# File 'quick_sight/cfn_template.rb', line 7119 def mapped_data_set_parameters @mapped_data_set_parameters end |
#name ⇒ String (readonly)
The name of the parameter that is being declared.
7109 7110 7111 |
# File 'quick_sight/cfn_template.rb', line 7109 def name @name end |
#time_granularity ⇒ String? (readonly)
The level of time precision that is used to aggregate DateTime values.
7124 7125 7126 |
# File 'quick_sight/cfn_template.rb', line 7124 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.
7129 7130 7131 |
# File 'quick_sight/cfn_template.rb', line 7129 def value_when_unset @value_when_unset end |
Class Method Details
.jsii_properties ⇒ Object
7131 7132 7133 7134 7135 7136 7137 7138 7139 |
# File 'quick_sight/cfn_template.rb', line 7131 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
7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 |
# File 'quick_sight/cfn_template.rb', line 7141 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 |