Class: AWSCDK::IoTAnalytics::CfnDatastore::PartitionProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute_name:) ⇒ PartitionProperty

Returns a new instance of PartitionProperty.

Parameters:

  • attribute_name (String)

    The name of the attribute that defines a partition dimension.



1004
1005
1006
1007
# File 'io_t_analytics/cfn_datastore.rb', line 1004

def initialize(attribute_name:)
  @attribute_name = attribute_name
  Jsii::Type.check_type(@attribute_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attributeName")
end

Instance Attribute Details

#attribute_nameString (readonly)

The name of the attribute that defines a partition dimension.



1013
1014
1015
# File 'io_t_analytics/cfn_datastore.rb', line 1013

def attribute_name
  @attribute_name
end

Class Method Details

.jsii_propertiesObject



1015
1016
1017
1018
1019
# File 'io_t_analytics/cfn_datastore.rb', line 1015

def self.jsii_properties
  {
    :attribute_name => "attributeName",
  }
end

Instance Method Details

#to_jsiiObject



1021
1022
1023
1024
1025
1026
1027
# File 'io_t_analytics/cfn_datastore.rb', line 1021

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