Class: AWSCDK::Timestream::CfnTable::SchemaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Timestream::CfnTable::SchemaProperty
- Defined in:
- timestream/cfn_table.rb
Overview
A Schema specifies the expected data model of the table.
Instance Attribute Summary collapse
-
#composite_partition_key ⇒ AWSCDK::IResolvable, ...
readonly
A non-empty list of partition keys defining the attributes used to partition the table data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(composite_partition_key: nil) ⇒ SchemaProperty
constructor
A new instance of SchemaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(composite_partition_key: nil) ⇒ SchemaProperty
Returns a new instance of SchemaProperty.
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_key ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |