Class: AWSCDK::IoTAnalytics::CfnDatastore::TimestampPartitionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_analytics/cfn_datastore.rb

Overview

A partition dimension defined by a timestamp attribute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute_name:, timestamp_format: nil) ⇒ TimestampPartitionProperty

Returns a new instance of TimestampPartitionProperty.

Parameters:

  • attribute_name (String)

    The attribute name of the partition defined by a timestamp.

  • timestamp_format (String, nil) (defaults to: nil)

    The timestamp format of a partition defined by a timestamp.



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 = timestamp_format
  Jsii::Type.check_type(@timestamp_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timestampFormat") unless @timestamp_format.nil?
end

Instance Attribute Details

#attribute_nameString (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_formatString? (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
  @timestamp_format
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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