@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:42.666Z") @Stability(value=Experimental) public abstract class DockerImage extends software.amazon.jsii.JsiiObject
| 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)
(experimental) Called when the image is used by a SageMaker task.
|
static DockerImage |
fromAsset(software.constructs.Construct scope,
String id,
DockerImageAssetProps props)
(experimental) Reference a Docker image that is provided as an Asset in the current app.
|
static DockerImage |
fromEcrRepository(IRepository repository)
(experimental) Reference a Docker image stored in an ECR repository.
|
static DockerImage |
fromEcrRepository(IRepository repository,
String tag)
(experimental) Reference a Docker image stored in an ECR repository.
|
static DockerImage |
fromJsonExpression(String expression)
(experimental) Reference a Docker image which URI is obtained from the task's input.
|
static DockerImage |
fromJsonExpression(String expression,
Boolean allowAnyEcrImagePull)
(experimental) Reference a Docker image which URI is obtained from the task's input.
|
static DockerImage |
fromRegistry(String imageUri)
(experimental) Reference a Docker image by it's URI.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected DockerImage(software.amazon.jsii.JsiiObjectRef objRef)
protected DockerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected DockerImage()
@Stability(value=Experimental) @NotNull public static DockerImage fromAsset(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DockerImageAssetProps props)
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)
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)
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)
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)
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.
imageUri - the URI to the docker image. This parameter is required.@Stability(value=Experimental) @NotNull public abstract DockerImageConfig bind(@NotNull ISageMakerTask task)
task - This parameter is required.Copyright © 2021. All rights reserved.