@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:42.511Z") @Stability(value=Experimental) public interface AssetProps extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.core.*;
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.
|
@Stability(value=Experimental) @NotNull DockerImageAsset getAsset()
@Stability(value=Experimental) @Nullable default ImageConfiguration getImageConfiguration()
Default: - no image configuration will be passed. The default `port` will be 8080.
@Stability(value=Experimental) static AssetProps.Builder builder()
AssetProps.Builder of AssetPropsCopyright © 2022. All rights reserved.