Class: AWSCDK::Elasticache::CfnReplicationGroup::EndpointProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elasticache/cfn_replication_group.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address: nil, port: nil) ⇒ EndpointProperty

Returns a new instance of EndpointProperty.

Parameters:

  • address (String, nil) (defaults to: nil)

    The DNS hostname of the cache node.

  • port (String, nil) (defaults to: nil)

    The port number that the cache engine is listening on.



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

#addressString? (readonly)

The DNS hostname of the cache node.



1256
1257
1258
# File 'elasticache/cfn_replication_group.rb', line 1256

def address
  @address
end

#portString? (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_propertiesObject



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_jsiiObject



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