Interface CfnService.CodeConfigurationValuesProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnService.CodeConfigurationValuesProperty extends
Describes the basic configuration needed for building and running an AWS App Runner service.

This type doesn't support the full set of possible configuration options. Fur full configuration capabilities, use a apprunner.yaml file in the source code repository.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CodeConfigurationValuesProperty codeConfigurationValuesProperty = CodeConfigurationValuesProperty.builder()
         // the properties below are optional
  • Method Details

    • getRuntime

      @Stability(Stable) @NotNull String getRuntime()
      A runtime environment type for building and running an App Runner service.

      It represents a programming language runtime.

    • getBuildCommand

      @Stability(Stable) @Nullable default String getBuildCommand()
      The command App Runner runs to build your application.
    • getPort

      @Stability(Stable) @Nullable default String getPort()
      The port that your application listens to in the container.

      Default: 8080

    • getRuntimeEnvironmentSecrets

      @Stability(Stable) @Nullable default Object getRuntimeEnvironmentSecrets()
    • getRuntimeEnvironmentVariables

      @Stability(Stable) @Nullable default Object getRuntimeEnvironmentVariables()
      The environment variables that are available to your running AWS App Runner service.

      An array of key-value pairs.

    • getStartCommand

      @Stability(Stable) @Nullable default String getStartCommand()
      The command App Runner runs to start your application.
    • builder

      @Stability(Stable) static CfnService.CodeConfigurationValuesProperty.Builder builder()
      a CfnService.CodeConfigurationValuesProperty.Builder of CfnService.CodeConfigurationValuesProperty