# ScratchSpace

The temporary disk space mounted to the container.

- Source: [`aws-ecs/lib/container-definition.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ecs/lib/container-definition.ts#L1509)

## 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 scratchSpace: ecs.ScratchSpace = {
  containerPath: 'containerPath',
  name: 'name',
  readOnly: false,
  sourcePath: 'sourcePath',
};
```

## Properties

- `containerPath`: string (required) — The path on the container to mount the scratch volume at.

- `name`: string (required) — The name of the scratch volume to mount.

  Must be a volume name referenced in the name parameter of task definition volume.

- `readOnly`: boolean (required) — Specifies whether to give the container read-only access to the scratch volume.

  If this value is true, the container has read-only access to the scratch volume.
  If this value is false, then the container can write to the scratch volume.

- `sourcePath`: string (required)
