Skip to content

FunctionCode

Source code in docs_src/capo_lambda/types/function_code.py
class FunctionCode(TypedDict, closed=True):
    zip_file: NotRequired["capo_lambda.types.blob.Blob"]
    """<p>The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you.</p>"""
    s3_bucket: NotRequired["capo_lambda.types.s3_bucket.S3Bucket"]
    """<p>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.</p>"""
    s3_key: NotRequired["capo_lambda.types.s3_key.S3Key"]
    """<p>The Amazon S3 key of the deployment package.</p>"""
    s3_object_version: NotRequired[
        "capo_lambda.types.s3_object_version.S3ObjectVersion"
    ]
    """<p>For versioned objects, the version of the deployment package object to use.</p>"""
    s3_object_storage_mode: NotRequired[
        "capo_lambda.types.s3_object_storage_mode.S3ObjectStorageMode"
    ]
    """<p>Specifies how the deployment package is stored. Valid values:</p> <ul> <li> <p> <code>COPY</code> (default) – Uploads a copy of your deployment package to Lambda.</p> </li> <li> <p> <code>REFERENCE</code> – Lambda references the deployment package from the specified Amazon S3 bucket.</p> </li> </ul>"""
    image_uri: NotRequired["capo_lambda.types.string.String"]
    """<p>URI of a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container image</a> in the Amazon ECR registry.</p>"""
    source_kms_key_arn: NotRequired["capo_lambda.types.kms_key_arn.KMSKeyArn"]
    """<p>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 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services owned key</a>.</p>"""

image_uri instance-attribute

image_uri: NotRequired[String]

URI of a container image in the Amazon ECR registry.

s3_bucket instance-attribute

s3_bucket: NotRequired[S3Bucket]

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 instance-attribute

s3_key: NotRequired[S3Key]

The Amazon S3 key of the deployment package.

s3_object_storage_mode instance-attribute

s3_object_storage_mode: NotRequired[S3ObjectStorageMode]

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 instance-attribute

s3_object_version: NotRequired[S3ObjectVersion]

For versioned objects, the version of the deployment package object to use.

source_kms_key_arn instance-attribute

source_kms_key_arn: NotRequired[KMSKeyArn]

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 instance-attribute

zip_file: NotRequired[Blob]

The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you.