Skip to content
v2.278.0

VCpuCountRangeRequestProperty Struct ​

The minimum and maximum number of vCPUs for instance type selection.

This allows you to specify a range of vCPU counts that meet your workload requirements.

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 vCpuCountRangeRequestProperty: ecs.CfnCapacityProvider.VCpuCountRangeRequestProperty = {
  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

v_cpu_count_range_request_property = ecs.CfnCapacityProvider.VCpuCountRangeRequestProperty(
    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.*;

VCpuCountRangeRequestProperty vCpuCountRangeRequestProperty = VCpuCountRangeRequestProperty.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 vCpuCountRangeRequestProperty = new VCpuCountRangeRequestProperty {
    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"

vCpuCountRangeRequestProperty := &VCpuCountRangeRequestProperty{
	Min: jsii.Number(123),

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

Properties ​

maxoptionalnumbermaxoptionalint | floatmaxoptionalNumberMaxoptionaldoubleMaxoptional*float64 #
The maximum number of vCPUs.

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

minnumberminint | floatminNumberMindoubleMin*float64 required #
The minimum number of vCPUs.

Instance types with fewer vCPUs than this value are excluded from selection.