tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getEbBus
Explore with Pulumi AI
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<Get
Eb Bus Filter> - 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).
- Order
By string - According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
- Result
Output stringFile - Used to save results.
- Filters
[]Get
Eb Bus Filter - 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).
- Order
By string - According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
- Result
Output stringFile - Used to save results.
- filters
List<Get
Eb Bus Filter> - 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).
- order
By String - According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
- result
Output StringFile - Used to save results.
- filters
Get
Eb Bus Filter[] - 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).
- order
By string - According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
- result
Output stringFile - Used to save results.
- filters
Sequence[Get
Eb Bus Filter] - 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_ strfile - 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).
- order
By String - According to which field to sort the returned results, the following fields are supported: AddTime (creation time), ModTime (modification time).
- result
Output StringFile - Used to save results.
getEbBus Result
The following output properties are available:
- Event
Buses List<GetEb Bus Event Bus> - event set information.
- Id string
- Filters
List<Get
Eb Bus Filter> - Order string
- Order
By string - Result
Output stringFile
- Event
Buses []GetEb Bus Event Bus - event set information.
- Id string
- Filters
[]Get
Eb Bus Filter - Order string
- Order
By string - Result
Output stringFile
- event
Buses List<GetEb Bus Event Bus> - event set information.
- id String
- filters
List<Get
Eb Bus Filter> - order String
- order
By String - result
Output StringFile
- event
Buses GetEb Bus Event Bus[] - event set information.
- id string
- filters
Get
Eb Bus Filter[] - order string
- order
By string - result
Output stringFile
- event_
buses Sequence[GetEb Bus Event Bus] - event set information.
- id str
- filters
Sequence[Get
Eb Bus Filter] - order str
- order_
by str - result_
output_ strfile
- event
Buses List<Property Map> - event set information.
- id String
- filters List<Property Map>
- order String
- order
By String - result
Output StringFile
Supporting Types
GetEbBusEventBus
- Add
Time string - create time.
- Connection
Briefs List<GetEb Bus Event Bus Connection Brief> - 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.
- Event
Bus stringId - event bus Id.
- Event
Bus stringName - 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 string - update time.
- Pay
Mode string - Billing mode, note: this field may return null, indicating that no valid value can be obtained.
- Target
Briefs List<GetEb Bus Event Bus Target Brief> - Target brief information, note: this field may return null, indicating that no valid value can be obtained.
- Type string
- event bus type.
- Add
Time string - create time.
- Connection
Briefs []GetEb Bus Event Bus Connection Brief - 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.
- Event
Bus stringId - event bus Id.
- Event
Bus stringName - 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 string - update time.
- Pay
Mode string - Billing mode, note: this field may return null, indicating that no valid value can be obtained.
- Target
Briefs []GetEb Bus Event Bus Target Brief - Target brief information, note: this field may return null, indicating that no valid value can be obtained.
- Type string
- event bus type.
- add
Time String - create time.
- connection
Briefs List<GetEb Bus Event Bus Connection Brief> - 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.
- event
Bus StringId - event bus Id.
- event
Bus StringName - 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 String - update time.
- pay
Mode String - Billing mode, note: this field may return null, indicating that no valid value can be obtained.
- target
Briefs List<GetEb Bus Event Bus Target Brief> - Target brief information, note: this field may return null, indicating that no valid value can be obtained.
- type String
- event bus type.
- add
Time string - create time.
- connection
Briefs GetEb Bus Event Bus Connection Brief[] - 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.
- event
Bus stringId - event bus Id.
- event
Bus stringName - 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 string - update time.
- pay
Mode string - Billing mode, note: this field may return null, indicating that no valid value can be obtained.
- target
Briefs GetEb Bus Event Bus Target Brief[] - 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[GetEb Bus Event Bus Connection Brief] - 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_ strid - event bus Id.
- event_
bus_ strname - 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[GetEb Bus Event Bus Target Brief] - Target brief information, note: this field may return null, indicating that no valid value can be obtained.
- type str
- event bus type.
- add
Time String - create time.
- connection
Briefs 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.
- event
Bus StringId - event bus Id.
- event
Bus StringName - 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 String - update time.
- pay
Mode String - Billing mode, note: this field may return null, indicating that no valid value can be obtained.
- target
Briefs 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
GetEbBusEventBusTargetBrief
GetEbBusFilter
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack