Class: AWSCDK::QuickSight::CfnDashboard::PivotTableCellConditionalFormattingProperty

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

Overview

The cell conditional formatting option for a pivot table.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_id:, scope: nil, scopes: nil, text_format: nil) ⇒ PivotTableCellConditionalFormattingProperty

Returns a new instance of PivotTableCellConditionalFormattingProperty.

Parameters:



22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
# File 'quick_sight/cfn_dashboard.rb', line 22627

def initialize(field_id:, scope: nil, scopes: nil, text_format: nil)
  @field_id = field_id
  Jsii::Type.check_type(@field_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldId")
  @scope = scope.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::PivotTableConditionalFormattingScopeProperty.new(**scope.transform_keys(&:to_sym)) : scope
  Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5QaXZvdFRhYmxlQ29uZGl0aW9uYWxGb3JtYXR0aW5nU2NvcGVQcm9wZXJ0eSJ9XX19")), "scope") unless @scope.nil?
  @scopes = scopes
  Jsii::Type.check_type(@scopes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuUGl2b3RUYWJsZUNvbmRpdGlvbmFsRm9ybWF0dGluZ1Njb3BlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "scopes") unless @scopes.nil?
  @text_format = text_format.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TextConditionalFormatProperty.new(**text_format.transform_keys(&:to_sym)) : text_format
  Jsii::Type.check_type(@text_format, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UZXh0Q29uZGl0aW9uYWxGb3JtYXRQcm9wZXJ0eSJ9XX19")), "textFormat") unless @text_format.nil?
end

Instance Attribute Details

#field_idString (readonly)

The field ID of the cell for conditional formatting.



22642
22643
22644
# File 'quick_sight/cfn_dashboard.rb', line 22642

def field_id
  @field_id
end

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

The text format of the cell for conditional formatting.



22657
22658
22659
# File 'quick_sight/cfn_dashboard.rb', line 22657

def text_format
  @text_format
end

Class Method Details

.jsii_propertiesObject



22659
22660
22661
22662
22663
22664
22665
22666
# File 'quick_sight/cfn_dashboard.rb', line 22659

def self.jsii_properties
  {
    :field_id => "fieldId",
    :scope => "scope",
    :scopes => "scopes",
    :text_format => "textFormat",
  }
end

Instance Method Details

#to_jsiiObject



22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
# File 'quick_sight/cfn_dashboard.rb', line 22668

def to_jsii
  result = {}
  result.merge!({
    "fieldId" => @field_id,
    "scope" => @scope,
    "scopes" => @scopes,
    "textFormat" => @text_format,
  })
  result.compact
end