CfnFunctionProps

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

Bases: object

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, DeadLetterConfigProperty, None]) – AWS::Lambda::Function.DeadLetterConfig.

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

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

  • file_system_configs (Union[IResolvable, List[Union[IResolvable, FileSystemConfigProperty]], None]) – AWS::Lambda::Function.FileSystemConfigs.

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

  • image_config (Union[IResolvable, ImageConfigProperty, None]) – AWS::Lambda::Function.ImageConfig.

  • 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.

  • package_type (Optional[str]) – AWS::Lambda::Function.PackageType.

  • 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, TracingConfigProperty, None]) – AWS::Lambda::Function.TracingConfig.

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

See

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

Attributes

code

AWS::Lambda::Function.Code.

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

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

Return type

Union[IResolvable, DeadLetterConfigProperty, None]

description

AWS::Lambda::Function.Description.

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

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

Return type

Union[IResolvable, EnvironmentProperty, None]

file_system_configs

AWS::Lambda::Function.FileSystemConfigs.

See

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

Return type

Union[IResolvable, List[Union[IResolvable, FileSystemConfigProperty]], None]

function_name

AWS::Lambda::Function.FunctionName.

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

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

Return type

str

image_config

AWS::Lambda::Function.ImageConfig.

See

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

Return type

Union[IResolvable, ImageConfigProperty, None]

kms_key_arn

AWS::Lambda::Function.KmsKeyArn.

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

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

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

Return type

Union[int, float, None]

package_type

AWS::Lambda::Function.PackageType.

See

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

Return type

Optional[str]

reserved_concurrent_executions

AWS::Lambda::Function.ReservedConcurrentExecutions.

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

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

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

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

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

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

Return type

Union[IResolvable, TracingConfigProperty, None]

vpc_config

AWS::Lambda::Function.VpcConfig.

See

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

Return type

Union[IResolvable, VpcConfigProperty, None]