interface ImageConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppRunner.CfnService.ImageConfigurationProperty |
Java | software.amazon.awscdk.services.apprunner.CfnService.ImageConfigurationProperty |
Python | aws_cdk.aws_apprunner.CfnService.ImageConfigurationProperty |
TypeScript | @aws-cdk/aws-apprunner » CfnService » ImageConfigurationProperty |
Describes the configuration that AWS App Runner uses to run an App Runner service using an image pulled from a source image 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';
const imageConfigurationProperty: apprunner.CfnService.ImageConfigurationProperty = {
port: 'port',
runtimeEnvironmentSecrets: [{
name: 'name',
value: 'value',
}],
runtimeEnvironmentVariables: [{
name: 'name',
value: 'value',
}],
startCommand: 'startCommand',
};
Properties
| Name | Type | Description |
|---|---|---|
| port? | string | The port that your application listens to in the container. |
| runtime | IResolvable | IResolvable | Key[] | CfnService.ImageConfigurationProperty.RuntimeEnvironmentSecrets. |
| runtime | IResolvable | IResolvable | Key[] | Environment variables that are available to your running App Runner service. |
| start | string | An optional command that App Runner runs to start the application in the source image. |
port?
Type:
string
(optional)
The port that your application listens to in the container.
Default: 8080
runtimeEnvironmentSecrets?
Type:
IResolvable | IResolvable | Key[]
(optional)
CfnService.ImageConfigurationProperty.RuntimeEnvironmentSecrets.
runtimeEnvironmentVariables?
Type:
IResolvable | IResolvable | Key[]
(optional)
Environment variables that are available to your running App Runner service.
An array of key-value pairs.
startCommand?
Type:
string
(optional)
An optional command that App Runner runs to start the application in the source image.
If specified, this command overrides the Docker image’s default start command.

.NET
Java
Python
TypeScript