Class CfnService.CodeConfigurationValuesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.CodeConfigurationValuesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.CodeConfigurationValuesProperty>
- Enclosing interface:
- CfnService.CodeConfigurationValuesProperty
@Stability(Stable)
public static final class CfnService.CodeConfigurationValuesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.CodeConfigurationValuesProperty>
A builder for
CfnService.CodeConfigurationValuesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.buildCommand(String buildCommand) Sets the value ofCfnService.CodeConfigurationValuesProperty.getBuildCommand()Sets the value ofCfnService.CodeConfigurationValuesProperty.getPort()Sets the value ofCfnService.CodeConfigurationValuesProperty.getRuntime()runtimeEnvironmentSecrets(List<? extends Object> runtimeEnvironmentSecrets) runtimeEnvironmentSecrets(IResolvable runtimeEnvironmentSecrets) runtimeEnvironmentVariables(List<? extends Object> runtimeEnvironmentVariables) runtimeEnvironmentVariables(IResolvable runtimeEnvironmentVariables) startCommand(String startCommand) Sets the value ofCfnService.CodeConfigurationValuesProperty.getStartCommand()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
runtime
@Stability(Stable) public CfnService.CodeConfigurationValuesProperty.Builder runtime(String runtime) Sets the value ofCfnService.CodeConfigurationValuesProperty.getRuntime()- Parameters:
runtime- A runtime environment type for building and running an App Runner service. This parameter is required. It represents a programming language runtime.- Returns:
this
-
buildCommand
@Stability(Stable) public CfnService.CodeConfigurationValuesProperty.Builder buildCommand(String buildCommand) Sets the value ofCfnService.CodeConfigurationValuesProperty.getBuildCommand()- Parameters:
buildCommand- The command App Runner runs to build your application.- Returns:
this
-
port
Sets the value ofCfnService.CodeConfigurationValuesProperty.getPort()- Parameters:
port- The port that your application listens to in the container. Default:8080- Returns:
this
-
runtimeEnvironmentSecrets
@Stability(Stable) public CfnService.CodeConfigurationValuesProperty.Builder runtimeEnvironmentSecrets(IResolvable runtimeEnvironmentSecrets) - Parameters:
runtimeEnvironmentSecrets-CfnService.CodeConfigurationValuesProperty.RuntimeEnvironmentSecrets.- Returns:
this
-
runtimeEnvironmentSecrets
@Stability(Stable) public CfnService.CodeConfigurationValuesProperty.Builder runtimeEnvironmentSecrets(List<? extends Object> runtimeEnvironmentSecrets) - Parameters:
runtimeEnvironmentSecrets-CfnService.CodeConfigurationValuesProperty.RuntimeEnvironmentSecrets.- Returns:
this
-
runtimeEnvironmentVariables
@Stability(Stable) public CfnService.CodeConfigurationValuesProperty.Builder runtimeEnvironmentVariables(IResolvable runtimeEnvironmentVariables) - Parameters:
runtimeEnvironmentVariables- The environment variables that are available to your running AWS App Runner service. An array of key-value pairs.- Returns:
this
-
runtimeEnvironmentVariables
@Stability(Stable) public CfnService.CodeConfigurationValuesProperty.Builder runtimeEnvironmentVariables(List<? extends Object> runtimeEnvironmentVariables) - Parameters:
runtimeEnvironmentVariables- The environment variables that are available to your running AWS App Runner service. An array of key-value pairs.- Returns:
this
-
startCommand
@Stability(Stable) public CfnService.CodeConfigurationValuesProperty.Builder startCommand(String startCommand) Sets the value ofCfnService.CodeConfigurationValuesProperty.getStartCommand()- Parameters:
startCommand- The command App Runner runs to start your application.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.CodeConfigurationValuesProperty>- Returns:
- a new instance of
CfnService.CodeConfigurationValuesProperty - Throws:
NullPointerException- if any required attribute was not provided
-