Class: AWSCDK::Elasticache::CfnServerlessCache::CacheUsageLimitsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elasticache/cfn_serverless_cache.rb

Overview

The usage limits for storage and ElastiCache Processing Units for the cache.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_storage: nil, ecpu_per_second: nil) ⇒ CacheUsageLimitsProperty

Returns a new instance of CacheUsageLimitsProperty.

Parameters:



813
814
815
816
817
818
# File 'elasticache/cfn_serverless_cache.rb', line 813

def initialize(data_storage: nil, ecpu_per_second: nil)
  @data_storage = data_storage.is_a?(Hash) ? ::AWSCDK::Elasticache::CfnServerlessCache::DataStorageProperty.new(**data_storage.transform_keys(&:to_sym)) : data_storage
  Jsii::Type.check_type(@data_storage, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGFzdGljYWNoZS5DZm5TZXJ2ZXJsZXNzQ2FjaGUuRGF0YVN0b3JhZ2VQcm9wZXJ0eSJ9XX19")), "dataStorage") unless @data_storage.nil?
  @ecpu_per_second = ecpu_per_second.is_a?(Hash) ? ::AWSCDK::Elasticache::CfnServerlessCache::ECPUPerSecondProperty.new(**ecpu_per_second.transform_keys(&:to_sym)) : ecpu_per_second
  Jsii::Type.check_type(@ecpu_per_second, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGFzdGljYWNoZS5DZm5TZXJ2ZXJsZXNzQ2FjaGUuRUNQVVBlclNlY29uZFByb3BlcnR5In1dfX0=")), "ecpuPerSecond") unless @ecpu_per_second.nil?
end

Instance Attribute Details

#data_storageAWSCDK::IResolvable, ... (readonly)

The maximum data storage limit in the cache, expressed in Gigabytes.



824
825
826
# File 'elasticache/cfn_serverless_cache.rb', line 824

def data_storage
  @data_storage
end

#ecpu_per_secondAWSCDK::IResolvable, ... (readonly)

The number of ElastiCache Processing Units (ECPU) the cache can consume per second.



829
830
831
# File 'elasticache/cfn_serverless_cache.rb', line 829

def ecpu_per_second
  @ecpu_per_second
end

Class Method Details

.jsii_propertiesObject



831
832
833
834
835
836
# File 'elasticache/cfn_serverless_cache.rb', line 831

def self.jsii_properties
  {
    :data_storage => "dataStorage",
    :ecpu_per_second => "ecpuPerSecond",
  }
end

Instance Method Details

#to_jsiiObject



838
839
840
841
842
843
844
845
# File 'elasticache/cfn_serverless_cache.rb', line 838

def to_jsii
  result = {}
  result.merge!({
    "dataStorage" => @data_storage,
    "ecpuPerSecond" => @ecpu_per_second,
  })
  result.compact
end