interface ImageRepository
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppRunner.Alpha.ImageRepository |
Go | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#ImageRepository |
Java | software.amazon.awscdk.services.apprunner.alpha.ImageRepository |
Python | aws_cdk.aws_apprunner_alpha.ImageRepository |
TypeScript (source) | @aws-cdk/aws-apprunner-alpha ยป ImageRepository |
Describes 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_alpha from '@aws-cdk/aws-apprunner-alpha';
declare const secret: apprunner_alpha.Secret;
const imageRepository: apprunner_alpha.ImageRepository = {
imageIdentifier: 'imageIdentifier',
imageRepositoryType: apprunner_alpha.ImageRepositoryType.ECR_PUBLIC,
// the properties below are optional
imageConfiguration: {
environment: {
environmentKey: 'environment',
},
environmentSecrets: {
environmentSecretsKey: secret,
},
environmentVariables: {
environmentVariablesKey: 'environmentVariables',
},
port: 123,
startCommand: 'startCommand',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| image | string | The identifier of the image. |
| image | Image | The type of the image repository. |
| image | Image | Configuration for running the identified image. |
imageIdentifier
Type:
string
The identifier of the image.
For ECR_PUBLIC imageRepositoryType, the identifier domain should
always be public.ecr.aws. For ECR, the pattern should be
([0-9]{12}.dkr.ecr.[a-z\-]+-[0-9]{1}.amazonaws.com\/.*).
imageRepositoryType
Type:
Image
The type of the image repository.
This reflects the repository provider and whether the repository is private or public.
imageConfiguration?
Type:
Image
(optional, default: no image configuration will be passed. The default port will be 8080.)
Configuration for running the identified image.

.NET
Go
Java
Python
TypeScript (