aws-cdk-lib.aws_ecr_assets.DockerImageAssetInvalidationOptions

interface DockerImageAssetInvalidationOptions

LanguageType name
.NETAmazon.CDK.AWS.Ecr.Assets.DockerImageAssetInvalidationOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecrassets#DockerImageAssetInvalidationOptions
Javasoftware.amazon.awscdk.services.ecr.assets.DockerImageAssetInvalidationOptions
Pythonaws_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

NameTypeDescription
buildArgs?booleanUse buildArgs while calculating the asset hash.
buildSecrets?booleanUse buildSecrets while calculating the asset hash.
extraHash?booleanUse extraHash while calculating the asset hash.
file?booleanUse file while calculating the asset hash.
networkMode?booleanUse networkMode while calculating the asset hash.
outputs?booleanUse outputs while calculating the asset hash.
platform?booleanUse platform while calculating the asset hash.
repositoryName?booleanUse repositoryName while calculating the asset hash.
target?booleanUse 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.


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.