@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.555Z") @Stability(value=Stable) public class TarballImageAsset extends software.constructs.Construct
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. |
| 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()
A hash of this asset, which is available at construction time.
|
String |
getImageTag()
The tag of this asset when it is uploaded to ECR.
|
String |
getImageUri()
The full URI of the image (including a tag).
|
IRepository |
getRepository()
Repository where the image is stored.
|
void |
setImageUri(String value)
The full URI of the image (including a tag).
|
void |
setRepository(IRepository value)
Repository where the image is stored.
|
jsiiAsyncCall, 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=Stable)
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=Stable) @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=Stable) @NotNull public String getImageTag()
The tag may differ from the assetHash if a stack synthesizer adds a dockerTagPrefix.
@Stability(value=Stable) @NotNull public String getImageUri()
Use this reference to pull the asset.
@Stability(value=Stable)
public void setImageUri(@NotNull
String value)
Use this reference to pull the asset.
@Stability(value=Stable) @NotNull public IRepository getRepository()
@Stability(value=Stable)
public void setRepository(@NotNull
IRepository value)
Copyright © 2022. All rights reserved.