Class EcrImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.ContainerImage
software.amazon.awscdk.services.ecs.EcrImage
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-27T17:02:01.345Z")
@Stability(Stable)
public class EcrImage
extends ContainerImage
An image from an Amazon ECR 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.ecr.assets.*; import software.amazon.awscdk.services.ecs.*; DockerImageAsset dockerImageAsset; ContainerImage ecrImage = EcrImage.fromDockerImageAsset(dockerImageAsset);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionEcrImage
(IRepository repository, String tagOrDigest) Constructs a new instance of the EcrImage class.protected
EcrImage
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
EcrImage
(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.The image name.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
-
EcrImage
protected EcrImage(software.amazon.jsii.JsiiObjectRef objRef) -
EcrImage
protected EcrImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EcrImage
Constructs a new instance of the EcrImage class.- Parameters:
repository
- This parameter is required.tagOrDigest
- 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.
-
getImageName
The image name. Images in Amazon ECR repositories can be specified by either using the full registry/repository:tag or registry/repository@digest.For example, 012345678910.dkr.ecr.invalid input: '<'region-name>.amazonaws.com/invalid input: '<'repository-name>:latest or 012345678910.dkr.ecr.invalid input: '<'region-name>.amazonaws.com/invalid input: '<'repository-name>@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE.
-