Class: AWSCDK::Elasticache::CfnCacheCluster::EndpointProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticache::CfnCacheCluster::EndpointProperty
- Defined in:
- elasticache/cfn_cache_cluster.rb
Overview
Instance Attribute Summary collapse
- #address ⇒ String? readonly
- #port ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(address: nil, port: nil) ⇒ EndpointProperty
constructor
A new instance of EndpointProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(address: nil, port: nil) ⇒ EndpointProperty
Returns a new instance of EndpointProperty.
944 945 946 947 948 949 |
# File 'elasticache/cfn_cache_cluster.rb', line 944 def initialize(address: nil, port: nil) @address = address Jsii::Type.check_type(@address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "address") unless @address.nil? @port = port Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "port") unless @port.nil? end |
Instance Attribute Details
#address ⇒ String? (readonly)
953 954 955 |
# File 'elasticache/cfn_cache_cluster.rb', line 953 def address @address end |
#port ⇒ String? (readonly)
956 957 958 |
# File 'elasticache/cfn_cache_cluster.rb', line 956 def port @port end |
Class Method Details
.jsii_properties ⇒ Object
958 959 960 961 962 963 |
# File 'elasticache/cfn_cache_cluster.rb', line 958 def self.jsii_properties { :address => "address", :port => "port", } end |
Instance Method Details
#to_jsii ⇒ Object
965 966 967 968 969 970 971 972 |
# File 'elasticache/cfn_cache_cluster.rb', line 965 def to_jsii result = {} result.merge!({ "address" => @address, "port" => @port, }) result.compact end |