1. Packages
  2. Upstash
  3. API Docs
  4. getKafkaCredential
Upstash v0.3.14 published on Friday, Aug 9, 2024 by Upstash

upstash.getKafkaCredential

Explore with Pulumi AI

upstash logo
Upstash v0.3.14 published on Friday, Aug 9, 2024 by Upstash

    Example Usage

    using Pulumi;
    using Upstash = Pulumi.Upstash;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var kafkaCredentialData = Output.Create(Upstash.GetKafkaCredential.InvokeAsync(new Upstash.GetKafkaCredentialArgs
            {
                CredentialId = upstash_kafka_credential.ExampleKafkaCredential.Credential_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.LookupKafkaCredential(ctx, &GetKafkaCredentialArgs{
    			CredentialId: upstash_kafka_credential.ExampleKafkaCredential.Credential_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 kafkaCredentialData = Output.of(UpstashFunctions.getKafkaCredential(GetKafkaCredentialArgs.builder()
                .credentialId(upstash_kafka_credential.exampleKafkaCredential().credential_id())
                .build()));
    
        }
    }
    
    import pulumi
    import pulumi_upstash as upstash
    
    kafka_credential_data = upstash.get_kafka_credential(credential_id=upstash_kafka_credential["exampleKafkaCredential"]["credential_id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as upstash from "@pulumi/upstash";
    
    const kafkaCredentialData = upstash.getKafkaCredential({
        credentialId: upstash_kafka_credential.exampleKafkaCredential.credential_id,
    });
    
    variables:
      kafkaCredentialData:
        Fn::Invoke:
          Function: upstash:getKafkaCredential
          Arguments:
            credentialId: ${upstash_kafka_credential.exampleKafkaCredential.credential_id}
    

    Using getKafkaCredential

    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 getKafkaCredential(args: GetKafkaCredentialArgs, opts?: InvokeOptions): Promise<GetKafkaCredentialResult>
    function getKafkaCredentialOutput(args: GetKafkaCredentialOutputArgs, opts?: InvokeOptions): Output<GetKafkaCredentialResult>
    def get_kafka_credential(credential_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetKafkaCredentialResult
    def get_kafka_credential_output(credential_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetKafkaCredentialResult]
    func LookupKafkaCredential(ctx *Context, args *LookupKafkaCredentialArgs, opts ...InvokeOption) (*LookupKafkaCredentialResult, error)
    func LookupKafkaCredentialOutput(ctx *Context, args *LookupKafkaCredentialOutputArgs, opts ...InvokeOption) LookupKafkaCredentialResultOutput

    > Note: This function is named LookupKafkaCredential in the Go SDK.

    public static class GetKafkaCredential 
    {
        public static Task<GetKafkaCredentialResult> InvokeAsync(GetKafkaCredentialArgs args, InvokeOptions? opts = null)
        public static Output<GetKafkaCredentialResult> Invoke(GetKafkaCredentialInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKafkaCredentialResult> getKafkaCredential(GetKafkaCredentialArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: upstash:index/getKafkaCredential:getKafkaCredential
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getKafkaCredential Result

    The following output properties are available:

    ClusterId string
    CreationTime int
    CredentialId string
    CredentialName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Password string
    Permissions string
    State string
    Topic string
    Username string
    ClusterId string
    CreationTime int
    CredentialId string
    CredentialName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Password string
    Permissions string
    State string
    Topic string
    Username string
    clusterId String
    creationTime Integer
    credentialId String
    credentialName String
    id String
    The provider-assigned unique ID for this managed resource.
    password String
    permissions String
    state String
    topic String
    username String
    clusterId string
    creationTime number
    credentialId string
    credentialName string
    id string
    The provider-assigned unique ID for this managed resource.
    password string
    permissions string
    state string
    topic string
    username string
    cluster_id str
    creation_time int
    credential_id str
    credential_name str
    id str
    The provider-assigned unique ID for this managed resource.
    password str
    permissions str
    state str
    topic str
    username str
    clusterId String
    creationTime Number
    credentialId String
    credentialName String
    id String
    The provider-assigned unique ID for this managed resource.
    password String
    permissions String
    state String
    topic String
    username String

    Package Details

    Repository
    upstash upstash/pulumi-upstash
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the upstash Terraform Provider.
    upstash logo
    Upstash v0.3.14 published on Friday, Aug 9, 2024 by Upstash