Class: AWSCDK::QuickSight::CfnDataSet::StringDatasetParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDataSet::StringDatasetParameterProperty
- Defined in:
- quick_sight/cfn_data_set.rb
Overview
A string parameter that is created in the dataset.
Instance Attribute Summary collapse
-
#default_values ⇒ AWSCDK::IResolvable, ...
readonly
A list of default values for a given string dataset parameter type.
-
#id ⇒ String
readonly
An identifier for the string parameter that is created in the dataset.
-
#name ⇒ String
readonly
The name of the string parameter that is created in the dataset.
-
#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) ⇒ StringDatasetParameterProperty
constructor
A new instance of StringDatasetParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, name:, value_type:, default_values: nil) ⇒ StringDatasetParameterProperty
Returns a new instance of StringDatasetParameterProperty.
5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 |
# File 'quick_sight/cfn_data_set.rb', line 5562 def initialize(id:, name:, value_type:, default_values: 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::StringDatasetParameterDefaultValuesProperty.new(**default_values.transform_keys(&:to_sym)) : default_values Jsii::Type.check_type(@default_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhdGFTZXQuU3RyaW5nRGF0YXNldFBhcmFtZXRlckRlZmF1bHRWYWx1ZXNQcm9wZXJ0eSJ9XX19")), "defaultValues") unless @default_values.nil? end |
Instance Attribute Details
#default_values ⇒ AWSCDK::IResolvable, ... (readonly)
A list of default values for a given string dataset parameter type.
This structure only accepts static values.
5596 5597 5598 |
# File 'quick_sight/cfn_data_set.rb', line 5596 def default_values @default_values end |
#id ⇒ String (readonly)
An identifier for the string parameter that is created in the dataset.
5577 5578 5579 |
# File 'quick_sight/cfn_data_set.rb', line 5577 def id @id end |
#name ⇒ String (readonly)
The name of the string parameter that is created in the dataset.
5582 5583 5584 |
# File 'quick_sight/cfn_data_set.rb', line 5582 def name @name end |
#value_type ⇒ String (readonly)
The value type of the dataset parameter.
Valid values are single value or multi value .
5589 5590 5591 |
# File 'quick_sight/cfn_data_set.rb', line 5589 def value_type @value_type end |
Class Method Details
.jsii_properties ⇒ Object
5598 5599 5600 5601 5602 5603 5604 5605 |
# File 'quick_sight/cfn_data_set.rb', line 5598 def self.jsii_properties { :id => "id", :name => "name", :value_type => "valueType", :default_values => "defaultValues", } end |
Instance Method Details
#to_jsii ⇒ Object
5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 |
# File 'quick_sight/cfn_data_set.rb', line 5607 def to_jsii result = {} result.merge!({ "id" => @id, "name" => @name, "valueType" => @value_type, "defaultValues" => @default_values, }) result.compact end |