# EphemeralStorageProperty

The size of the function's `/tmp` directory in MB.

The default value is 512, but it can be any whole number between 512 and 10,240 MB.

- 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_lambda as lambda } from 'aws-cdk-lib';
const ephemeralStorageProperty: lambda.CfnFunction.EphemeralStorageProperty = {
  size: 123,
};
```

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_lambda as lambda_

ephemeral_storage_property = lambda.CfnFunction.EphemeralStorageProperty(
    size=123
)
```

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.lambda.*;

EphemeralStorageProperty ephemeralStorageProperty = EphemeralStorageProperty.builder()
        .size(123)
        .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.Lambda;

var ephemeralStorageProperty = new EphemeralStorageProperty {
    Size = 123
};
```

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"

ephemeralStorageProperty := &EphemeralStorageProperty{
	Size: jsii.Number(123),
}
```

## Properties

- `size`: number (required) — The size of the function's `/tmp` directory.
