Interface CfnService.ImageRepositoryProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnService.ImageRepositoryProperty.Jsii$Proxy
Enclosing class:
CfnService

@Stability(Stable) public static interface CfnService.ImageRepositoryProperty extends software.amazon.jsii.JsiiSerializable
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.*;
 ImageRepositoryProperty imageRepositoryProperty = ImageRepositoryProperty.builder()
         .imageIdentifier("imageIdentifier")
         .imageRepositoryType("imageRepositoryType")
         // the properties below are optional
         .imageConfiguration(ImageConfigurationProperty.builder()
                 .port("port")
                 .runtimeEnvironmentSecrets(List.of(KeyValuePairProperty.builder()
                         .name("name")
                         .value("value")
                         .build()))
                 .runtimeEnvironmentVariables(List.of(KeyValuePairProperty.builder()
                         .name("name")
                         .value("value")
                         .build()))
                 .startCommand("startCommand")
                 .build())
         .build();
 
  • Method Details

    • getImageIdentifier

      @Stability(Stable) @NotNull String getImageIdentifier()
      The identifier of an image.

      For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide .

    • getImageRepositoryType

      @Stability(Stable) @NotNull String getImageRepositoryType()
      The type of the image repository.

      This reflects the repository provider and whether the repository is private or public.

    • getImageConfiguration

      @Stability(Stable) @Nullable default Object getImageConfiguration()
      Configuration for running the identified image.
    • builder

      @Stability(Stable) static CfnService.ImageRepositoryProperty.Builder builder()
      Returns:
      a CfnService.ImageRepositoryProperty.Builder of CfnService.ImageRepositoryProperty