1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. KafkaConsumers
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.tls.KafkaConsumers

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of tls kafka consumers

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Tls.KafkaConsumers.Invoke(new()
        {
            Ids = new[]
            {
                "65d67d34-c5b4-4ec8-b3a9-175d33668b45",
                "cfb5c08b-0c7a-44fa-8971-8afc12f1b123",
                "edf051ed-3c46-49ba-9339-bea628fedc15",
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tls.KafkaConsumers(ctx, &tls.KafkaConsumersArgs{
    			Ids: []string{
    				"65d67d34-c5b4-4ec8-b3a9-175d33668b45",
    				"cfb5c08b-0c7a-44fa-8971-8afc12f1b123",
    				"edf051ed-3c46-49ba-9339-bea628fedc15",
    			},
    		}, 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.volcengine.tls.TlsFunctions;
    import com.pulumi.volcengine.tls.inputs.KafkaConsumersArgs;
    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 default = TlsFunctions.KafkaConsumers(KafkaConsumersArgs.builder()
                .ids(            
                    "65d67d34-c5b4-4ec8-b3a9-175d33668b45",
                    "cfb5c08b-0c7a-44fa-8971-8afc12f1b123",
                    "edf051ed-3c46-49ba-9339-bea628fedc15")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.tls.kafka_consumers(ids=[
        "65d67d34-c5b4-4ec8-b3a9-175d33668b45",
        "cfb5c08b-0c7a-44fa-8971-8afc12f1b123",
        "edf051ed-3c46-49ba-9339-bea628fedc15",
    ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.tls.KafkaConsumers({
        ids: [
            "65d67d34-c5b4-4ec8-b3a9-175d33668b45",
            "cfb5c08b-0c7a-44fa-8971-8afc12f1b123",
            "edf051ed-3c46-49ba-9339-bea628fedc15",
        ],
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:tls:KafkaConsumers
          Arguments:
            ids:
              - 65d67d34-c5b4-4ec8-b3a9-175d33668b45
              - cfb5c08b-0c7a-44fa-8971-8afc12f1b123
              - edf051ed-3c46-49ba-9339-bea628fedc15
    

    Using KafkaConsumers

    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 kafkaConsumers(args: KafkaConsumersArgs, opts?: InvokeOptions): Promise<KafkaConsumersResult>
    function kafkaConsumersOutput(args: KafkaConsumersOutputArgs, opts?: InvokeOptions): Output<KafkaConsumersResult>
    def kafka_consumers(ids: Optional[Sequence[str]] = None,
                        output_file: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> KafkaConsumersResult
    def kafka_consumers_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[KafkaConsumersResult]
    func KafkaConsumers(ctx *Context, args *KafkaConsumersArgs, opts ...InvokeOption) (*KafkaConsumersResult, error)
    func KafkaConsumersOutput(ctx *Context, args *KafkaConsumersOutputArgs, opts ...InvokeOption) KafkaConsumersResultOutput
    public static class KafkaConsumers 
    {
        public static Task<KafkaConsumersResult> InvokeAsync(KafkaConsumersArgs args, InvokeOptions? opts = null)
        public static Output<KafkaConsumersResult> Invoke(KafkaConsumersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<KafkaConsumersResult> kafkaConsumers(KafkaConsumersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:tls:KafkaConsumers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of topic IDs.
    OutputFile string
    File name where to save data source results.
    Ids []string
    A list of topic IDs.
    OutputFile string
    File name where to save data source results.
    ids List<String>
    A list of topic IDs.
    outputFile String
    File name where to save data source results.
    ids string[]
    A list of topic IDs.
    outputFile string
    File name where to save data source results.
    ids Sequence[str]
    A list of topic IDs.
    output_file str
    File name where to save data source results.
    ids List<String>
    A list of topic IDs.
    outputFile String
    File name where to save data source results.

    KafkaConsumers Result

    The following output properties are available:

    Datas List<KafkaConsumersData>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Ids List<string>
    OutputFile string
    Datas []KafkaConsumersData
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Ids []string
    OutputFile string
    datas List<KafkaConsumersData>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    ids List<String>
    outputFile String
    datas KafkaConsumersData[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    ids string[]
    outputFile string
    datas Sequence[KafkaConsumersData]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    ids Sequence[str]
    output_file str
    datas List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    ids List<String>
    outputFile String

    Supporting Types

    KafkaConsumersData

    AllowConsume bool
    Whether allow consume.
    ConsumeTopic string
    The topic of consume.
    TopicId string
    The ID of Topic.
    AllowConsume bool
    Whether allow consume.
    ConsumeTopic string
    The topic of consume.
    TopicId string
    The ID of Topic.
    allowConsume Boolean
    Whether allow consume.
    consumeTopic String
    The topic of consume.
    topicId String
    The ID of Topic.
    allowConsume boolean
    Whether allow consume.
    consumeTopic string
    The topic of consume.
    topicId string
    The ID of Topic.
    allow_consume bool
    Whether allow consume.
    consume_topic str
    The topic of consume.
    topic_id str
    The ID of Topic.
    allowConsume Boolean
    Whether allow consume.
    consumeTopic String
    The topic of consume.
    topicId String
    The ID of Topic.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine