Class: AWSCDK::Redshift::CfnCluster::EndpointProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Redshift::CfnCluster::EndpointProperty
- Defined in:
- redshift/cfn_cluster.rb
Overview
Describes a connection endpoint.
Instance Attribute Summary collapse
-
#address ⇒ String?
readonly
The DNS address of the cluster.
-
#port ⇒ String?
readonly
The port that the database 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.
1222 1223 1224 1225 1226 1227 |
# File 'redshift/cfn_cluster.rb', line 1222 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
#address ⇒ String? (readonly)
The DNS address of the cluster.
This property is read only.
1235 1236 1237 |
# File 'redshift/cfn_cluster.rb', line 1235 def address @address end |
#port ⇒ String? (readonly)
The port that the database engine is listening on.
This property is read only.
1242 1243 1244 |
# File 'redshift/cfn_cluster.rb', line 1242 def port @port end |
Class Method Details
.jsii_properties ⇒ Object
1244 1245 1246 1247 1248 1249 |
# File 'redshift/cfn_cluster.rb', line 1244 def self.jsii_properties { :address => "address", :port => "port", } end |
Instance Method Details
#to_jsii ⇒ Object
1251 1252 1253 1254 1255 1256 1257 1258 |
# File 'redshift/cfn_cluster.rb', line 1251 def to_jsii result = {} result.merge!({ "address" => @address, "port" => @port, }) result.compact end |