Class: AWSCDK::Redshift::CfnCluster::EndpointProperty

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

Overview

Describes a connection endpoint.

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 address of the cluster.

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

    The port that the database engine is listening on.



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

#addressString? (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

#portString? (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_propertiesObject



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_jsiiObject



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