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: - object- Options to control invalidation of - DockerImageAssetasset hashes.- Parameters:
- build_args ( - Optional[- bool]) – Use- buildArgswhile calculating the asset hash. Default: true
- extra_hash ( - Optional[- bool]) – Use- extraHashwhile calculating the asset hash. Default: true
- file ( - Optional[- bool]) – Use- filewhile calculating the asset hash. Default: true
- network_mode ( - Optional[- bool]) – Use- networkModewhile calculating the asset hash. Default: true
- platform ( - Optional[- bool]) – Use- platformwhile calculating the asset hash. Default: true
- repository_name ( - Optional[- bool]) – Use- repositoryNamewhile calculating the asset hash. Default: true
- target ( - Optional[- bool]) – Use- targetwhile 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