# CpuPerformanceFactorRequestProperty

The CPU performance to consider, using an instance family as the baseline reference.

- Source: Generated at build time
- Type last changed: v2.174.0 · 4 Jan 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_ec2 as ec2 } from 'aws-cdk-lib';
const cpuPerformanceFactorRequestProperty: ec2.CfnEC2Fleet.CpuPerformanceFactorRequestProperty = {
  references: [{
    instanceFamily: 'instanceFamily',
  }],
};
```

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

cpu_performance_factor_request_property = ec2.CfnEC2Fleet.CpuPerformanceFactorRequestProperty(
    references=[ec2.CfnEC2Fleet.PerformanceFactorReferenceRequestProperty(
        instance_family="instanceFamily"
    )]
)
```

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.*;

CpuPerformanceFactorRequestProperty cpuPerformanceFactorRequestProperty = CpuPerformanceFactorRequestProperty.builder()
        .references(List.of(PerformanceFactorReferenceRequestProperty.builder()
                .instanceFamily("instanceFamily")
                .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.EC2;

var cpuPerformanceFactorRequestProperty = new CpuPerformanceFactorRequestProperty {
    References = new [] { new PerformanceFactorReferenceRequestProperty {
        InstanceFamily = "instanceFamily"
    } }
};
```

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"

cpuPerformanceFactorRequestProperty := &CpuPerformanceFactorRequestProperty{
	References: []interface{}{
		&PerformanceFactorReferenceRequestProperty{
			InstanceFamily: jsii.String("instanceFamily"),
		},
	},
}
```

## Properties

- `references`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEC2Fleet.PerformanceFactorReferenceRequestProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnEC2Fleet.PerformanceFactorReferenceRequestProperty.html)[] — Specify an instance family to use as the baseline reference for CPU performance.

  All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture differences.

  > Currently, only one instance family can be specified in the list.
