Class TarballImageAsset
An asset that represents a Docker image.
Inheritance
Namespace: Amazon.CDK.AWS.Ecr.Assets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TarballImageAsset : Construct
Syntax (vb)
Public Class TarballImageAsset
Inherits Construct
Remarks
The image will loaded from an existing tarball and uploaded to an ECR repository.
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Ecr.Assets;
var asset = new TarballImageAsset(this, "MyBuildImage", new TarballImageAssetProps {
TarballFile = "local-image.tar"
});
Synopsis
Constructors
TarballImageAsset(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
TarballImageAsset(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
TarballImageAsset(Construct, String, ITarballImageAssetProps) |
Properties
AssetHash | A hash of this asset, which is available at construction time. |
ImageTag | The tag of this asset when it is uploaded to ECR. |
ImageUri | The full URI of the image (including a tag). |
Repository | Repository where the image is stored. |
Constructors
TarballImageAsset(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected TarballImageAsset(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
TarballImageAsset(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected TarballImageAsset(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
TarballImageAsset(Construct, String, ITarballImageAssetProps)
public TarballImageAsset(Construct scope, string id, ITarballImageAssetProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ITarballImageAssetProps
Properties
AssetHash
A hash of this asset, which is available at construction time.
public virtual string AssetHash { get; }
Property Value
System.String
Remarks
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.
ImageTag
The tag of this asset when it is uploaded to ECR.
public virtual string ImageTag { get; }
Property Value
System.String
Remarks
The tag may differ from the assetHash if a stack synthesizer adds a dockerTagPrefix.
ImageUri
The full URI of the image (including a tag).
public virtual string ImageUri { get; set; }
Property Value
System.String
Remarks
Use this reference to pull the asset.
Repository
Repository where the image is stored.
public virtual IRepository Repository { get; set; }
Property Value