Aiven v6.37.0 published on Thursday, Apr 10, 2025 by Pulumi
aiven.getKafkaConnector
Explore with Pulumi AI
Gets information about an Aiven for Apache Kafka® connector.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const kafka_os_connector = aiven.getKafkaConnector({
    project: exampleProject.project,
    serviceName: exampleKafka.serviceName,
    connectorName: "kafka-opensearch-connector",
});
import pulumi
import pulumi_aiven as aiven
kafka_os_connector = aiven.get_kafka_connector(project=example_project["project"],
    service_name=example_kafka["serviceName"],
    connector_name="kafka-opensearch-connector")
package main
import (
	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.LookupKafkaConnector(ctx, &aiven.LookupKafkaConnectorArgs{
			Project:       exampleProject.Project,
			ServiceName:   exampleKafka.ServiceName,
			ConnectorName: "kafka-opensearch-connector",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() => 
{
    var kafka_os_connector = Aiven.GetKafkaConnector.Invoke(new()
    {
        Project = exampleProject.Project,
        ServiceName = exampleKafka.ServiceName,
        ConnectorName = "kafka-opensearch-connector",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.AivenFunctions;
import com.pulumi.aiven.inputs.GetKafkaConnectorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var kafka-os-connector = AivenFunctions.getKafkaConnector(GetKafkaConnectorArgs.builder()
            .project(exampleProject.project())
            .serviceName(exampleKafka.serviceName())
            .connectorName("kafka-opensearch-connector")
            .build());
    }
}
variables:
  kafka-os-connector:
    fn::invoke:
      function: aiven:getKafkaConnector
      arguments:
        project: ${exampleProject.project}
        serviceName: ${exampleKafka.serviceName}
        connectorName: kafka-opensearch-connector
Using getKafkaConnector
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getKafkaConnector(args: GetKafkaConnectorArgs, opts?: InvokeOptions): Promise<GetKafkaConnectorResult>
function getKafkaConnectorOutput(args: GetKafkaConnectorOutputArgs, opts?: InvokeOptions): Output<GetKafkaConnectorResult>def get_kafka_connector(connector_name: Optional[str] = None,
                        project: Optional[str] = None,
                        service_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetKafkaConnectorResult
def get_kafka_connector_output(connector_name: Optional[pulumi.Input[str]] = None,
                        project: Optional[pulumi.Input[str]] = None,
                        service_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetKafkaConnectorResult]func LookupKafkaConnector(ctx *Context, args *LookupKafkaConnectorArgs, opts ...InvokeOption) (*LookupKafkaConnectorResult, error)
func LookupKafkaConnectorOutput(ctx *Context, args *LookupKafkaConnectorOutputArgs, opts ...InvokeOption) LookupKafkaConnectorResultOutput> Note: This function is named LookupKafkaConnector in the Go SDK.
public static class GetKafkaConnector 
{
    public static Task<GetKafkaConnectorResult> InvokeAsync(GetKafkaConnectorArgs args, InvokeOptions? opts = null)
    public static Output<GetKafkaConnectorResult> Invoke(GetKafkaConnectorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKafkaConnectorResult> getKafkaConnector(GetKafkaConnectorArgs args, InvokeOptions options)
public static Output<GetKafkaConnectorResult> getKafkaConnector(GetKafkaConnectorArgs args, InvokeOptions options)
fn::invoke:
  function: aiven:index/getKafkaConnector:getKafkaConnector
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Connector
Name string - The Kafka connector name. Changing this property forces recreation of the resource.
 - Project string
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 
- Connector
Name string - The Kafka connector name. Changing this property forces recreation of the resource.
 - Project string
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 
- connector
Name String - The Kafka connector name. Changing this property forces recreation of the resource.
 - project String
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 
- connector
Name string - The Kafka connector name. Changing this property forces recreation of the resource.
 - project string
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 
- connector_
name str - The Kafka connector name. Changing this property forces recreation of the resource.
 - project str
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - service_
name str - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 
- connector
Name String - The Kafka connector name. Changing this property forces recreation of the resource.
 - project String
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 
getKafkaConnector Result
The following output properties are available:
- Config Dictionary<string, string>
 - The Kafka connector configuration parameters.
 - Connector
Name string - The Kafka connector name. Changing this property forces recreation of the resource.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - string
 - The Kafka connector author.
 - Plugin
Class string - The Kafka connector Java class.
 - Plugin
Doc stringUrl  - The Kafka connector documentation URL.
 - Plugin
Title string - The Kafka connector title.
 - Plugin
Type string - The Kafka connector type.
 - Plugin
Version string - The version of the Kafka connector.
 - Project string
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - Tasks
List<Get
Kafka Connector Task>  - List of tasks of a connector.
 
- Config map[string]string
 - The Kafka connector configuration parameters.
 - Connector
Name string - The Kafka connector name. Changing this property forces recreation of the resource.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - string
 - The Kafka connector author.
 - Plugin
Class string - The Kafka connector Java class.
 - Plugin
Doc stringUrl  - The Kafka connector documentation URL.
 - Plugin
Title string - The Kafka connector title.
 - Plugin
Type string - The Kafka connector type.
 - Plugin
Version string - The version of the Kafka connector.
 - Project string
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - Tasks
[]Get
Kafka Connector Task  - List of tasks of a connector.
 
- config Map<String,String>
 - The Kafka connector configuration parameters.
 - connector
Name String - The Kafka connector name. Changing this property forces recreation of the resource.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - String
 - The Kafka connector author.
 - plugin
Class String - The Kafka connector Java class.
 - plugin
Doc StringUrl  - The Kafka connector documentation URL.
 - plugin
Title String - The Kafka connector title.
 - plugin
Type String - The Kafka connector type.
 - plugin
Version String - The version of the Kafka connector.
 - project String
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - tasks
List<Get
Kafka Connector Task>  - List of tasks of a connector.
 
- config {[key: string]: string}
 - The Kafka connector configuration parameters.
 - connector
Name string - The Kafka connector name. Changing this property forces recreation of the resource.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - string
 - The Kafka connector author.
 - plugin
Class string - The Kafka connector Java class.
 - plugin
Doc stringUrl  - The Kafka connector documentation URL.
 - plugin
Title string - The Kafka connector title.
 - plugin
Type string - The Kafka connector type.
 - plugin
Version string - The version of the Kafka connector.
 - project string
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - tasks
Get
Kafka Connector Task[]  - List of tasks of a connector.
 
- config Mapping[str, str]
 - The Kafka connector configuration parameters.
 - connector_
name str - The Kafka connector name. Changing this property forces recreation of the resource.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - str
 - The Kafka connector author.
 - plugin_
class str - The Kafka connector Java class.
 - plugin_
doc_ strurl  - The Kafka connector documentation URL.
 - plugin_
title str - The Kafka connector title.
 - plugin_
type str - The Kafka connector type.
 - plugin_
version str - The version of the Kafka connector.
 - project str
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - service_
name str - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - tasks
Sequence[Get
Kafka Connector Task]  - List of tasks of a connector.
 
- config Map<String>
 - The Kafka connector configuration parameters.
 - connector
Name String - The Kafka connector name. Changing this property forces recreation of the resource.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - String
 - The Kafka connector author.
 - plugin
Class String - The Kafka connector Java class.
 - plugin
Doc StringUrl  - The Kafka connector documentation URL.
 - plugin
Title String - The Kafka connector title.
 - plugin
Type String - The Kafka connector type.
 - plugin
Version String - The version of the Kafka connector.
 - project String
 - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
 - tasks List<Property Map>
 - List of tasks of a connector.
 
Supporting Types
GetKafkaConnectorTask   
Package Details
- Repository
 - Aiven pulumi/pulumi-aiven
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
aivenTerraform Provider.