tencentcloud.EbEventTarget
Explore with Pulumi AI
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:
- Event
Bus stringId - event bus id.
- Rule
Id string - event rule id.
- Target
Description EbEvent Target Target Description - target description.
- Type string
- target type.
- Eb
Event stringTarget Id - ID of the resource.
- Event
Bus stringId - event bus id.
- Rule
Id string - event rule id.
- Target
Description EbEvent Target Target Description Args - target description.
- Type string
- target type.
- Eb
Event stringTarget Id - ID of the resource.
- event
Bus StringId - event bus id.
- rule
Id String - event rule id.
- target
Description EbEvent Target Target Description - target description.
- type String
- target type.
- eb
Event StringTarget Id - ID of the resource.
- event
Bus stringId - event bus id.
- rule
Id string - event rule id.
- target
Description EbEvent Target Target Description - target description.
- type string
- target type.
- eb
Event stringTarget Id - ID of the resource.
- event_
bus_ strid - event bus id.
- rule_
id str - event rule id.
- target_
description EbEvent Target Target Description Args - target description.
- type str
- target type.
- eb_
event_ strtarget_ id - ID of the resource.
- event
Bus StringId - event bus id.
- rule
Id String - event rule id.
- target
Description Property Map - target description.
- type String
- target type.
- eb
Event StringTarget Id - 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.
- Eb
Event stringTarget Id - ID of the resource.
- Event
Bus stringId - event bus id.
- Rule
Id string - event rule id.
- Target
Description EbEvent Target Target Description - target description.
- Type string
- target type.
- Eb
Event stringTarget Id - ID of the resource.
- Event
Bus stringId - event bus id.
- Rule
Id string - event rule id.
- Target
Description EbEvent Target Target Description Args - target description.
- Type string
- target type.
- eb
Event StringTarget Id - ID of the resource.
- event
Bus StringId - event bus id.
- rule
Id String - event rule id.
- target
Description EbEvent Target Target Description - target description.
- type String
- target type.
- eb
Event stringTarget Id - ID of the resource.
- event
Bus stringId - event bus id.
- rule
Id string - event rule id.
- target
Description EbEvent Target Target Description - target description.
- type string
- target type.
- eb_
event_ strtarget_ id - ID of the resource.
- event_
bus_ strid - event bus id.
- rule_
id str - event rule id.
- target_
description EbEvent Target Target Description Args - target description.
- type str
- target type.
- eb
Event StringTarget Id - ID of the resource.
- event
Bus StringId - event bus id.
- rule
Id String - event rule id.
- target
Description Property Map - target description.
- type String
- target type.
Supporting Types
EbEventTargetTargetDescription, EbEventTargetTargetDescriptionArgs
- Resource
Description string - QCS resource six-stage format, more references resource six-stage format.
- Ckafka
Target EbParams Event Target Target Description Ckafka Target Params - Ckafka parameters.
- Es
Target EbParams Event Target Target Description Es Target Params - ElasticSearch parameters.
- Scf
Params EbEvent Target Target Description Scf Params - cloud function parameters.
- Resource
Description string - QCS resource six-stage format, more references resource six-stage format.
- Ckafka
Target EbParams Event Target Target Description Ckafka Target Params - Ckafka parameters.
- Es
Target EbParams Event Target Target Description Es Target Params - ElasticSearch parameters.
- Scf
Params EbEvent Target Target Description Scf Params - cloud function parameters.
- resource
Description String - QCS resource six-stage format, more references resource six-stage format.
- ckafka
Target EbParams Event Target Target Description Ckafka Target Params - Ckafka parameters.
- es
Target EbParams Event Target Target Description Es Target Params - ElasticSearch parameters.
- scf
Params EbEvent Target Target Description Scf Params - cloud function parameters.
- resource
Description string - QCS resource six-stage format, more references resource six-stage format.
- ckafka
Target EbParams Event Target Target Description Ckafka Target Params - Ckafka parameters.
- es
Target EbParams Event Target Target Description Es Target Params - ElasticSearch parameters.
- scf
Params EbEvent Target Target Description Scf Params - cloud function parameters.
- resource_
description str - QCS resource six-stage format, more references resource six-stage format.
- ckafka_
target_ Ebparams Event Target Target Description Ckafka Target Params - Ckafka parameters.
- es_
target_ Ebparams Event Target Target Description Es Target Params - ElasticSearch parameters.
- scf_
params EbEvent Target Target Description Scf Params - cloud function parameters.
- resource
Description String - QCS resource six-stage format, more references resource six-stage format.
- ckafka
Target Property MapParams - Ckafka parameters.
- es
Target Property MapParams - ElasticSearch parameters.
- scf
Params Property Map - cloud function parameters.
EbEventTargetTargetDescriptionCkafkaTargetParams, EbEventTargetTargetDescriptionCkafkaTargetParamsArgs
- Retry
Policy EbEvent Target Target Description Ckafka Target Params Retry Policy - retry strategy.
- Topic
Name string - The ckafka topic to deliver to.
- Retry
Policy EbEvent Target Target Description Ckafka Target Params Retry Policy - retry strategy.
- Topic
Name string - The ckafka topic to deliver to.
- retry
Policy EbEvent Target Target Description Ckafka Target Params Retry Policy - retry strategy.
- topic
Name String - The ckafka topic to deliver to.
- retry
Policy EbEvent Target Target Description Ckafka Target Params Retry Policy - retry strategy.
- topic
Name string - The ckafka topic to deliver to.
- retry_
policy EbEvent Target Target Description Ckafka Target Params Retry Policy - retry strategy.
- topic_
name str - The ckafka topic to deliver to.
- retry
Policy Property Map - retry strategy.
- topic
Name String - The ckafka topic to deliver to.
EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicy, EbEventTargetTargetDescriptionCkafkaTargetParamsRetryPolicyArgs
- Max
Retry doubleAttempts - Maximum number of retries.
- Retry
Interval double - Retry Interval Unit: Seconds.
- Max
Retry float64Attempts - Maximum number of retries.
- Retry
Interval float64 - Retry Interval Unit: Seconds.
- max
Retry DoubleAttempts - Maximum number of retries.
- retry
Interval Double - Retry Interval Unit: Seconds.
- max
Retry numberAttempts - Maximum number of retries.
- retry
Interval number - Retry Interval Unit: Seconds.
- max_
retry_ floatattempts - Maximum number of retries.
- retry_
interval float - Retry Interval Unit: Seconds.
- max
Retry NumberAttempts - Maximum number of retries.
- retry
Interval Number - Retry Interval Unit: Seconds.
EbEventTargetTargetDescriptionEsTargetParams, EbEventTargetTargetDescriptionEsTargetParamsArgs
- Index
Prefix string - index prefix.
- Index
Suffix stringMode - DTS index configuration.
- Net
Mode string - network connection type.
- Output
Mode string - DTS event configuration.
- Rotation
Interval string - es log rotation granularity.
- Index
Template stringType - es template type.
- Index
Prefix string - index prefix.
- Index
Suffix stringMode - DTS index configuration.
- Net
Mode string - network connection type.
- Output
Mode string - DTS event configuration.
- Rotation
Interval string - es log rotation granularity.
- Index
Template stringType - es template type.
- index
Prefix String - index prefix.
- index
Suffix StringMode - DTS index configuration.
- net
Mode String - network connection type.
- output
Mode String - DTS event configuration.
- rotation
Interval String - es log rotation granularity.
- index
Template StringType - es template type.
- index
Prefix string - index prefix.
- index
Suffix stringMode - DTS index configuration.
- net
Mode string - network connection type.
- output
Mode string - DTS event configuration.
- rotation
Interval string - es log rotation granularity.
- index
Template stringType - es template type.
- index_
prefix str - index prefix.
- index_
suffix_ strmode - DTS index configuration.
- net_
mode str - network connection type.
- output_
mode str - DTS event configuration.
- rotation_
interval str - es log rotation granularity.
- index_
template_ strtype - es template type.
- index
Prefix String - index prefix.
- index
Suffix StringMode - DTS index configuration.
- net
Mode String - network connection type.
- output
Mode String - DTS event configuration.
- rotation
Interval String - es log rotation granularity.
- index
Template StringType - es template type.
EbEventTargetTargetDescriptionScfParams, EbEventTargetTargetDescriptionScfParamsArgs
- Batch
Event doubleCount - Maximum number of events for batch delivery.
- Batch
Timeout double - Maximum waiting time for bulk delivery.
- Enable
Batch boolDelivery - Enable batch delivery.
- Batch
Event float64Count - Maximum number of events for batch delivery.
- Batch
Timeout float64 - Maximum waiting time for bulk delivery.
- Enable
Batch boolDelivery - Enable batch delivery.
- batch
Event DoubleCount - Maximum number of events for batch delivery.
- batch
Timeout Double - Maximum waiting time for bulk delivery.
- enable
Batch BooleanDelivery - Enable batch delivery.
- batch
Event numberCount - Maximum number of events for batch delivery.
- batch
Timeout number - Maximum waiting time for bulk delivery.
- enable
Batch booleanDelivery - Enable batch delivery.
- batch_
event_ floatcount - Maximum number of events for batch delivery.
- batch_
timeout float - Maximum waiting time for bulk delivery.
- enable_
batch_ booldelivery - Enable batch delivery.
- batch
Event NumberCount - Maximum number of events for batch delivery.
- batch
Timeout Number - Maximum waiting time for bulk delivery.
- enable
Batch BooleanDelivery - 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.