LambdaFunctionProviderProps

class aws_cdk.integ_tests_alpha.LambdaFunctionProviderProps(*, provider_log_level=None, handler=None, log_retention=None)

Bases: ProviderOptions

(experimental) Properties for a lambda function provider.

Parameters:
  • provider_log_level (Optional[ApplicationLogLevel]) – (experimental) The log level of the provider lambda function. Default: ApplicationLogLevel.FATAL

  • handler (Optional[str]) – (experimental) The handler to use for the lambda function. Default: index.handler

  • log_retention (Optional[RetentionDays]) – (experimental) How long, in days, the log contents will be retained. Default: - no retention days specified

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.integ_tests_alpha as integ_tests_alpha
from aws_cdk import aws_lambda as lambda_
from aws_cdk import aws_logs as logs

lambda_function_provider_props = integ_tests_alpha.LambdaFunctionProviderProps(
    handler="handler",
    log_retention=logs.RetentionDays.ONE_DAY,
    provider_log_level=lambda_.ApplicationLogLevel.INFO
)

Attributes

handler

(experimental) The handler to use for the lambda function.

Default:

index.handler

Stability:

experimental

log_retention

(experimental) How long, in days, the log contents will be retained.

Default:
  • no retention days specified

Stability:

experimental

provider_log_level

(experimental) The log level of the provider lambda function.

Default:

ApplicationLogLevel.FATAL

Stability:

experimental