Class: AWSCDK::QuickSight::CfnAnalysis::TableFieldOptionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::TableFieldOptionProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The options for a table field.
Instance Attribute Summary collapse
-
#custom_label ⇒ String?
readonly
The custom label for a table field.
-
#field_id ⇒ String
readonly
The field ID for a table field.
-
#url_styling ⇒ AWSCDK::IResolvable, ...
readonly
The URL configuration for a table field.
-
#visibility ⇒ String?
readonly
The visibility of a table field.
-
#width ⇒ String?
readonly
The width for a table field.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field_id:, custom_label: nil, url_styling: nil, visibility: nil, width: nil) ⇒ TableFieldOptionProperty
constructor
A new instance of TableFieldOptionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(field_id:, custom_label: nil, url_styling: nil, visibility: nil, width: nil) ⇒ TableFieldOptionProperty
Returns a new instance of TableFieldOptionProperty.
28297 28298 28299 28300 28301 28302 28303 28304 28305 28306 28307 28308 |
# File 'quick_sight/cfn_analysis.rb', line 28297 def initialize(field_id:, custom_label: nil, url_styling: nil, visibility: nil, width: nil) @field_id = field_id Jsii::Type.check_type(@field_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldId") @custom_label = custom_label Jsii::Type.check_type(@custom_label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customLabel") unless @custom_label.nil? @url_styling = url_styling.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::TableFieldURLConfigurationProperty.new(**url_styling.transform_keys(&:to_sym)) : url_styling Jsii::Type.check_type(@url_styling, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlRhYmxlRmllbGRVUkxDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "urlStyling") unless @url_styling.nil? @visibility = visibility Jsii::Type.check_type(@visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visibility") unless @visibility.nil? @width = width Jsii::Type.check_type(@width, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "width") unless @width.nil? end |
Instance Attribute Details
#custom_label ⇒ String? (readonly)
The custom label for a table field.
28319 28320 28321 |
# File 'quick_sight/cfn_analysis.rb', line 28319 def custom_label @custom_label end |
#field_id ⇒ String (readonly)
The field ID for a table field.
28314 28315 28316 |
# File 'quick_sight/cfn_analysis.rb', line 28314 def field_id @field_id end |
#url_styling ⇒ AWSCDK::IResolvable, ... (readonly)
The URL configuration for a table field.
28324 28325 28326 |
# File 'quick_sight/cfn_analysis.rb', line 28324 def url_styling @url_styling end |
#visibility ⇒ String? (readonly)
The visibility of a table field.
28329 28330 28331 |
# File 'quick_sight/cfn_analysis.rb', line 28329 def visibility @visibility end |
#width ⇒ String? (readonly)
The width for a table field.
28334 28335 28336 |
# File 'quick_sight/cfn_analysis.rb', line 28334 def width @width end |
Class Method Details
.jsii_properties ⇒ Object
28336 28337 28338 28339 28340 28341 28342 28343 28344 |
# File 'quick_sight/cfn_analysis.rb', line 28336 def self.jsii_properties { :field_id => "fieldId", :custom_label => "customLabel", :url_styling => "urlStyling", :visibility => "visibility", :width => "width", } end |
Instance Method Details
#to_jsii ⇒ Object
28346 28347 28348 28349 28350 28351 28352 28353 28354 28355 28356 |
# File 'quick_sight/cfn_analysis.rb', line 28346 def to_jsii result = {} result.merge!({ "fieldId" => @field_id, "customLabel" => @custom_label, "urlStyling" => @url_styling, "visibility" => @visibility, "width" => @width, }) result.compact end |