DockerBuildAssetOptions

class aws_cdk.aws_lambda.DockerBuildAssetOptions(*, build_args=None, file=None, image_path=None, output_path=None)

Bases: aws_cdk.core.DockerBuildOptions

Options when creating an asset from a Docker build.

Parameters
  • build_args (Optional[Mapping[str, str]]) – Build args. Default: - no build args

  • file (Optional[str]) – Name of the Dockerfile, must relative to the docker build path. Default: Dockerfile

  • image_path (Optional[str]) – The path in the Docker image where the asset is located after the build operation. Default: /asset

  • output_path (Optional[str]) – The path on the local filesystem where the asset will be copied using docker cp. Default: - a unique temporary directory in the system temp directory

Attributes

build_args

Build args.

Default
  • no build args

Return type

Optional[Mapping[str, str]]

file

Name of the Dockerfile, must relative to the docker build path.

Default

Dockerfile

Return type

Optional[str]

image_path

The path in the Docker image where the asset is located after the build operation.

Default

/asset

Return type

Optional[str]

output_path

The path on the local filesystem where the asset will be copied using docker cp.

Default
  • a unique temporary directory in the system temp directory

Return type

Optional[str]