AssetImageProps

class aws_cdk.aws_ecs.AssetImageProps(*, exclude=None, follow=None, ignore_mode=None, extra_hash=None, build_args=None, file=None, repository_name=None, target=None)

Bases: aws_cdk.aws_ecr_assets.DockerImageAssetOptions

The properties for building an AssetImage.

Parameters
  • exclude (Optional[List[str]]) – (deprecated) Glob patterns to exclude from the copy. Default: nothing is excluded

  • follow (Optional[FollowMode]) – (deprecated) A strategy for how to handle symlinks. Default: Never

  • ignore_mode (Optional[IgnoreMode]) – (deprecated) The ignore behavior to use for exclude patterns. Default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the ‘

  • extra_hash (Optional[str]) – (deprecated) Extra information to encode into the fingerprint (e.g. build instructions and other inputs). Default: - hash is only based on source content

  • build_args (Optional[Mapping[str, str]]) – (experimental) Build args to pass to the docker build command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as lambda.functionArn or queue.queueUrl). Default: - no build args are passed

  • file (Optional[str]) – (experimental) Path to the Dockerfile (relative to the directory). Default: ‘Dockerfile’

  • repository_name (Optional[str]) – (deprecated) ECR repository name. Specify this property if you need to statically address the image, e.g. from a Kubernetes Pod. Note, this is only the repository name, without the registry and the tag parts. Default: - the default ECR repository for CDK assets

  • target (Optional[str]) – (experimental) Docker target to build to. Default: - no target

Attributes

build_args

(experimental) Build args to pass to the docker build command.

Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as lambda.functionArn or queue.queueUrl).

Default
  • no build args are passed

Stability

experimental

Return type

Optional[Mapping[str, str]]

exclude

(deprecated) Glob patterns to exclude from the copy.

Default

nothing is excluded

Stability

deprecated

Return type

Optional[List[str]]

extra_hash

(deprecated) Extra information to encode into the fingerprint (e.g. build instructions and other inputs).

Default
  • hash is only based on source content

Stability

deprecated

Return type

Optional[str]

file

(experimental) Path to the Dockerfile (relative to the directory).

Default

‘Dockerfile’

Stability

experimental

Return type

Optional[str]

follow

(deprecated) A strategy for how to handle symlinks.

Default

Never

Stability

deprecated

Return type

Optional[FollowMode]

ignore_mode

(deprecated) The ignore behavior to use for exclude patterns.

Default

  • GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the

Stability

deprecated

Aws-cdk

/aws-ecr-assets:dockerIgnoreSupport’ flag is set.

Return type

Optional[IgnoreMode]

repository_name

(deprecated) ECR repository name.

Specify this property if you need to statically address the image, e.g. from a Kubernetes Pod. Note, this is only the repository name, without the registry and the tag parts.

Default
  • the default ECR repository for CDK assets

Deprecated

to control the location of docker image assets, please override Stack.addDockerImageAsset. this feature will be removed in future releases.

Stability

deprecated

Return type

Optional[str]

target

(experimental) Docker target to build to.

Default
  • no target

Stability

experimental

Return type

Optional[str]