Skip to content
v2.278.0

EndpointProperty Struct ​

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 .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';
const endpointProperty: rds.CfnDBInstance.EndpointProperty = {
  address: 'address',
  hostedZoneId: 'hostedZoneId',
  port: 'port',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rds as rds

endpoint_property = rds.CfnDBInstance.EndpointProperty(
    address="address",
    hosted_zone_id="hostedZoneId",
    port="port"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;

EndpointProperty endpointProperty = EndpointProperty.builder()
        .address("address")
        .hostedZoneId("hostedZoneId")
        .port("port")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.RDS;

var endpointProperty = new EndpointProperty {
    Address = "address",
    HostedZoneId = "hostedZoneId",
    Port = "port"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

endpointProperty := &EndpointProperty{
	Address: jsii.String("address"),
	HostedZoneId: jsii.String("hostedZoneId"),
	Port: jsii.String("port"),
}

Properties ​

addressoptionalstringaddressoptionalstraddressoptionalStringAddressoptionalstringAddressoptional*string #
Specifies the DNS address of the DB instance.
hostedZoneIdoptionalstringhosted_zone_idoptionalstrhostedZoneIdoptionalStringHostedZoneIdoptionalstringHostedZoneIdoptional*string #
Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
portoptionalstringportoptionalstrportoptionalStringPortoptionalstringPortoptional*string #
Specifies the port that the database engine is listening on.