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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.432Z")
@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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionRepositoryImage(String imageName) Constructs a new instance of the RepositoryImage class.RepositoryImage(String imageName, RepositoryImageProps props) Constructs a new instance of the RepositoryImage class.protectedRepositoryImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRepositoryImage(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind(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, fromTarballMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 Construct scope, @NotNull ContainerDefinition containerDefinition) Called when the image is used by a ContainerDefinition.- Specified by:
bindin classContainerImage- Parameters:
scope- This parameter is required.containerDefinition- This parameter is required.
-