Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/lint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ var vocabWords = []string{
"configs",
"consumer.config",
"confluent_jdbc",
"cosmosdb",
"couchbase",
"cpp",
"crl",
Expand Down Expand Up @@ -316,6 +317,7 @@ var vocabWords = []string{
"restapi",
"ruleset",
"s3",
"s3vectors",
"sagemaker",
"sasl",
"savepoint",
Expand Down
14 changes: 9 additions & 5 deletions pkg/flink/utils.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package flink

var (
ConnectionTypes = []string{"openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server"}
ConnectionTypes = []string{"openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", "cosmosdb", "s3vectors"}
ConnectionTypeSecretMapping = map[string][]string{
"openai": {"api-key"},
"azureml": {"api-key"},
Expand All @@ -18,13 +18,15 @@ var (
"confluent_jdbc": {"username", "password"},
"rest": {"username", "password", "token", "token-endpoint", "client-id", "client-secret", "scope"},
"mcp_server": {"username", "password", "api-key", "token", "token-endpoint", "client-id", "client-secret", "scope", "sse-endpoint", "transport-type"},
"cosmosdb": {"api-key"},
"s3vectors": {"aws-access-key", "aws-secret-key", "aws-session-token"},
}

ConnectionSecretTypeMapping = map[string][]string{
"api-key": {"openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server"},
"aws-access-key": {"bedrock", "sagemaker"},
"aws-secret-key": {"bedrock", "sagemaker"},
"aws-session-token": {"bedrock", "sagemaker"},
"api-key": {"openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", "cosmosdb"},
"aws-access-key": {"bedrock", "sagemaker", "s3vectors"},
"aws-secret-key": {"bedrock", "sagemaker", "s3vectors"},
"aws-session-token": {"bedrock", "sagemaker", "s3vectors"},
"service-key": {"vertexai"},
"username": {"mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", "mcp_server"},
"password": {"mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", "mcp_server"},
Expand Down Expand Up @@ -53,6 +55,8 @@ var (
"a2a": {},
"rest": {},
"mcp_server": {},
"cosmosdb": {"api-key"},
"s3vectors": {"aws-access-key", "aws-secret-key"},
}

ConnectionOneOfRequiredSecretsMapping = map[string][][]string{
Expand Down
10 changes: 5 additions & 5 deletions test/fixtures/output/flink/connection/create-help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
Flags:
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", "cosmosdb", or "s3vectors".
--endpoint string REQUIRED: Specify endpoint for the connection.
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
--aws-access-key string Specify access key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-secret-key string Specify secret key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-session-token string Specify session token for the type: "bedrock", "sagemaker", or "s3vectors".
--service-key string Specify service key for the type: "vertexai".
--username string Specify username for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
--password string Specify password for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
Flags:
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", "cosmosdb", or "s3vectors".
--endpoint string REQUIRED: Specify endpoint for the connection.
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
--aws-access-key string Specify access key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-secret-key string Specify secret key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-session-token string Specify session token for the type: "bedrock", "sagemaker", or "s3vectors".
--service-key string Specify service key for the type: "vertexai".
--username string Specify username for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
--password string Specify password for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
Flags:
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", "cosmosdb", or "s3vectors".
--endpoint string REQUIRED: Specify endpoint for the connection.
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
--aws-access-key string Specify access key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-secret-key string Specify secret key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-session-token string Specify session token for the type: "bedrock", "sagemaker", or "s3vectors".
--service-key string Specify service key for the type: "vertexai".
--username string Specify username for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
--password string Specify password for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+---------------+---------------------------------------+
| Creation Date | 2023-01-01 00:00:00 +0000 UTC |
| Name | my-connection |
| Environment | env-596 |
| Cloud | azure |
| Region | eu-west-1 |
| Type | COSMOSDB |
| Endpoint | https://myaccount.documents.azure.com |
| Data | <REDACTED> |
| Status | PENDING |
+---------------+---------------------------------------+
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
Flags:
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", "cosmosdb", or "s3vectors".
--endpoint string REQUIRED: Specify endpoint for the connection.
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
--aws-access-key string Specify access key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-secret-key string Specify secret key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-session-token string Specify session token for the type: "bedrock", "sagemaker", or "s3vectors".
--service-key string Specify service key for the type: "vertexai".
--username string Specify username for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
--password string Specify password for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
Flags:
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", "cosmosdb", or "s3vectors".
--endpoint string REQUIRED: Specify endpoint for the connection.
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
--aws-access-key string Specify access key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-secret-key string Specify secret key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-session-token string Specify session token for the type: "bedrock", "sagemaker", or "s3vectors".
--service-key string Specify service key for the type: "vertexai".
--username string Specify username for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
--password string Specify password for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
Flags:
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", "cosmosdb", or "s3vectors".
--endpoint string REQUIRED: Specify endpoint for the connection.
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
--aws-access-key string Specify access key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-secret-key string Specify secret key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-session-token string Specify session token for the type: "bedrock", "sagemaker", or "s3vectors".
--service-key string Specify service key for the type: "vertexai".
--username string Specify username for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
--password string Specify password for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Create Flink connection "my-connection" in AWS us-west-2 for OpenAPI with endpoi
Flags:
--cloud string REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
--region string REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", or "mcp_server".
--type string REQUIRED: Specify the connection type as "openai", "azureml", "azureopenai", "a2a", "bedrock", "sagemaker", "googleai", "vertexai", "mongodb", "elastic", "pinecone", "couchbase", "confluent_jdbc", "rest", "mcp_server", "cosmosdb", or "s3vectors".
--endpoint string REQUIRED: Specify endpoint for the connection.
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", or "mcp_server".
--aws-access-key string Specify access key for the type: "bedrock" or "sagemaker".
--aws-secret-key string Specify secret key for the type: "bedrock" or "sagemaker".
--aws-session-token string Specify session token for the type: "bedrock" or "sagemaker".
--api-key string Specify API key for the type: "openai", "azureml", "azureopenai", "googleai", "elastic", "pinecone", "a2a", "mcp_server", or "cosmosdb".
--aws-access-key string Specify access key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-secret-key string Specify secret key for the type: "bedrock", "sagemaker", or "s3vectors".
--aws-session-token string Specify session token for the type: "bedrock", "sagemaker", or "s3vectors".
--service-key string Specify service key for the type: "vertexai".
--username string Specify username for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
--password string Specify password for the type: "mongodb", "couchbase", "confluent_jdbc", "a2a", "rest", or "mcp_server".
Expand Down
Loading
Loading