126 |
127 | The AWS-provided SingletonFunction has the same behavior as the Singleton Pattern, but its implementation is more CDK-like, so I implemented it simply on my own.
128 |
129 |
130 |
131 |
132 |
133 | The ensureLambda method in the SingletonFunction corresponds to the Singleton Pattern (aws-cdk-lib/aws-lambda/lib/singleton-lambda.ts)
134 |
135 |