interface EcrProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppRunner.EcrProps |
Java | software.amazon.awscdk.services.apprunner.EcrProps |
Python | aws_cdk.aws_apprunner.EcrProps |
TypeScript (source) | @aws-cdk/aws-apprunner » EcrProps |
Properties of the image repository for Source.fromEcr()
.
Example
import * as ecr from '@aws-cdk/aws-ecr';
new apprunner.Service(this, 'Service', {
source: apprunner.Source.fromEcr({
imageConfiguration: { port: 80 },
repository: ecr.Repository.fromRepositoryName(this, 'NginxRepository', 'nginx'),
tagOrDigest: 'latest',
}),
});
Properties
Name | Type | Description |
---|---|---|
repository | IRepository | Represents the ECR repository. |
image | Image | The image configuration for the image from ECR. |
tag? | string | Image tag. |
tag | string | Image tag or digest (digests must start with sha256: ). |
repository
Type:
IRepository
Represents the ECR repository.
imageConfiguration?
Type:
Image
(optional, default: no image configuration will be passed. The default port
will be 8080.)
The image configuration for the image from ECR.
tag?
⚠️ Deprecated: use tagOrDigest
Type:
string
(optional, default: 'latest')
Image tag.
tagOrDigest?
Type:
string
(optional, default: 'latest')
Image tag or digest (digests must start with sha256:
).