CodeConfig

class aws_cdk.aws_lambda.CodeConfig(*, image=None, inline_code=None, s3_location=None)

Bases: object

Result of binding Code into a Function.

Parameters
  • image (Optional[CodeImageConfig]) – Docker image configuration (mutually exclusive with s3Location and inlineCode). Default: - code is not an ECR container image

  • inline_code (Optional[str]) – Inline code (mutually exclusive with s3Location and image). Default: - code is not inline code

  • s3_location (Optional[Location]) – The location of the code in S3 (mutually exclusive with inlineCode and image). Default: - code is not an s3 location

Attributes

image

Docker image configuration (mutually exclusive with s3Location and inlineCode).

Default
  • code is not an ECR container image

Return type

Optional[CodeImageConfig]

inline_code

Inline code (mutually exclusive with s3Location and image).

Default
  • code is not inline code

Return type

Optional[str]

s3_location

The location of the code in S3 (mutually exclusive with inlineCode and image).

Default
  • code is not an s3 location

Return type

Optional[Location]