Class: AWSCDK::IoTAnalytics::CfnDatastore::DatastorePartitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTAnalytics::CfnDatastore::DatastorePartitionProperty
- Defined in:
- io_t_analytics/cfn_datastore.rb
Overview
A single dimension to partition a data store.
The dimension must be an AttributePartition or a TimestampPartition .
Instance Attribute Summary collapse
-
#partition ⇒ AWSCDK::IResolvable, ...
readonly
A partition dimension defined by an attribute.
-
#timestamp_partition ⇒ AWSCDK::IResolvable, ...
readonly
A partition dimension defined by a timestamp attribute.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(partition: nil, timestamp_partition: nil) ⇒ DatastorePartitionProperty
constructor
A new instance of DatastorePartitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(partition: nil, timestamp_partition: nil) ⇒ DatastorePartitionProperty
Returns a new instance of DatastorePartitionProperty.
753 754 755 756 757 758 |
# File 'io_t_analytics/cfn_datastore.rb', line 753 def initialize(partition: nil, timestamp_partition: nil) @partition = partition.is_a?(Hash) ? ::AWSCDK::IoTAnalytics::CfnDatastore::PartitionProperty.new(**partition.transform_keys(&:to_sym)) : partition Jsii::Type.check_type(@partition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RhbmFseXRpY3MuQ2ZuRGF0YXN0b3JlLlBhcnRpdGlvblByb3BlcnR5In1dfX0=")), "partition") unless @partition.nil? @timestamp_partition = .is_a?(Hash) ? ::AWSCDK::IoTAnalytics::CfnDatastore::TimestampPartitionProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@timestamp_partition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RhbmFseXRpY3MuQ2ZuRGF0YXN0b3JlLlRpbWVzdGFtcFBhcnRpdGlvblByb3BlcnR5In1dfX0=")), "timestampPartition") unless @timestamp_partition.nil? end |
Instance Attribute Details
#partition ⇒ AWSCDK::IResolvable, ... (readonly)
A partition dimension defined by an attribute.
764 765 766 |
# File 'io_t_analytics/cfn_datastore.rb', line 764 def partition @partition end |
#timestamp_partition ⇒ AWSCDK::IResolvable, ... (readonly)
A partition dimension defined by a timestamp attribute.
769 770 771 |
# File 'io_t_analytics/cfn_datastore.rb', line 769 def @timestamp_partition end |
Class Method Details
.jsii_properties ⇒ Object
771 772 773 774 775 776 |
# File 'io_t_analytics/cfn_datastore.rb', line 771 def self.jsii_properties { :partition => "partition", :timestamp_partition => "timestampPartition", } end |
Instance Method Details
#to_jsii ⇒ Object
778 779 780 781 782 783 784 785 |
# File 'io_t_analytics/cfn_datastore.rb', line 778 def to_jsii result = {} result.merge!({ "partition" => @partition, "timestampPartition" => @timestamp_partition, }) result.compact end |