Class: AWSCDK::Interfaces::AWSElasticache::CacheClusterReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSElasticache::CacheClusterReference
- Defined in:
- interfaces/aws_elasticache/cache_cluster_reference.rb
Overview
A reference to a CacheCluster resource.
Instance Attribute Summary collapse
-
#cluster_name ⇒ String
readonly
The ClusterName of the CacheCluster resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_name:) ⇒ CacheClusterReference
constructor
A new instance of CacheClusterReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster_name:) ⇒ CacheClusterReference
Returns a new instance of CacheClusterReference.
8 9 10 11 |
# File 'interfaces/aws_elasticache/cache_cluster_reference.rb', line 8 def initialize(cluster_name:) @cluster_name = cluster_name Jsii::Type.check_type(@cluster_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterName") end |
Instance Attribute Details
#cluster_name ⇒ String (readonly)
The ClusterName of the CacheCluster resource.
16 17 18 |
# File 'interfaces/aws_elasticache/cache_cluster_reference.rb', line 16 def cluster_name @cluster_name end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'interfaces/aws_elasticache/cache_cluster_reference.rb', line 18 def self.jsii_properties { :cluster_name => "clusterName", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'interfaces/aws_elasticache/cache_cluster_reference.rb', line 24 def to_jsii result = {} result.merge!({ "clusterName" => @cluster_name, }) result.compact end |