TarballImageAssetProps
- class aws_cdk.aws_ecr_assets.TarballImageAssetProps(*, tarball_file)
Bases:
object
Options for TarballImageAsset.
- Parameters:
tarball_file (
str
) – Absolute path to the tarball. It is recommended to to use the script running directory (e.g.__dirname
in Node.js projects or dirname of__file__
in Python) if your tarball is located as a resource inside your project.- ExampleMetadata:
infused
Example:
from aws_cdk.aws_ecr_assets import TarballImageAsset asset = TarballImageAsset(self, "MyBuildImage", tarball_file="local-image.tar" )
Attributes
- tarball_file
Absolute path to the tarball.
It is recommended to to use the script running directory (e.g.
__dirname
in Node.js projects or dirname of__file__
in Python) if your tarball is located as a resource inside your project.