createDbClusterEndpoint
inline suspend fun RdsClient.createDbClusterEndpoint(crossinline block: CreateDbClusterEndpointRequest.Builder.() -> Unit): CreateDbClusterEndpointResponse
Creates a new custom endpoint and associates it with an Amazon Aurora DB cluster.
This action applies only to Aurora DB clusters.
Samples
fun main() {
//sampleStart
// The following example creates a custom DB cluster endpoint and associate it with the specified
// Aurora DB cluster.
val resp = rdsClient.createDbClusterEndpoint {
dbClusterIdentifier = "mydbcluster"
dbClusterEndpointIdentifier = "mycustomendpoint"
endpointType = "reader"
staticMembers = listOf<String>(
"dbinstance1",
"dbinstance2"
)
}
//sampleEnd
}