# MemoryMiBRequestProperty

The minimum and maximum amount of memory, in MiB.

- 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_ec2 as ec2 } from 'aws-cdk-lib';
const memoryMiBRequestProperty: ec2.CfnEC2Fleet.MemoryMiBRequestProperty = {
  max: 123,
  min: 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_ec2 as ec2

memory_mi_b_request_property = ec2.CfnEC2Fleet.MemoryMiBRequestProperty(
    max=123,
    min=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.ec2.*;

MemoryMiBRequestProperty memoryMiBRequestProperty = MemoryMiBRequestProperty.builder()
        .max(123)
        .min(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.EC2;

var memoryMiBRequestProperty = new MemoryMiBRequestProperty {
    Max = 123,
    Min = 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{
	Max: jsii.Number(123),
	Min: jsii.Number(123),
}
```

## Properties

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

  To specify no maximum limit, omit this parameter.

- `min`: number — The minimum amount of memory, in MiB.

  To specify no minimum limit, specify `0` .
