Skip to content
v2.273.0

Tmpfs Struct ​

The details of a tmpfs mount for a 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 tmpfs: ecs.Tmpfs = {
  containerPath: 'containerPath',
  size: 123,

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

Properties ​

containerPathstringcontainer_pathstrcontainerPathStringContainerPathstringContainerPath*stringrequired#
The absolute file path where the tmpfs volume is to be mounted.
mountOptionsTmpfsMountOption[]mount_optionstyping.List[TmpfsMountOption]mountOptionsList<TmpfsMountOption>MountOptionsTmpfsMountOption[]MountOptions*[]TmpfsMountOption#
The list of tmpfs volume mount options.

For more information, see TmpfsMountOptions.

sizenumbersizeint | floatsizeNumberSizedoubleSize*float64required#
The size (in MiB) of the tmpfs volume.