Skip to content
v2.278.0

MemoryMiBRequestProperty Struct ​

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.

Example ​

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
# 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
// 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();
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
};
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 ​

maxoptionalnumbermaxoptionalint | floatmaxoptionalNumberMaxoptionaldoubleMaxoptional*float64 #
The maximum amount of memory in MiB.

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

minnumberminint | floatminNumberMindoubleMin*float64 required #
The minimum amount of memory in MiB.

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