SubscriberNotification
Source:
src/AWS/SecurityLake/SubscriberNotification.ts
A Security Lake subscriber notification — notifies a data-access subscriber whenever new objects land in its Security Lake bucket, either via an AWS-managed SQS queue or a custom HTTPS endpoint.
Notifying subscribers
Section titled “Notifying subscribers”SQS notifications
const notification = yield* SecurityLake.SubscriberNotification("Notify", { subscriberId: subscriber.subscriberId, sqs: true,});HTTPS notifications with an API key
const notification = yield* SecurityLake.SubscriberNotification("Notify", { subscriberId: subscriber.subscriberId, httpsNotificationConfiguration: { endpoint: "https://ingest.example.com/securitylake", targetRoleArn: eventsRole.roleArn, authorizationApiKeyName: "x-api-key", authorizationApiKeyValue: Redacted.make("super-secret"), },});