TarballImageAsset

class aws_cdk.aws_ecr_assets.TarballImageAsset(scope, id, *, tarball_file)

Bases: aws_cdk.core.Construct

An asset that represents a Docker image.

The image will loaded from an existing tarball and uploaded to an ECR repository.

Parameters
  • scope (Construct) –

  • id (str) –

  • tarball_file (str) – Path to the tarball.

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

asset_hash

A hash of this asset, which is available at construction time.

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.

Return type

str

image_uri

The full URI of the image (including a tag).

Use this reference to pull the asset.

Return type

str

node

The construct tree node associated with this construct.

Return type

ConstructNode

repository

Repository where the image is stored.

Return type

IRepository

source_hash

(deprecated) A hash of the source of this asset, which is available at construction time.

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

use assetHash

Stability

deprecated

Return type

str

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool