Tmpfs

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

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.

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

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.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.

Return type

str

mount_options

The list of tmpfs volume mount options.

For more information, see TmpfsMountOptions.

Return type

Optional[List[TmpfsMountOption]]

size

The size (in MiB) of the tmpfs volume.

Return type

Union[int, float]