DockerImageAssetInvalidationOptions

class aws_cdk.aws_ecr_assets.DockerImageAssetInvalidationOptions(*, build_args=None, extra_hash=None, file=None, repository_name=None, target=None)

Bases: object

Options to control invalidation of DockerImageAsset asset hashes.

Parameters
  • build_args (Optional[bool]) – Use buildArgs while calculating the asset hash. Default: true

  • extra_hash (Optional[bool]) – Use extraHash while calculating the asset hash. Default: true

  • file (Optional[bool]) – Use file while calculating the asset hash. Default: true

  • repository_name (Optional[bool]) – Use repositoryName while calculating the asset hash. Default: true

  • target (Optional[bool]) – Use target while calculating the asset hash. Default: true

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ecr_assets as ecr_assets

docker_image_asset_invalidation_options = ecr_assets.DockerImageAssetInvalidationOptions(
    build_args=False,
    extra_hash=False,
    file=False,
    repository_name=False,
    target=False
)

Attributes

build_args

Use buildArgs while calculating the asset hash.

Default

true

Return type

Optional[bool]

extra_hash

Use extraHash while calculating the asset hash.

Default

true

Return type

Optional[bool]

file

Use file while calculating the asset hash.

Default

true

Return type

Optional[bool]

repository_name

Use repositoryName while calculating the asset hash.

Default

true

Return type

Optional[bool]

target

Use target while calculating the asset hash.

Default

true

Return type

Optional[bool]