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);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionRepositoryImage
(String imageName) Constructs a new instance of the RepositoryImage class.RepositoryImage
(String imageName, RepositoryImageProps props) Constructs a new instance of the RepositoryImage class.protected
RepositoryImage
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
RepositoryImage
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind
(software.constructs.Construct scope, ContainerDefinition containerDefinition) Called when the image is used by a ContainerDefinition.Methods inherited from class software.amazon.awscdk.services.ecs.ContainerImage
fromAsset, fromAsset, fromDockerImageAsset, fromEcrRepository, fromEcrRepository, fromRegistry, fromRegistry, fromTarball
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
-
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
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 classContainerImage
- Parameters:
scope
- This parameter is required.containerDefinition
- This parameter is required.
-