Class: AWSCDK::QuickSight::CfnAnalysis::StringParameterDeclarationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::StringParameterDeclarationProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
A parameter declaration for the String 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.
-
#parameter_value_type ⇒ String
readonly
The value type determines whether the parameter is a single-value or multi-value parameter.
-
#value_when_unset ⇒ AWSCDK::IResolvable, ...
readonly
The configuration that defines the default value of a
Stringparameter when a value has not been set.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, parameter_value_type:, default_values: nil, mapped_data_set_parameters: nil, value_when_unset: nil) ⇒ StringParameterDeclarationProperty
constructor
A new instance of StringParameterDeclarationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, parameter_value_type:, default_values: nil, mapped_data_set_parameters: nil, value_when_unset: nil) ⇒ StringParameterDeclarationProperty
Returns a new instance of StringParameterDeclarationProperty.
27379 27380 27381 27382 27383 27384 27385 27386 27387 27388 27389 27390 |
# File 'quick_sight/cfn_analysis.rb', line 27379 def initialize(name:, parameter_value_type:, default_values: nil, mapped_data_set_parameters: nil, value_when_unset: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @parameter_value_type = parameter_value_type Jsii::Type.check_type(@parameter_value_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterValueType") @default_values = default_values.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::StringDefaultValuesProperty.new(**default_values.transform_keys(&:to_sym)) : default_values Jsii::Type.check_type(@default_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlN0cmluZ0RlZmF1bHRWYWx1ZXNQcm9wZXJ0eSJ9XX19")), "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? @value_when_unset = value_when_unset.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::StringValueWhenUnsetConfigurationProperty.new(**value_when_unset.transform_keys(&:to_sym)) : value_when_unset Jsii::Type.check_type(@value_when_unset, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlN0cmluZ1ZhbHVlV2hlblVuc2V0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "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.
27408 27409 27410 |
# File 'quick_sight/cfn_analysis.rb', line 27408 def default_values @default_values end |
#mapped_data_set_parameters ⇒ AWSCDK::IResolvable, ... (readonly)
27411 27412 27413 |
# File 'quick_sight/cfn_analysis.rb', line 27411 def mapped_data_set_parameters @mapped_data_set_parameters end |
#name ⇒ String (readonly)
The name of the parameter that is being declared.
27396 27397 27398 |
# File 'quick_sight/cfn_analysis.rb', line 27396 def name @name end |
#parameter_value_type ⇒ String (readonly)
The value type determines whether the parameter is a single-value or multi-value parameter.
27401 27402 27403 |
# File 'quick_sight/cfn_analysis.rb', line 27401 def parameter_value_type @parameter_value_type end |
#value_when_unset ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration that defines the default value of a String parameter when a value has not been set.
27416 27417 27418 |
# File 'quick_sight/cfn_analysis.rb', line 27416 def value_when_unset @value_when_unset end |
Class Method Details
.jsii_properties ⇒ Object
27418 27419 27420 27421 27422 27423 27424 27425 27426 |
# File 'quick_sight/cfn_analysis.rb', line 27418 def self.jsii_properties { :name => "name", :parameter_value_type => "parameterValueType", :default_values => "defaultValues", :mapped_data_set_parameters => "mappedDataSetParameters", :value_when_unset => "valueWhenUnset", } end |
Instance Method Details
#to_jsii ⇒ Object
27428 27429 27430 27431 27432 27433 27434 27435 27436 27437 27438 |
# File 'quick_sight/cfn_analysis.rb', line 27428 def to_jsii result = {} result.merge!({ "name" => @name, "parameterValueType" => @parameter_value_type, "defaultValues" => @default_values, "mappedDataSetParameters" => @mapped_data_set_parameters, "valueWhenUnset" => @value_when_unset, }) result.compact end |