Class: AWSCDK::QuickSight::CfnDashboard::TableFieldOptionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.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::CfnDashboard::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.



29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
# File 'quick_sight/cfn_dashboard.rb', line 29335

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



29357
29358
29359
# File 'quick_sight/cfn_dashboard.rb', line 29357

def custom_label
  @custom_label
end

#field_idString (readonly)

The field ID for a table field.



29352
29353
29354
# File 'quick_sight/cfn_dashboard.rb', line 29352

def field_id
  @field_id
end

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

The URL configuration for a table field.



29362
29363
29364
# File 'quick_sight/cfn_dashboard.rb', line 29362

def url_styling
  @url_styling
end

#visibilityString? (readonly)

The visibility of a table field.



29367
29368
29369
# File 'quick_sight/cfn_dashboard.rb', line 29367

def visibility
  @visibility
end

#widthString? (readonly)

The width for a table field.



29372
29373
29374
# File 'quick_sight/cfn_dashboard.rb', line 29372

def width
  @width
end

Class Method Details

.jsii_propertiesObject



29374
29375
29376
29377
29378
29379
29380
29381
29382
# File 'quick_sight/cfn_dashboard.rb', line 29374

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

Instance Method Details

#to_jsiiObject



29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
# File 'quick_sight/cfn_dashboard.rb', line 29384

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