Class: AWSCDK::Elasticache::CfnReplicationGroup::EndpointProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticache::CfnReplicationGroup::EndpointProperty
- Defined in:
- elasticache/cfn_replication_group.rb
Overview
Instance Attribute Summary collapse
-
#address ⇒ String?
readonly
The DNS hostname of the cache node.
-
#port ⇒ String?
readonly
The port number that the cache engine is listening on.
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.
1245 1246 1247 1248 1249 1250 |
# File 'elasticache/cfn_replication_group.rb', line 1245 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)
The DNS hostname of the cache node.
1256 1257 1258 |
# File 'elasticache/cfn_replication_group.rb', line 1256 def address @address end |
#port ⇒ String? (readonly)
The port number that the cache engine is listening on.
1261 1262 1263 |
# File 'elasticache/cfn_replication_group.rb', line 1261 def port @port end |
Class Method Details
.jsii_properties ⇒ Object
1263 1264 1265 1266 1267 1268 |
# File 'elasticache/cfn_replication_group.rb', line 1263 def self.jsii_properties { :address => "address", :port => "port", } end |
Instance Method Details
#to_jsii ⇒ Object
1270 1271 1272 1273 1274 1275 1276 1277 |
# File 'elasticache/cfn_replication_group.rb', line 1270 def to_jsii result = {} result.merge!({ "address" => @address, "port" => @port, }) result.compact end |