Class ImageConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.ImageConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ImageConfiguration>
- Enclosing interface:
- ImageConfiguration
@Stability(Experimental)
public static final class ImageConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<ImageConfiguration>
A builder for
ImageConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.environment(Map<String, String> environment) Sets the value ofImageConfiguration.getEnvironment()Sets the value ofImageConfiguration.getPort()startCommand(String startCommand) Sets the value ofImageConfiguration.getStartCommand()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
environment
@Stability(Experimental) public ImageConfiguration.Builder environment(Map<String, String> environment) Sets the value ofImageConfiguration.getEnvironment()- Parameters:
environment- Environment variables that are available to your running App Runner service.- Returns:
this
-
port
Sets the value ofImageConfiguration.getPort()- Parameters:
port- The port that your application listens to in the container.- Returns:
this
-
startCommand
Sets the value ofImageConfiguration.getStartCommand()- Parameters:
startCommand- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ImageConfiguration>- Returns:
- a new instance of
ImageConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-