Class: AWSCDK::QuickSight::CfnTemplate::PivotTableSortByProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::PivotTableSortByProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The sort by field for the field sort options.
Instance Attribute Summary collapse
-
#column ⇒ AWSCDK::IResolvable, ...
readonly
The column sort (field id, direction) for the pivot table sort by options.
-
#data_path ⇒ AWSCDK::IResolvable, ...
readonly
The data path sort (data path value, direction) for the pivot table sort by options.
-
#field ⇒ AWSCDK::IResolvable, ...
readonly
The field sort (field id, direction) for the pivot table sort by options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(column: nil, data_path: nil, field: nil) ⇒ PivotTableSortByProperty
constructor
A new instance of PivotTableSortByProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(column: nil, data_path: nil, field: nil) ⇒ PivotTableSortByProperty
Returns a new instance of PivotTableSortByProperty.
20591 20592 20593 20594 20595 20596 20597 20598 |
# File 'quick_sight/cfn_template.rb', line 20591 def initialize(column: nil, data_path: nil, field: nil) @column = column.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ColumnSortProperty.new(**column.transform_keys(&:to_sym)) : column Jsii::Type.check_type(@column, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNvbHVtblNvcnRQcm9wZXJ0eSJ9XX19")), "column") unless @column.nil? @data_path = data_path.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DataPathSortProperty.new(**data_path.transform_keys(&:to_sym)) : data_path Jsii::Type.check_type(@data_path, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRhdGFQYXRoU29ydFByb3BlcnR5In1dfX0=")), "dataPath") unless @data_path.nil? @field = field.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::FieldSortProperty.new(**field.transform_keys(&:to_sym)) : field Jsii::Type.check_type(@field, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkZpZWxkU29ydFByb3BlcnR5In1dfX0=")), "field") unless @field.nil? end |
Instance Attribute Details
#column ⇒ AWSCDK::IResolvable, ... (readonly)
The column sort (field id, direction) for the pivot table sort by options.
20604 20605 20606 |
# File 'quick_sight/cfn_template.rb', line 20604 def column @column end |
#data_path ⇒ AWSCDK::IResolvable, ... (readonly)
The data path sort (data path value, direction) for the pivot table sort by options.
20609 20610 20611 |
# File 'quick_sight/cfn_template.rb', line 20609 def data_path @data_path end |
#field ⇒ AWSCDK::IResolvable, ... (readonly)
The field sort (field id, direction) for the pivot table sort by options.
20614 20615 20616 |
# File 'quick_sight/cfn_template.rb', line 20614 def field @field end |
Class Method Details
.jsii_properties ⇒ Object
20616 20617 20618 20619 20620 20621 20622 |
# File 'quick_sight/cfn_template.rb', line 20616 def self.jsii_properties { :column => "column", :data_path => "dataPath", :field => "field", } end |
Instance Method Details
#to_jsii ⇒ Object
20624 20625 20626 20627 20628 20629 20630 20631 20632 |
# File 'quick_sight/cfn_template.rb', line 20624 def to_jsii result = {} result.merge!({ "column" => @column, "dataPath" => @data_path, "field" => @field, }) result.compact end |