# MemoryMiBRequestProperty

The minimum and maximum amount of memory in mebibytes (MiB) for instance type selection.

This ensures that selected instance types have adequate memory for your workloads.

- Source: Generated at build time
- Type last changed: v2.219.0 · 1 Oct 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const memoryMiBRequestProperty: ecs.CfnCapacityProvider.MemoryMiBRequestProperty = {
  min: 123,

  // the properties below are optional
  max: 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_ecs as ecs

memory_mi_b_request_property = ecs.CfnCapacityProvider.MemoryMiBRequestProperty(
    min=123,

    # the properties below are optional
    max=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.ecs.*;

MemoryMiBRequestProperty memoryMiBRequestProperty = MemoryMiBRequestProperty.builder()
        .min(123)

        // the properties below are optional
        .max(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.ECS;

var memoryMiBRequestProperty = new MemoryMiBRequestProperty {
    Min = 123,

    // the properties below are optional
    Max = 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"

memoryMiBRequestProperty := &MemoryMiBRequestProperty{
	Min: jsii.Number(123),

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

## Properties

- `max`: number — The maximum amount of memory in MiB.

  Instance types with more memory than this value are excluded from selection.

- `min`: number (required) — The minimum amount of memory in MiB.

  Instance types with less memory than this value are excluded from selection.
