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 * as cdk from 'aws-cdk-lib';
import { aws_batch as batch } from 'aws-cdk-lib';
declare const size: cdk.Size;
const tmpfs: batch.Tmpfs = {
containerPath: 'containerPath',
size: size,
// the properties below are optional
mountOptions: [batch.TmpfsMountOption.DEFAULTS],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_batch as batch
# size: cdk.Size
tmpfs = batch.Tmpfs(
container_path="containerPath",
size=size,
# the properties below are optional
mount_options=[batch.TmpfsMountOption.DEFAULTS]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.batch.*;
Size size;
Tmpfs tmpfs = Tmpfs.builder()
.containerPath("containerPath")
.size(size)
// the properties below are optional
.mountOptions(List.of(TmpfsMountOption.DEFAULTS))
.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;
using Amazon.CDK.AWS.Batch;
Size size;
var tmpfs = new Tmpfs {
ContainerPath = "containerPath",
Size = size,
// the properties below are optional
MountOptions = new [] { TmpfsMountOption.DEFAULTS }
};
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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var size Size
tmpfs := &Tmpfs{
ContainerPath: jsii.String("containerPath"),
Size: size,
// the properties below are optional
MountOptions: []TmpfsMountOption{
awscdk.Aws_batch.TmpfsMountOption_DEFAULTS,
},
}
Properties
containerPathstringcontainer_pathstrcontainerPathStringContainerPathstringContainerPath*stringrequired#The absolute file path where the tmpfs volume is to be mounted.
mountOptionsoptionalTmpfsMountOption[]mount_optionsoptionaltyping.List[TmpfsMountOption]mountOptionsoptionalList<TmpfsMountOption>MountOptionsoptionalTmpfsMountOption[]MountOptionsoptional*[]TmpfsMountOption= none#The list of tmpfs volume mount options.
For more information, see TmpfsMountOptions.