aiven.getKafkaConnector
Explore with Pulumi AI
The Kafka connector data source provides information about the existing Aiven Kafka connector.
Example Usage
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 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
})
}
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());
}
}
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")
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",
});
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:
- Connector
Name 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.
- Service
Name 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 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.
- Service
Name 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 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.
- service
Name 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 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.
- service
Name 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.
- connector
Name 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.
- service
Name 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.
- Connector
Name 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.
- 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
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 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<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. This property cannot be changed, doing so 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
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 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
[]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. This property cannot be changed, doing so 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
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 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<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. This property cannot be changed, doing so 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
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 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
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. This property cannot be changed, doing so 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
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[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. This property cannot be changed, doing so 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
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 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
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aiven
Terraform Provider.