Class: AWSCDK::QuickSight::CfnTemplate::PivotTableCellConditionalFormattingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::PivotTableCellConditionalFormattingProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The cell conditional formatting option for a pivot table.
Instance Attribute Summary collapse
-
#field_id ⇒ String
readonly
The field ID of the cell for conditional formatting.
-
#scope ⇒ AWSCDK::IResolvable, ...
readonly
The scope of the cell for conditional formatting.
-
#scopes ⇒ AWSCDK::IResolvable, ...
readonly
A list of cell scopes for conditional formatting.
-
#text_format ⇒ AWSCDK::IResolvable, ...
readonly
The text format of the cell for conditional formatting.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field_id:, scope: nil, scopes: nil, text_format: nil) ⇒ PivotTableCellConditionalFormattingProperty
constructor
A new instance of PivotTableCellConditionalFormattingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(field_id:, scope: nil, scopes: nil, text_format: nil) ⇒ PivotTableCellConditionalFormattingProperty
Returns a new instance of PivotTableCellConditionalFormattingProperty.
19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 |
# File 'quick_sight/cfn_template.rb', line 19781 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::CfnTemplate::PivotTableConditionalFormattingScopeProperty.new(**scope.transform_keys(&:to_sym)) : scope Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlBpdm90VGFibGVDb25kaXRpb25hbEZvcm1hdHRpbmdTY29wZVByb3BlcnR5In1dfX0=")), "scope") unless @scope.nil? @scopes = scopes Jsii::Type.check_type(@scopes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5QaXZvdFRhYmxlQ29uZGl0aW9uYWxGb3JtYXR0aW5nU2NvcGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "scopes") unless @scopes.nil? @text_format = text_format.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::TextConditionalFormatProperty.new(**text_format.transform_keys(&:to_sym)) : text_format Jsii::Type.check_type(@text_format, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlRleHRDb25kaXRpb25hbEZvcm1hdFByb3BlcnR5In1dfX0=")), "textFormat") unless @text_format.nil? end |
Instance Attribute Details
#field_id ⇒ String (readonly)
The field ID of the cell for conditional formatting.
19796 19797 19798 |
# File 'quick_sight/cfn_template.rb', line 19796 def field_id @field_id end |
#scope ⇒ AWSCDK::IResolvable, ... (readonly)
The scope of the cell for conditional formatting.
19801 19802 19803 |
# File 'quick_sight/cfn_template.rb', line 19801 def scope @scope end |
#scopes ⇒ AWSCDK::IResolvable, ... (readonly)
A list of cell scopes for conditional formatting.
19806 19807 19808 |
# File 'quick_sight/cfn_template.rb', line 19806 def scopes @scopes end |
#text_format ⇒ AWSCDK::IResolvable, ... (readonly)
The text format of the cell for conditional formatting.
19811 19812 19813 |
# File 'quick_sight/cfn_template.rb', line 19811 def text_format @text_format end |
Class Method Details
.jsii_properties ⇒ Object
19813 19814 19815 19816 19817 19818 19819 19820 |
# File 'quick_sight/cfn_template.rb', line 19813 def self.jsii_properties { :field_id => "fieldId", :scope => "scope", :scopes => "scopes", :text_format => "textFormat", } end |
Instance Method Details
#to_jsii ⇒ Object
19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 |
# File 'quick_sight/cfn_template.rb', line 19822 def to_jsii result = {} result.merge!({ "fieldId" => @field_id, "scope" => @scope, "scopes" => @scopes, "textFormat" => @text_format, }) result.compact end |