@Generated(value="jsii-pacmak/0.7.8 (build 100f5ad)", date="2018-10-26T17:58:07.461Z") public class AssetCode extends Code
| Modifier | Constructor and Description |
|---|---|
protected |
AssetCode(software.amazon.jsii.JsiiObject.InitializationMode mode) |
|
AssetCode(String path) |
|
AssetCode(String path,
software.amazon.awscdk.assets.AssetPackaging packaging) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Function lambda)
Called when the lambda is initialized to allow this object to
bind to the stack, add resources and have fun.
|
software.amazon.awscdk.assets.AssetPackaging |
getPackaging()
The asset packaging.
|
String |
getPath()
The path to the asset file or directory.
|
FunctionResource.CodeProperty |
toJSON()
Called during stack synthesis to render the CodePropery for the
Lambda function.
|
asset, bucket, bucket, directory, file, inlineprotected AssetCode(software.amazon.jsii.JsiiObject.InitializationMode mode)
public AssetCode(String path, @Nullable software.amazon.awscdk.assets.AssetPackaging packaging)
path - The path to the asset file or directory.packaging - The asset packaging format (optional, determined automatically)public AssetCode(String path)
path - The path to the asset file or directory.public void bind(Function lambda)
public FunctionResource.CodeProperty toJSON()
public software.amazon.awscdk.assets.AssetPackaging getPackaging()
public String getPath()
Copyright © 2018. All rights reserved.