Class BundlingOutput
The type of output that a bundling operation is producing.
Inheritance
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class BundlingOutput : Enum
Syntax (vb)
Public NotInheritable Class BundlingOutput
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK;
var asset = new Asset(this, "BundledAsset", new AssetProps {
Path = "/path/to/asset",
Bundling = new BundlingOptions {
Image = DockerImage.FromRegistry("alpine"),
Command = new [] { "command-that-produces-an-archive.sh" },
OutputType = BundlingOutput.NOT_ARCHIVED
}
});
Synopsis
Fields
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. |
NOT_ARCHIVED | The bundling output directory contains one or more files which will be archived and uploaded as a .zip file to S3. |
SINGLE_FILE | The bundling output directory includes a single file which will be used as the final bundle. |
value__ |
Fields
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.
public const BundlingOutput ARCHIVED
Field Value
Type | Description |
---|---|
BundlingOutput |
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.
public const BundlingOutput AUTO_DISCOVER
Field Value
Type | Description |
---|---|
BundlingOutput |
Remarks
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.
public const BundlingOutput NOT_ARCHIVED
Field Value
Type | Description |
---|---|
BundlingOutput |
SINGLE_FILE
The bundling output directory includes a single file which will be used as the final bundle.
public const BundlingOutput SINGLE_FILE
Field Value
Type | Description |
---|---|
BundlingOutput |
Remarks
If the output directory does not include exactly a single file, bundling will fail.
Similar to ARCHIVED but for non-archive files
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |