Class ImageRepository
(experimental) Describes a source image repository.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.AWS.AppRunner.dll
Syntax (csharp)
public class ImageRepository : Object, IImageRepository
Syntax (vb)
Public Class ImageRepository
Inherits Object
Implements IImageRepository
Remarks
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner;
var imageRepository = new ImageRepository {
ImageIdentifier = "imageIdentifier",
ImageRepositoryType = ImageRepositoryType.ECR_PUBLIC,
// the properties below are optional
ImageConfiguration = new ImageConfiguration {
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
Port = 123,
StartCommand = "startCommand"
}
};
Synopsis
Constructors
ImageRepository() |
Properties
ImageConfiguration | (experimental) Configuration for running the identified image. |
ImageIdentifier | (experimental) The identifier of the image. |
ImageRepositoryType | (experimental) The type of the image repository. |
Constructors
ImageRepository()
public ImageRepository()
Properties
ImageConfiguration
(experimental) Configuration for running the identified image.
public IImageConfiguration ImageConfiguration { get; set; }
Property Value
Remarks
Default: - no image configuration will be passed. The default port
will be 8080.
Stability: Experimental
ImageIdentifier
(experimental) The identifier of the image.
public string ImageIdentifier { get; set; }
Property Value
System.String
Remarks
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/.*)
.
Stability: Experimental
See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imagerepository.html for more details.
ImageRepositoryType
(experimental) The type of the image repository.
public ImageRepositoryType ImageRepositoryType { get; set; }
Property Value
Remarks
This reflects the repository provider and whether the repository is private or public.
Stability: Experimental