Class: AWSCDK::RDS::Endpoint
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::RDS::Endpoint
- 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
-
#hostname ⇒ String
The hostname of the endpoint.
-
#initialize(address, port) ⇒ Endpoint
constructor
A new instance of Endpoint.
-
#port ⇒ Numeric
The port of the endpoint.
-
#socket_address ⇒ String
The combination of "HOSTNAME:PORT" for this endpoint.
Constructor Details
#initialize(address, port) ⇒ Endpoint
Returns a new instance of Endpoint.
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_methods ⇒ Object
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
#hostname ⇒ String
The hostname of the endpoint.
29 30 31 |
# File 'rds/endpoint.rb', line 29 def hostname() jsii_get_property("hostname") end |
#port ⇒ Numeric
The port of the endpoint.
36 37 38 |
# File 'rds/endpoint.rb', line 36 def port() jsii_get_property("port") end |
#socket_address ⇒ String
The combination of "HOSTNAME:PORT" for this endpoint.
43 44 45 |
# File 'rds/endpoint.rb', line 43 def socket_address() jsii_get_property("socketAddress") end |