-
Notifications
You must be signed in to change notification settings - Fork 17
/
awscdk_BundlingOutput.go
35 lines (31 loc) · 1.33 KB
/
awscdk_BundlingOutput.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// An experiment to bundle the entire CDK into a single module
package awscdk
// The type of output that a bundling operation is producing.
//
// Example:
// asset := assets.NewAsset(this, jsii.String("BundledAsset"), &assetProps{
// path: jsii.String("/path/to/asset"),
// bundling: &bundlingOptions{
// image: awscdk.DockerImage.fromRegistry(jsii.String("alpine")),
// command: []*string{
// jsii.String("command-that-produces-an-archive.sh"),
// },
// outputType: awscdk.BundlingOutput_NOT_ARCHIVED,
// },
// })
//
// Experimental.
type BundlingOutput string
const (
// 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.
// Experimental.
BundlingOutput_ARCHIVED BundlingOutput = "ARCHIVED"
// The bundling output directory contains one or more files which will be archived and uploaded as a .zip file to S3.
// Experimental.
BundlingOutput_NOT_ARCHIVED BundlingOutput = "NOT_ARCHIVED"
// 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.
// Experimental.
BundlingOutput_AUTO_DISCOVER BundlingOutput = "AUTO_DISCOVER"
)