Interface CodeConfiguration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CodeConfiguration.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.040Z")
@Stability(Experimental)
public interface CodeConfiguration
extends software.amazon.jsii.JsiiSerializable
(experimental) Describes the configuration that AWS App Runner uses to build and run an App Runner service from a source code repository.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.apprunner.*; Runtime runtime; CodeConfiguration codeConfiguration = CodeConfiguration.builder() .configurationSource(ConfigurationSourceType.REPOSITORY) // the properties below are optional .configurationValues(CodeConfigurationValues.builder() .runtime(runtime) // the properties below are optional .buildCommand("buildCommand") .environment(Map.of( "environmentKey", "environment")) .port("port") .startCommand("startCommand") .build()) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCodeConfiguration
static final class
An implementation forCodeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionstatic CodeConfiguration.Builder
builder()
(experimental) The source of the App Runner configuration.default CodeConfigurationValues
(experimental) The basic configuration for building and running the App Runner service.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConfigurationSource
(experimental) The source of the App Runner configuration. -
getConfigurationValues
(experimental) 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).
Default: - not specified. Use `apprunner.yaml` instead.
-
builder
- Returns:
- a
CodeConfiguration.Builder
ofCodeConfiguration
-