Skip to content
v2.273.0

ScratchSpace Struct ​

The temporary disk space mounted to the container.

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 ​

containerPathstringcontainer_pathstrcontainerPathStringContainerPathstringContainerPath*stringrequired#
The path on the container to mount the scratch volume at.
namestringnamestrnameStringNamestringName*stringrequired#
The name of the scratch volume to mount.

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

readOnlybooleanread_onlyboolreadOnlyBooleanReadOnlyboolReadOnly*boolrequired#
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.

sourcePathstringsource_pathstrsourcePathStringSourcePathstringSourcePath*stringrequired#