Skip to content
v2.274.0

Host Struct ​

The details on a container instance bind mount host volume.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const host: ecs.Host = {
  sourcePath: 'sourcePath',
};

Properties ​

sourcePathstringsource_pathstrsourcePathStringSourcePathstringSourcePath*string#
Specifies the path on the host container instance that is presented to the container.
notes

If the sourcePath value does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.

This property is not supported for tasks that use the Fargate launch type.