Class: AWSCDK::Glue::CfnPartition::OrderProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_partition.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: nil) ⇒ OrderProperty

Returns a new instance of OrderProperty.

Parameters:

  • column (String)

    The name of the column.

  • sort_order (Numeric, nil) (defaults to: nil)

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



594
595
596
597
598
599
# File 'glue/cfn_partition.rb', line 594

def initialize(column:, sort_order: nil)
  @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") unless @sort_order.nil?
end

Instance Attribute Details

#columnString (readonly)

The name of the column.



605
606
607
# File 'glue/cfn_partition.rb', line 605

def column
  @column
end

#sort_orderNumeric? (readonly)

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



610
611
612
# File 'glue/cfn_partition.rb', line 610

def sort_order
  @sort_order
end

Class Method Details

.jsii_propertiesObject



612
613
614
615
616
617
# File 'glue/cfn_partition.rb', line 612

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

Instance Method Details

#to_jsiiObject



619
620
621
622
623
624
625
626
# File 'glue/cfn_partition.rb', line 619

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