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

tencentcloud.EbEventBus

Explore with Pulumi AI

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

    Provides a resource to create a eb event_bus

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.EbEventBus("foo", {
        description: "event bus desc",
        enableStore: false,
        eventBusName: "tf-event_bus",
        saveDays: 1,
        tags: {
            createdBy: "terraform",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.EbEventBus("foo",
        description="event bus desc",
        enable_store=False,
        event_bus_name="tf-event_bus",
        save_days=1,
        tags={
            "createdBy": "terraform",
        })
    
    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{
    			Description:  pulumi.String("event bus desc"),
    			EnableStore:  pulumi.Bool(false),
    			EventBusName: pulumi.String("tf-event_bus"),
    			SaveDays:     pulumi.Float64(1),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		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()
        {
            Description = "event bus desc",
            EnableStore = false,
            EventBusName = "tf-event_bus",
            SaveDays = 1,
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
    });
    
    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 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()
                .description("event bus desc")
                .enableStore(false)
                .eventBusName("tf-event_bus")
                .saveDays(1)
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:EbEventBus
        properties:
          description: event bus desc
          enableStore: false
          eventBusName: tf-event_bus
          saveDays: 1
          tags:
            createdBy: terraform
    

    Create EbEventBus Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EbEventBus(name: string, args: EbEventBusArgs, opts?: CustomResourceOptions);
    @overload
    def EbEventBus(resource_name: str,
                   args: EbEventBusArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def EbEventBus(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   event_bus_name: Optional[str] = None,
                   description: Optional[str] = None,
                   eb_event_bus_id: Optional[str] = None,
                   enable_store: Optional[bool] = None,
                   save_days: Optional[float] = None,
                   tags: Optional[Mapping[str, str]] = None)
    func NewEbEventBus(ctx *Context, name string, args EbEventBusArgs, opts ...ResourceOption) (*EbEventBus, error)
    public EbEventBus(string name, EbEventBusArgs args, CustomResourceOptions? opts = null)
    public EbEventBus(String name, EbEventBusArgs args)
    public EbEventBus(String name, EbEventBusArgs args, CustomResourceOptions options)
    
    type: tencentcloud:EbEventBus
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EbEventBusArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EbEventBusArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EbEventBusArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EbEventBusArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EbEventBusArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    EbEventBus Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EbEventBus resource accepts the following input properties:

    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.
    Description string
    Event set description, unlimited character type, description within 200 characters.
    EbEventBusId string
    ID of the resource.
    EnableStore bool
    Whether the EB storage is enabled.
    SaveDays double
    EB storage duration.
    Tags Dictionary<string, string>
    Tag description list.
    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.
    Description string
    Event set description, unlimited character type, description within 200 characters.
    EbEventBusId string
    ID of the resource.
    EnableStore bool
    Whether the EB storage is enabled.
    SaveDays float64
    EB storage duration.
    Tags map[string]string
    Tag description list.
    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.
    description String
    Event set description, unlimited character type, description within 200 characters.
    ebEventBusId String
    ID of the resource.
    enableStore Boolean
    Whether the EB storage is enabled.
    saveDays Double
    EB storage duration.
    tags Map<String,String>
    Tag description list.
    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.
    description string
    Event set description, unlimited character type, description within 200 characters.
    ebEventBusId string
    ID of the resource.
    enableStore boolean
    Whether the EB storage is enabled.
    saveDays number
    EB storage duration.
    tags {[key: string]: string}
    Tag description list.
    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.
    description str
    Event set description, unlimited character type, description within 200 characters.
    eb_event_bus_id str
    ID of the resource.
    enable_store bool
    Whether the EB storage is enabled.
    save_days float
    EB storage duration.
    tags Mapping[str, str]
    Tag description list.
    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.
    description String
    Event set description, unlimited character type, description within 200 characters.
    ebEventBusId String
    ID of the resource.
    enableStore Boolean
    Whether the EB storage is enabled.
    saveDays Number
    EB storage duration.
    tags Map<String>
    Tag description list.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EbEventBus resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EbEventBus Resource

    Get an existing EbEventBus resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EbEventBusState, opts?: CustomResourceOptions): EbEventBus
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            eb_event_bus_id: Optional[str] = None,
            enable_store: Optional[bool] = None,
            event_bus_name: Optional[str] = None,
            save_days: Optional[float] = None,
            tags: Optional[Mapping[str, str]] = None) -> EbEventBus
    func GetEbEventBus(ctx *Context, name string, id IDInput, state *EbEventBusState, opts ...ResourceOption) (*EbEventBus, error)
    public static EbEventBus Get(string name, Input<string> id, EbEventBusState? state, CustomResourceOptions? opts = null)
    public static EbEventBus get(String name, Output<String> id, EbEventBusState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:EbEventBus    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    Event set description, unlimited character type, description within 200 characters.
    EbEventBusId string
    ID of the resource.
    EnableStore bool
    Whether the EB storage is enabled.
    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.
    SaveDays double
    EB storage duration.
    Tags Dictionary<string, string>
    Tag description list.
    Description string
    Event set description, unlimited character type, description within 200 characters.
    EbEventBusId string
    ID of the resource.
    EnableStore bool
    Whether the EB storage is enabled.
    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.
    SaveDays float64
    EB storage duration.
    Tags map[string]string
    Tag description list.
    description String
    Event set description, unlimited character type, description within 200 characters.
    ebEventBusId String
    ID of the resource.
    enableStore Boolean
    Whether the EB storage is enabled.
    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.
    saveDays Double
    EB storage duration.
    tags Map<String,String>
    Tag description list.
    description string
    Event set description, unlimited character type, description within 200 characters.
    ebEventBusId string
    ID of the resource.
    enableStore boolean
    Whether the EB storage is enabled.
    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.
    saveDays number
    EB storage duration.
    tags {[key: string]: string}
    Tag description list.
    description str
    Event set description, unlimited character type, description within 200 characters.
    eb_event_bus_id str
    ID of the resource.
    enable_store bool
    Whether the EB storage is enabled.
    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.
    save_days float
    EB storage duration.
    tags Mapping[str, str]
    Tag description list.
    description String
    Event set description, unlimited character type, description within 200 characters.
    ebEventBusId String
    ID of the resource.
    enableStore Boolean
    Whether the EB storage is enabled.
    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.
    saveDays Number
    EB storage duration.
    tags Map<String>
    Tag description list.

    Import

    eb event_bus can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/ebEventBus:EbEventBus event_bus event_bus_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    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