TmpfsProperty Struct
The container path, mount options, and size of the tmpfs mount.
| Source | |
|---|---|
| Type last changed |
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 tmpfsProperty: ecs.CfnDaemonTaskDefinition.TmpfsProperty = {
size: 123,
// the properties below are optional
containerPath: 'containerPath',
mountOptions: ['mountOptions'],
};
python
# 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_property = ecs.CfnDaemonTaskDefinition.TmpfsProperty(
size=123,
# the properties below are optional
container_path="containerPath",
mount_options=["mountOptions"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
TmpfsProperty tmpfsProperty = TmpfsProperty.builder()
.size(123)
// the properties below are optional
.containerPath("containerPath")
.mountOptions(List.of("mountOptions"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var tmpfsProperty = new TmpfsProperty {
Size = 123,
// the properties below are optional
ContainerPath = "containerPath",
MountOptions = new [] { "mountOptions" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
tmpfsProperty := &TmpfsProperty{
Size: jsii.Number(123),
// the properties below are optional
ContainerPath: jsii.String("containerPath"),
MountOptions: []*string{
jsii.String("mountOptions"),
},
}
Properties
containerPathoptionalstringcontainer_pathoptionalstrcontainerPathoptionalStringContainerPathoptionalstringContainerPathoptional*string #The absolute file path where the tmpfs volume is to be mounted.
mountOptionsoptionalstring[]mount_optionsoptionaltyping.List[str]mountOptionsoptionalList<String>MountOptionsoptionalstring[]MountOptionsoptional*[]*string #The list of tmpfs volume mount options.
notes
Valid values: "defaults" | "ro" | "rw" | "suid" | "nosuid" | "dev" | "nodev" | "exec" | "noexec" | "sync" | "async" | "dirsync" | "remount" | "mand" | "nomand" | "atime" | "noatime" | "diratime" | "nodiratime" | "bind" | "rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime" | "norelatime" | "strictatime" | "nostrictatime" | "mode" | "uid" | "gid" | "nr_inodes" | "nr_blocks" | "mpol"
The maximum size (in MiB) of the tmpfs volume.