# Tmpfs

The details of a tmpfs mount for a container.

- Source: [`aws-batch/lib/linux-parameters.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-batch/lib/linux-parameters.ts#L190)
- 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 * as cdk from 'aws-cdk-lib';
import { aws_batch as batch } from 'aws-cdk-lib';

declare const size: cdk.Size;
const tmpfs: batch.Tmpfs = {
  containerPath: 'containerPath',
  size: size,

  // the properties below are optional
  mountOptions: [batch.TmpfsMountOption.DEFAULTS],
};
```

## Properties

- `containerPath`: string (required) — The absolute file path where the tmpfs volume is to be mounted.

- `mountOptions`: [TmpfsMountOption](/cdk/api/v2/docs/aws-cdk-lib.aws_batch.TmpfsMountOption.html)[] = none — The list of tmpfs volume mount options.

  For more information, see
  [TmpfsMountOptions](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Tmpfs.html).

- `size`: [Size](/cdk/api/v2/docs/aws-cdk-lib.Size.html) (required) — The size (in MiB) of the tmpfs volume.
