DockerImageAssetInvalidationOptions
- class aws_cdk.aws_ecr_assets.DockerImageAssetInvalidationOptions(*, build_args=None, extra_hash=None, file=None, network_mode=None, platform=None, repository_name=None, target=None)
Bases:
objectOptions to control invalidation of
DockerImageAssetasset hashes.- Parameters:
build_args (
Optional[bool]) – UsebuildArgswhile calculating the asset hash. Default: trueextra_hash (
Optional[bool]) – UseextraHashwhile calculating the asset hash. Default: truefile (
Optional[bool]) – Usefilewhile calculating the asset hash. Default: truenetwork_mode (
Optional[bool]) – UsenetworkModewhile calculating the asset hash. Default: trueplatform (
Optional[bool]) – Useplatformwhile calculating the asset hash. Default: truerepository_name (
Optional[bool]) – UserepositoryNamewhile calculating the asset hash. Default: truetarget (
Optional[bool]) – Usetargetwhile calculating the asset hash. Default: true
- ExampleMetadata:
infused
Example:
from aws_cdk.aws_ecr_assets import DockerImageAsset asset = DockerImageAsset(self, "MyBuildImage", directory=path.join(__dirname, "my-image"), build_args={ "HTTP_PROXY": "http://10.20.30.2:1234" }, invalidation=DockerImageAssetInvalidationOptions( build_args=False ) )
Attributes
- build_args
Use
buildArgswhile calculating the asset hash.- Default:
true
- extra_hash
Use
extraHashwhile calculating the asset hash.- Default:
true
- file
Use
filewhile calculating the asset hash.- Default:
true
- network_mode
Use
networkModewhile calculating the asset hash.- Default:
true
- platform
Use
platformwhile calculating the asset hash.- Default:
true
- repository_name
Use
repositoryNamewhile calculating the asset hash.- Default:
true
- target
Use
targetwhile calculating the asset hash.- Default:
true