# CacheUsageLimitsProperty

The usage limits for storage and ElastiCache Processing Units for the cache.

- Source: Generated at build time
- Type last changed: v2.113.0 · 1 Dec 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_elasticache as elasticache } from 'aws-cdk-lib';
const cacheUsageLimitsProperty: elasticache.CfnServerlessCache.CacheUsageLimitsProperty = {
  dataStorage: {
    unit: 'unit',

    // the properties below are optional
    maximum: 123,
    minimum: 123,
  },
  ecpuPerSecond: {
    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

cache_usage_limits_property = elasticache.CfnServerlessCache.CacheUsageLimitsProperty(
    data_storage=elasticache.CfnServerlessCache.DataStorageProperty(
        unit="unit",

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

CacheUsageLimitsProperty cacheUsageLimitsProperty = CacheUsageLimitsProperty.builder()
        .dataStorage(DataStorageProperty.builder()
                .unit("unit")

                // the properties below are optional
                .maximum(123)
                .minimum(123)
                .build())
        .ecpuPerSecond(ECPUPerSecondProperty.builder()
                .maximum(123)
                .minimum(123)
                .build())
        .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 cacheUsageLimitsProperty = new CacheUsageLimitsProperty {
    DataStorage = new DataStorageProperty {
        Unit = "unit",

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

cacheUsageLimitsProperty := &CacheUsageLimitsProperty{
	DataStorage: &DataStorageProperty{
		Unit: jsii.String("unit"),

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

## Properties

- `dataStorage`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnServerlessCache.DataStorageProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnServerlessCache.DataStorageProperty.html) — The maximum data storage limit in the cache, expressed in Gigabytes.

- `ecpuPerSecond`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnServerlessCache.ECPUPerSecondProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticache.CfnServerlessCache.ECPUPerSecondProperty.html) — The number of ElastiCache Processing Units (ECPU) the cache can consume per second.
