Interface ImageConfiguration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ImageConfiguration.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.054Z")
@Stability(Experimental)
public interface ImageConfiguration
extends software.amazon.jsii.JsiiSerializable
(experimental) Describes the configuration that AWS App Runner uses to run an App Runner service using an image pulled from a source image repository.
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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forImageConfiguration
static final class
An implementation forImageConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageConfiguration.Builder
builder()
(experimental) Environment variables that are available to your running App Runner service.default Number
getPort()
(experimental) The port that your application listens to in the container.default String
(experimental) An optional command that App Runner runs to start the application in the source image.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEnvironment
(experimental) Environment variables that are available to your running App Runner service.Default: - no environment variables
-
getPort
(experimental) The port that your application listens to in the container.Default: 8080
-
getStartCommand
(experimental) An optional command that App Runner runs to start the application in the source image.If specified, this command overrides the Docker image’s default start command.
Default: - no start command
-
builder
- Returns:
- a
ImageConfiguration.Builder
ofImageConfiguration
-