@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:06.891Z") @Stability(value=Experimental) public class TarballImageAsset extends Construct implements IAsset
The image will loaded from an existing tarball and uploaded to an ECR repository.
Example:
import software.amazon.awscdk.services.ecr.assets.TarballImageAsset;
TarballImageAsset asset = TarballImageAsset.Builder.create(this, "MyBuildImage")
.tarballFile("local-image.tar")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
TarballImageAsset.Builder
(experimental) A fluent builder for
TarballImageAsset. |
software.amazon.jsii.JsiiObject.InitializationModeIAsset.Jsii$Default, IAsset.Jsii$ProxyIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
TarballImageAsset(software.constructs.Construct scope,
String id,
TarballImageAssetProps props) |
protected |
TarballImageAsset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TarballImageAsset(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAssetHash()
(experimental) A hash of this asset, which is available at construction time.
|
String |
getImageUri()
(experimental) The full URI of the image (including a tag).
|
IRepository |
getRepository()
(experimental) Repository where the image is stored.
|
String |
getSourceHash()
Deprecated.
use assetHash
|
void |
setImageUri(String value)
(experimental) The full URI of the image (including a tag).
|
void |
setRepository(IRepository value)
(experimental) Repository where the image is stored.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected TarballImageAsset(software.amazon.jsii.JsiiObjectRef objRef)
protected TarballImageAsset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public TarballImageAsset(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
TarballImageAssetProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public String getAssetHash()
As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed.
@Stability(value=Deprecated) @Deprecated @NotNull public String getSourceHash()
As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed.
getSourceHash in interface IAsset@Stability(value=Experimental) @NotNull public String getImageUri()
Use this reference to pull the asset.
@Stability(value=Experimental)
public void setImageUri(@NotNull
String value)
Use this reference to pull the asset.
@Stability(value=Experimental) @NotNull public IRepository getRepository()
@Stability(value=Experimental)
public void setRepository(@NotNull
IRepository value)
Copyright © 2022. All rights reserved.