CfnFunctionProps

class aws_cdk.aws_lambda.CfnFunctionProps(*, code, handler, role, runtime, dead_letter_config=None, description=None, environment=None, function_name=None, kms_key_arn=None, layers=None, memory_size=None, reserved_concurrent_executions=None, tags=None, timeout=None, tracing_config=None, vpc_config=None)

Bases: object

__init__(*, code, handler, role, runtime, dead_letter_config=None, description=None, environment=None, function_name=None, kms_key_arn=None, layers=None, memory_size=None, reserved_concurrent_executions=None, tags=None, timeout=None, tracing_config=None, vpc_config=None)

Properties for defining a AWS::Lambda::Function.

Parameters
  • code (Union[CodeProperty, IResolvable]) – AWS::Lambda::Function.Code.

  • handler (str) – AWS::Lambda::Function.Handler.

  • role (str) – AWS::Lambda::Function.Role.

  • runtime (str) – AWS::Lambda::Function.Runtime.

  • dead_letter_config (Union[IResolvable, None, DeadLetterConfigProperty]) – AWS::Lambda::Function.DeadLetterConfig.

  • description (Optional[str]) – AWS::Lambda::Function.Description.

  • environment (Union[IResolvable, None, EnvironmentProperty]) – AWS::Lambda::Function.Environment.

  • function_name (Optional[str]) – AWS::Lambda::Function.FunctionName.

  • kms_key_arn (Optional[str]) – AWS::Lambda::Function.KmsKeyArn.

  • layers (Optional[List[str]]) – AWS::Lambda::Function.Layers.

  • memory_size (Union[int, float, None]) – AWS::Lambda::Function.MemorySize.

  • reserved_concurrent_executions (Union[int, float, None]) – AWS::Lambda::Function.ReservedConcurrentExecutions.

  • tags (Optional[List[CfnTag]]) – AWS::Lambda::Function.Tags.

  • timeout (Union[int, float, None]) – AWS::Lambda::Function.Timeout.

  • tracing_config (Union[IResolvable, None, TracingConfigProperty]) – AWS::Lambda::Function.TracingConfig.

  • vpc_config (Union[IResolvable, None, VpcConfigProperty]) – AWS::Lambda::Function.VpcConfig.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html

Attributes

code

AWS::Lambda::Function.Code.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code

Return type

Union[CodeProperty, IResolvable]

dead_letter_config

AWS::Lambda::Function.DeadLetterConfig.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig

Return type

Union[IResolvable, None, DeadLetterConfigProperty]

description

AWS::Lambda::Function.Description.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-description

Return type

Optional[str]

environment

AWS::Lambda::Function.Environment.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment

Return type

Union[IResolvable, None, EnvironmentProperty]

function_name

AWS::Lambda::Function.FunctionName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-functionname

Return type

Optional[str]

handler

AWS::Lambda::Function.Handler.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler

Return type

str

kms_key_arn

AWS::Lambda::Function.KmsKeyArn.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-kmskeyarn

Return type

Optional[str]

layers

AWS::Lambda::Function.Layers.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-layers

Return type

Optional[List[str]]

memory_size

AWS::Lambda::Function.MemorySize.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-memorysize

Return type

Union[int, float, None]

reserved_concurrent_executions

AWS::Lambda::Function.ReservedConcurrentExecutions.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-reservedconcurrentexecutions

Return type

Union[int, float, None]

role

AWS::Lambda::Function.Role.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-role

Return type

str

runtime

AWS::Lambda::Function.Runtime.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime

Return type

str

tags

AWS::Lambda::Function.Tags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tags

Return type

Optional[List[CfnTag]]

timeout

AWS::Lambda::Function.Timeout.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout

Return type

Union[int, float, None]

tracing_config

AWS::Lambda::Function.TracingConfig.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig

Return type

Union[IResolvable, None, TracingConfigProperty]

vpc_config

AWS::Lambda::Function.VpcConfig.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig

Return type

Union[IResolvable, None, VpcConfigProperty]