Class: AWSCDK::MemoryDB::CfnCluster::EndpointProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
memory_db/cfn_cluster.rb

Overview

Represents the information required for client programs to connect to the cluster and its nodes.

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 node.

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

    The port number that the engine is listening on.



945
946
947
948
949
950
# File 'memory_db/cfn_cluster.rb', line 945

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("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") unless @port.nil?
end

Instance Attribute Details

#addressString? (readonly)

The DNS hostname of the node.



956
957
958
# File 'memory_db/cfn_cluster.rb', line 956

def address
  @address
end

#portNumeric? (readonly)

The port number that the engine is listening on.



961
962
963
# File 'memory_db/cfn_cluster.rb', line 961

def port
  @port
end

Class Method Details

.jsii_propertiesObject



963
964
965
966
967
968
# File 'memory_db/cfn_cluster.rb', line 963

def self.jsii_properties
  {
    :address => "address",
    :port => "port",
  }
end

Instance Method Details

#to_jsiiObject



970
971
972
973
974
975
976
977
# File 'memory_db/cfn_cluster.rb', line 970

def to_jsii
  result = {}
  result.merge!({
    "address" => @address,
    "port" => @port,
  })
  result.compact
end