AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-01-10 · Documentation low

File: code-library/latest/ug/eventbridge_code_examples.md

Summary

Removed the 'Get started' section including .NET, Java, and Kotlin code examples demonstrating how to list EventBridge event buses

Security assessment

The change removes introductory code examples without any indication of security vulnerabilities, fixes, or security-related content. No security implications are evident as this appears to be routine documentation cleanup.

Diff

diff --git a/code-library/latest/ug/eventbridge_code_examples.md b/code-library/latest/ug/eventbridge_code_examples.md
index ebd644437..b7d7ad1a6 100644
--- a//code-library/latest/ug/eventbridge_code_examples.md
+++ b//code-library/latest/ug/eventbridge_code_examples.md
@@ -30,153 +29,0 @@ _Scenarios_ are code examples that show you how to accomplish specific tasks by
-**Get started**
-
-The following code examples show how to get started using EventBridge.
-
-.NET
-    
-
-**SDK for .NET**
-    
-
-###### Note
-
-There's more on GitHub. Find the complete example and learn how to set up and run in the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/dotnetv3/EventBridge#code-examples). 
-    
-    
-    using Amazon.EventBridge;
-    using Amazon.EventBridge.Model;
-    
-    namespace EventBridgeActions;
-    
-    public static class HelloEventBridge
-    {
-        static async Task Main(string[] args)
-        {
-            var eventBridgeClient = new AmazonEventBridgeClient();
-    
-            Console.WriteLine($"Hello Amazon EventBridge! Following are some of your EventBuses:");
-            Console.WriteLine();
-    
-            // You can use await and any of the async methods to get a response.
-            // Let's get the first five event buses.
-            var response = await eventBridgeClient.ListEventBusesAsync(
-                new ListEventBusesRequest()
-                {
-                    Limit = 5
-                });
-    
-            foreach (var eventBus in response.EventBuses)
-            {
-                Console.WriteLine($"\tEventBus: {eventBus.Name}");
-                Console.WriteLine($"\tArn: {eventBus.Arn}");
-                Console.WriteLine($"\tPolicy: {eventBus.Policy}");
-                Console.WriteLine();
-            }
-        }
-    }
-    
-    
-
-  * For API details, see [ListEventBuses](https://docs.aws.amazon.com/goto/DotNetSDKV3/eventbridge-2015-10-07/ListEventBuses) in _AWS SDK for .NET API Reference_. 
-
-
-
-
-Java
-    
-
-**SDK for Java 2.x**
-    
-
-###### Note
-
-There's more on GitHub. Find the complete example and learn how to set up and run in the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/javav2/example_code/eventbridge#code-examples). 
-    
-    
-    /**
-     * Before running this Java V2 code example, set up your development
-     * environment, including your credentials.
-     *
-     * For more information, see the following documentation topic:
-     *
-     * https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html
-     *
-     */
-    public class HelloEventBridge {
-        public static void main(String[] args) {
-            Region region = Region.US_WEST_2;
-            EventBridgeClient eventBrClient = EventBridgeClient.builder()
-                    .region(region)
-                    .build();
-    
-            listBuses(eventBrClient);
-            eventBrClient.close();
-        }
-    
-        public static void listBuses(EventBridgeClient eventBrClient) {
-            try {
-                ListEventBusesRequest busesRequest = ListEventBusesRequest.builder()
-                        .limit(10)
-                        .build();
-    
-                ListEventBusesResponse response = eventBrClient.listEventBuses(busesRequest);
-                List<EventBus> buses = response.eventBuses();
-                for (EventBus bus : buses) {
-                    System.out.println("The name of the event bus is: " + bus.name());
-                    System.out.println("The ARN of the event bus is: " + bus.arn());
-                }
-    
-            } catch (EventBridgeException e) {
-                System.err.println(e.awsErrorDetails().errorMessage());
-                System.exit(1);
-            }
-        }
-    }
-    
-    
-
-  * For API details, see [ListEventBuses](https://docs.aws.amazon.com/goto/SdkForJavaV2/eventbridge-2015-10-07/ListEventBuses) in _AWS SDK for Java 2.x API Reference_. 
-
-
-
-
-Kotlin
-    
-
-**SDK for Kotlin**
-    
-
-###### Note
-
-There's more on GitHub. Find the complete example and learn how to set up and run in the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/kotlin/services/eventbridge#code-examples). 
-    
-    
-    import aws.sdk.kotlin.services.eventbridge.EventBridgeClient
-    import aws.sdk.kotlin.services.eventbridge.model.ListEventBusesRequest
-    import aws.sdk.kotlin.services.eventbridge.model.ListEventBusesResponse
-    
-    suspend fun main() {
-        listBusesHello()
-    }
-    
-    suspend fun listBusesHello() {
-        val request =
-            ListEventBusesRequest {
-                limit = 10
-            }
-    
-        EventBridgeClient.fromEnvironment { region = "us-west-2" }.use { eventBrClient ->
-            val response: ListEventBusesResponse = eventBrClient.listEventBuses(request)
-            response.eventBuses?.forEach { bus ->
-                println("The name of the event bus is ${bus.name}")
-                println("The ARN of the event bus is ${bus.arn}")
-            }
-        }
-    }
-    
-    
-
-  * For API details, see [ListEventBuses](https://sdk.amazonaws.com/kotlin/api/latest/index.html) in _AWS SDK for Kotlin API reference_. 
-
-
-
-