| AWSTemplateFormatVersion: '2010-09-09' |
|
|
| Metadata: |
| AWS::ServerlessRepo::Application: |
| Name: <SAR_APP_NAME> |
| Description: "AWS Lambda Layer for aws-lambda-powertools" |
| Author: AWS |
| SpdxLicenseId: Apache-2.0 |
| LicenseUrl: <LAYER_CONTENT_PATH>/LICENSE |
| ReadmeUrl: <LAYER_CONTENT_PATH>/README.md |
| Labels: ['layer','lambda','powertools','python', 'aws'] |
| HomePageUrl: https://github.com/aws-powertools/powertools-lambda-python |
| SemanticVersion: <VERSION> |
| SourceCodeUrl: https://github.com/aws-powertools/powertools-lambda-python |
|
|
| Transform: AWS::Serverless-2016-10-31 |
| Description: AWS Lambda Layer for aws-lambda-powertools with python 3.13, 3.12, 3.11, 3.10, 3.9 or 3.8 |
|
|
| Resources: |
| LambdaLayer: |
| Type: AWS::Serverless::LayerVersion |
| Properties: |
| Description: "AWS Lambda Layer for aws-lambda-powertools version <VERSION>" |
| LayerName: <SAR_APP_NAME> |
| ContentUri: <LAYER_CONTENT_PATH> |
| CompatibleRuntimes: |
| - python3.13 |
| - python3.12 |
| - python3.11 |
| - python3.10 |
| - python3.9 |
| - python3.8 |
| LicenseInfo: 'Available under the Apache-2.0 license.' |
| RetentionPolicy: Retain |
|
|
| Outputs: |
| LayerVersionArn: |
| Description: ARN for the published Layer version |
| Value: !Ref LambdaLayer |
| Export: |
| Name: !Sub 'LayerVersionArn-${AWS::StackName}' |
|
|