Upstash v0.3.14 published on Friday, Aug 9, 2024 by Upstash
upstash.getKafkaConnector
Explore with Pulumi AI
Example Usage
using Pulumi;
using Upstash = Pulumi.Upstash;
class MyStack : Stack
{
public MyStack()
{
var kafkaConnectorData = Output.Create(Upstash.GetKafkaConnector.InvokeAsync(new Upstash.GetKafkaConnectorArgs
{
TopicId = resource.Upstash_kafka_connector.ExampleKafkaConnector.Connector_id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-upstash/sdk/go/upstash"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/upstash/pulumi-upstash/sdk/go/upstash"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := upstash.LookupKafkaConnector(ctx, &GetKafkaConnectorArgs{
TopicId: resource.Upstash_kafka_connector.ExampleKafkaConnector.Connector_id,
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var kafkaConnectorData = Output.of(UpstashFunctions.getKafkaConnector(GetKafkaConnectorArgs.builder()
.topicId(resource.upstash_kafka_connector().exampleKafkaConnector().connector_id())
.build()));
}
}
import pulumi
import pulumi_upstash as upstash
kafka_connector_data = upstash.get_kafka_connector(topic_id=resource["upstash_kafka_connector"]["exampleKafkaConnector"]["connector_id"])
import * as pulumi from "@pulumi/pulumi";
import * as upstash from "@pulumi/upstash";
const kafkaConnectorData = upstash.getKafkaConnector({
topicId: resource.upstash_kafka_connector.exampleKafkaConnector.connector_id,
});
variables:
kafkaConnectorData:
Fn::Invoke:
Function: upstash:getKafkaConnector
Arguments:
topicId: ${resource.upstash_kafka_connector.exampleKafkaConnector.connector_id}
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_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKafkaConnectorResult
def get_kafka_connector_output(connector_id: 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: upstash:index/getKafkaConnector:getKafkaConnector
arguments:
# arguments dictionary
The following arguments are supported:
- Connector
Id string
- Connector
Id string
- connector
Id String
- connector
Id string
- connector_
id str
- connector
Id String
getKafkaConnector Result
The following output properties are available:
- Cluster
Id string - Connector
Class string - Connector
Id string - Connector
State string - Creation
Time int - Encoded
Username string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Properties Dictionary<string, object>
- Properties
Encrypted string - State string
- State
Error stringMessage - Tasks
List<Immutable
Dictionary<string, object>> - Topics List<string>
- Ttl int
- User
Password string
- Cluster
Id string - Connector
Class string - Connector
Id string - Connector
State string - Creation
Time int - Encoded
Username string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Properties map[string]interface{}
- Properties
Encrypted string - State string
- State
Error stringMessage - Tasks []map[string]interface{}
- Topics []string
- Ttl int
- User
Password string
- cluster
Id String - connector
Class String - connector
Id String - connector
State String - creation
Time Integer - encoded
Username String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- properties Map<String,Object>
- properties
Encrypted String - state String
- state
Error StringMessage - tasks List<Map<String,Object>>
- topics List<String>
- ttl Integer
- user
Password String
- cluster
Id string - connector
Class string - connector
Id string - connector
State string - creation
Time number - encoded
Username string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- properties {[key: string]: any}
- properties
Encrypted string - state string
- state
Error stringMessage - tasks {[key: string]: any}[]
- topics string[]
- ttl number
- user
Password string
- cluster_
id str - connector_
class str - connector_
id str - connector_
state str - creation_
time int - encoded_
username str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- properties Mapping[str, Any]
- properties_
encrypted str - state str
- state_
error_ strmessage - tasks Sequence[Mapping[str, Any]]
- topics Sequence[str]
- ttl int
- user_
password str
- cluster
Id String - connector
Class String - connector
Id String - connector
State String - creation
Time Number - encoded
Username String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- properties Map<Any>
- properties
Encrypted String - state String
- state
Error StringMessage - tasks List<Map<Any>>
- topics List<String>
- ttl Number
- user
Password String
Package Details
- Repository
- upstash upstash/pulumi-upstash
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upstash
Terraform Provider.