Event Source Args
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 in v1.130.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
var example = new EventSource("example", EventSourceArgs.builder()
.description("tf-test")
.eventBusName("bus_name")
.eventSourceName("tftest")
.externalSourceConfig(Map.of("QueueName", "mns_queuqe_name"))
.externalSourceType("MNS")
.linkedExternalSource(true)
.build());
}
}
Import
Event Bridge Event Source can be imported using the id, e.g.
$ pulumi import alicloud:eventbridge/eventSource:EventSource example <event_source_name>
Constructors
Functions
Properties
The config of external source. When external_source_type
is RabbitMQ
, 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. When external_source_type
is RabbitMQ
, 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
and CONSUME_FROM_TIMESTAMP
. GroupID
- The group ID of consumer. When external_source_type
is MNS
, The following attributes are supported: QueueName
- The queue name of MNS.