@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-10T17:05:56.503Z") @Stability(value=Stable) public abstract class DockerImageCode extends software.amazon.jsii.JsiiObject
Example:
DockerImageFunction.Builder.create(this, "AssetFunction")
.code(DockerImageCode.fromImageAsset(join(__dirname, "docker-handler")))
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
DockerImageCode() |
protected |
DockerImageCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DockerImageCode(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static DockerImageCode |
fromEcr(IRepository repository)
Use an existing ECR image as the Lambda code.
|
static DockerImageCode |
fromEcr(IRepository repository,
EcrImageCodeProps props)
Use an existing ECR image as the Lambda code.
|
static DockerImageCode |
fromImageAsset(String directory)
Create an ECR image from the specified asset and bind it as the Lambda code.
|
static DockerImageCode |
fromImageAsset(String directory,
AssetImageCodeProps props)
Create an ECR image from the specified asset and bind it as the Lambda code.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected DockerImageCode(software.amazon.jsii.JsiiObjectRef objRef)
protected DockerImageCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected DockerImageCode()
@Stability(value=Stable) @NotNull public static DockerImageCode fromEcr(@NotNull IRepository repository, @Nullable EcrImageCodeProps props)
repository - the ECR repository that the image is in. This parameter is required.props - properties to further configure the selected image.@Stability(value=Stable) @NotNull public static DockerImageCode fromEcr(@NotNull IRepository repository)
repository - the ECR repository that the image is in. This parameter is required.@Stability(value=Stable) @NotNull public static DockerImageCode fromImageAsset(@NotNull String directory, @Nullable AssetImageCodeProps props)
directory - the directory from which the asset must be created. This parameter is required.props - properties to further configure the selected image.@Stability(value=Stable) @NotNull public static DockerImageCode fromImageAsset(@NotNull String directory)
directory - the directory from which the asset must be created. This parameter is required.Copyright © 2023. All rights reserved.