Class: AWSCDK::Glue::CfnTable::OrderProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_table.rb

Overview

Specifies the sort order of a sorted column.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column:, sort_order:) ⇒ OrderProperty

Returns a new instance of OrderProperty.

Parameters:

  • column (String)

    The name of the column.

  • sort_order (Numeric)

    Indicates that the column is sorted in ascending order ( == 1 ), or in descending order ( ==0 ).



1049
1050
1051
1052
1053
1054
# File 'glue/cfn_table.rb', line 1049

def initialize(column:, sort_order:)
  @column = column
  Jsii::Type.check_type(@column, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "column")
  @sort_order = sort_order
  Jsii::Type.check_type(@sort_order, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "sortOrder")
end

Instance Attribute Details

#columnString (readonly)

The name of the column.



1060
1061
1062
# File 'glue/cfn_table.rb', line 1060

def column
  @column
end

#sort_orderNumeric (readonly)

Indicates that the column is sorted in ascending order ( == 1 ), or in descending order ( ==0 ).



1065
1066
1067
# File 'glue/cfn_table.rb', line 1065

def sort_order
  @sort_order
end

Class Method Details

.jsii_propertiesObject



1067
1068
1069
1070
1071
1072
# File 'glue/cfn_table.rb', line 1067

def self.jsii_properties
  {
    :column => "column",
    :sort_order => "sortOrder",
  }
end

Instance Method Details

#to_jsiiObject



1074
1075
1076
1077
1078
1079
1080
1081
# File 'glue/cfn_table.rb', line 1074

def to_jsii
  result = {}
  result.merge!({
    "column" => @column,
    "sortOrder" => @sort_order,
  })
  result.compact
end