Class: AWSCDK::Interfaces::AWSElasticache::CacheClusterReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_elasticache/cache_cluster_reference.rb

Overview

A reference to a CacheCluster resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_name:) ⇒ CacheClusterReference

Returns a new instance of CacheClusterReference.

Parameters:

  • cluster_name (String)

    The ClusterName of the CacheCluster resource.



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_nameString (readonly)

The ClusterName of the CacheCluster resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/aws_elasticache/cache_cluster_reference.rb', line 16

def cluster_name
  @cluster_name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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