Class: AWSCDK::RDS::Endpoint

Inherits:
Jsii::Object
  • Object
show all
Defined in:
rds/endpoint.rb

Overview

Connection endpoint of a database cluster or instance.

Consists of a combination of hostname and port.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address, port) ⇒ Endpoint

Returns a new instance of Endpoint.

Parameters:

  • address (String)
  • port (Numeric)


12
13
14
15
16
# File 'rds/endpoint.rb', line 12

def initialize(address, port)
  Jsii::Type.check_type(address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "address")
  Jsii::Type.check_type(port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port")
  Jsii::Object.instance_method(:initialize).bind(self).call(address, port)
end

Class Method Details

.jsii_overridable_methodsObject



18
19
20
21
22
23
24
# File 'rds/endpoint.rb', line 18

def self.jsii_overridable_methods
  {
    :hostname => { kind: :property, name: "hostname", is_optional: false },
    :port => { kind: :property, name: "port", is_optional: false },
    :socket_address => { kind: :property, name: "socketAddress", is_optional: false },
  }
end

Instance Method Details

#hostnameString

The hostname of the endpoint.

Returns:

  • (String)


29
30
31
# File 'rds/endpoint.rb', line 29

def hostname()
  jsii_get_property("hostname")
end

#portNumeric

The port of the endpoint.

Returns:

  • (Numeric)


36
37
38
# File 'rds/endpoint.rb', line 36

def port()
  jsii_get_property("port")
end

#socket_addressString

The combination of "HOSTNAME:PORT" for this endpoint.

Returns:

  • (String)


43
44
45
# File 'rds/endpoint.rb', line 43

def socket_address()
  jsii_get_property("socketAddress")
end