ALTER CONNECTION Statement in Confluent Cloud for Apache Flink¶
Confluent Cloud for Apache Flink® supports creating secure connections to external services and data sources. You can use these connections in your Flink statements. Use the ALTER CONNECTION statement to change the API key or credentials of an existing connection.
Syntax¶
ALTER CONNECTION [IF EXISTS] [catalog_name.][db_name.]connection_name
SET (key1=val1[, key2=val2]...)
Description¶
Change the API key or credentials of a connection.
Secrets are extracted to the secret store and aren’t displayed in subsequent DESCRIBE CONNECTION statements, the Flink SQL shell, or the Confluent Cloud Console.
Examples¶
-- Update the API key for a connection.
ALTER CONNECTION `conn-one` SET ('api-key' = '<new-api-key>');
-- Update the credentials for a connection.
ALTER CONNECTION `my-couchbase-conn` SET (
'username' = '<user-name>',
'password' = '<new-password>'
);