FunctionCode¶
Structure Class¶
FunctionCode
dataclass
¶
The code for the Lambda function. You can either specify an object in Amazon S3, upload a .zip file archive deployment package directly, or specify the URI of a container image.
Attributes¶
image_uri
class-attribute
instance-attribute
¶
image_uri: str | None = None
URI of a container image in the Amazon ECR registry.
s3_bucket
class-attribute
instance-attribute
¶
s3_bucket: str | None = None
An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account.
s3_key
class-attribute
instance-attribute
¶
s3_key: str | None = None
The Amazon S3 key of the deployment package.
s3_object_storage_mode
class-attribute
instance-attribute
¶
s3_object_storage_mode: S3ObjectStorageMode | None = None
Specifies how the deployment package is stored. Valid values:
-
COPY(default) -- Uploads a copy of your deployment package to Lambda. -
REFERENCE-- Lambda references the deployment package from the specified Amazon S3 bucket.
s3_object_version
class-attribute
instance-attribute
¶
s3_object_version: str | None = None
For versioned objects, the version of the deployment package object to use.
source_kms_key_arn
class-attribute
instance-attribute
¶
source_kms_key_arn: str | None = None
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key.
zip_file
class-attribute
instance-attribute
¶
zip_file: bytes | None = field(repr=False, default=None)
The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you.