Class: AWSCDK::QuickSight::CfnTemplate::TableFieldOptionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.rb

Overview

The options for a table field.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_id:, custom_label: nil, url_styling: nil, visibility: nil, width: nil) ⇒ TableFieldOptionProperty

Returns a new instance of TableFieldOptionProperty.

Parameters:

  • field_id (String)

    The field ID for a table field.

  • custom_label (String, nil) (defaults to: nil)

    The custom label for a table field.

  • url_styling (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnTemplate::TableFieldURLConfigurationProperty, nil) (defaults to: nil)

    The URL configuration for a table field.

  • visibility (String, nil) (defaults to: nil)

    The visibility of a table field.

  • width (String, nil) (defaults to: nil)

    The width for a table field.



26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
# File 'quick_sight/cfn_template.rb', line 26165

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::CfnTemplate::TableFieldURLConfigurationProperty.new(**url_styling.transform_keys(&:to_sym)) : url_styling
  Jsii::Type.check_type(@url_styling, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlRhYmxlRmllbGRVUkxDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "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_labelString? (readonly)

The custom label for a table field.



26187
26188
26189
# File 'quick_sight/cfn_template.rb', line 26187

def custom_label
  @custom_label
end

#field_idString (readonly)

The field ID for a table field.



26182
26183
26184
# File 'quick_sight/cfn_template.rb', line 26182

def field_id
  @field_id
end

#url_stylingAWSCDK::IResolvable, ... (readonly)

The URL configuration for a table field.



26192
26193
26194
# File 'quick_sight/cfn_template.rb', line 26192

def url_styling
  @url_styling
end

#visibilityString? (readonly)

The visibility of a table field.



26197
26198
26199
# File 'quick_sight/cfn_template.rb', line 26197

def visibility
  @visibility
end

#widthString? (readonly)

The width for a table field.



26202
26203
26204
# File 'quick_sight/cfn_template.rb', line 26202

def width
  @width
end

Class Method Details

.jsii_propertiesObject



26204
26205
26206
26207
26208
26209
26210
26211
26212
# File 'quick_sight/cfn_template.rb', line 26204

def self.jsii_properties
  {
    :field_id => "fieldId",
    :custom_label => "customLabel",
    :url_styling => "urlStyling",
    :visibility => "visibility",
    :width => "width",
  }
end

Instance Method Details

#to_jsiiObject



26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
# File 'quick_sight/cfn_template.rb', line 26214

def to_jsii
  result = {}
  result.merge!({
    "fieldId" => @field_id,
    "customLabel" => @custom_label,
    "urlStyling" => @url_styling,
    "visibility" => @visibility,
    "width" => @width,
  })
  result.compact
end