interface CodeConfiguration
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppRunner.CodeConfiguration |
Java | software.amazon.awscdk.services.apprunner.CodeConfiguration |
Python | aws_cdk.aws_apprunner.CodeConfiguration |
TypeScript (source) | @aws-cdk/aws-apprunner » CodeConfiguration |
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 * as apprunner from '@aws-cdk/aws-apprunner';
declare const runtime: apprunner.Runtime;
const codeConfiguration: apprunner.CodeConfiguration = {
configurationSource: apprunner.ConfigurationSourceType.REPOSITORY,
// the properties below are optional
configurationValues: {
runtime: runtime,
// the properties below are optional
buildCommand: 'buildCommand',
environment: {
environmentKey: 'environment',
},
port: 'port',
startCommand: 'startCommand',
},
};
Properties
Name | Type | Description |
---|---|---|
configuration | Configuration | The source of the App Runner configuration. |
configuration | Code | The basic configuration for building and running the App Runner service. |
configurationSource
Type:
Configuration
The source of the App Runner configuration.
configurationValues?
Type:
Code
(optional, default: not specified. Use apprunner.yaml
instead.)
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).