Interface AssetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AssetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.539Z")
@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()))
.autoDeploymentsEnabled(true)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAssetPropsstatic final classAn implementation forAssetProps -
Method Summary
Modifier and TypeMethodDescriptionstatic AssetProps.Builderbuilder()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.BuilderofAssetProps
-