interface DockerImageAssetInvalidationOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Ecr.Assets.DockerImageAssetInvalidationOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecrassets#DockerImageAssetInvalidationOptions |
Java | software.amazon.awscdk.services.ecr.assets.DockerImageAssetInvalidationOptions |
Python | aws_cdk.aws_ecr_assets.DockerImageAssetInvalidationOptions |
TypeScript (source) | aws-cdk-lib » aws_ecr_assets » DockerImageAssetInvalidationOptions |
Options to control invalidation of DockerImageAsset asset hashes.
Example
import { DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets';
const asset = new DockerImageAsset(this, 'MyBuildImage', {
directory: path.join(__dirname, 'my-image'),
buildArgs: {
HTTP_PROXY: 'http://10.20.30.2:1234',
},
invalidation: {
buildArgs: false,
},
});
Properties
| Name | Type | Description |
|---|---|---|
| build | boolean | Use buildArgs while calculating the asset hash. |
| build | boolean | Use buildSecrets while calculating the asset hash. |
| build | boolean | Use buildSsh while calculating the asset hash. |
| extra | boolean | Use extraHash while calculating the asset hash. |
| file? | boolean | Use file while calculating the asset hash. |
| network | boolean | Use networkMode while calculating the asset hash. |
| outputs? | boolean | Use outputs while calculating the asset hash. |
| platform? | boolean | Use platform while calculating the asset hash. |
| repository | boolean | Use repositoryName while calculating the asset hash. |
| target? | boolean | Use target while calculating the asset hash. |
buildArgs?
Type:
boolean
(optional, default: true)
Use buildArgs while calculating the asset hash.
buildSecrets?
Type:
boolean
(optional, default: true)
Use buildSecrets while calculating the asset hash.
buildSsh?
Type:
boolean
(optional, default: true)
Use buildSsh while calculating the asset hash.
extraHash?
Type:
boolean
(optional, default: true)
Use extraHash while calculating the asset hash.
file?
Type:
boolean
(optional, default: true)
Use file while calculating the asset hash.
networkMode?
Type:
boolean
(optional, default: true)
Use networkMode while calculating the asset hash.
outputs?
Type:
boolean
(optional, default: true)
Use outputs while calculating the asset hash.
platform?
Type:
boolean
(optional, default: true)
Use platform while calculating the asset hash.
repositoryName?
Type:
boolean
(optional, default: true)
Use repositoryName while calculating the asset hash.
target?
Type:
boolean
(optional, default: true)
Use target while calculating the asset hash.

.NET
Go
Java
Python
TypeScript (