@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:41.940Z") 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
A fluent builder for
TarballImageAsset . |
IAsset.Jsii$Default, IAsset.Jsii$Proxy
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
TarballImageAsset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TarballImageAsset(software.amazon.jsii.JsiiObjectRef objRef) |
|
TarballImageAsset(software.constructs.Construct scope,
java.lang.String id,
TarballImageAssetProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAssetHash()
A hash of this asset, which is available at construction time.
|
java.lang.String |
getImageUri()
The full URI of the image (including a tag).
|
IRepository |
getRepository()
Repository where the image is stored.
|
java.lang.String |
getSourceHash()
Deprecated.
use assetHash
|
void |
setImageUri(java.lang.String value)
The full URI of the image (including a tag).
|
void |
setRepository(IRepository value)
Repository where the image is stored.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected TarballImageAsset(software.amazon.jsii.JsiiObjectRef objRef)
protected TarballImageAsset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public TarballImageAsset(software.constructs.Construct scope, java.lang.String id, TarballImageAssetProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public java.lang.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.
@Deprecated public java.lang.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
public java.lang.String getImageUri()
Use this reference to pull the asset.
public void setImageUri(java.lang.String value)
Use this reference to pull the asset.
public IRepository getRepository()
public void setRepository(IRepository value)