Interface AssetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AssetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.982Z")
@Stability(Experimental)
public interface AssetProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties of the image repository for
Source.fromAsset()
.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAssetProps
static final class
An implementation forAssetProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssetProps.Builder
builder()
getAsset()
(experimental) Represents the docker image asset.default ImageConfiguration
(experimental) The image configuration for the image built from the asset.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAsset
(experimental) Represents the docker image asset. -
getImageConfiguration
(experimental) The image configuration for the image built from the asset.Default: - no image configuration will be passed. The default `port` will be 8080.
- See Also:
-
builder
- Returns:
- a
AssetProps.Builder
ofAssetProps
-