Class TarballImageAsset
An asset that represents a Docker image.
Inherited Members
Namespace: Amazon.CDK.AWS.Ecr.Assets
Assembly: Amazon.CDK.ECR.Assets.dll
Syntax (csharp)
public class TarballImageAsset : Construct, IConstruct, IDependable, IAsset
Syntax (vb)
Public Class TarballImageAsset
Inherits Construct
Implements IConstruct, IDependable, IAsset
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. |
ImageUri | The full URI of the image (including a tag). |
Repository | Repository where the image is stored. |
SourceHash | (deprecated) A hash of the source of this asset, which is available at construction time. |
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.
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
SourceHash
(deprecated) A hash of the source of this asset, which is available at construction time.
public virtual string SourceHash { 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.
Stability: Deprecated