interface Host
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.Host |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#Host |
Java | software.amazon.awscdk.services.ecs.Host |
Python | aws_cdk.aws_ecs.Host |
TypeScript (source) | aws-cdk-lib » aws_ecs » Host |
The details on a container instance bind mount host volume.
Example
// 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
Name | Type | Description |
---|---|---|
source | string | Specifies the path on the host container instance that is presented to the container. |
sourcePath?
Type:
string
(optional)
Specifies the path on the host container instance that is presented to the container.
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.