Class: AWSCDK::RDS::CfnDBCluster::EndpointProperty

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

Overview

The Endpoint return value specifies the connection endpoint for the primary instance of the DB cluster.

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)

    Specifies the connection endpoint for the primary instance of the DB cluster.

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

    Specifies the port that the database engine is listening on.



1470
1471
1472
1473
1474
1475
# File 'rds/cfn_db_cluster.rb', line 1470

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)

Specifies the connection endpoint for the primary instance of the DB cluster.



1481
1482
1483
# File 'rds/cfn_db_cluster.rb', line 1481

def address
  @address
end

#portString? (readonly)

Specifies the port that the database engine is listening on.



1486
1487
1488
# File 'rds/cfn_db_cluster.rb', line 1486

def port
  @port
end

Class Method Details

.jsii_propertiesObject



1488
1489
1490
1491
1492
1493
# File 'rds/cfn_db_cluster.rb', line 1488

def self.jsii_properties
  {
    :address => "address",
    :port => "port",
  }
end

Instance Method Details

#to_jsiiObject



1495
1496
1497
1498
1499
1500
1501
1502
# File 'rds/cfn_db_cluster.rb', line 1495

def to_jsii
  result = {}
  result.merge!({
    "address" => @address,
    "port" => @port,
  })
  result.compact
end