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

.NET
Go
Java
Python
TypeScript