Class: AWSCDK::RDS::CfnDBCluster::EndpointProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RDS::CfnDBCluster::EndpointProperty
- 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
-
#address ⇒ String?
readonly
Specifies the connection endpoint for the primary instance of the DB cluster.
-
#port ⇒ String?
readonly
Specifies 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.
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
#address ⇒ String? (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 |
#port ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |