# Device

A container instance host device.

- Source: [`aws-batch/lib/linux-parameters.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-batch/lib/linux-parameters.ts#L165)
- Type last changed: v2.96.0 · 13 Sep 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const device: batch.Device = {
  hostPath: 'hostPath',

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

## Properties

- `containerPath`: string — The path inside the container at which to expose the host device.

  **Default:** Same path as the host

- `hostPath`: string (required) — The path for the device on the host container instance.

- `permissions`: [DevicePermission](/cdk/api/v2/docs/aws-cdk-lib.aws_batch.DevicePermission.html)[] = 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.
