Class: AWSCDK::Elasticache::CfnServerlessCache::ECPUPerSecondProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticache::CfnServerlessCache::ECPUPerSecondProperty
- 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
-
#maximum ⇒ Numeric?
readonly
The configuration for the maximum number of ECPUs the cache can consume per second.
-
#minimum ⇒ Numeric?
readonly
The configuration for the minimum number of ECPUs the cache should be able consume per second.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(maximum: nil, minimum: nil) ⇒ ECPUPerSecondProperty
constructor
A new instance of ECPUPerSecondProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(maximum: nil, minimum: nil) ⇒ ECPUPerSecondProperty
Returns a new instance of ECPUPerSecondProperty.
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
#maximum ⇒ Numeric? (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 |
#minimum ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |