Class: AWSCDK::Elasticache::CfnServerlessCache::ECPUPerSecondProperty

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

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(maximum: nil, minimum: nil) ⇒ ECPUPerSecondProperty

Returns a new instance of ECPUPerSecondProperty.

Parameters:

  • maximum (Numeric, nil) (defaults to: nil)

    The configuration for the maximum number of ECPUs the cache can consume per second.

  • minimum (Numeric, nil) (defaults to: nil)

    The configuration for the minimum number of ECPUs the cache should be able consume per second.



909
910
911
912
913
914
# File 'elasticache/cfn_serverless_cache.rb', line 909

def initialize(maximum: nil, minimum: nil)
  @maximum = maximum
  Jsii::Type.check_type(@maximum, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximum") unless @maximum.nil?
  @minimum = minimum
  Jsii::Type.check_type(@minimum, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minimum") unless @minimum.nil?
end

Instance Attribute Details

#maximumNumeric? (readonly)

The configuration for the maximum number of ECPUs the cache can consume per second.



920
921
922
# File 'elasticache/cfn_serverless_cache.rb', line 920

def maximum
  @maximum
end

#minimumNumeric? (readonly)

The configuration for the minimum number of ECPUs the cache should be able consume per second.



925
926
927
# File 'elasticache/cfn_serverless_cache.rb', line 925

def minimum
  @minimum
end

Class Method Details

.jsii_propertiesObject



927
928
929
930
931
932
# File 'elasticache/cfn_serverless_cache.rb', line 927

def self.jsii_properties
  {
    :maximum => "maximum",
    :minimum => "minimum",
  }
end

Instance Method Details

#to_jsiiObject



934
935
936
937
938
939
940
941
# File 'elasticache/cfn_serverless_cache.rb', line 934

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