EventIntegration
The EventIntegration resource lets you manage AWS AppIntegrations EventIntegrations that allow you to integrate applications with event-driven architectures.
Minimal Example
Section titled “Minimal Example”Create a basic EventIntegration with required properties and one optional description.
import AWS from "alchemy/aws/control";
const basicEventIntegration = await AWS.AppIntegrations.EventIntegration("basicEventIntegration", { name: "UserSignupEvents", eventBridgeBus: "default", eventFilter: { source: ["com.myapp.user"], detailType: ["user.signup"] }, description: "Integration for user signup events"});
Advanced Configuration
Section titled “Advanced Configuration”Create an EventIntegration with additional tags for better resource management.
const taggedEventIntegration = await AWS.AppIntegrations.EventIntegration("taggedEventIntegration", { name: "OrderStatusUpdates", eventBridgeBus: "default", eventFilter: { source: ["com.myapp.order"], detailType: ["order.created", "order.updated"] }, tags: [ { key: "Environment", value: "Production" }, { key: "Team", value: "Engineering" } ]});
Adoption of Existing Resource
Section titled “Adoption of Existing Resource”Create an EventIntegration while adopting an existing resource if it already exists.
const adoptedEventIntegration = await AWS.AppIntegrations.EventIntegration("adoptedEventIntegration", { name: "PaymentProcessingEvents", eventBridgeBus: "default", eventFilter: { source: ["com.myapp.payment"], detailType: ["payment.success", "payment.failed"] }, adopt: true // Allows adoption of an existing resource});