Class CodeConfigurationValues.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.CodeConfigurationValues.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeConfigurationValues>
- Enclosing interface:
CodeConfigurationValues
@Stability(Experimental)
public static final class CodeConfigurationValues.Builder
extends Object
implements software.amazon.jsii.Builder<CodeConfigurationValues>
A builder for
CodeConfigurationValues-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.buildCommand(String buildCommand) Sets the value ofCodeConfigurationValues.getBuildCommand()environment(Map<String, String> environment) Deprecated.use environmentVariables.environmentSecrets(Map<String, ? extends Secret> environmentSecrets) Sets the value ofCodeConfigurationValues.getEnvironmentSecrets()environmentVariables(Map<String, String> environmentVariables) Sets the value ofCodeConfigurationValues.getEnvironmentVariables()Sets the value ofCodeConfigurationValues.getPort()Sets the value ofCodeConfigurationValues.getRuntime()startCommand(String startCommand) Sets the value ofCodeConfigurationValues.getStartCommand()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
runtime
Sets the value ofCodeConfigurationValues.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
Sets the value ofCodeConfigurationValues.getBuildCommand()- Parameters:
buildCommand- The command App Runner runs to build your application.- Returns:
this
-
environment
@Stability(Deprecated) @Deprecated public CodeConfigurationValues.Builder environment(Map<String, String> environment) Deprecated.use environmentVariables.Sets the value ofCodeConfigurationValues.getEnvironment()- Parameters:
environment- The environment variables that are available to your running App Runner service.- Returns:
this
-
environmentSecrets
@Stability(Experimental) public CodeConfigurationValues.Builder environmentSecrets(Map<String, ? extends Secret> environmentSecrets) Sets the value ofCodeConfigurationValues.getEnvironmentSecrets()- Parameters:
environmentSecrets- The environment secrets that are available to your running App Runner service.- Returns:
this
-
environmentVariables
@Stability(Experimental) public CodeConfigurationValues.Builder environmentVariables(Map<String, String> environmentVariables) Sets the value ofCodeConfigurationValues.getEnvironmentVariables()- Parameters:
environmentVariables- The environment variables that are available to your running App Runner service.- Returns:
this
-
port
Sets the value ofCodeConfigurationValues.getPort()- Parameters:
port- The port that your application listens to in the container.- Returns:
this
-
startCommand
Sets the value ofCodeConfigurationValues.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<CodeConfigurationValues>- Returns:
- a new instance of
CodeConfigurationValues - Throws:
NullPointerException- if any required attribute was not provided
-