modifyEndpoint
inline suspend fun DatabaseMigrationClient.modifyEndpoint(crossinline block: ModifyEndpointRequest.Builder.() -> Unit): ModifyEndpointResponse
Modifies the specified endpoint.
For a MySQL source or target endpoint, don't explicitly specify the database using the DatabaseName
request parameter on the ModifyEndpoint
API call. Specifying DatabaseName
when you modify a MySQL endpoint replicates all the task tables to this single database. For MySQL endpoints, you specify the database only when you specify the schema in the table-mapping rules of the DMS task.
Samples
import aws.sdk.kotlin.services.databasemigrationservice.model.DmsSslModeValue
import aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationEndpointTypeValue
fun main() {
//sampleStart
// Modifies the specified endpoint.
val resp = databaseMigrationClient.modifyEndpoint {
endpointArn = ""
endpointIdentifier = ""
endpointType = ReplicationEndpointTypeValue.fromValue("source")
engineName = ""
username = ""
password = ""
serverName = ""
port = 123
databaseName = ""
extraConnectionAttributes = ""
certificateArn = ""
sslMode = DmsSslModeValue.fromValue("require")
}
//sampleEnd
}