RecipeΒΆ
Recipes provide commonly used high-level operations for working with AWS Lambda services. These functions combine multiple client calls and implement best practices for complex Lambda layer management tasks.
Below are the full list of available recipe functions:
Layer Version Management:
get_latest_layer_version(): Get the latest deployed layer version with compatibility filtering supportcleanup_old_layer_versions(): Delete old layer versions based on retention policy (keep last N versions or versions newer than N seconds)
Cross-Account Access Management:
grant_aws_account_or_aws_organization_lambda_layer_version_access(): Grant other AWS accounts Lambda layer access to a specific layer versionrevoke_aws_account_or_aws_organization_lambda_layer_version_access(): Revoke AWS accounts Lambda layer access from a specific layer version
Utility Functions:
identify_principal_type(): Identify the type of principal (public, AWS account, or AWS organization)get_layer_permission_statement_id(): Generate statement ID for layer permissions