Summary
This release adds support for CodePipeline Job event, and a new property to save you some keystrokes when decoding base64 encoded data in API Gateway and ALB when using Data Classes utility.
CodePipeline Job support
If you're new to the CodePipeline Job event, customers typically use it for out of band integrations, such as orchestrate heavy deployments with a State Machine or validate an external system/KPI before continuing.
This release adds support for CodePipeline Job including methods to easily retrieve user parameters, download artifacts from S3 using temporary credentials sent as part of event, etc.
Base64 decode support
Based on this thread on Twitter with Luc from SentiaCloud, decoding base64 data in the first try without looking at a snippet is not for everyone :D
When using Data classes for API Gateway or ALB, you can now easily decode data with the new decoded_body
property:
from aws_lambda_powertools.utilities.data_classes import APIGatewayProxyEvent
def lambda_handler(event: dict, context):
event = APIGatewayProxyEvent(event)
# Dynamically base64 decode body as a str
body: str = event.decoded_body
return body
Changes
🌟 New features and non-breaking changes
- feat(data-classes): support for code pipeline job event (#416) by @michaelbrewer
🌟 Minor Changes
- feat(data-classes): decode base64 encoded body (#425) by @michaelbrewer