@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.767Z") @Stability(value=Experimental) public abstract class ContainerImage extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
ContainerImage() |
protected |
ContainerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ContainerImage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract ContainerImageConfig |
bind(software.constructs.Construct scope,
ContainerDefinition containerDefinition)
(experimental) Called when the image is used by a ContainerDefinition.
|
static AssetImage |
fromAsset(String directory)
(experimental) Reference an image that's constructed directly from sources on disk.
|
static AssetImage |
fromAsset(String directory,
AssetImageProps props)
(experimental) Reference an image that's constructed directly from sources on disk.
|
static ContainerImage |
fromDockerImageAsset(DockerImageAsset asset)
(experimental) Use an existing `DockerImageAsset` for this container image.
|
static EcrImage |
fromEcrRepository(IRepository repository)
(experimental) Reference an image in an ECR repository.
|
static EcrImage |
fromEcrRepository(IRepository repository,
String tag)
(experimental) Reference an image in an ECR repository.
|
static RepositoryImage |
fromRegistry(String name)
(experimental) Reference an image on DockerHub or another online registry.
|
static RepositoryImage |
fromRegistry(String name,
RepositoryImageProps props)
(experimental) Reference an image on DockerHub or another online registry.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ContainerImage(software.amazon.jsii.JsiiObjectRef objRef)
protected ContainerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected ContainerImage()
@Stability(value=Experimental) @NotNull public static AssetImage fromAsset(@NotNull String directory, @Nullable AssetImageProps props)
If you already have a DockerImageAsset instance, you can use the
ContainerImage.fromDockerImageAsset method instead.
directory - The directory containing the Dockerfile. This parameter is required.props - @Stability(value=Experimental) @NotNull public static AssetImage fromAsset(@NotNull String directory)
If you already have a DockerImageAsset instance, you can use the
ContainerImage.fromDockerImageAsset method instead.
directory - The directory containing the Dockerfile. This parameter is required.@Stability(value=Experimental) @NotNull public static ContainerImage fromDockerImageAsset(@NotNull DockerImageAsset asset)
asset - The `DockerImageAsset` to use for this container definition. This parameter is required.@Stability(value=Experimental) @NotNull public static EcrImage fromEcrRepository(@NotNull IRepository repository, @Nullable String tag)
repository - This parameter is required.tag - @Stability(value=Experimental) @NotNull public static EcrImage fromEcrRepository(@NotNull IRepository repository)
repository - This parameter is required.@Stability(value=Experimental) @NotNull public static RepositoryImage fromRegistry(@NotNull String name, @Nullable RepositoryImageProps props)
name - This parameter is required.props - @Stability(value=Experimental) @NotNull public static RepositoryImage fromRegistry(@NotNull String name)
name - This parameter is required.@Stability(value=Experimental) @NotNull public abstract ContainerImageConfig bind(@NotNull software.constructs.Construct scope, @NotNull ContainerDefinition containerDefinition)
scope - This parameter is required.containerDefinition - This parameter is required.Copyright © 2021. All rights reserved.