Skip to content

Lambda  >  Structures  >  LayerVersionContentInput

LayerVersionContentInput

Structure Class

LayerVersionContentInput dataclass

A ZIP archive that contains the contents of an Lambda layer. You can specify either an Amazon S3 location, or upload a layer archive directly.

Attributes

s3_bucket class-attribute instance-attribute
s3_bucket: str | None = None

The Amazon S3 bucket of the layer archive.

s3_key class-attribute instance-attribute
s3_key: str | None = None

The Amazon S3 key of the layer archive.

s3_object_storage_mode class-attribute instance-attribute
s3_object_storage_mode: S3ObjectStorageMode | None = None

Specifies how the layer archive is stored. Valid values:

  • COPY (default) -- Uploads a copy of your layer archive to Lambda.

  • REFERENCE -- Lambda references the layer archive 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 layer archive object to use.

zip_file class-attribute instance-attribute
zip_file: bytes | None = field(repr=False, default=None)

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