java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.imagebuilder.alpha.Repository
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-11-20T23:37:34.467Z") @Stability(Experimental) public abstract class Repository extends software.amazon.jsii.JsiiObject
(experimental) A container repository used to distribute container images in EC2 Image Builder.

Example:

 IRepository ecrRepository = Repository.fromRepositoryName(this, "ECRRepository", "my-repo");
 Repository imageBuilderRepository = Repository.fromEcr(ecrRepository);
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    Repository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Repository(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Repository
    fromEcr(IRepository repository)
    (experimental) The ECR repository to use as the target container repository.
    abstract String
    (experimental) The name of the container repository where the output container image is stored.
    (experimental) The service in which the container repository is hosted.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • Repository

      protected Repository(software.amazon.jsii.JsiiObjectRef objRef)
    • Repository

      protected Repository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Repository

      @Stability(Experimental) protected Repository()
  • Method Details

    • fromEcr

      @Stability(Experimental) @NotNull public static Repository fromEcr(@NotNull IRepository repository)
      (experimental) The ECR repository to use as the target container repository.

      Parameters:
      repository - The ECR repository to use. This parameter is required.
    • getRepositoryName

      @Stability(Experimental) @NotNull public abstract String getRepositoryName()
      (experimental) The name of the container repository where the output container image is stored.
    • getService

      @Stability(Experimental) @NotNull public abstract RepositoryService getService()
      (experimental) The service in which the container repository is hosted.