| AWSTemplateFormatVersion: "2010-09-09" | |
| Transform: AWS::Serverless-2016-10-31 | |
| Description: Powertools for AWS Lambda (Python) version | |
| Globals: | |
| Function: | |
| Timeout: 5 | |
| Runtime: python3.12 | |
| Tracing: Active | |
| Environment: | |
| Variables: | |
| POWERTOOLS_SERVICE_NAME: payment | |
| Layers: | |
| # Find the latest Layer version in the official documentation | |
| # https://docs.powertools.aws.dev/lambda/python/latest/#lambda-layer | |
| - !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:4 | |
| Resources: | |
| CaptureLambdaHandlerExample: | |
| Type: AWS::Serverless::Function | |
| Properties: | |
| CodeUri: ../src | |
| Handler: capture_lambda_handler.handler | |