@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:21.484Z") @Stability(value=Experimental) public class AssetCode extends Code
| Modifier and Type | Class and Description |
|---|---|
static class |
AssetCode.Builder
(experimental) A fluent builder for
AssetCode. |
| 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(software.constructs.Construct scope)
(experimental) 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)
(experimental) Called after the CFN function resource has been created to allow the code class to bind to it.
|
void |
bindToResource(CfnResource resource,
ResourceBindOptions options)
(experimental) Called after the CFN function resource has been created to allow the code class to bind to it.
|
Boolean |
getIsInline()
(experimental) Determines whether this Code is inline code or not.
|
String |
getPath()
(experimental) The path to the asset file or directory.
|
fromAsset, fromAsset, fromAssetImage, fromAssetImage, fromBucket, fromBucket, fromCfnParameters, fromCfnParameters, fromDockerBuild, fromDockerBuild, fromEcrImage, fromEcrImage, fromInlinejsiiAsyncCall, 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=Experimental)
public AssetCode(@NotNull
String path,
@Nullable
AssetOptions options)
path - The path to the asset file or directory. This parameter is required.options - @Stability(value=Experimental)
public AssetCode(@NotNull
String path)
path - The path to the asset file or directory. This parameter is required.@Stability(value=Experimental) @NotNull public CodeConfig bind(@NotNull software.constructs.Construct scope)
@Stability(value=Experimental)
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=Experimental)
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=Experimental) @NotNull public Boolean getIsInline()
@Stability(value=Experimental) @NotNull public String getPath()
Copyright © 2021. All rights reserved.