Class: AWSCDK::Timestream::CfnTable::SchemaProperty

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

Overview

A Schema specifies the expected data model of the table.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(composite_partition_key: nil) ⇒ SchemaProperty

Returns a new instance of SchemaProperty.

Parameters:



838
839
840
841
# File 'timestream/cfn_table.rb', line 838

def initialize(composite_partition_key: nil)
  @composite_partition_key = composite_partition_key
  Jsii::Type.check_type(@composite_partition_key, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfdGltZXN0cmVhbS5DZm5UYWJsZS5QYXJ0aXRpb25LZXlQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "compositePartitionKey") unless @composite_partition_key.nil?
end

Instance Attribute Details

#composite_partition_keyAWSCDK::IResolvable, ... (readonly)

A non-empty list of partition keys defining the attributes used to partition the table data.

The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.



849
850
851
# File 'timestream/cfn_table.rb', line 849

def composite_partition_key
  @composite_partition_key
end

Class Method Details

.jsii_propertiesObject



851
852
853
854
855
# File 'timestream/cfn_table.rb', line 851

def self.jsii_properties
  {
    :composite_partition_key => "compositePartitionKey",
  }
end

Instance Method Details

#to_jsiiObject



857
858
859
860
861
862
863
# File 'timestream/cfn_table.rb', line 857

def to_jsii
  result = {}
  result.merge!({
    "compositePartitionKey" => @composite_partition_key,
  })
  result.compact
end