Class EventbridgeFunctions


  • public final class EventbridgeFunctions
    extends java.lang.Object
    • Constructor Detail

      • EventbridgeFunctions

        public EventbridgeFunctions()
    • Method Detail

      • getEventBuses

        public static com.pulumi.core.Output<GetEventBusesResult> getEventBuses()
        This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user. > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventBusesArgs; 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 ids = EventbridgeFunctions.getEventBuses(); ctx.export("eventBridgeEventBusId1", ids.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); final var nameRegex = EventbridgeFunctions.getEventBuses(GetEventBusesArgs.builder() .nameRegex("^my-EventBus") .build()); ctx.export("eventBridgeEventBusId2", nameRegex.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); } } ```
      • getEventBusesPlain

        public static java.util.concurrent.CompletableFuture<GetEventBusesResult> getEventBusesPlain()
        This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user. > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventBusesArgs; 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 ids = EventbridgeFunctions.getEventBuses(); ctx.export("eventBridgeEventBusId1", ids.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); final var nameRegex = EventbridgeFunctions.getEventBuses(GetEventBusesArgs.builder() .nameRegex("^my-EventBus") .build()); ctx.export("eventBridgeEventBusId2", nameRegex.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); } } ```
      • getEventBuses

        public static com.pulumi.core.Output<GetEventBusesResult> getEventBuses​(GetEventBusesArgs args)
        This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user. > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventBusesArgs; 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 ids = EventbridgeFunctions.getEventBuses(); ctx.export("eventBridgeEventBusId1", ids.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); final var nameRegex = EventbridgeFunctions.getEventBuses(GetEventBusesArgs.builder() .nameRegex("^my-EventBus") .build()); ctx.export("eventBridgeEventBusId2", nameRegex.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); } } ```
      • getEventBusesPlain

        public static java.util.concurrent.CompletableFuture<GetEventBusesResult> getEventBusesPlain​(GetEventBusesPlainArgs args)
        This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user. > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventBusesArgs; 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 ids = EventbridgeFunctions.getEventBuses(); ctx.export("eventBridgeEventBusId1", ids.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); final var nameRegex = EventbridgeFunctions.getEventBuses(GetEventBusesArgs.builder() .nameRegex("^my-EventBus") .build()); ctx.export("eventBridgeEventBusId2", nameRegex.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); } } ```
      • getEventBuses

        public static com.pulumi.core.Output<GetEventBusesResult> getEventBuses​(GetEventBusesArgs args,
                                                                                com.pulumi.deployment.InvokeOptions options)
        This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user. > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventBusesArgs; 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 ids = EventbridgeFunctions.getEventBuses(); ctx.export("eventBridgeEventBusId1", ids.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); final var nameRegex = EventbridgeFunctions.getEventBuses(GetEventBusesArgs.builder() .nameRegex("^my-EventBus") .build()); ctx.export("eventBridgeEventBusId2", nameRegex.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); } } ```
      • getEventBusesPlain

        public static java.util.concurrent.CompletableFuture<GetEventBusesResult> getEventBusesPlain​(GetEventBusesPlainArgs args,
                                                                                                     com.pulumi.deployment.InvokeOptions options)
        This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user. > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventBusesArgs; 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 ids = EventbridgeFunctions.getEventBuses(); ctx.export("eventBridgeEventBusId1", ids.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); final var nameRegex = EventbridgeFunctions.getEventBuses(GetEventBusesArgs.builder() .nameRegex("^my-EventBus") .build()); ctx.export("eventBridgeEventBusId2", nameRegex.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id())); } } ```
      • getEventSources

        public static com.pulumi.core.Output<GetEventSourcesResult> getEventSources()
        This data source provides the Event Bridge Event Sources of the current Alibaba Cloud user. > **NOTE:** Available in v1.130.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventSourcesArgs; 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 example = EventbridgeFunctions.getEventSources(GetEventSourcesArgs.builder() .ids("example_value") .nameRegex("the_resource_name") .build()); ctx.export("firstEventBridgeEventSourceId", example.applyValue(getEventSourcesResult -> getEventSourcesResult.sources()[0].id())); } } ```
      • getEventSourcesPlain

        public static java.util.concurrent.CompletableFuture<GetEventSourcesResult> getEventSourcesPlain()
        This data source provides the Event Bridge Event Sources of the current Alibaba Cloud user. > **NOTE:** Available in v1.130.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventSourcesArgs; 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 example = EventbridgeFunctions.getEventSources(GetEventSourcesArgs.builder() .ids("example_value") .nameRegex("the_resource_name") .build()); ctx.export("firstEventBridgeEventSourceId", example.applyValue(getEventSourcesResult -> getEventSourcesResult.sources()[0].id())); } } ```
      • getEventSources

        public static com.pulumi.core.Output<GetEventSourcesResult> getEventSources​(GetEventSourcesArgs args)
        This data source provides the Event Bridge Event Sources of the current Alibaba Cloud user. > **NOTE:** Available in v1.130.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventSourcesArgs; 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 example = EventbridgeFunctions.getEventSources(GetEventSourcesArgs.builder() .ids("example_value") .nameRegex("the_resource_name") .build()); ctx.export("firstEventBridgeEventSourceId", example.applyValue(getEventSourcesResult -> getEventSourcesResult.sources()[0].id())); } } ```
      • getEventSourcesPlain

        public static java.util.concurrent.CompletableFuture<GetEventSourcesResult> getEventSourcesPlain​(GetEventSourcesPlainArgs args)
        This data source provides the Event Bridge Event Sources of the current Alibaba Cloud user. > **NOTE:** Available in v1.130.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventSourcesArgs; 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 example = EventbridgeFunctions.getEventSources(GetEventSourcesArgs.builder() .ids("example_value") .nameRegex("the_resource_name") .build()); ctx.export("firstEventBridgeEventSourceId", example.applyValue(getEventSourcesResult -> getEventSourcesResult.sources()[0].id())); } } ```
      • getEventSources

        public static com.pulumi.core.Output<GetEventSourcesResult> getEventSources​(GetEventSourcesArgs args,
                                                                                    com.pulumi.deployment.InvokeOptions options)
        This data source provides the Event Bridge Event Sources of the current Alibaba Cloud user. > **NOTE:** Available in v1.130.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventSourcesArgs; 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 example = EventbridgeFunctions.getEventSources(GetEventSourcesArgs.builder() .ids("example_value") .nameRegex("the_resource_name") .build()); ctx.export("firstEventBridgeEventSourceId", example.applyValue(getEventSourcesResult -> getEventSourcesResult.sources()[0].id())); } } ```
      • getEventSourcesPlain

        public static java.util.concurrent.CompletableFuture<GetEventSourcesResult> getEventSourcesPlain​(GetEventSourcesPlainArgs args,
                                                                                                         com.pulumi.deployment.InvokeOptions options)
        This data source provides the Event Bridge Event Sources of the current Alibaba Cloud user. > **NOTE:** Available in v1.130.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetEventSourcesArgs; 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 example = EventbridgeFunctions.getEventSources(GetEventSourcesArgs.builder() .ids("example_value") .nameRegex("the_resource_name") .build()); ctx.export("firstEventBridgeEventSourceId", example.applyValue(getEventSourcesResult -> getEventSourcesResult.sources()[0].id())); } } ```
      • getRules

        public static com.pulumi.core.Output<GetRulesResult> getRules​(GetRulesArgs args)
        This data source provides the Event Bridge Rules of the current Alibaba Cloud user. > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetRulesArgs; 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 example = EventbridgeFunctions.getRules(GetRulesArgs.builder() .eventBusName("example_value") .ids("example_value") .nameRegex("the_resource_name") .build()); ctx.export("firstEventBridgeRuleId", example.applyValue(getRulesResult -> getRulesResult.rules()[0].id())); } } ```
      • getRulesPlain

        public static java.util.concurrent.CompletableFuture<GetRulesResult> getRulesPlain​(GetRulesPlainArgs args)
        This data source provides the Event Bridge Rules of the current Alibaba Cloud user. > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetRulesArgs; 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 example = EventbridgeFunctions.getRules(GetRulesArgs.builder() .eventBusName("example_value") .ids("example_value") .nameRegex("the_resource_name") .build()); ctx.export("firstEventBridgeRuleId", example.applyValue(getRulesResult -> getRulesResult.rules()[0].id())); } } ```
      • getRules

        public static com.pulumi.core.Output<GetRulesResult> getRules​(GetRulesArgs args,
                                                                      com.pulumi.deployment.InvokeOptions options)
        This data source provides the Event Bridge Rules of the current Alibaba Cloud user. > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetRulesArgs; 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 example = EventbridgeFunctions.getRules(GetRulesArgs.builder() .eventBusName("example_value") .ids("example_value") .nameRegex("the_resource_name") .build()); ctx.export("firstEventBridgeRuleId", example.applyValue(getRulesResult -> getRulesResult.rules()[0].id())); } } ```
      • getRulesPlain

        public static java.util.concurrent.CompletableFuture<GetRulesResult> getRulesPlain​(GetRulesPlainArgs args,
                                                                                           com.pulumi.deployment.InvokeOptions options)
        This data source provides the Event Bridge Rules of the current Alibaba Cloud user. > **NOTE:** Available in v1.129.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetRulesArgs; 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 example = EventbridgeFunctions.getRules(GetRulesArgs.builder() .eventBusName("example_value") .ids("example_value") .nameRegex("the_resource_name") .build()); ctx.export("firstEventBridgeRuleId", example.applyValue(getRulesResult -> getRulesResult.rules()[0].id())); } } ```
      • getService

        public static com.pulumi.core.Output<GetServiceResult> getService()
        Using this data source can open Event Bridge service automatically. If the service has been opened, it will return opened. For information about Event Bridge and how to use it, see [What is Event Bridge](https://www.alibabacloud.com/help/en/doc-detail/163239.htm). > **NOTE:** Available in v1.126.0+ > **NOTE:** This data source supports `cn-shanghai`, `cn-hangzhou` and `ap-southeast-1` regions. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetServiceArgs; 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 open = EventbridgeFunctions.getService(GetServiceArgs.builder() .enable("On") .build()); } } ```
      • getServicePlain

        public static java.util.concurrent.CompletableFuture<GetServiceResult> getServicePlain()
        Using this data source can open Event Bridge service automatically. If the service has been opened, it will return opened. For information about Event Bridge and how to use it, see [What is Event Bridge](https://www.alibabacloud.com/help/en/doc-detail/163239.htm). > **NOTE:** Available in v1.126.0+ > **NOTE:** This data source supports `cn-shanghai`, `cn-hangzhou` and `ap-southeast-1` regions. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetServiceArgs; 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 open = EventbridgeFunctions.getService(GetServiceArgs.builder() .enable("On") .build()); } } ```
      • getService

        public static com.pulumi.core.Output<GetServiceResult> getService​(GetServiceArgs args)
        Using this data source can open Event Bridge service automatically. If the service has been opened, it will return opened. For information about Event Bridge and how to use it, see [What is Event Bridge](https://www.alibabacloud.com/help/en/doc-detail/163239.htm). > **NOTE:** Available in v1.126.0+ > **NOTE:** This data source supports `cn-shanghai`, `cn-hangzhou` and `ap-southeast-1` regions. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetServiceArgs; 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 open = EventbridgeFunctions.getService(GetServiceArgs.builder() .enable("On") .build()); } } ```
      • getServicePlain

        public static java.util.concurrent.CompletableFuture<GetServiceResult> getServicePlain​(GetServicePlainArgs args)
        Using this data source can open Event Bridge service automatically. If the service has been opened, it will return opened. For information about Event Bridge and how to use it, see [What is Event Bridge](https://www.alibabacloud.com/help/en/doc-detail/163239.htm). > **NOTE:** Available in v1.126.0+ > **NOTE:** This data source supports `cn-shanghai`, `cn-hangzhou` and `ap-southeast-1` regions. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetServiceArgs; 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 open = EventbridgeFunctions.getService(GetServiceArgs.builder() .enable("On") .build()); } } ```
      • getService

        public static com.pulumi.core.Output<GetServiceResult> getService​(GetServiceArgs args,
                                                                          com.pulumi.deployment.InvokeOptions options)
        Using this data source can open Event Bridge service automatically. If the service has been opened, it will return opened. For information about Event Bridge and how to use it, see [What is Event Bridge](https://www.alibabacloud.com/help/en/doc-detail/163239.htm). > **NOTE:** Available in v1.126.0+ > **NOTE:** This data source supports `cn-shanghai`, `cn-hangzhou` and `ap-southeast-1` regions. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetServiceArgs; 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 open = EventbridgeFunctions.getService(GetServiceArgs.builder() .enable("On") .build()); } } ```
      • getServicePlain

        public static java.util.concurrent.CompletableFuture<GetServiceResult> getServicePlain​(GetServicePlainArgs args,
                                                                                               com.pulumi.deployment.InvokeOptions options)
        Using this data source can open Event Bridge service automatically. If the service has been opened, it will return opened. For information about Event Bridge and how to use it, see [What is Event Bridge](https://www.alibabacloud.com/help/en/doc-detail/163239.htm). > **NOTE:** Available in v1.126.0+ > **NOTE:** This data source supports `cn-shanghai`, `cn-hangzhou` and `ap-southeast-1` regions. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.eventbridge.EventbridgeFunctions; import com.pulumi.alicloud.eventbridge.inputs.GetServiceArgs; 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 open = EventbridgeFunctions.getService(GetServiceArgs.builder() .enable("On") .build()); } } ```