Class CodeConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CodeConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeConfiguration>
- Enclosing interface:
CodeConfiguration
@Stability(Experimental)
public static final class CodeConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<CodeConfiguration>
A builder for
CodeConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configurationSource
(ConfigurationSourceType configurationSource) Sets the value ofCodeConfiguration.getConfigurationSource()
configurationValues
(CodeConfigurationValues configurationValues) Sets the value ofCodeConfiguration.getConfigurationValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationSource
@Stability(Experimental) public CodeConfiguration.Builder configurationSource(ConfigurationSourceType configurationSource) Sets the value ofCodeConfiguration.getConfigurationSource()
- Parameters:
configurationSource
- The source of the App Runner configuration. This parameter is required.- Returns:
this
-
configurationValues
@Stability(Experimental) public CodeConfiguration.Builder configurationValues(CodeConfigurationValues configurationValues) Sets the value ofCodeConfiguration.getConfigurationValues()
- Parameters:
configurationValues
- The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner service without providing a apprunner.yaml file in the source code repository (or ignoring the file if it exists).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CodeConfiguration>
- Returns:
- a new instance of
CodeConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-