Device Struct
A container instance host device.
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 device: ecs.Device = {
hostPath: 'hostPath',
// the properties below are optional
containerPath: 'containerPath',
permissions: [ecs.DevicePermission.READ],
};
Properties
containerPathstringcontainer_pathstrcontainerPathStringContainerPathstringContainerPath*string= Same path as the host#The path inside the container at which to expose the host device.
The path for the device on the host container instance.
permissionsDevicePermission[]permissionstyping.List[DevicePermission]permissionsList<DevicePermission>PermissionsDevicePermission[]Permissions*[]DevicePermission= 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.