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

tencentcloud.EbEventTarget

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_target

    Example Usage

    Create an event target of type scf

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const zone = config.get("zone") || "ap-guangzhou";
    const namespace = config.get("namespace") || "default";
    const _function = config.get("function") || "keep-1676351130";
    const functionVersion = config.get("functionVersion") || "$LATEST";
    const fooCamUsers = tencentcloud.getCamUsers({});
    const fooEbEventBus = new tencentcloud.EbEventBus("fooEbEventBus", {
        eventBusName: "tf-event_bus",
        description: "event bus desc",
        enableStore: false,
        saveDays: 1,
        tags: {
            createdBy: "terraform",
        },
    });
    const fooEbEventRule = new tencentcloud.EbEventRule("fooEbEventRule", {
        eventBusId: fooEbEventBus.ebEventBusId,
        ruleName: "tf-event_rule",
        description: "event rule desc",
        enable: true,
        eventPattern: JSON.stringify({
            source: "apigw.cloud.tencent",
            type: ["connector:apigw"],
        }),
        tags: {
            createdBy: "terraform",
        },
    });
    const scfTarget = new tencentcloud.EbEventTarget("scfTarget", {
        eventBusId: fooEbEventBus.ebEventBusId,
        ruleId: fooEbEventRule.ruleId,
        type: "scf",
        targetDescription: {
            resourceDescription: fooCamUsers.then(fooCamUsers => `qcs::scf:${zone}:uin/${fooCamUsers.userLists?.[0]?.uin}:namespace/${namespace}/function/${_function}/${functionVersion}`),
            scfParams: {
                batchEventCount: 1,
                batchTimeout: 1,
                enableBatchDelivery: true,
            },
        },
    });
    
    import pulumi
    import json
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    zone = config.get("zone")
    if zone is None:
        zone = "ap-guangzhou"
    namespace = config.get("namespace")
    if namespace is None:
        namespace = "default"
    function = config.get("function")
    if function is None:
        function = "keep-1676351130"
    function_version = config.get("functionVersion")
    if function_version is None:
        function_version = "$LATEST"
    foo_cam_users = tencentcloud.get_cam_users()
    foo_eb_event_bus = tencentcloud.EbEventBus("fooEbEventBus",
        event_bus_name="tf-event_bus",
        description="event bus desc",
        enable_store=False,
        save_days=1,
        tags={
            "createdBy": "terraform",
        })
    foo_eb_event_rule = tencentcloud.EbEventRule("fooEbEventRule",
        event_bus_id=foo_eb_event_bus.eb_event_bus_id,
        rule_name="tf-event_rule",
        description="event rule desc",
        enable=True,
        event_pattern=json.dumps({
            "source": "apigw.cloud.tencent",
            "type": ["connector:apigw"],
        }),
        tags={
            "createdBy": "terraform",
        })
    scf_target = tencentcloud.EbEventTarget("scfTarget",
        event_bus_id=foo_eb_event_bus.eb_event_bus_id,
        rule_id=foo_eb_event_rule.rule_id,
        type="scf",
        target_description={
            "resource_description": f"qcs::scf:{zone}:uin/{foo_cam_users.user_lists[0].uin}:namespace/{namespace}/function/{function}/{function_version}",
            "scf_params": {
                "batch_event_count": 1,
                "batch_timeout": 1,
                "enable_batch_delivery": True,
            },
        })
    
    package main
    
    import (
    	"encoding/json"
    	"fmt"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		zone := "ap-guangzhou"
    		if param := cfg.Get("zone"); param != "" {
    			zone = param
    		}
    		namespace := "default"
    		if param := cfg.Get("namespace"); param != "" {
    			namespace = param
    		}
    		function := "keep-1676351130"
    		if param := cfg.Get("function"); param != "" {
    			function = param
    		}
    		functionVersion := "$LATEST"
    		if param := cfg.Get("functionVersion"); param != "" {
    			functionVersion = param
    		}
    		fooCamUsers, err := tencentcloud.GetCamUsers(ctx, &tencentcloud.GetCamUsersArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		fooEbEventBus, err := tencentcloud.NewEbEventBus(ctx, "fooEbEventBus", &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
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"source": "apigw.cloud.tencent",
    			"type": []string{
    				"connector:apigw",
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		fooEbEventRule, err := tencentcloud.NewEbEventRule(ctx, "fooEbEventRule", &tencentcloud.EbEventRuleArgs{
    			EventBusId:   fooEbEventBus.EbEventBusId,
    			RuleName:     pulumi.String("tf-event_rule"),
    			Description:  pulumi.String("event rule desc"),
    			Enable:       pulumi.Bool(true),
    			EventPattern: pulumi.String(json0),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewEbEventTarget(ctx, "scfTarget", &tencentcloud.EbEventTargetArgs{
    			EventBusId: fooEbEventBus.EbEventBusId,
    			RuleId:     fooEbEventRule.RuleId,
    			Type:       pulumi.String("scf"),
    			TargetDescription: &tencentcloud.EbEventTargetTargetDescriptionArgs{
    				ResourceDescription: pulumi.Sprintf("qcs::scf:%v:uin/%v:namespace/%v/function/%v/%v", zone, fooCamUsers.UserLists[0].Uin, namespace, function, functionVersion),
    				ScfParams: &tencentcloud.EbEventTargetTargetDescriptionScfParamsArgs{
    					BatchEventCount:     pulumi.Float64(1),
    					BatchTimeout:        pulumi.Float64(1),
    					EnableBatchDelivery: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var zone = config.Get("zone") ?? "ap-guangzhou";
        var @namespace = config.Get("namespace") ?? "default";
        var function = config.Get("function") ?? "keep-1676351130";
        var functionVersion = config.Get("functionVersion") ?? "$LATEST";
        var fooCamUsers = Tencentcloud.GetCamUsers.Invoke();
    
        var fooEbEventBus = new Tencentcloud.EbEventBus("fooEbEventBus", new()
        {
            EventBusName = "tf-event_bus",
            Description = "event bus desc",
            EnableStore = false,
            SaveDays = 1,
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
        var fooEbEventRule = new Tencentcloud.EbEventRule("fooEbEventRule", new()
        {
            EventBusId = fooEbEventBus.EbEventBusId,
            RuleName = "tf-event_rule",
            Description = "event rule desc",
            Enable = true,
            EventPattern = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["source"] = "apigw.cloud.tencent",
                ["type"] = new[]
                {
                    "connector:apigw",
                },
            }),
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
        var scfTarget = new Tencentcloud.EbEventTarget("scfTarget", new()
        {
            EventBusId = fooEbEventBus.EbEventBusId,
            RuleId = fooEbEventRule.RuleId,
            Type = "scf",
            TargetDescription = new Tencentcloud.Inputs.EbEventTargetTargetDescriptionArgs
            {
                ResourceDescription = $"qcs::scf:{zone}:uin/{fooCamUsers.Apply(getCamUsersResult => getCamUsersResult.UserLists[0]?.Uin)}:namespace/{@namespace}/function/{function}/{functionVersion}",
                ScfParams = new Tencentcloud.Inputs.EbEventTargetTargetDescriptionScfParamsArgs
                {
                    BatchEventCount = 1,
                    BatchTimeout = 1,
                    EnableBatchDelivery = true,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetCamUsersArgs;
    import com.pulumi.tencentcloud.EbEventBus;
    import com.pulumi.tencentcloud.EbEventBusArgs;
    import com.pulumi.tencentcloud.EbEventRule;
    import com.pulumi.tencentcloud.EbEventRuleArgs;
    import com.pulumi.tencentcloud.EbEventTarget;
    import com.pulumi.tencentcloud.EbEventTargetArgs;
    import com.pulumi.tencentcloud.inputs.EbEventTargetTargetDescriptionArgs;
    import com.pulumi.tencentcloud.inputs.EbEventTargetTargetDescriptionScfParamsArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 config = ctx.config();
            final var zone = config.get("zone").orElse("ap-guangzhou");
            final var namespace = config.get("namespace").orElse("default");
            final var function = config.get("function").orElse("keep-1676351130");
            final var functionVersion = config.get("functionVersion").orElse("$LATEST");
            final var fooCamUsers = TencentcloudFunctions.getCamUsers();
    
            var fooEbEventBus = new EbEventBus("fooEbEventBus", EbEventBusArgs.builder()
                .eventBusName("tf-event_bus")
                .description("event bus desc")
                .enableStore(false)
                .saveDays(1)
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
            var fooEbEventRule = new EbEventRule("fooEbEventRule", EbEventRuleArgs.builder()
                .eventBusId(fooEbEventBus.ebEventBusId())
                .ruleName("tf-event_rule")
                .description("event rule desc")
                .enable(true)
                .eventPattern(serializeJson(
                    jsonObject(
                        jsonProperty("source", "apigw.cloud.tencent"),
                        jsonProperty("type", jsonArray("connector:apigw"))
                    )))
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
            var scfTarget = new EbEventTarget("scfTarget", EbEventTargetArgs.builder()
                .eventBusId(fooEbEventBus.ebEventBusId())
                .ruleId(fooEbEventRule.ruleId())
                .type("scf")
                .targetDescription(EbEventTargetTargetDescriptionArgs.builder()
                    .resourceDescription(String.format("qcs::scf:%s:uin/%s:namespace/%s/function/%s/%s", zone,fooCamUsers.applyValue(getCamUsersResult -> getCamUsersResult.userLists()[0].uin()),namespace,function,functionVersion))
                    .scfParams(EbEventTargetTargetDescriptionScfParamsArgs.builder()
                        .batchEventCount(1)
                        .batchTimeout(1)
                        .enableBatchDelivery(true)
                        .build())
                    .build())
                .build());
    
        }
    }
    
    configuration:
      zone:
        type: string
        default: ap-guangzhou
      namespace:
        type: string
        default: default
      function:
        type: string
        default: keep-1676351130
      functionVersion:
        type: string
        default: $LATEST
    resources:
      fooEbEventBus:
        type: tencentcloud:EbEventBus
        properties:
          eventBusName: tf-event_bus
          description: event bus desc
          enableStore: false
          saveDays: 1
          tags:
            createdBy: terraform
      fooEbEventRule:
        type: tencentcloud:EbEventRule
        properties:
          eventBusId: ${fooEbEventBus.ebEventBusId}
          ruleName: tf-event_rule
          description: event rule desc
          enable: true
          eventPattern:
            fn::toJSON:
              source: apigw.cloud.tencent
              type:
                - connector:apigw
          tags:
            createdBy: terraform
      scfTarget:
        type: tencentcloud:EbEventTarget
        properties:
          eventBusId: ${fooEbEventBus.ebEventBusId}
          ruleId: ${fooEbEventRule.ruleId}
          type: scf
          targetDescription:
            resourceDescription: qcs::scf:${zone}:uin/${fooCamUsers.userLists[0].uin}:namespace/${namespace}/function/${function}/${functionVersion}
            scfParams:
              batchEventCount: 1
              batchTimeout: 1
              enableBatchDelivery: true
    variables:
      fooCamUsers:
        fn::invoke:
          function: tencentcloud:getCamUsers
          arguments: {}
    

    Create an event target of type ckafka

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const ckafka = config.get("ckafka") || "ckafka-qzoeaqx8";
    const ckafkaTarget = new tencentcloud.EbEventTarget("ckafkaTarget", {
        eventBusId: tencentcloud_eb_event_bus.foo.id,
        ruleId: tencentcloud_eb_event_rule.foo.rule_id,
        type: "ckafka",
        targetDescription: {
            resourceDescription: `qcs::scf:${_var.zone}:uin/${data.tencentcloud_cam_users.foo.user_list[0].uin}:ckafkaId/uin/${data.tencentcloud_cam_users.foo.user_list[0].uin}/${ckafka}`,
            ckafkaTargetParams: {
                topicName: "dasdasd",
                retryPolicy: {
                    maxRetryAttempts: 360,
                    retryInterval: 60,
                },
            },
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    ckafka = config.get("ckafka")
    if ckafka is None:
        ckafka = "ckafka-qzoeaqx8"
    ckafka_target = tencentcloud.EbEventTarget("ckafkaTarget",
        event_bus_id=tencentcloud_eb_event_bus["foo"]["id"],
        rule_id=tencentcloud_eb_event_rule["foo"]["rule_id"],
        type="ckafka",
        target_description={
            "resource_description": f"qcs::scf:{var['zone']}:uin/{data['tencentcloud_cam_users']['foo']['user_list'][0]['uin']}:ckafkaId/uin/{data['tencentcloud_cam_users']['foo']['user_list'][0]['uin']}/{ckafka}",
            "ckafka_target_params": {
                "topic_name": "dasdasd",
                "retry_policy": {
                    "max_retry_attempts": 360,
                    "retry_interval": 60,
                },
            },
        })
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		ckafka := "ckafka-qzoeaqx8"
    		if param := cfg.Get("ckafka"); param != "" {
    			ckafka = param
    		}
    		_, err := tencentcloud.NewEbEventTarget(ctx, "ckafkaTarget", &tencentcloud.EbEventTargetArgs{
    			EventBusId: pulumi.Any(tencentcloud_eb_event_bus.Foo.Id),
    			RuleId:     pulumi.Any(tencentcloud_eb_event_rule.Foo.Rule_id),
    			Type:       pulumi.String("ckafka"),
    			TargetDescription: &tencentcloud.EbEventTargetTargetDescriptionArgs{
    				ResourceDescription: pulumi.Sprintf("qcs::scf:%v:uin/%v:ckafkaId/uin/%v/%v", _var.Zone, data.Tencentcloud_cam_users.Foo.User_list[0].Uin, data.Tencentcloud_cam_users.Foo.User_list[0].Uin, ckafka),
    				CkafkaTargetParams: &tencentcloud.EbEventTargetTargetDescriptionCkafkaTargetParamsArgs{
    					TopicName: pulumi.String("dasdasd"),
    					RetryPolicy: &tencentcloud.EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicyArgs{
    						MaxRetryAttempts: pulumi.Float64(360),
    						RetryInterval:    pulumi.Float64(60),
    					},
    				},
    			},
    		})
    		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 config = new Config();
        var ckafka = config.Get("ckafka") ?? "ckafka-qzoeaqx8";
        var ckafkaTarget = new Tencentcloud.EbEventTarget("ckafkaTarget", new()
        {
            EventBusId = tencentcloud_eb_event_bus.Foo.Id,
            RuleId = tencentcloud_eb_event_rule.Foo.Rule_id,
            Type = "ckafka",
            TargetDescription = new Tencentcloud.Inputs.EbEventTargetTargetDescriptionArgs
            {
                ResourceDescription = $"qcs::scf:{@var.Zone}:uin/{data.Tencentcloud_cam_users.Foo.User_list[0].Uin}:ckafkaId/uin/{data.Tencentcloud_cam_users.Foo.User_list[0].Uin}/{ckafka}",
                CkafkaTargetParams = new Tencentcloud.Inputs.EbEventTargetTargetDescriptionCkafkaTargetParamsArgs
                {
                    TopicName = "dasdasd",
                    RetryPolicy = new Tencentcloud.Inputs.EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicyArgs
                    {
                        MaxRetryAttempts = 360,
                        RetryInterval = 60,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.EbEventTarget;
    import com.pulumi.tencentcloud.EbEventTargetArgs;
    import com.pulumi.tencentcloud.inputs.EbEventTargetTargetDescriptionArgs;
    import com.pulumi.tencentcloud.inputs.EbEventTargetTargetDescriptionCkafkaTargetParamsArgs;
    import com.pulumi.tencentcloud.inputs.EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicyArgs;
    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 config = ctx.config();
            final var ckafka = config.get("ckafka").orElse("ckafka-qzoeaqx8");
            var ckafkaTarget = new EbEventTarget("ckafkaTarget", EbEventTargetArgs.builder()
                .eventBusId(tencentcloud_eb_event_bus.foo().id())
                .ruleId(tencentcloud_eb_event_rule.foo().rule_id())
                .type("ckafka")
                .targetDescription(EbEventTargetTargetDescriptionArgs.builder()
                    .resourceDescription(String.format("qcs::scf:%s:uin/%s:ckafkaId/uin/%s/%s", var_.zone(),data.tencentcloud_cam_users().foo().user_list()[0].uin(),data.tencentcloud_cam_users().foo().user_list()[0].uin(),ckafka))
                    .ckafkaTargetParams(EbEventTargetTargetDescriptionCkafkaTargetParamsArgs.builder()
                        .topicName("dasdasd")
                        .retryPolicy(EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicyArgs.builder()
                            .maxRetryAttempts(360)
                            .retryInterval(60)
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    configuration:
      ckafka:
        type: string
        default: ckafka-qzoeaqx8
    resources:
      ckafkaTarget:
        type: tencentcloud:EbEventTarget
        properties:
          eventBusId: ${tencentcloud_eb_event_bus.foo.id}
          ruleId: ${tencentcloud_eb_event_rule.foo.rule_id}
          type: ckafka
          targetDescription:
            resourceDescription: qcs::scf:${var.zone}:uin/${data.tencentcloud_cam_users.foo.user_list[0].uin}:ckafkaId/uin/${data.tencentcloud_cam_users.foo.user_list[0].uin}/${ckafka}
            ckafkaTargetParams:
              topicName: dasdasd
              retryPolicy:
                maxRetryAttempts: 360
                retryInterval: 60
    

    Create EbEventTarget Resource

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

    Constructor syntax

    new EbEventTarget(name: string, args: EbEventTargetArgs, opts?: CustomResourceOptions);
    @overload
    def EbEventTarget(resource_name: str,
                      args: EbEventTargetArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def EbEventTarget(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      event_bus_id: Optional[str] = None,
                      rule_id: Optional[str] = None,
                      target_description: Optional[EbEventTargetTargetDescriptionArgs] = None,
                      type: Optional[str] = None,
                      eb_event_target_id: Optional[str] = None)
    func NewEbEventTarget(ctx *Context, name string, args EbEventTargetArgs, opts ...ResourceOption) (*EbEventTarget, error)
    public EbEventTarget(string name, EbEventTargetArgs args, CustomResourceOptions? opts = null)
    public EbEventTarget(String name, EbEventTargetArgs args)
    public EbEventTarget(String name, EbEventTargetArgs args, CustomResourceOptions options)
    
    type: tencentcloud:EbEventTarget
    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 EbEventTargetArgs
    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 EbEventTargetArgs
    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 EbEventTargetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EbEventTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EbEventTargetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    EbEventTarget 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 EbEventTarget resource accepts the following input properties:

    EventBusId string
    event bus id.
    RuleId string
    event rule id.
    TargetDescription EbEventTargetTargetDescription
    target description.
    Type string
    target type.
    EbEventTargetId string
    ID of the resource.
    EventBusId string
    event bus id.
    RuleId string
    event rule id.
    TargetDescription EbEventTargetTargetDescriptionArgs
    target description.
    Type string
    target type.
    EbEventTargetId string
    ID of the resource.
    eventBusId String
    event bus id.
    ruleId String
    event rule id.
    targetDescription EbEventTargetTargetDescription
    target description.
    type String
    target type.
    ebEventTargetId String
    ID of the resource.
    eventBusId string
    event bus id.
    ruleId string
    event rule id.
    targetDescription EbEventTargetTargetDescription
    target description.
    type string
    target type.
    ebEventTargetId string
    ID of the resource.
    event_bus_id str
    event bus id.
    rule_id str
    event rule id.
    target_description EbEventTargetTargetDescriptionArgs
    target description.
    type str
    target type.
    eb_event_target_id str
    ID of the resource.
    eventBusId String
    event bus id.
    ruleId String
    event rule id.
    targetDescription Property Map
    target description.
    type String
    target type.
    ebEventTargetId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EbEventTarget 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 EbEventTarget Resource

    Get an existing EbEventTarget 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?: EbEventTargetState, opts?: CustomResourceOptions): EbEventTarget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            eb_event_target_id: Optional[str] = None,
            event_bus_id: Optional[str] = None,
            rule_id: Optional[str] = None,
            target_description: Optional[EbEventTargetTargetDescriptionArgs] = None,
            type: Optional[str] = None) -> EbEventTarget
    func GetEbEventTarget(ctx *Context, name string, id IDInput, state *EbEventTargetState, opts ...ResourceOption) (*EbEventTarget, error)
    public static EbEventTarget Get(string name, Input<string> id, EbEventTargetState? state, CustomResourceOptions? opts = null)
    public static EbEventTarget get(String name, Output<String> id, EbEventTargetState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:EbEventTarget    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:
    EbEventTargetId string
    ID of the resource.
    EventBusId string
    event bus id.
    RuleId string
    event rule id.
    TargetDescription EbEventTargetTargetDescription
    target description.
    Type string
    target type.
    EbEventTargetId string
    ID of the resource.
    EventBusId string
    event bus id.
    RuleId string
    event rule id.
    TargetDescription EbEventTargetTargetDescriptionArgs
    target description.
    Type string
    target type.
    ebEventTargetId String
    ID of the resource.
    eventBusId String
    event bus id.
    ruleId String
    event rule id.
    targetDescription EbEventTargetTargetDescription
    target description.
    type String
    target type.
    ebEventTargetId string
    ID of the resource.
    eventBusId string
    event bus id.
    ruleId string
    event rule id.
    targetDescription EbEventTargetTargetDescription
    target description.
    type string
    target type.
    eb_event_target_id str
    ID of the resource.
    event_bus_id str
    event bus id.
    rule_id str
    event rule id.
    target_description EbEventTargetTargetDescriptionArgs
    target description.
    type str
    target type.
    ebEventTargetId String
    ID of the resource.
    eventBusId String
    event bus id.
    ruleId String
    event rule id.
    targetDescription Property Map
    target description.
    type String
    target type.

    Supporting Types

    EbEventTargetTargetDescription, EbEventTargetTargetDescriptionArgs

    resourceDescription String
    QCS resource six-stage format, more references resource six-stage format.
    ckafkaTargetParams Property Map
    Ckafka parameters.
    esTargetParams Property Map
    ElasticSearch parameters.
    scfParams Property Map
    cloud function parameters.

    EbEventTargetTargetDescriptionCkafkaTargetParams, EbEventTargetTargetDescriptionCkafkaTargetParamsArgs

    RetryPolicy EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicy
    retry strategy.
    TopicName string
    The ckafka topic to deliver to.
    RetryPolicy EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicy
    retry strategy.
    TopicName string
    The ckafka topic to deliver to.
    retryPolicy EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicy
    retry strategy.
    topicName String
    The ckafka topic to deliver to.
    retryPolicy EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicy
    retry strategy.
    topicName string
    The ckafka topic to deliver to.
    retryPolicy Property Map
    retry strategy.
    topicName String
    The ckafka topic to deliver to.

    EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicy, EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicyArgs

    MaxRetryAttempts double
    Maximum number of retries.
    RetryInterval double
    Retry Interval Unit: Seconds.
    MaxRetryAttempts float64
    Maximum number of retries.
    RetryInterval float64
    Retry Interval Unit: Seconds.
    maxRetryAttempts Double
    Maximum number of retries.
    retryInterval Double
    Retry Interval Unit: Seconds.
    maxRetryAttempts number
    Maximum number of retries.
    retryInterval number
    Retry Interval Unit: Seconds.
    max_retry_attempts float
    Maximum number of retries.
    retry_interval float
    Retry Interval Unit: Seconds.
    maxRetryAttempts Number
    Maximum number of retries.
    retryInterval Number
    Retry Interval Unit: Seconds.

    EbEventTargetTargetDescriptionEsTargetParams, EbEventTargetTargetDescriptionEsTargetParamsArgs

    IndexPrefix string
    index prefix.
    IndexSuffixMode string
    DTS index configuration.
    NetMode string
    network connection type.
    OutputMode string
    DTS event configuration.
    RotationInterval string
    es log rotation granularity.
    IndexTemplateType string
    es template type.
    IndexPrefix string
    index prefix.
    IndexSuffixMode string
    DTS index configuration.
    NetMode string
    network connection type.
    OutputMode string
    DTS event configuration.
    RotationInterval string
    es log rotation granularity.
    IndexTemplateType string
    es template type.
    indexPrefix String
    index prefix.
    indexSuffixMode String
    DTS index configuration.
    netMode String
    network connection type.
    outputMode String
    DTS event configuration.
    rotationInterval String
    es log rotation granularity.
    indexTemplateType String
    es template type.
    indexPrefix string
    index prefix.
    indexSuffixMode string
    DTS index configuration.
    netMode string
    network connection type.
    outputMode string
    DTS event configuration.
    rotationInterval string
    es log rotation granularity.
    indexTemplateType string
    es template type.
    index_prefix str
    index prefix.
    index_suffix_mode str
    DTS index configuration.
    net_mode str
    network connection type.
    output_mode str
    DTS event configuration.
    rotation_interval str
    es log rotation granularity.
    index_template_type str
    es template type.
    indexPrefix String
    index prefix.
    indexSuffixMode String
    DTS index configuration.
    netMode String
    network connection type.
    outputMode String
    DTS event configuration.
    rotationInterval String
    es log rotation granularity.
    indexTemplateType String
    es template type.

    EbEventTargetTargetDescriptionScfParams, EbEventTargetTargetDescriptionScfParamsArgs

    BatchEventCount double
    Maximum number of events for batch delivery.
    BatchTimeout double
    Maximum waiting time for bulk delivery.
    EnableBatchDelivery bool
    Enable batch delivery.
    BatchEventCount float64
    Maximum number of events for batch delivery.
    BatchTimeout float64
    Maximum waiting time for bulk delivery.
    EnableBatchDelivery bool
    Enable batch delivery.
    batchEventCount Double
    Maximum number of events for batch delivery.
    batchTimeout Double
    Maximum waiting time for bulk delivery.
    enableBatchDelivery Boolean
    Enable batch delivery.
    batchEventCount number
    Maximum number of events for batch delivery.
    batchTimeout number
    Maximum waiting time for bulk delivery.
    enableBatchDelivery boolean
    Enable batch delivery.
    batch_event_count float
    Maximum number of events for batch delivery.
    batch_timeout float
    Maximum waiting time for bulk delivery.
    enable_batch_delivery bool
    Enable batch delivery.
    batchEventCount Number
    Maximum number of events for batch delivery.
    batchTimeout Number
    Maximum waiting time for bulk delivery.
    enableBatchDelivery Boolean
    Enable batch delivery.

    Import

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

    $ pulumi import tencentcloud:index/ebEventTarget:EbEventTarget event_target event_target_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