@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:54.507Z")
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(java.lang.String directory)
Create an ECR image from the specified asset and bind it as the Lambda code.
|
static DockerImageCode |
fromImageAsset(java.lang.String directory,
AssetImageCodeProps props)
Create an ECR image from the specified asset and bind it as the Lambda code.
|
protected DockerImageCode(software.amazon.jsii.JsiiObjectRef objRef)
protected DockerImageCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected DockerImageCode()
public static DockerImageCode fromEcr(IRepository repository, EcrImageCodeProps props)
repository
- the ECR repository that the image is in. This parameter is required.props
- properties to further configure the selected image.public static DockerImageCode fromEcr(IRepository repository)
repository
- the ECR repository that the image is in. This parameter is required.public static DockerImageCode fromImageAsset(java.lang.String directory, AssetImageCodeProps props)
directory
- the directory from which the asset must be created. This parameter is required.props
- properties to further configure the selected image.public static DockerImageCode fromImageAsset(java.lang.String directory)
directory
- the directory from which the asset must be created. This parameter is required.