Class: AWSCDK::MemoryDB::CfnCluster::EndpointProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MemoryDB::CfnCluster::EndpointProperty
- 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
-
#address ⇒ String?
readonly
The DNS hostname of the node.
-
#port ⇒ Numeric?
readonly
The port number that the 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.
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
#address ⇒ String? (readonly)
The DNS hostname of the node.
956 957 958 |
# File 'memory_db/cfn_cluster.rb', line 956 def address @address end |
#port ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |