Class: AWSCDK::S3Tables::CfnTableBucket::StorageClassConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_tables/cfn_table_bucket.rb

Overview

The configuration details for the storage class of tables or table buckets.

This allows you to optimize storage costs by selecting the appropriate storage class based on your access patterns and performance requirements.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(storage_class: nil) ⇒ StorageClassConfigurationProperty

Returns a new instance of StorageClassConfigurationProperty.

Parameters:

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

    The storage class for the table or table bucket.



801
802
803
804
# File 's3_tables/cfn_table_bucket.rb', line 801

def initialize(storage_class: nil)
  @storage_class = storage_class
  Jsii::Type.check_type(@storage_class, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "storageClass") unless @storage_class.nil?
end

Instance Attribute Details

#storage_classString? (readonly)

The storage class for the table or table bucket.

Valid values include storage classes optimized for different access patterns and cost profiles.



812
813
814
# File 's3_tables/cfn_table_bucket.rb', line 812

def storage_class
  @storage_class
end

Class Method Details

.jsii_propertiesObject



814
815
816
817
818
# File 's3_tables/cfn_table_bucket.rb', line 814

def self.jsii_properties
  {
    :storage_class => "storageClass",
  }
end

Instance Method Details

#to_jsiiObject



820
821
822
823
824
825
826
# File 's3_tables/cfn_table_bucket.rb', line 820

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