interface CodeConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppRunner.CfnService.CodeConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapprunner#CfnService_CodeConfigurationProperty |
Java | software.amazon.awscdk.services.apprunner.CfnService.CodeConfigurationProperty |
Python | aws_cdk.aws_apprunner.CfnService.CodeConfigurationProperty |
TypeScript | aws-cdk-lib » aws_apprunner » CfnService » CodeConfigurationProperty |
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 { aws_apprunner as apprunner } from 'aws-cdk-lib';
const codeConfigurationProperty: apprunner.CfnService.CodeConfigurationProperty = {
configurationSource: 'configurationSource',
// the properties below are optional
codeConfigurationValues: {
runtime: 'runtime',
// the properties below are optional
buildCommand: 'buildCommand',
port: 'port',
runtimeEnvironmentSecrets: [{
name: 'name',
value: 'value',
}],
runtimeEnvironmentVariables: [{
name: 'name',
value: 'value',
}],
startCommand: 'startCommand',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| configuration | string | The source of the App Runner configuration. Values are interpreted as follows:. |
| code | IResolvable | Code | The basic configuration for building and running the App Runner service. |
configurationSource
Type:
string
The source of the App Runner configuration. Values are interpreted as follows:.
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.
codeConfigurationValues?
Type:
IResolvable | Code
(optional)
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).

.NET
Go
Java
Python
TypeScript