1. Packages
  2. Aiven
  3. API Docs
  4. getKafkaConnector
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

aiven.getKafkaConnector

Explore with Pulumi AI

aiven logo
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

    The Kafka connector data source provides information about the existing Aiven Kafka connector.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const kafka-es-con1 = aiven.getKafkaConnector({
        project: aiven_project["kafka-con-project1"].project,
        serviceName: aiven_kafka["kafka-service1"].service_name,
        connectorName: "kafka-es-con1",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    kafka_es_con1 = aiven.get_kafka_connector(project=aiven_project["kafka-con-project1"]["project"],
        service_name=aiven_kafka["kafka-service1"]["service_name"],
        connector_name="kafka-es-con1")
    
    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:       aiven_project.KafkaConProject1.Project,
    			ServiceName:   aiven_kafka.KafkaService1.Service_name,
    			ConnectorName: "kafka-es-con1",
    		}, 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_es_con1 = Aiven.GetKafkaConnector.Invoke(new()
        {
            Project = aiven_project.Kafka_con_project1.Project,
            ServiceName = aiven_kafka.Kafka_service1.Service_name,
            ConnectorName = "kafka-es-con1",
        });
    
    });
    
    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-es-con1 = AivenFunctions.getKafkaConnector(GetKafkaConnectorArgs.builder()
                .project(aiven_project.kafka-con-project1().project())
                .serviceName(aiven_kafka.kafka-service1().service_name())
                .connectorName("kafka-es-con1")
                .build());
    
        }
    }
    
    variables:
      kafka-es-con1:
        fn::invoke:
          Function: aiven:getKafkaConnector
          Arguments:
            project: ${aiven_project"kafka-con-project1"[%!s(MISSING)].project}
            serviceName: ${aiven_kafka"kafka-service1"[%!s(MISSING)].service_name}
            connectorName: kafka-es-con1
    

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aiven:index/getKafkaConnector:getKafkaConnector
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConnectorName string
    The kafka connector name. Changing this property forces recreation of the resource.
    Project string
    Identifies 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.
    ServiceName string
    Specifies 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.
    ConnectorName string
    The kafka connector name. Changing this property forces recreation of the resource.
    Project string
    Identifies 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.
    ServiceName string
    Specifies 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.
    connectorName String
    The kafka connector name. Changing this property forces recreation of the resource.
    project String
    Identifies 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.
    serviceName String
    Specifies 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.
    connectorName string
    The kafka connector name. Changing this property forces recreation of the resource.
    project string
    Identifies 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.
    serviceName string
    Specifies 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
    Identifies 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
    Specifies 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.
    connectorName String
    The kafka connector name. Changing this property forces recreation of the resource.
    project String
    Identifies 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.
    serviceName String
    Specifies 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.
    ConnectorName string
    The kafka connector name. Changing this property forces recreation of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    PluginAuthor string
    The Kafka connector author.
    PluginClass string
    The Kafka connector Java class.
    PluginDocUrl string
    The Kafka connector documentation URL.
    PluginTitle string
    The Kafka connector title.
    PluginType string
    The Kafka connector type.
    PluginVersion string
    The version of the kafka connector.
    Project string
    Identifies 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.
    ServiceName string
    Specifies 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<GetKafkaConnectorTask>
    List of tasks of a connector.
    Config map[string]string
    The Kafka Connector configuration parameters.
    ConnectorName string
    The kafka connector name. Changing this property forces recreation of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    PluginAuthor string
    The Kafka connector author.
    PluginClass string
    The Kafka connector Java class.
    PluginDocUrl string
    The Kafka connector documentation URL.
    PluginTitle string
    The Kafka connector title.
    PluginType string
    The Kafka connector type.
    PluginVersion string
    The version of the kafka connector.
    Project string
    Identifies 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.
    ServiceName string
    Specifies 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 []GetKafkaConnectorTask
    List of tasks of a connector.
    config Map<String,String>
    The Kafka Connector configuration parameters.
    connectorName String
    The kafka connector name. Changing this property forces recreation of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    pluginAuthor String
    The Kafka connector author.
    pluginClass String
    The Kafka connector Java class.
    pluginDocUrl String
    The Kafka connector documentation URL.
    pluginTitle String
    The Kafka connector title.
    pluginType String
    The Kafka connector type.
    pluginVersion String
    The version of the kafka connector.
    project String
    Identifies 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.
    serviceName String
    Specifies 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<GetKafkaConnectorTask>
    List of tasks of a connector.
    config {[key: string]: string}
    The Kafka Connector configuration parameters.
    connectorName string
    The kafka connector name. Changing this property forces recreation of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    pluginAuthor string
    The Kafka connector author.
    pluginClass string
    The Kafka connector Java class.
    pluginDocUrl string
    The Kafka connector documentation URL.
    pluginTitle string
    The Kafka connector title.
    pluginType string
    The Kafka connector type.
    pluginVersion string
    The version of the kafka connector.
    project string
    Identifies 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.
    serviceName string
    Specifies 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 GetKafkaConnectorTask[]
    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.
    plugin_author str
    The Kafka connector author.
    plugin_class str
    The Kafka connector Java class.
    plugin_doc_url str
    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
    Identifies 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
    Specifies 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[GetKafkaConnectorTask]
    List of tasks of a connector.
    config Map<String>
    The Kafka Connector configuration parameters.
    connectorName String
    The kafka connector name. Changing this property forces recreation of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    pluginAuthor String
    The Kafka connector author.
    pluginClass String
    The Kafka connector Java class.
    pluginDocUrl String
    The Kafka connector documentation URL.
    pluginTitle String
    The Kafka connector title.
    pluginType String
    The Kafka connector type.
    pluginVersion String
    The version of the kafka connector.
    project String
    Identifies 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.
    serviceName String
    Specifies 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

    Connector string
    The name of the related connector.
    Task int
    The task id of the task.
    Connector string
    The name of the related connector.
    Task int
    The task id of the task.
    connector String
    The name of the related connector.
    task Integer
    The task id of the task.
    connector string
    The name of the related connector.
    task number
    The task id of the task.
    connector str
    The name of the related connector.
    task int
    The task id of the task.
    connector String
    The name of the related connector.
    task Number
    The task id of the task.

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi