Aiven

v5.4.0 published on Monday, Sep 12, 2022 by Pulumi

getKafkaConnector

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

Example Usage

using System.Collections.Generic;
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_service.Kafka_service1.Service_name,
        ConnectorName = "kafka-es-con1",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aiven/sdk/v5/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.LookupKafkaConnector(ctx, &GetKafkaConnectorArgs{
			Project:       aiven_project.Kafka - con - project1.Project,
			ServiceName:   aiven_service.Kafka - service1.Service_name,
			ConnectorName: "kafka-es-con1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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_service.kafka-service1().service_name())
            .connectorName("kafka-es-con1")
            .build());

    }
}
import pulumi
import pulumi_aiven as aiven

kafka_es_con1 = aiven.get_kafka_connector(project=aiven_project["kafka-con-project1"]["project"],
    service_name=aiven_service["kafka-service1"]["service_name"],
    connector_name="kafka-es-con1")
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_service["kafka-service1"].service_name,
    connectorName: "kafka-es-con1",
});
variables:
  kafka-es-con1:
    Fn::Invoke:
      Function: aiven:getKafkaConnector
      Arguments:
        project: ${aiven_project"kafka-con-project1"[%!s(MISSING)].project}
        serviceName: ${aiven_service"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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so forces recreation of the resource.

ConnectorName string

The kafka connector name. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so forces recreation of the resource.

connectorName String

The kafka connector name. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so forces recreation of the resource.

connectorName string

The kafka connector name. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so forces recreation of the resource.

connector_name str

The kafka connector name. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so forces recreation of the resource.

connectorName String

The kafka connector name. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so 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. This property cannot be changed, doing so forces recreation of the resource.

tasks List<Property Map>

List of tasks of a connector.

Supporting Types

GetKafkaConnectorTask

Connector string
Task int

List of tasks of a connector.

Connector string
Task int

List of tasks of a connector.

connector String
task Integer

List of tasks of a connector.

connector string
task number

List of tasks of a connector.

connector str
task int

List of tasks of a connector.

connector String
task Number

List of tasks of a connector.

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes

This Pulumi package is based on the aiven Terraform Provider.