Policy: AWS > Lambda > Function > Allowed Runtime > Target Runtime
Define the runtime that AWS > Lambda > Function resources should be upgraded to when the AWS > Lambda > Function > Allowed Runtime policy is set to one of the Enforce options.
The runtime defined here should also be in the AWS > Lambda > Function > Allowed Runtime > Values policy. Functions are only upgraded within the same language: for example, a nodejs target runtime applies to nodejs functions and never to python functions.
This policy has no default. For accounts with functions in multiple languages, set this policy as a calculated policy that maps each function's language to a target runtime.
Targets
This policy targets the following resource types:
Primary Policy
This policy is used with the following primary policy:
Controls
Setting this policy configures this control:
Policy Specification
Schema Type | |
|---|---|
Examples [YAML] |
|
Category
In Your Workspace
Developers
- tmod:@turbot/turbot#/control/categories/resourceApproved
- tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntimeTargetRuntime
- turbot graphql policy-type --id "tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntimeTargetRuntime"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntimeTargetRuntime"
Get Policy TypeGet Policy Settings