Class RepositoryImage

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.ContainerImage
software.amazon.awscdk.services.ecs.RepositoryImage
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:14.669Z") @Stability(Stable) public class RepositoryImage extends ContainerImage
An image hosted in a public or private repository.

For images hosted in Amazon ECR, see EcrImage.

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.ecr.assets.*;
 import software.amazon.awscdk.services.ecs.*;
 DockerImageAsset dockerImageAsset;
 ContainerImage repositoryImage = RepositoryImage.fromDockerImageAsset(dockerImageAsset);
 
  • Constructor Details

    • RepositoryImage

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

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

      @Stability(Stable) public RepositoryImage(@NotNull String imageName, @Nullable RepositoryImageProps props)
      Constructs a new instance of the RepositoryImage class.

      Parameters:
      imageName - This parameter is required.
      props -
    • RepositoryImage

      @Stability(Stable) public RepositoryImage(@NotNull String imageName)
      Constructs a new instance of the RepositoryImage class.

      Parameters:
      imageName - This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public ContainerImageConfig bind(@NotNull software.constructs.Construct scope, @NotNull ContainerDefinition containerDefinition)
      Called when the image is used by a ContainerDefinition.

      Specified by:
      bind in class ContainerImage
      Parameters:
      scope - This parameter is required.
      containerDefinition - This parameter is required.