alicloud.eventbridge.EventSource
Explore with Pulumi AI
Provides a Event Bridge Event Source resource.
For information about Event Bridge Event Source and how to use it, see What is Event Source.
NOTE: Available since v1.130.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const _default = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const example = new alicloud.eventbridge.EventBus("example", {eventBusName: name});
const exampleQueue = new alicloud.mns.Queue("example", {name: `${name}-${_default.result}`});
const exampleEventSource = new alicloud.eventbridge.EventSource("example", {
eventBusName: example.eventBusName,
eventSourceName: name,
description: name,
linkedExternalSource: true,
externalSourceType: "MNS",
externalSourceConfig: {
QueueName: exampleQueue.name,
},
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = random.index.Integer("default",
min=10000,
max=99999)
example = alicloud.eventbridge.EventBus("example", event_bus_name=name)
example_queue = alicloud.mns.Queue("example", name=f"{name}-{default['result']}")
example_event_source = alicloud.eventbridge.EventSource("example",
event_bus_name=example.event_bus_name,
event_source_name=name,
description=name,
linked_external_source=True,
external_source_type="MNS",
external_source_config={
"QueueName": example_queue.name,
})
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/mns"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"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, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
example, err := eventbridge.NewEventBus(ctx, "example", &eventbridge.EventBusArgs{
EventBusName: pulumi.String(name),
})
if err != nil {
return err
}
exampleQueue, err := mns.NewQueue(ctx, "example", &mns.QueueArgs{
Name: pulumi.Sprintf("%v-%v", name, _default.Result),
})
if err != nil {
return err
}
_, err = eventbridge.NewEventSource(ctx, "example", &eventbridge.EventSourceArgs{
EventBusName: example.EventBusName,
EventSourceName: pulumi.String(name),
Description: pulumi.String(name),
LinkedExternalSource: pulumi.Bool(true),
ExternalSourceType: pulumi.String("MNS"),
ExternalSourceConfig: pulumi.StringMap{
"QueueName": exampleQueue.Name,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var @default = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var example = new AliCloud.EventBridge.EventBus("example", new()
{
EventBusName = name,
});
var exampleQueue = new AliCloud.Mns.Queue("example", new()
{
Name = $"{name}-{@default.Result}",
});
var exampleEventSource = new AliCloud.EventBridge.EventSource("example", new()
{
EventBusName = example.EventBusName,
EventSourceName = name,
Description = name,
LinkedExternalSource = true,
ExternalSourceType = "MNS",
ExternalSourceConfig =
{
{ "QueueName", exampleQueue.Name },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.eventbridge.EventBus;
import com.pulumi.alicloud.eventbridge.EventBusArgs;
import com.pulumi.alicloud.mns.Queue;
import com.pulumi.alicloud.mns.QueueArgs;
import com.pulumi.alicloud.eventbridge.EventSource;
import com.pulumi.alicloud.eventbridge.EventSourceArgs;
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 name = config.get("name").orElse("tf-example");
var default_ = new Integer("default", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var example = new EventBus("example", EventBusArgs.builder()
.eventBusName(name)
.build());
var exampleQueue = new Queue("exampleQueue", QueueArgs.builder()
.name(String.format("%s-%s", name,default_.result()))
.build());
var exampleEventSource = new EventSource("exampleEventSource", EventSourceArgs.builder()
.eventBusName(example.eventBusName())
.eventSourceName(name)
.description(name)
.linkedExternalSource(true)
.externalSourceType("MNS")
.externalSourceConfig(Map.of("QueueName", exampleQueue.name()))
.build());
}
}
configuration:
name:
type: string
default: tf-example
resources:
default:
type: random:integer
properties:
min: 10000
max: 99999
example:
type: alicloud:eventbridge:EventBus
properties:
eventBusName: ${name}
exampleQueue:
type: alicloud:mns:Queue
name: example
properties:
name: ${name}-${default.result}
exampleEventSource:
type: alicloud:eventbridge:EventSource
name: example
properties:
eventBusName: ${example.eventBusName}
eventSourceName: ${name}
description: ${name}
linkedExternalSource: true
externalSourceType: MNS
externalSourceConfig:
QueueName: ${exampleQueue.name}
Create EventSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EventSource(name: string, args: EventSourceArgs, opts?: CustomResourceOptions);
@overload
def EventSource(resource_name: str,
args: EventSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EventSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
event_bus_name: Optional[str] = None,
event_source_name: Optional[str] = None,
description: Optional[str] = None,
external_source_config: Optional[Mapping[str, str]] = None,
external_source_type: Optional[str] = None,
linked_external_source: Optional[bool] = None)
func NewEventSource(ctx *Context, name string, args EventSourceArgs, opts ...ResourceOption) (*EventSource, error)
public EventSource(string name, EventSourceArgs args, CustomResourceOptions? opts = null)
public EventSource(String name, EventSourceArgs args)
public EventSource(String name, EventSourceArgs args, CustomResourceOptions options)
type: alicloud:eventbridge:EventSource
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 EventSourceArgs
- 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 EventSourceArgs
- 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 EventSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EventSourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var eventSourceResource = new AliCloud.EventBridge.EventSource("eventSourceResource", new()
{
EventBusName = "string",
EventSourceName = "string",
Description = "string",
ExternalSourceConfig =
{
{ "string", "string" },
},
ExternalSourceType = "string",
LinkedExternalSource = false,
});
example, err := eventbridge.NewEventSource(ctx, "eventSourceResource", &eventbridge.EventSourceArgs{
EventBusName: pulumi.String("string"),
EventSourceName: pulumi.String("string"),
Description: pulumi.String("string"),
ExternalSourceConfig: pulumi.StringMap{
"string": pulumi.String("string"),
},
ExternalSourceType: pulumi.String("string"),
LinkedExternalSource: pulumi.Bool(false),
})
var eventSourceResource = new EventSource("eventSourceResource", EventSourceArgs.builder()
.eventBusName("string")
.eventSourceName("string")
.description("string")
.externalSourceConfig(Map.of("string", "string"))
.externalSourceType("string")
.linkedExternalSource(false)
.build());
event_source_resource = alicloud.eventbridge.EventSource("eventSourceResource",
event_bus_name="string",
event_source_name="string",
description="string",
external_source_config={
"string": "string",
},
external_source_type="string",
linked_external_source=False)
const eventSourceResource = new alicloud.eventbridge.EventSource("eventSourceResource", {
eventBusName: "string",
eventSourceName: "string",
description: "string",
externalSourceConfig: {
string: "string",
},
externalSourceType: "string",
linkedExternalSource: false,
});
type: alicloud:eventbridge:EventSource
properties:
description: string
eventBusName: string
eventSourceName: string
externalSourceConfig:
string: string
externalSourceType: string
linkedExternalSource: false
EventSource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The EventSource resource accepts the following input properties:
- Event
Bus stringName - The name of event bus.
- Event
Source stringName - The code name of event source.
- Description string
- The detail describe of event source.
- External
Source Dictionary<string, string>Config - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - External
Source stringType - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - Linked
External boolSource - Whether to connect to an external data source. Default value:
false
- Event
Bus stringName - The name of event bus.
- Event
Source stringName - The code name of event source.
- Description string
- The detail describe of event source.
- External
Source map[string]stringConfig - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - External
Source stringType - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - Linked
External boolSource - Whether to connect to an external data source. Default value:
false
- event
Bus StringName - The name of event bus.
- event
Source StringName - The code name of event source.
- description String
- The detail describe of event source.
- external
Source Map<String,String>Config - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - external
Source StringType - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - linked
External BooleanSource - Whether to connect to an external data source. Default value:
false
- event
Bus stringName - The name of event bus.
- event
Source stringName - The code name of event source.
- description string
- The detail describe of event source.
- external
Source {[key: string]: string}Config - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - external
Source stringType - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - linked
External booleanSource - Whether to connect to an external data source. Default value:
false
- event_
bus_ strname - The name of event bus.
- event_
source_ strname - The code name of event source.
- description str
- The detail describe of event source.
- external_
source_ Mapping[str, str]config - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - external_
source_ strtype - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - linked_
external_ boolsource - Whether to connect to an external data source. Default value:
false
- event
Bus StringName - The name of event bus.
- event
Source StringName - The code name of event source.
- description String
- The detail describe of event source.
- external
Source Map<String>Config - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - external
Source StringType - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - linked
External BooleanSource - Whether to connect to an external data source. Default value:
false
Outputs
All input properties are implicitly available as output properties. Additionally, the EventSource 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 EventSource Resource
Get an existing EventSource 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?: EventSourceState, opts?: CustomResourceOptions): EventSource
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
event_bus_name: Optional[str] = None,
event_source_name: Optional[str] = None,
external_source_config: Optional[Mapping[str, str]] = None,
external_source_type: Optional[str] = None,
linked_external_source: Optional[bool] = None) -> EventSource
func GetEventSource(ctx *Context, name string, id IDInput, state *EventSourceState, opts ...ResourceOption) (*EventSource, error)
public static EventSource Get(string name, Input<string> id, EventSourceState? state, CustomResourceOptions? opts = null)
public static EventSource get(String name, Output<String> id, EventSourceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
- The detail describe of event source.
- Event
Bus stringName - The name of event bus.
- Event
Source stringName - The code name of event source.
- External
Source Dictionary<string, string>Config - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - External
Source stringType - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - Linked
External boolSource - Whether to connect to an external data source. Default value:
false
- Description string
- The detail describe of event source.
- Event
Bus stringName - The name of event bus.
- Event
Source stringName - The code name of event source.
- External
Source map[string]stringConfig - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - External
Source stringType - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - Linked
External boolSource - Whether to connect to an external data source. Default value:
false
- description String
- The detail describe of event source.
- event
Bus StringName - The name of event bus.
- event
Source StringName - The code name of event source.
- external
Source Map<String,String>Config - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - external
Source StringType - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - linked
External BooleanSource - Whether to connect to an external data source. Default value:
false
- description string
- The detail describe of event source.
- event
Bus stringName - The name of event bus.
- event
Source stringName - The code name of event source.
- external
Source {[key: string]: string}Config - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - external
Source stringType - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - linked
External booleanSource - Whether to connect to an external data source. Default value:
false
- description str
- The detail describe of event source.
- event_
bus_ strname - The name of event bus.
- event_
source_ strname - The code name of event source.
- external_
source_ Mapping[str, str]config - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - external_
source_ strtype - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - linked_
external_ boolsource - Whether to connect to an external data source. Default value:
false
- description String
- The detail describe of event source.
- event
Bus StringName - The name of event bus.
- event
Source StringName - The code name of event source.
- external
Source Map<String>Config - The config of external source.
When
external_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.VirtualHostName
- The virtual host name of RabbitMQ.QueueName
- The queue name of RabbitMQ. Whenexternal_source_type
isRabbitMQ
, The following attributes are supported:RegionId
- The region ID of RabbitMQ.InstanceId
- The instance ID of RabbitMQ.Topic
- The topic of RabbitMQ.Offset
- The offset of RabbitMQ, valid values:CONSUME_FROM_FIRST_OFFSET
,CONSUME_FROM_LAST_OFFSET
andCONSUME_FROM_TIMESTAMP
.GroupID
- The group ID of consumer. Whenexternal_source_type
isMNS
, The following attributes are supported:QueueName
- The queue name of MNS. - external
Source StringType - The type of external data source. Valid value :
RabbitMQ
,RocketMQ
andMNS
. NOTE: Only Whenlinked_external_source
istrue
, This field is valid. - linked
External BooleanSource - Whether to connect to an external data source. Default value:
false
Import
Event Bridge Event Source can be imported using the id, e.g.
$ pulumi import alicloud:eventbridge/eventSource:EventSource example <event_source_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.