Interface ImageConfiguration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ImageConfiguration.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:49.384Z")
@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.iam.*;
Service service = Service.Builder.create(this, "Service")
.source(Source.fromEcrPublic(EcrPublicProps.builder()
.imageConfiguration(ImageConfiguration.builder().port(8000).build())
.imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest")
.build()))
.build();
service.addToRolePolicy(PolicyStatement.Builder.create()
.effect(Effect.ALLOW)
.actions(List.of("s3:GetObject"))
.resources(List.of("*"))
.build());
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forImageConfigurationstatic final classAn implementation forImageConfiguration -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageConfiguration.Builderbuilder()Deprecated.use environmentVariables.(experimental) Environment secrets that are available to your running App Runner service.(experimental) Environment variables that are available to your running App Runner service.default NumbergetPort()(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
Deprecated.use environmentVariables.(deprecated) Environment variables that are available to your running App Runner service.Default: - no environment variables
-
getEnvironmentSecrets
(experimental) Environment secrets that are available to your running App Runner service.Default: - no environment secrets
-
getEnvironmentVariables
(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.BuilderofImageConfiguration
-