Class: AWSCDK::RDS::CfnDBInstance::EndpointProperty

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

Overview

This data type represents the information you need to connect to an Amazon RDS DB instance.

This data type is used as a response element in the following actions:

  • CreateDBInstance
  • DescribeDBInstances
  • DeleteDBInstance

For the data structure that represents Amazon Aurora DB cluster endpoints, see DBClusterEndpoint .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address: nil, hosted_zone_id: nil, port: nil) ⇒ EndpointProperty

Returns a new instance of EndpointProperty.

Parameters:

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

    Specifies the DNS address of the DB instance.

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

    Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

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

    Specifies the port that the database engine is listening on.



2115
2116
2117
2118
2119
2120
2121
2122
# File 'rds/cfn_db_instance.rb', line 2115

def initialize(address: nil, hosted_zone_id: nil, port: nil)
  @address = address
  Jsii::Type.check_type(@address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "address") unless @address.nil?
  @hosted_zone_id = hosted_zone_id
  Jsii::Type.check_type(@hosted_zone_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostedZoneId") unless @hosted_zone_id.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 DNS address of the DB instance.



2128
2129
2130
# File 'rds/cfn_db_instance.rb', line 2128

def address
  @address
end

#hosted_zone_idString? (readonly)

Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.



2133
2134
2135
# File 'rds/cfn_db_instance.rb', line 2133

def hosted_zone_id
  @hosted_zone_id
end

#portString? (readonly)

Specifies the port that the database engine is listening on.



2138
2139
2140
# File 'rds/cfn_db_instance.rb', line 2138

def port
  @port
end

Class Method Details

.jsii_propertiesObject



2140
2141
2142
2143
2144
2145
2146
# File 'rds/cfn_db_instance.rb', line 2140

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

Instance Method Details

#to_jsiiObject



2148
2149
2150
2151
2152
2153
2154
2155
2156
# File 'rds/cfn_db_instance.rb', line 2148

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