aws-cdk-lib.aws_ecs.Device

interface Device

LanguageType name
.NETAmazon.CDK.AWS.ECS.Device
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#Device
Javasoftware.amazon.awscdk.services.ecs.Device
Pythonaws_cdk.aws_ecs.Device
TypeScript (source)aws-cdk-lib » aws_ecs » Device

A container instance host device.

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 device: ecs.Device = {
  hostPath: 'hostPath',

  // the properties below are optional
  containerPath: 'containerPath',
  permissions: [ecs.DevicePermission.READ],
};

Properties

NameTypeDescription
hostPathstringThe path for the device on the host container instance.
containerPath?stringThe path inside the container at which to expose the host device.
permissions?DevicePermission[]The explicit permissions to provide to the container for the device.

hostPath

Type: string

The path for the device on the host container instance.


containerPath?

Type: string (optional, default: Same path as the host)

The path inside the container at which to expose the host device.


permissions?

Type: DevicePermission[] (optional, default: Readonly)

The explicit permissions to provide to the container for the device.

By default, the container has permissions for read, write, and mknod for the device.