Class CfnService.ImageConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.ImageConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.ImageConfigurationProperty>
- Enclosing interface:
- CfnService.ImageConfigurationProperty
@Stability(Stable)
public static final class CfnService.ImageConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.ImageConfigurationProperty>
A builder for
CfnService.ImageConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnService.ImageConfigurationProperty.getPort()runtimeEnvironmentSecrets(List<? extends Object> runtimeEnvironmentSecrets) Sets the value ofCfnService.ImageConfigurationProperty.getRuntimeEnvironmentSecrets()runtimeEnvironmentSecrets(IResolvable runtimeEnvironmentSecrets) Sets the value ofCfnService.ImageConfigurationProperty.getRuntimeEnvironmentSecrets()runtimeEnvironmentVariables(List<? extends Object> runtimeEnvironmentVariables) Sets the value ofCfnService.ImageConfigurationProperty.getRuntimeEnvironmentVariables()runtimeEnvironmentVariables(IResolvable runtimeEnvironmentVariables) Sets the value ofCfnService.ImageConfigurationProperty.getRuntimeEnvironmentVariables()startCommand(String startCommand) Sets the value ofCfnService.ImageConfigurationProperty.getStartCommand()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
port
Sets the value ofCfnService.ImageConfigurationProperty.getPort()- Parameters:
port- The port that your application listens to in the container. Default:8080- Returns:
this
-
runtimeEnvironmentSecrets
@Stability(Stable) public CfnService.ImageConfigurationProperty.Builder runtimeEnvironmentSecrets(IResolvable runtimeEnvironmentSecrets) Sets the value ofCfnService.ImageConfigurationProperty.getRuntimeEnvironmentSecrets()- Parameters:
runtimeEnvironmentSecrets-CfnService.ImageConfigurationProperty.RuntimeEnvironmentSecrets.- Returns:
this
-
runtimeEnvironmentSecrets
@Stability(Stable) public CfnService.ImageConfigurationProperty.Builder runtimeEnvironmentSecrets(List<? extends Object> runtimeEnvironmentSecrets) Sets the value ofCfnService.ImageConfigurationProperty.getRuntimeEnvironmentSecrets()- Parameters:
runtimeEnvironmentSecrets-CfnService.ImageConfigurationProperty.RuntimeEnvironmentSecrets.- Returns:
this
-
runtimeEnvironmentVariables
@Stability(Stable) public CfnService.ImageConfigurationProperty.Builder runtimeEnvironmentVariables(IResolvable runtimeEnvironmentVariables) Sets the value ofCfnService.ImageConfigurationProperty.getRuntimeEnvironmentVariables()- Parameters:
runtimeEnvironmentVariables- Environment variables that are available to your running App Runner service. An array of key-value pairs.- Returns:
this
-
runtimeEnvironmentVariables
@Stability(Stable) public CfnService.ImageConfigurationProperty.Builder runtimeEnvironmentVariables(List<? extends Object> runtimeEnvironmentVariables) Sets the value ofCfnService.ImageConfigurationProperty.getRuntimeEnvironmentVariables()- Parameters:
runtimeEnvironmentVariables- Environment variables that are available to your running App Runner service. An array of key-value pairs.- Returns:
this
-
startCommand
@Stability(Stable) public CfnService.ImageConfigurationProperty.Builder startCommand(String startCommand) Sets the value ofCfnService.ImageConfigurationProperty.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<CfnService.ImageConfigurationProperty>- Returns:
- a new instance of
CfnService.ImageConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-