1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getEbBus
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getEbBus

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of eb bus

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.EbEventBus("foo", {
        eventBusName: "tf-event_bus",
        description: "event bus desc",
        enableStore: false,
        saveDays: 1,
        tags: {
            createdBy: "terraform",
        },
    });
    const bus = tencentcloud.getEbBus({
        orderBy: "AddTime",
        order: "DESC",
        filters: [{
            values: ["Custom"],
            name: "Type",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.EbEventBus("foo",
        event_bus_name="tf-event_bus",
        description="event bus desc",
        enable_store=False,
        save_days=1,
        tags={
            "createdBy": "terraform",
        })
    bus = tencentcloud.get_eb_bus(order_by="AddTime",
        order="DESC",
        filters=[{
            "values": ["Custom"],
            "name": "Type",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewEbEventBus(ctx, "foo", &tencentcloud.EbEventBusArgs{
    			EventBusName: pulumi.String("tf-event_bus"),
    			Description:  pulumi.String("event bus desc"),
    			EnableStore:  pulumi.Bool(false),
    			SaveDays:     pulumi.Float64(1),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.GetEbBus(ctx, &tencentcloud.GetEbBusArgs{
    			OrderBy: pulumi.StringRef("AddTime"),
    			Order:   pulumi.StringRef("DESC"),
    			Filters: []tencentcloud.GetEbBusFilter{
    				{
    					Values: []string{
    						"Custom",
    					},
    					Name: "Type",
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Tencentcloud.EbEventBus("foo", new()
        {
            EventBusName = "tf-event_bus",
            Description = "event bus desc",
            EnableStore = false,
            SaveDays = 1,
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
        var bus = Tencentcloud.GetEbBus.Invoke(new()
        {
            OrderBy = "AddTime",
            Order = "DESC",
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetEbBusFilterInputArgs
                {
                    Values = new[]
                    {
                        "Custom",
                    },
                    Name = "Type",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.EbEventBus;
    import com.pulumi.tencentcloud.EbEventBusArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetEbBusArgs;
    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) {
            var foo = new EbEventBus("foo", EbEventBusArgs.builder()
                .eventBusName("tf-event_bus")
                .description("event bus desc")
                .enableStore(false)
                .saveDays(1)
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
            final var bus = TencentcloudFunctions.getEbBus(GetEbBusArgs.builder()
                .orderBy("AddTime")
                .order("DESC")
                .filters(GetEbBusFilterArgs.builder()
                    .values("Custom")
                    .name("Type")
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:EbEventBus
        properties:
          eventBusName: tf-event_bus
          description: event bus desc
          enableStore: false
          saveDays: 1
          tags:
            createdBy: terraform
    variables:
      bus:
        fn::invoke:
          function: tencentcloud:getEbBus
          arguments:
            orderBy: AddTime
            order: DESC
            filters:
              - values:
                  - Custom
                name: Type
    

    Using getEbBus

    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 getEbBus(args: GetEbBusArgs, opts?: InvokeOptions): Promise<GetEbBusResult>
    function getEbBusOutput(args: GetEbBusOutputArgs, opts?: InvokeOptions): Output<GetEbBusResult>
    def get_eb_bus(filters: Optional[Sequence[GetEbBusFilter]] = None,
                   id: Optional[str] = None,
                   order: Optional[str] = None,
                   order_by: Optional[str] = None,
                   result_output_file: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetEbBusResult
    def get_eb_bus_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetEbBusFilterArgs]]]] = None,
                   id: Optional[pulumi.Input[str]] = None,
                   order: Optional[pulumi.Input[str]] = None,
                   order_by: Optional[pulumi.Input[str]] = None,
                   result_output_file: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetEbBusResult]
    func GetEbBus(ctx *Context, args *GetEbBusArgs, opts ...InvokeOption) (*GetEbBusResult, error)
    func GetEbBusOutput(ctx *Context, args *GetEbBusOutputArgs, opts ...InvokeOption) GetEbBusResultOutput

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

    public static class GetEbBus 
    {
        public static Task<GetEbBusResult> InvokeAsync(GetEbBusArgs args, InvokeOptions? opts = null)
        public static Output<GetEbBusResult> Invoke(GetEbBusInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEbBusResult> getEbBus(GetEbBusArgs args, InvokeOptions options)
    public static Output<GetEbBusResult> getEbBus(GetEbBusArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getEbBus:getEbBus
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetEbBusFilter>
    Filter conditions. The upper limit of Filters per request is 10, and the upper limit of Filter.Values 5.
    Id string
    Order string
    Return results in ascending or descending order, optional values ASC (ascending) and DESC (descending).
    OrderBy string
    According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
    ResultOutputFile string
    Used to save results.
    Filters []GetEbBusFilter
    Filter conditions. The upper limit of Filters per request is 10, and the upper limit of Filter.Values 5.
    Id string
    Order string
    Return results in ascending or descending order, optional values ASC (ascending) and DESC (descending).
    OrderBy string
    According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
    ResultOutputFile string
    Used to save results.
    filters List<GetEbBusFilter>
    Filter conditions. The upper limit of Filters per request is 10, and the upper limit of Filter.Values 5.
    id String
    order String
    Return results in ascending or descending order, optional values ASC (ascending) and DESC (descending).
    orderBy String
    According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
    resultOutputFile String
    Used to save results.
    filters GetEbBusFilter[]
    Filter conditions. The upper limit of Filters per request is 10, and the upper limit of Filter.Values 5.
    id string
    order string
    Return results in ascending or descending order, optional values ASC (ascending) and DESC (descending).
    orderBy string
    According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
    resultOutputFile string
    Used to save results.
    filters Sequence[GetEbBusFilter]
    Filter conditions. The upper limit of Filters per request is 10, and the upper limit of Filter.Values 5.
    id str
    order str
    Return results in ascending or descending order, optional values ASC (ascending) and DESC (descending).
    order_by str
    According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
    result_output_file str
    Used to save results.
    filters List<Property Map>
    Filter conditions. The upper limit of Filters per request is 10, and the upper limit of Filter.Values 5.
    id String
    order String
    Return results in ascending or descending order, optional values ASC (ascending) and DESC (descending).
    orderBy String
    According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
    resultOutputFile String
    Used to save results.

    getEbBus Result

    The following output properties are available:

    Supporting Types

    GetEbBusEventBus

    AddTime string
    create time.
    ConnectionBriefs List<GetEbBusEventBusConnectionBrief>
    Connector basic information, note: this field may return null, indicating that no valid value can be obtained.
    Description string
    Event set description, unlimited character type, description within 200 characters.
    EventBusId string
    event bus Id.
    EventBusName string
    Event set name, which can only contain letters, numbers, underscores, hyphens, starts with a letter and ends with a number or letter, 2~60 characters.
    ModTime string
    update time.
    PayMode string
    Billing mode, note: this field may return null, indicating that no valid value can be obtained.
    TargetBriefs List<GetEbBusEventBusTargetBrief>
    Target brief information, note: this field may return null, indicating that no valid value can be obtained.
    Type string
    event bus type.
    AddTime string
    create time.
    ConnectionBriefs []GetEbBusEventBusConnectionBrief
    Connector basic information, note: this field may return null, indicating that no valid value can be obtained.
    Description string
    Event set description, unlimited character type, description within 200 characters.
    EventBusId string
    event bus Id.
    EventBusName string
    Event set name, which can only contain letters, numbers, underscores, hyphens, starts with a letter and ends with a number or letter, 2~60 characters.
    ModTime string
    update time.
    PayMode string
    Billing mode, note: this field may return null, indicating that no valid value can be obtained.
    TargetBriefs []GetEbBusEventBusTargetBrief
    Target brief information, note: this field may return null, indicating that no valid value can be obtained.
    Type string
    event bus type.
    addTime String
    create time.
    connectionBriefs List<GetEbBusEventBusConnectionBrief>
    Connector basic information, note: this field may return null, indicating that no valid value can be obtained.
    description String
    Event set description, unlimited character type, description within 200 characters.
    eventBusId String
    event bus Id.
    eventBusName String
    Event set name, which can only contain letters, numbers, underscores, hyphens, starts with a letter and ends with a number or letter, 2~60 characters.
    modTime String
    update time.
    payMode String
    Billing mode, note: this field may return null, indicating that no valid value can be obtained.
    targetBriefs List<GetEbBusEventBusTargetBrief>
    Target brief information, note: this field may return null, indicating that no valid value can be obtained.
    type String
    event bus type.
    addTime string
    create time.
    connectionBriefs GetEbBusEventBusConnectionBrief[]
    Connector basic information, note: this field may return null, indicating that no valid value can be obtained.
    description string
    Event set description, unlimited character type, description within 200 characters.
    eventBusId string
    event bus Id.
    eventBusName string
    Event set name, which can only contain letters, numbers, underscores, hyphens, starts with a letter and ends with a number or letter, 2~60 characters.
    modTime string
    update time.
    payMode string
    Billing mode, note: this field may return null, indicating that no valid value can be obtained.
    targetBriefs GetEbBusEventBusTargetBrief[]
    Target brief information, note: this field may return null, indicating that no valid value can be obtained.
    type string
    event bus type.
    add_time str
    create time.
    connection_briefs Sequence[GetEbBusEventBusConnectionBrief]
    Connector basic information, note: this field may return null, indicating that no valid value can be obtained.
    description str
    Event set description, unlimited character type, description within 200 characters.
    event_bus_id str
    event bus Id.
    event_bus_name str
    Event set name, which can only contain letters, numbers, underscores, hyphens, starts with a letter and ends with a number or letter, 2~60 characters.
    mod_time str
    update time.
    pay_mode str
    Billing mode, note: this field may return null, indicating that no valid value can be obtained.
    target_briefs Sequence[GetEbBusEventBusTargetBrief]
    Target brief information, note: this field may return null, indicating that no valid value can be obtained.
    type str
    event bus type.
    addTime String
    create time.
    connectionBriefs List<Property Map>
    Connector basic information, note: this field may return null, indicating that no valid value can be obtained.
    description String
    Event set description, unlimited character type, description within 200 characters.
    eventBusId String
    event bus Id.
    eventBusName String
    Event set name, which can only contain letters, numbers, underscores, hyphens, starts with a letter and ends with a number or letter, 2~60 characters.
    modTime String
    update time.
    payMode String
    Billing mode, note: this field may return null, indicating that no valid value can be obtained.
    targetBriefs List<Property Map>
    Target brief information, note: this field may return null, indicating that no valid value can be obtained.
    type String
    event bus type.

    GetEbBusEventBusConnectionBrief

    Status string
    Connector status, note: this field may return null, indicating that no valid value can be obtained.
    Type string
    event bus type.
    Status string
    Connector status, note: this field may return null, indicating that no valid value can be obtained.
    Type string
    event bus type.
    status String
    Connector status, note: this field may return null, indicating that no valid value can be obtained.
    type String
    event bus type.
    status string
    Connector status, note: this field may return null, indicating that no valid value can be obtained.
    type string
    event bus type.
    status str
    Connector status, note: this field may return null, indicating that no valid value can be obtained.
    type str
    event bus type.
    status String
    Connector status, note: this field may return null, indicating that no valid value can be obtained.
    type String
    event bus type.

    GetEbBusEventBusTargetBrief

    TargetId string
    Target ID.
    Type string
    event bus type.
    TargetId string
    Target ID.
    Type string
    event bus type.
    targetId String
    Target ID.
    type String
    event bus type.
    targetId string
    Target ID.
    type string
    event bus type.
    target_id str
    Target ID.
    type str
    event bus type.
    targetId String
    Target ID.
    type String
    event bus type.

    GetEbBusFilter

    Name string
    The name of the filter key.
    Values List<string>
    One or more filter values.
    Name string
    The name of the filter key.
    Values []string
    One or more filter values.
    name String
    The name of the filter key.
    values List<String>
    One or more filter values.
    name string
    The name of the filter key.
    values string[]
    One or more filter values.
    name str
    The name of the filter key.
    values Sequence[str]
    One or more filter values.
    name String
    The name of the filter key.
    values List<String>
    One or more filter values.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack