@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.695Z") @Stability(value=Stable) public class EcrImage extends ContainerImage
Example:
Secret dbSecret = new Secret(this, "secret");
JobDefinition.Builder.create(this, "batch-job-def-secrets")
.container(JobDefinitionContainer.builder()
.image(EcrImage.fromRegistry("docker/whalesay"))
.secrets(Map.of(
"PASSWORD", Secret.fromSecretsManager(dbSecret, "password")))
.build())
.build();
| Modifier | Constructor and Description |
|---|---|
|
EcrImage(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) |
| Modifier and Type | Method and Description |
|---|---|
ContainerImageConfig |
bind(software.constructs.Construct _scope,
ContainerDefinition containerDefinition)
Called when the image is used by a ContainerDefinition.
|
String |
getImageName()
The image name.
|
fromAsset, fromAsset, fromDockerImageAsset, fromEcrRepository, fromEcrRepository, fromRegistry, fromRegistry, fromTarballjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected EcrImage(software.amazon.jsii.JsiiObjectRef objRef)
protected EcrImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public EcrImage(@NotNull
IRepository repository,
@NotNull
String tagOrDigest)
repository - This parameter is required.tagOrDigest - This parameter is required.@Stability(value=Stable) @NotNull public ContainerImageConfig bind(@NotNull software.constructs.Construct _scope, @NotNull ContainerDefinition containerDefinition)
bind in class ContainerImage_scope - This parameter is required.containerDefinition - This parameter is required.@Stability(value=Stable) @NotNull public String getImageName()
For example, 012345678910.dkr.ecr.
Copyright © 2022. All rights reserved.