@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.377Z") @Stability(value=Stable) public class AssetImageCode extends Code
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.ecr.assets.*;
import software.amazon.awscdk.services.lambda.*;
NetworkMode networkMode;
Platform platform;
AssetImageCode assetImageCode = AssetImageCode.Builder.create("directory")
.buildArgs(Map.of(
"buildArgsKey", "buildArgs"))
.cmd(List.of("cmd"))
.entrypoint(List.of("entrypoint"))
.exclude(List.of("exclude"))
.extraHash("extraHash")
.file("file")
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.invalidation(DockerImageAssetInvalidationOptions.builder()
.buildArgs(false)
.extraHash(false)
.file(false)
.networkMode(false)
.platform(false)
.repositoryName(false)
.target(false)
.build())
.networkMode(networkMode)
.platform(platform)
.target("target")
.workingDirectory("workingDirectory")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
AssetImageCode.Builder
A fluent builder for
AssetImageCode. |
| Modifier | Constructor and Description |
|---|---|
protected |
AssetImageCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AssetImageCode(software.amazon.jsii.JsiiObjectRef objRef) |
|
AssetImageCode(String directory,
AssetImageCodeProps props) |
| Modifier and Type | Method and Description |
|---|---|
CodeConfig |
bind(software.constructs.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.
|
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 AssetImageCode(software.amazon.jsii.JsiiObjectRef objRef)
protected AssetImageCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public AssetImageCode(@NotNull
String directory,
@NotNull
AssetImageCodeProps props)
directory - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public CodeConfig bind(@NotNull software.constructs.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()
Copyright © 2022. All rights reserved.