# TmpfsProperty

The container path, mount options, and size of the `tmpfs` mount.

> This object isn't applicable to jobs that are running on Fargate resources.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const tmpfsProperty: batch.CfnJobDefinition.TmpfsProperty = {
  containerPath: 'containerPath',
  size: 123,

  // the properties below are optional
  mountOptions: ['mountOptions'],
};
```

Python:

```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_batch as batch

tmpfs_property = batch.CfnJobDefinition.TmpfsProperty(
    container_path="containerPath",
    size=123,

    # the properties below are optional
    mount_options=["mountOptions"]
)
```

Java:

```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.batch.*;

TmpfsProperty tmpfsProperty = TmpfsProperty.builder()
        .containerPath("containerPath")
        .size(123)

        // the properties below are optional
        .mountOptions(List.of("mountOptions"))
        .build();
```

C# / .NET:

```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.Batch;

var tmpfsProperty = new TmpfsProperty {
    ContainerPath = "containerPath",
    Size = 123,

    // the properties below are optional
    MountOptions = new [] { "mountOptions" }
};
```

Golang:

```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{
	ContainerPath: jsii.String("containerPath"),
	Size: jsii.Number(123),

	// the properties below are optional
	MountOptions: []*string{
		jsii.String("mountOptions"),
	},
}
```

## Properties

- `containerPath`: string (required) — The absolute file path in the container where the `tmpfs` volume is mounted.

- `mountOptions`: string[] — The list of `tmpfs` volume mount options.

  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` "

- `size`: number (required) — The size (in MiB) of the `tmpfs` volume.
