BundlingOutput

class aws_cdk.core.BundlingOutput(value)

Bases: Enum

The type of output that a bundling operation is producing.

ExampleMetadata:

infused

Example:

asset = assets.Asset(self, "BundledAsset",
    path="/path/to/asset",
    bundling=BundlingOptions(
        image=DockerImage.from_registry("alpine"),
        command=["command-that-produces-an-archive.sh"],
        output_type=BundlingOutput.NOT_ARCHIVED
    )
)

Attributes

ARCHIVED

The bundling output directory includes a single .zip or .jar file which will be used as the final bundle. If the output directory does not include exactly a single archive, bundling will fail.

AUTO_DISCOVER

If the bundling output directory contains a single archive file (zip or jar) it will be used as the bundle output as-is.

Otherwise all the files in the bundling output directory will be zipped.

NOT_ARCHIVED

The bundling output directory contains one or more files which will be archived and uploaded as a .zip file to S3.