FunctionProps
- class aws_cdk.aws_lambda.FunctionProps(*, max_event_age=None, on_failure=None, on_success=None, retry_attempts=None, adot_instrumentation=None, allow_all_ipv6_outbound=None, allow_all_outbound=None, allow_public_subnet=None, application_log_level=None, application_log_level_v2=None, architecture=None, code_signing_config=None, current_version_options=None, dead_letter_queue=None, dead_letter_queue_enabled=None, dead_letter_topic=None, description=None, environment=None, environment_encryption=None, ephemeral_storage_size=None, events=None, filesystem=None, function_name=None, initial_policy=None, insights_version=None, ipv6_allowed_for_dual_stack=None, layers=None, log_format=None, logging_format=None, log_group=None, log_removal_policy=None, log_retention=None, log_retention_retry_options=None, log_retention_role=None, memory_size=None, params_and_secrets=None, profiling=None, profiling_group=None, recursive_loop=None, reserved_concurrent_executions=None, role=None, runtime_management_mode=None, security_groups=None, snap_start=None, system_log_level=None, system_log_level_v2=None, timeout=None, tracing=None, vpc=None, vpc_subnets=None, code, handler, runtime)
- Bases: - FunctionOptions- Parameters:
- max_event_age ( - Optional[- Duration]) – The maximum age of a request that Lambda sends to a function for processing. Minimum: 60 seconds Maximum: 6 hours Default: Duration.hours(6)
- on_failure ( - Optional[- IDestination]) – The destination for failed invocations. Default: - no destination
- on_success ( - Optional[- IDestination]) – The destination for successful invocations. Default: - no destination
- retry_attempts ( - Union[- int,- float,- None]) – The maximum number of times to retry when the function returns an error. Minimum: 0 Maximum: 2 Default: 2
- adot_instrumentation ( - Union[- AdotInstrumentationConfig,- Dict[- str,- Any],- None]) – Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
- allow_all_ipv6_outbound ( - Optional[- bool]) – Whether to allow the Lambda to send all ipv6 network traffic. If set to true, there will only be a single egress rule which allows all outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets using ipv6. Do not specify this property if the- securityGroupsor- securityGroupproperty is set. Instead, configure- allowAllIpv6Outbounddirectly on the security group. Default: false
- allow_all_outbound ( - Optional[- bool]) – Whether to allow the Lambda to send all network traffic (except ipv6). If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets. Do not specify this property if the- securityGroupsor- securityGroupproperty is set. Instead, configure- allowAllOutbounddirectly on the security group. Default: true
- allow_public_subnet ( - Optional[- bool]) – Lambda Functions in a public subnet can NOT access the internet. Use this property to acknowledge this limitation and still place the function in a public subnet. Default: false
- application_log_level ( - Optional[- str]) – (deprecated) Sets the application log level for the function. Default: “INFO”
- application_log_level_v2 ( - Optional[- ApplicationLogLevel]) – Sets the application log level for the function. Default: ApplicationLogLevel.INFO
- architecture ( - Optional[- Architecture]) – The system architectures compatible with this lambda function. Default: Architecture.X86_64
- code_signing_config ( - Optional[- ICodeSigningConfigRef]) – Code signing config associated with this function. Default: - Not Sign the Code
- current_version_options ( - Union[- VersionOptions,- Dict[- str,- Any],- None]) – Options for the- lambda.Versionresource automatically created by the- fn.currentVersionmethod. Default: - default options as described in- VersionOptions
- dead_letter_queue ( - Optional[- IQueue]) – The SQS queue to use if DLQ is enabled. If SNS topic is desired, specify- deadLetterTopicproperty instead. Default: - SQS queue with 14 day retention period if- deadLetterQueueEnabledis- true
- dead_letter_queue_enabled ( - Optional[- bool]) – Enabled DLQ. If- deadLetterQueueis undefined, an SQS queue with default options will be defined for your Function. Default: - false unless- deadLetterQueueis set, which implies DLQ is enabled.
- dead_letter_topic ( - Optional[- ITopic]) – The SNS topic to use as a DLQ. Note that if- deadLetterQueueEnabledis set to- true, an SQS queue will be created rather than an SNS topic. Using an SNS topic as a DLQ requires this property to be set explicitly. Default: - no SNS topic
- description ( - Optional[- str]) – A description of the function. Default: - No description.
- environment ( - Optional[- Mapping[- str,- str]]) – Key-value pairs that Lambda caches and makes available for your Lambda functions. Use environment variables to apply configuration changes, such as test and production environment configurations, without changing your Lambda function source code. Default: - No environment variables.
- environment_encryption ( - Optional[- IKeyRef]) – The AWS KMS key that’s used to encrypt your function’s environment variables. Default: - AWS Lambda creates and uses an AWS managed customer master key (CMK).
- ephemeral_storage_size ( - Optional[- Size]) – The size of the function’s /tmp directory in MiB. Default: 512 MiB
- events ( - Optional[- Sequence[- IEventSource]]) – Event sources for this function. You can also add event sources using- addEventSource. Default: - No event sources.
- filesystem ( - Optional[- FileSystem]) – The filesystem configuration for the lambda function. Default: - will not mount any filesystem
- function_name ( - Optional[- str]) – A name for the function. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function’s name. For more information, see Name Type.
- initial_policy ( - Optional[- Sequence[- PolicyStatement]]) – Initial policy statements to add to the created Lambda Role. You can call- addToRolePolicyto the created lambda to add statements post creation. Default: - No policy statements are added to the created Lambda role.
- insights_version ( - Optional[- LambdaInsightsVersion]) – Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
- ipv6_allowed_for_dual_stack ( - Optional[- bool]) – Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if ‘vpc’ is supplied. Default: false
- layers ( - Optional[- Sequence[- ILayerVersion]]) – A list of layers to add to the function’s execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
- log_format ( - Optional[- str]) – (deprecated) Sets the logFormat for the function. Default: “Text”
- logging_format ( - Optional[- LoggingFormat]) – Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
- log_group ( - Optional[- ILogGroup]) – The log group the function sends logs to. By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/<function name>. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the- logGroupproperty to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default:- /aws/lambda/${this.functionName}- default log group created by Lambda
- log_removal_policy ( - Optional[- RemovalPolicy]) – (deprecated) Determine the removal policy of the log group that is auto-created by this construct. Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. Default: RemovalPolicy.Retain
- log_retention ( - Optional[- RetentionDays]) – (deprecated) The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn’t remove the log retention policy. To remove the retention policy, set the value to- INFINITE. This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with- logs.LogGroupand use the- logGroupproperty to instruct the Lambda function to send logs to it. Migrating from- logRetentionto- logGroupwill cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust. In AWS CDK code, you can access the log group name directly from the LogGroup construct:: import * as logs from ‘aws-cdk-lib/aws-logs’; declare const myLogGroup: logs.LogGroup; myLogGroup.logGroupName; Default: logs.RetentionDays.INFINITE
- log_retention_retry_options ( - Union[- LogRetentionRetryOptions,- Dict[- str,- Any],- None]) – When log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs. This is a legacy API and we strongly recommend you migrate to- logGroupif you can.- logGroupallows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - Default AWS SDK retry options.
- log_retention_role ( - Optional[- IRole]) – The IAM role for the Lambda function associated with the custom resource that sets the retention policy. This is a legacy API and we strongly recommend you migrate to- logGroupif you can.- logGroupallows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - A new role is created.
- memory_size ( - Union[- int,- float,- None]) – The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. Default: 128
- params_and_secrets ( - Optional[- ParamsAndSecretsLayerVersion]) – Specify the configuration of Parameters and Secrets Extension. Default: - No Parameters and Secrets Extension
- profiling ( - Optional[- bool]) – Enable profiling. Default: - No profiling.
- profiling_group ( - Optional[- IProfilingGroup]) – Profiling Group. Default: - A new profiling group will be created if- profilingis set.
- recursive_loop ( - Optional[- RecursiveLoop]) – Sets the Recursive Loop Protection for Lambda Function. It lets Lambda detect and terminate unintended recursive loops. Default: RecursiveLoop.Terminate
- reserved_concurrent_executions ( - Union[- int,- float,- None]) – The maximum of concurrent executions you want to reserve for the function. Default: - No specific limit - account limit.
- role ( - Optional[- IRole]) – Lambda execution role. This is the role that will be assumed by the function upon execution. It controls the permissions that the function will have. The Role must be assumable by the ‘lambda.amazonaws.com’ service principal. The default Role automatically has permissions granted for Lambda execution. If you provide a Role, you must add the relevant AWS managed policies yourself. The relevant managed policies are “service-role/AWSLambdaBasicExecutionRole” and “service-role/AWSLambdaVPCAccessExecutionRole”. Default: - A unique role will be generated for this lambda function. Both supplied and generated roles can always be changed by calling- addToRolePolicy.
- runtime_management_mode ( - Optional[- RuntimeManagementMode]) – Sets the runtime management configuration for a function’s version. Default: Auto
- security_groups ( - Optional[- Sequence[- ISecurityGroup]]) – The list of security groups to associate with the Lambda’s network interfaces. Only used if ‘vpc’ is supplied. Default: - If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
- snap_start ( - Optional[- SnapStartConf]) – Enable SnapStart for Lambda Function. SnapStart is currently supported for Java 11, Java 17, Python 3.12, Python 3.13, and .NET 8 runtime Default: - No snapstart
- system_log_level ( - Optional[- str]) – (deprecated) Sets the system log level for the function. Default: “INFO”
- system_log_level_v2 ( - Optional[- SystemLogLevel]) – Sets the system log level for the function. Default: SystemLogLevel.INFO
- timeout ( - Optional[- Duration]) – The function execution time (in seconds) after which Lambda terminates the function. Because the execution time affects cost, set this value based on the function’s expected execution time. Default: Duration.seconds(3)
- tracing ( - Optional[- Tracing]) – Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
- vpc ( - Optional[- IVpc]) – VPC network to place Lambda network interfaces. Specify this if the Lambda function needs to access resources in a VPC. This is required when- vpcSubnetsis specified. Default: - Function is not placed within a VPC.
- vpc_subnets ( - Union[- SubnetSelection,- Dict[- str,- Any],- None]) – Where to place the network interfaces within the VPC. This requires- vpcto be specified in order for interfaces to actually be placed in the subnets. If- vpcis not specify, this will raise an error. Note: Internet access for Lambda Functions requires a NAT Gateway, so picking public subnets is not allowed (unless- allowPublicSubnetis set to- true). Default: - the Vpc default strategy if not specified
- code ( - Code) – The source code of your Lambda function. You can point to a file in an Amazon Simple Storage Service (Amazon S3) bucket or specify your source code as inline text.
- handler ( - str) – The name of the method within your code that Lambda calls to execute your function. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html. Use- Handler.FROM_IMAGEwhen defining a function from a Docker image. NOTE: If you specify your source code as inline text by specifying the ZipFile property within the Code property, specify index.function_name as the handler.
- runtime ( - Runtime) – The runtime environment for the Lambda function that you are uploading. For valid values, see the Runtime property in the AWS Lambda Developer Guide. Use- Runtime.FROM_IMAGEwhen defining a function from a Docker image.
 
- ExampleMetadata:
- fixture=default infused 
 - Example: - # Create or reference an existing L1 CfnApplicationInferenceProfile cfn_profile = aws_bedrock_cfn.CfnApplicationInferenceProfile(self, "CfnProfile", inference_profile_name="my-cfn-profile", model_source=aws_bedrock_cfn.CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty( copy_from=bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0.invokable_arn ), description="Profile created via L1 construct" ) # Import the L1 construct as an L2 ApplicationInferenceProfile imported_from_cfn = bedrock.ApplicationInferenceProfile.from_cfn_application_inference_profile(cfn_profile) # Grant permissions to use the imported profile lambda_function = lambda_.Function(self, "MyFunction", runtime=lambda_.Runtime.PYTHON_3_11, handler="index.handler", code=lambda_.Code.from_inline("def handler(event, context): return "Hello"") ) imported_from_cfn.grant_profile_usage(lambda_function) - Attributes - adot_instrumentation
- Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. - Default:
- No ADOT instrumentation 
 
- See:
 
 - allow_all_ipv6_outbound
- Whether to allow the Lambda to send all ipv6 network traffic. - If set to true, there will only be a single egress rule which allows all outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets using ipv6. - Do not specify this property if the - securityGroupsor- securityGroupproperty is set. Instead, configure- allowAllIpv6Outbounddirectly on the security group.- Default:
- false 
 
 - allow_all_outbound
- Whether to allow the Lambda to send all network traffic (except ipv6). - If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets. - Do not specify this property if the - securityGroupsor- securityGroupproperty is set. Instead, configure- allowAllOutbounddirectly on the security group.- Default:
- true 
 
 - allow_public_subnet
- Lambda Functions in a public subnet can NOT access the internet. - Use this property to acknowledge this limitation and still place the function in a public subnet. 
 - application_log_level
- (deprecated) Sets the application log level for the function. - Default:
- “INFO” 
- Deprecated:
- Use - applicationLogLevelV2as a property instead.
- Stability:
- deprecated 
 
 - application_log_level_v2
- Sets the application log level for the function. - Default:
- ApplicationLogLevel.INFO 
 
 - architecture
- The system architectures compatible with this lambda function. - Default:
- Architecture.X86_64 
 
 - code
- The source code of your Lambda function. - You can point to a file in an Amazon Simple Storage Service (Amazon S3) bucket or specify your source code as inline text. 
 - code_signing_config
- Code signing config associated with this function. - Default:
- Not Sign the Code 
 
 
 - current_version_options
- Options for the - lambda.Versionresource automatically created by the- fn.currentVersionmethod.- Default:
- default options as described in - VersionOptions
 
 
 - dead_letter_queue
- The SQS queue to use if DLQ is enabled. - If SNS topic is desired, specify - deadLetterTopicproperty instead.- Default:
- SQS queue with 14 day retention period if - deadLetterQueueEnabledis- true
 
 
 - dead_letter_queue_enabled
- Enabled DLQ. - If - deadLetterQueueis undefined, an SQS queue with default options will be defined for your Function.- Default:
- false unless - deadLetterQueueis set, which implies DLQ is enabled.
 
 
 - dead_letter_topic
- The SNS topic to use as a DLQ. - Note that if - deadLetterQueueEnabledis set to- true, an SQS queue will be created rather than an SNS topic. Using an SNS topic as a DLQ requires this property to be set explicitly.- Default:
- no SNS topic 
 
 
 - description
- A description of the function. - Default:
- No description. 
 
 
 - environment
- Key-value pairs that Lambda caches and makes available for your Lambda functions. - Use environment variables to apply configuration changes, such as test and production environment configurations, without changing your Lambda function source code. - Default:
- No environment variables. 
 
 
 - environment_encryption
- The AWS KMS key that’s used to encrypt your function’s environment variables. - Default:
- AWS Lambda creates and uses an AWS managed customer master key (CMK). 
 
 
 - ephemeral_storage_size
- The size of the function’s /tmp directory in MiB. - Default:
- 512 MiB 
 
 - events
- Event sources for this function. - You can also add event sources using - addEventSource.- Default:
- No event sources. 
 
 
 - filesystem
- The filesystem configuration for the lambda function. - Default:
- will not mount any filesystem 
 
 
 - function_name
- A name for the function. - Default:
 - AWS CloudFormation generates a unique physical ID and uses that 
 - ID for the function’s name. For more information, see Name Type. 
 - handler
- The name of the method within your code that Lambda calls to execute your function. - The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html. - Use - Handler.FROM_IMAGEwhen defining a function from a Docker image.- NOTE: If you specify your source code as inline text by specifying the ZipFile property within the Code property, specify index.function_name as the handler. 
 - initial_policy
- Initial policy statements to add to the created Lambda Role. - You can call - addToRolePolicyto the created lambda to add statements post creation.- Default:
- No policy statements are added to the created Lambda role. 
 
 
 - insights_version
- Specify the version of CloudWatch Lambda insights to use for monitoring. - Default:
- No Lambda Insights 
 
- See:
 
 - ipv6_allowed_for_dual_stack
- Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. - Only used if ‘vpc’ is supplied. - Default:
- false 
 
 - layers
- A list of layers to add to the function’s execution environment. - You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. - Default:
- No layers. 
 
 
 - log_format
- (deprecated) Sets the logFormat for the function. - Default:
- “Text” 
- Deprecated:
- Use - loggingFormatas a property instead.
- Stability:
- deprecated 
 
 - log_group
- The log group the function sends logs to. - By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. - Use the - logGroupproperty to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it.- Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. - Default:
- /aws/lambda/${this.functionName}- default log group created by Lambda
 
 - log_removal_policy
- (deprecated) Determine the removal policy of the log group that is auto-created by this construct. - Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. - Default:
- RemovalPolicy.Retain 
- Deprecated:
- use - logGroupinstead
- Stability:
- deprecated 
 
 - log_retention
- (deprecated) The number of days log events are kept in CloudWatch Logs. - When updating this property, unsetting it doesn’t remove the log retention policy. To remove the retention policy, set the value to - INFINITE.- This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with - logs.LogGroupand use the- logGroupproperty to instruct the Lambda function to send logs to it. Migrating from- logRetentionto- logGroupwill cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust.- In AWS CDK code, you can access the log group name directly from the LogGroup construct: - import aws_cdk.aws_logs as logs # my_log_group: logs.LogGroup my_log_group.log_group_name - Default:
- logs.RetentionDays.INFINITE 
- Deprecated:
- use - logGroupinstead
- Stability:
- deprecated 
 
 - log_retention_retry_options
- When log retention is specified, a custom resource attempts to create the CloudWatch log group. - These options control the retry policy when interacting with CloudWatch APIs. - This is a legacy API and we strongly recommend you migrate to - logGroupif you can.- logGroupallows you to create a fully customizable log group and instruct the Lambda function to send logs to it.- Default:
- Default AWS SDK retry options. 
 
 
 - log_retention_role
- The IAM role for the Lambda function associated with the custom resource that sets the retention policy. - This is a legacy API and we strongly recommend you migrate to - logGroupif you can.- logGroupallows you to create a fully customizable log group and instruct the Lambda function to send logs to it.- Default:
- A new role is created. 
 
 
 - logging_format
- Sets the loggingFormat for the function. - Default:
- LoggingFormat.TEXT 
 
 - max_event_age
- The maximum age of a request that Lambda sends to a function for processing. - Minimum: 60 seconds Maximum: 6 hours - Default:
- Duration.hours(6) 
 
 - memory_size
- The amount of memory, in MB, that is allocated to your Lambda function. - Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. - Default:
- 128 
 
 - on_failure
- The destination for failed invocations. - Default:
- no destination 
 
 
 - on_success
- The destination for successful invocations. - Default:
- no destination 
 
 
 - params_and_secrets
- Specify the configuration of Parameters and Secrets Extension. - Default:
- No Parameters and Secrets Extension 
 
- See:
 
 - profiling
- Enable profiling. - Default:
- No profiling. 
 
- See:
- https://docs.aws.amazon.com/codeguru/latest/profiler-ug/setting-up-lambda.html 
 
 - profiling_group
- Profiling Group. - Default:
- A new profiling group will be created if - profilingis set.
 
- See:
- https://docs.aws.amazon.com/codeguru/latest/profiler-ug/setting-up-lambda.html 
 
 - recursive_loop
- Sets the Recursive Loop Protection for Lambda Function. - It lets Lambda detect and terminate unintended recursive loops. - Default:
- RecursiveLoop.Terminate 
 
 - reserved_concurrent_executions
- The maximum of concurrent executions you want to reserve for the function. - Default:
- No specific limit - account limit. 
 
- See:
- https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html 
 
 - retry_attempts
- The maximum number of times to retry when the function returns an error. - Minimum: 0 Maximum: 2 - Default:
- 2 
 
 - role
- Lambda execution role. - This is the role that will be assumed by the function upon execution. It controls the permissions that the function will have. The Role must be assumable by the ‘lambda.amazonaws.com’ service principal. - The default Role automatically has permissions granted for Lambda execution. If you provide a Role, you must add the relevant AWS managed policies yourself. - The relevant managed policies are “service-role/AWSLambdaBasicExecutionRole” and “service-role/AWSLambdaVPCAccessExecutionRole”. - Default:
 - A unique role will be generated for this lambda function. 
 - Both supplied and generated roles can always be changed by calling - addToRolePolicy.
 - runtime
- The runtime environment for the Lambda function that you are uploading. - For valid values, see the Runtime property in the AWS Lambda Developer Guide. - Use - Runtime.FROM_IMAGEwhen defining a function from a Docker image.
 - runtime_management_mode
- Sets the runtime management configuration for a function’s version. - Default:
- Auto 
 
 - security_groups
- The list of security groups to associate with the Lambda’s network interfaces. - Only used if ‘vpc’ is supplied. - Default:
 - If the function is placed within a VPC and a security group is 
 - not specified, either by this or securityGroup prop, a dedicated security group will be created for this function. 
 - snap_start
- Enable SnapStart for Lambda Function. - SnapStart is currently supported for Java 11, Java 17, Python 3.12, Python 3.13, and .NET 8 runtime - Default:
- No snapstart 
 
 
 - system_log_level
- (deprecated) Sets the system log level for the function. - Default:
- “INFO” 
- Deprecated:
- Use - systemLogLevelV2as a property instead.
- Stability:
- deprecated 
 
 - system_log_level_v2
- Sets the system log level for the function. - Default:
- SystemLogLevel.INFO 
 
 - timeout
- The function execution time (in seconds) after which Lambda terminates the function. - Because the execution time affects cost, set this value based on the function’s expected execution time. - Default:
- Duration.seconds(3) 
 
 - tracing
- Enable AWS X-Ray Tracing for Lambda Function. - Default:
- Tracing.Disabled 
 
 - vpc
- VPC network to place Lambda network interfaces. - Specify this if the Lambda function needs to access resources in a VPC. This is required when - vpcSubnetsis specified.- Default:
- Function is not placed within a VPC. 
 
 
 - vpc_subnets
- Where to place the network interfaces within the VPC. - This requires - vpcto be specified in order for interfaces to actually be placed in the subnets. If- vpcis not specify, this will raise an error.- Note: Internet access for Lambda Functions requires a NAT Gateway, so picking public subnets is not allowed (unless - allowPublicSubnetis set to- true).- Default:
- the Vpc default strategy if not specified