Class: AWSCDK::Cassandra::CfnTable::ClusteringKeyColumnProperty

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

Overview

Defines an individual column within the clustering key.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column:, order_by: nil) ⇒ ClusteringKeyColumnProperty

Returns a new instance of ClusteringKeyColumnProperty.

Parameters:



935
936
937
938
939
940
# File 'cassandra/cfn_table.rb', line 935

def initialize(column:, order_by: nil)
  @column = column.is_a?(Hash) ? ::AWSCDK::Cassandra::CfnTable::ColumnProperty.new(**column.transform_keys(&:to_sym)) : column
  Jsii::Type.check_type(@column, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jYXNzYW5kcmEuQ2ZuVGFibGUuQ29sdW1uUHJvcGVydHkifV19fQ==")), "column")
  @order_by = order_by
  Jsii::Type.check_type(@order_by, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "orderBy") unless @order_by.nil?
end

Instance Attribute Details

#order_byString? (readonly)

Note:

Default: - "ASC"

The order in which this column's data is stored:.

  • ASC (default) - The column's data is stored in ascending order.
  • DESC - The column's data is stored in descending order.


955
956
957
# File 'cassandra/cfn_table.rb', line 955

def order_by
  @order_by
end

Class Method Details

.jsii_propertiesObject



957
958
959
960
961
962
# File 'cassandra/cfn_table.rb', line 957

def self.jsii_properties
  {
    :column => "column",
    :order_by => "orderBy",
  }
end

Instance Method Details

#to_jsiiObject



964
965
966
967
968
969
970
971
# File 'cassandra/cfn_table.rb', line 964

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