Class ImageConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.environment
(Map<String, String> environment) Deprecated.use environmentVariables.environmentSecrets
(Map<String, ? extends Secret> environmentSecrets) Sets the value ofImageConfiguration.getEnvironmentSecrets()
environmentVariables
(Map<String, String> environmentVariables) Sets the value ofImageConfiguration.getEnvironmentVariables()
Sets the value ofImageConfiguration.getPort()
startCommand
(String startCommand) Sets the value ofImageConfiguration.getStartCommand()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
environment
@Stability(Deprecated) @Deprecated public ImageConfiguration.Builder environment(Map<String, String> environment) Deprecated.use environmentVariables.Sets the value ofImageConfiguration.getEnvironment()
- Parameters:
environment
- Environment variables that are available to your running App Runner service.- Returns:
this
-
environmentSecrets
@Stability(Experimental) public ImageConfiguration.Builder environmentSecrets(Map<String, ? extends Secret> environmentSecrets) Sets the value ofImageConfiguration.getEnvironmentSecrets()
- Parameters:
environmentSecrets
- Environment secrets that are available to your running App Runner service.- Returns:
this
-
environmentVariables
@Stability(Experimental) public ImageConfiguration.Builder environmentVariables(Map<String, String> environmentVariables) Sets the value ofImageConfiguration.getEnvironmentVariables()
- Parameters:
environmentVariables
- 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:
build
in interfacesoftware.amazon.jsii.Builder<ImageConfiguration>
- Returns:
- a new instance of
ImageConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-