Class CfnService.CodeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.CodeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.CodeConfigurationProperty>
- Enclosing interface:
CfnService.CodeConfigurationProperty
@Stability(Stable)
public static final class CfnService.CodeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.CodeConfigurationProperty>
A builder for
CfnService.CodeConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.codeConfigurationValues(IResolvable codeConfigurationValues) Sets the value ofCfnService.CodeConfigurationProperty.getCodeConfigurationValues()codeConfigurationValues(CfnService.CodeConfigurationValuesProperty codeConfigurationValues) Sets the value ofCfnService.CodeConfigurationProperty.getCodeConfigurationValues()configurationSource(String configurationSource) Sets the value ofCfnService.CodeConfigurationProperty.getConfigurationSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationSource
@Stability(Stable) public CfnService.CodeConfigurationProperty.Builder configurationSource(String configurationSource) Sets the value ofCfnService.CodeConfigurationProperty.getConfigurationSource()- Parameters:
configurationSource- The source of the App Runner configuration. Values are interpreted as follows:. This parameter is required.REPOSITORY– App Runner reads configuration values from theapprunner.yamlfile in the source code repository and ignoresCodeConfigurationValues.API– App Runner uses configuration values provided inCodeConfigurationValuesand ignores theapprunner.yamlfile in the source code repository.
- Returns:
this
-
codeConfigurationValues
@Stability(Stable) public CfnService.CodeConfigurationProperty.Builder codeConfigurationValues(IResolvable codeConfigurationValues) Sets the value ofCfnService.CodeConfigurationProperty.getCodeConfigurationValues()- Parameters:
codeConfigurationValues- The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner service without providing aapprunner.yamlfile in the source code repository (or ignoring the file if it exists).- Returns:
this
-
codeConfigurationValues
@Stability(Stable) public CfnService.CodeConfigurationProperty.Builder codeConfigurationValues(CfnService.CodeConfigurationValuesProperty codeConfigurationValues) Sets the value ofCfnService.CodeConfigurationProperty.getCodeConfigurationValues()- Parameters:
codeConfigurationValues- The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner service without providing aapprunner.yamlfile in the source code repository (or ignoring the file if it exists).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.CodeConfigurationProperty>- Returns:
- a new instance of
CfnService.CodeConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-