PostgreSqlSettingsProperty Struct
Provides information that defines a PostgreSQL endpoint.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dms as dms } from 'aws-cdk-lib';
const postgreSqlSettingsProperty: dms.CfnDataProvider.PostgreSqlSettingsProperty = {
databaseName: 'databaseName',
port: 123,
serverName: 'serverName',
sslMode: 'sslMode',
// the properties below are optional
certificateArn: 'certificateArn',
};
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_dms as dms
postgre_sql_settings_property = dms.CfnDataProvider.PostgreSqlSettingsProperty(
database_name="databaseName",
port=123,
server_name="serverName",
ssl_mode="sslMode",
# the properties below are optional
certificate_arn="certificateArn"
)
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.dms.*;
PostgreSqlSettingsProperty postgreSqlSettingsProperty = PostgreSqlSettingsProperty.builder()
.databaseName("databaseName")
.port(123)
.serverName("serverName")
.sslMode("sslMode")
// the properties below are optional
.certificateArn("certificateArn")
.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.DMS;
var postgreSqlSettingsProperty = new PostgreSqlSettingsProperty {
DatabaseName = "databaseName",
Port = 123,
ServerName = "serverName",
SslMode = "sslMode",
// the properties below are optional
CertificateArn = "certificateArn"
};
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"
postgreSqlSettingsProperty := &PostgreSqlSettingsProperty{
DatabaseName: jsii.String("databaseName"),
Port: jsii.Number(123),
ServerName: jsii.String("serverName"),
SslMode: jsii.String("sslMode"),
// the properties below are optional
CertificateArn: jsii.String("certificateArn"),
}
Properties
certificateArnoptionalstringcertificate_arnoptionalstrcertificateArnoptionalStringCertificateArnoptionalstringCertificateArnoptional*string #databaseNamestringdatabase_namestrdatabaseNameStringDatabaseNamestringDatabaseName*string required #Database name for the endpoint.
Endpoint TCP port.
The default is 5432.
The host name of the endpoint database.
notes
For an Amazon RDS PostgreSQL instance, this is the output of DescribeDBInstances , in the [Endpoint](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Endpoint.html) .Address field.
For an Aurora PostgreSQL instance, this is the output of DescribeDBClusters , in the Endpoint field.