Tmpfs

class aws_cdk.aws_ecs.Tmpfs(*, container_path, size, mount_options=None)

Bases: object

The details of a tmpfs mount for a container.

Parameters:
  • container_path (str) – The absolute file path where the tmpfs volume is to be mounted.

  • size (Union[int, float]) – The size (in MiB) of the tmpfs volume.

  • mount_options (Optional[Sequence[TmpfsMountOption]]) – The list of tmpfs volume mount options. For more information, see TmpfsMountOptions.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs

tmpfs = ecs.Tmpfs(
    container_path="containerPath",
    size=123,

    # the properties below are optional
    mount_options=[ecs.TmpfsMountOption.DEFAULTS]
)

Attributes

container_path

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

mount_options

The list of tmpfs volume mount options.

For more information, see TmpfsMountOptions.

size

The size (in MiB) of the tmpfs volume.