@Generated(value="jsii-pacmak/0.22.0 (build 14afdde)", date="2020-02-13T18:54:15.770Z") @Stability(value=Experimental) public abstract class DockerImage extends software.amazon.jsii.JsiiObject
EXPERIMENTAL
| Modifier | Constructor and Description |
|---|---|
protected |
DockerImage() |
protected |
DockerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DockerImage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract DockerImageConfig |
bind(ISageMakerTask task)
Called when the image is used by a SageMaker task.
|
static DockerImage |
fromAsset(Construct scope,
String id,
DockerImageAssetProps props)
Reference a Docker image that is provided as an Asset in the current app.
|
static DockerImage |
fromEcrRepository(IRepository repository)
Reference a Docker image stored in an ECR repository.
|
static DockerImage |
fromEcrRepository(IRepository repository,
String tag)
Reference a Docker image stored in an ECR repository.
|
static DockerImage |
fromJsonExpression(String expression)
Reference a Docker image which URI is obtained from the task's input.
|
static DockerImage |
fromJsonExpression(String expression,
Boolean allowAnyEcrImagePull)
Reference a Docker image which URI is obtained from the task's input.
|
static DockerImage |
fromRegistry(String imageUri)
Reference a Docker image by it's URI.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetprotected DockerImage(software.amazon.jsii.JsiiObjectRef objRef)
protected DockerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected DockerImage()
@Stability(value=Experimental) @NotNull public static DockerImage fromAsset(@NotNull Construct scope, @NotNull String id, @NotNull DockerImageAssetProps props)
EXPERIMENTAL
scope - the scope in which to create the Asset. This parameter is required.id - the ID for the asset in the construct tree. This parameter is required.props - the configuration props of the asset. This parameter is required.@Stability(value=Experimental) @NotNull public static DockerImage fromEcrRepository(@NotNull IRepository repository, @Nullable String tag)
EXPERIMENTAL
repository - the ECR repository where the image is hosted. This parameter is required.tag - an optional `tag`.@Stability(value=Experimental) @NotNull public static DockerImage fromEcrRepository(@NotNull IRepository repository)
EXPERIMENTAL
repository - the ECR repository where the image is hosted. This parameter is required.@Stability(value=Experimental) @NotNull public static DockerImage fromJsonExpression(@NotNull String expression, @Nullable Boolean allowAnyEcrImagePull)
EXPERIMENTAL
expression - the JSON path expression with the task input. This parameter is required.allowAnyEcrImagePull - whether ECR access should be permitted (set to `false` if the image will never be in ECR).@Stability(value=Experimental) @NotNull public static DockerImage fromJsonExpression(@NotNull String expression)
EXPERIMENTAL
expression - the JSON path expression with the task input. This parameter is required.@Stability(value=Experimental) @NotNull public static DockerImage fromRegistry(@NotNull String imageUri)
When referencing ECR images, prefer using inEcr.
EXPERIMENTAL
imageUri - the URI to the docker image. This parameter is required.@Stability(value=Experimental) @NotNull public abstract DockerImageConfig bind(@NotNull ISageMakerTask task)
EXPERIMENTAL
task - This parameter is required.Copyright © 2020. All rights reserved.