@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)",
date="2022-06-22T23:27:55.848Z")
public interface AssetProps
Example:
import software.amazon.awscdk.services.ecr.assets.*; DockerImageAsset imageAsset = DockerImageAsset.Builder.create(this, "ImageAssets") .directory(join(__dirname, "./docker.assets")) .build(); Service.Builder.create(this, "Service") .source(Source.fromAsset(AssetProps.builder() .imageConfiguration(ImageConfiguration.builder().port(8000).build()) .asset(imageAsset) .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
AssetProps.Builder
A builder for
AssetProps |
static class |
AssetProps.Jsii$Proxy
An implementation for
AssetProps |
Modifier and Type | Method and Description |
---|---|
static AssetProps.Builder |
builder() |
DockerImageAsset |
getAsset()
(experimental) Represents the docker image asset.
|
default ImageConfiguration |
getImageConfiguration()
(experimental) The image configuration for the image built from the asset.
|
DockerImageAsset getAsset()
default ImageConfiguration getImageConfiguration()
Default: - no image configuration will be passed. The default `port` will be 8080.
static AssetProps.Builder builder()
AssetProps.Builder
of AssetProps