Interface ImageRepository
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ImageRepository.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.055Z")
@Stability(Experimental)
public interface ImageRepository
extends software.amazon.jsii.JsiiSerializable
(experimental) 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 software.amazon.awscdk.services.apprunner.*; ImageRepository imageRepository = ImageRepository.builder() .imageIdentifier("imageIdentifier") .imageRepositoryType(ImageRepositoryType.ECR_PUBLIC) // the properties below are optional .imageConfiguration(ImageConfiguration.builder() .environment(Map.of( "environmentKey", "environment")) .port(123) .startCommand("startCommand") .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forImageRepository
static final class
An implementation forImageRepository
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageRepository.Builder
builder()
default ImageConfiguration
(experimental) Configuration for running the identified image.(experimental) The identifier of the image.(experimental) The type of the image repository.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getImageIdentifier
(experimental) The identifier of the image.For
ECR_PUBLIC
imageRepositoryType, the identifier domain should always bepublic.ecr.aws
. ForECR
, the pattern should be([0-9]{12}.dkr.ecr.[a-z\-]+-[0-9]{1}.amazonaws.com\/.*)
.- See Also:
-
getImageRepositoryType
(experimental) The type of the image repository.This reflects the repository provider and whether the repository is private or public.
-
getImageConfiguration
(experimental) Configuration for running the identified image.Default: - no image configuration will be passed. The default `port` will be 8080.
- See Also:
-
builder
- Returns:
- a
ImageRepository.Builder
ofImageRepository
-