Class: AWSCDK::IoTAnalytics::CfnDatastore::TimestampPartitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTAnalytics::CfnDatastore::TimestampPartitionProperty
- Defined in:
- io_t_analytics/cfn_datastore.rb
Overview
A partition dimension defined by a timestamp attribute.
Instance Attribute Summary collapse
-
#attribute_name ⇒ String
readonly
The attribute name of the partition defined by a timestamp.
-
#timestamp_format ⇒ String?
readonly
The timestamp format of a partition defined by a timestamp.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attribute_name:, timestamp_format: nil) ⇒ TimestampPartitionProperty
constructor
A new instance of TimestampPartitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attribute_name:, timestamp_format: nil) ⇒ TimestampPartitionProperty
Returns a new instance of TimestampPartitionProperty.
1118 1119 1120 1121 1122 1123 |
# File 'io_t_analytics/cfn_datastore.rb', line 1118 def initialize(attribute_name:, timestamp_format: nil) @attribute_name = attribute_name Jsii::Type.check_type(@attribute_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attributeName") @timestamp_format = Jsii::Type.check_type(@timestamp_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timestampFormat") unless @timestamp_format.nil? end |
Instance Attribute Details
#attribute_name ⇒ String (readonly)
The attribute name of the partition defined by a timestamp.
1129 1130 1131 |
# File 'io_t_analytics/cfn_datastore.rb', line 1129 def attribute_name @attribute_name end |
#timestamp_format ⇒ String? (readonly)
The timestamp format of a partition defined by a timestamp.
The default format is seconds since epoch (January 1, 1970 at midnight UTC time).
1136 1137 1138 |
# File 'io_t_analytics/cfn_datastore.rb', line 1136 def @timestamp_format end |
Class Method Details
.jsii_properties ⇒ Object
1138 1139 1140 1141 1142 1143 |
# File 'io_t_analytics/cfn_datastore.rb', line 1138 def self.jsii_properties { :attribute_name => "attributeName", :timestamp_format => "timestampFormat", } end |
Instance Method Details
#to_jsii ⇒ Object
1145 1146 1147 1148 1149 1150 1151 1152 |
# File 'io_t_analytics/cfn_datastore.rb', line 1145 def to_jsii result = {} result.merge!({ "attributeName" => @attribute_name, "timestampFormat" => @timestamp_format, }) result.compact end |