AppConfigDeploymentEventSource
Source:
src/AWS/Lambda/AppConfigDeploymentEventSource.ts
Lambda runtime implementation for AWS.AppConfig.consumeDeploymentEvents(...).
This layer does two things:
- At deploy time it provisions an AppConfig
Extensionwhose actions invoke the current Lambda function at the subscribed deployment action points, the IAM role AppConfig assumes to perform the invocation, and anExtensionAssociationattaching the extension to the target application or environment. - At runtime it narrows incoming invocations to AppConfig deployment
notifications for the bound target and forwards them into the supplied
handler as a typed
DeploymentEventRecordstream.
Consuming Deployment Events
Section titled “Consuming Deployment Events”yield* AppConfig.consumeDeploymentEvents( env, { events: ["ON_DEPLOYMENT_COMPLETE"] }, (events) => events.pipe( Stream.runForEach((event) => Effect.log(`deployment ${event.DeploymentNumber} completed`), ), ),);