# DataStorageProperty

The data storage limit.

- Source: Generated at build time
- Type last changed: v2.138.0 · 18 Apr 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticache as elasticache } from 'aws-cdk-lib';
const dataStorageProperty: elasticache.CfnServerlessCache.DataStorageProperty = {
  unit: 'unit',

  // the properties below are optional
  maximum: 123,
  minimum: 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_elasticache as elasticache

data_storage_property = elasticache.CfnServerlessCache.DataStorageProperty(
    unit="unit",

    # the properties below are optional
    maximum=123,
    minimum=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.elasticache.*;

DataStorageProperty dataStorageProperty = DataStorageProperty.builder()
        .unit("unit")

        // the properties below are optional
        .maximum(123)
        .minimum(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.ElastiCache;

var dataStorageProperty = new DataStorageProperty {
    Unit = "unit",

    // the properties below are optional
    Maximum = 123,
    Minimum = 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"

dataStorageProperty := &DataStorageProperty{
	Unit: jsii.String("unit"),

	// the properties below are optional
	Maximum: jsii.Number(123),
	Minimum: jsii.Number(123),
}
```

## Properties

- `maximum`: number — The upper limit for data storage the cache is set to use.

- `minimum`: number — The lower limit for data storage the cache is set to use.

- `unit`: string (required) — The unit that the storage is measured in, in GB.
