aws-cdk-lib.aws_ecs.Tmpfs

interface Tmpfs

LanguageType name
.NETAmazon.CDK.AWS.ECS.Tmpfs
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#Tmpfs
Javasoftware.amazon.awscdk.services.ecs.Tmpfs
Pythonaws_cdk.aws_ecs.Tmpfs
TypeScript (source)aws-cdk-lib » aws_ecs » Tmpfs

The details of a tmpfs mount for a container.

Example

// 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

NameTypeDescription
containerPathstringThe absolute file path where the tmpfs volume is to be mounted.
sizenumberThe size (in MiB) of the tmpfs volume.
mountOptions?TmpfsMountOption[]The list of tmpfs volume mount options.

containerPath

Type: string

The absolute file path where the tmpfs volume is to be mounted.


size

Type: number

The size (in MiB) of the tmpfs volume.


mountOptions?

Type: TmpfsMountOption[] (optional)

The list of tmpfs volume mount options.

For more information, see TmpfsMountOptions.