@Generated(value="jsii-pacmak/1.24.0 (build b722f66)", date="2021-03-11T13:46:44.527Z") @Stability(value=Stable) public class AssetCode extends Code
| Modifier | Constructor and Description |
|---|---|
protected |
AssetCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AssetCode(software.amazon.jsii.JsiiObjectRef objRef) |
|
AssetCode(String path) |
|
AssetCode(String path,
AssetOptions options) |
| Modifier and Type | Method and Description |
|---|---|
CodeConfig |
bind(Construct scope)
Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun.
|
void |
bindToResource(CfnResource resource)
Called after the CFN function resource has been created to allow the code class to bind to it.
|
void |
bindToResource(CfnResource resource,
ResourceBindOptions options)
Called after the CFN function resource has been created to allow the code class to bind to it.
|
Boolean |
getIsInline()
Determines whether this Code is inline code or not.
|
String |
getPath()
The path to the asset file or directory.
|
asset, bucket, bucket, cfnParameters, cfnParameters, fromAsset, fromAsset, fromAssetImage, fromAssetImage, fromBucket, fromBucket, fromCfnParameters, fromCfnParameters, fromDockerBuild, fromDockerBuild, fromEcrImage, fromEcrImage, fromInline, inlinejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AssetCode(software.amazon.jsii.JsiiObjectRef objRef)
protected AssetCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public AssetCode(@NotNull
String path,
@Nullable
AssetOptions options)
path - The path to the asset file or directory. This parameter is required.options - @Stability(value=Stable)
public AssetCode(@NotNull
String path)
path - The path to the asset file or directory. This parameter is required.@Stability(value=Stable) @NotNull public CodeConfig bind(@NotNull Construct scope)
@Stability(value=Stable)
public void bindToResource(@NotNull
CfnResource resource,
@Nullable
ResourceBindOptions options)
Specifically it's required to allow assets to add metadata for tooling like SAM CLI to be able to find their origins.
bindToResource in class Coderesource - This parameter is required.options - @Stability(value=Stable)
public void bindToResource(@NotNull
CfnResource resource)
Specifically it's required to allow assets to add metadata for tooling like SAM CLI to be able to find their origins.
bindToResource in class Coderesource - This parameter is required.@Stability(value=Stable) @NotNull public Boolean getIsInline()
getIsInline in class Code@Stability(value=Stable) @NotNull public String getPath()
Copyright © 2021. All rights reserved.