# BaselinePerformanceFactorsRequestProperty

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

The instance family establishes the lowest acceptable level of performance. Amazon EC2 uses this baseline to guide instance type selection, but there is no guarantee that the selected instance types will always exceed the baseline for every application.

Currently, this parameter only supports CPU performance as a baseline performance factor. For example, specifying `c6i` would use the CPU performance of the `c6i` 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 baselinePerformanceFactorsRequestProperty: ec2.CfnEC2Fleet.BaselinePerformanceFactorsRequestProperty = {
  cpu: {
    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

baseline_performance_factors_request_property = ec2.CfnEC2Fleet.BaselinePerformanceFactorsRequestProperty(
    cpu=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.*;

BaselinePerformanceFactorsRequestProperty baselinePerformanceFactorsRequestProperty = BaselinePerformanceFactorsRequestProperty.builder()
        .cpu(CpuPerformanceFactorRequestProperty.builder()
                .references(List.of(PerformanceFactorReferenceRequestProperty.builder()
                        .instanceFamily("instanceFamily")
                        .build()))
                .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 baselinePerformanceFactorsRequestProperty = new BaselinePerformanceFactorsRequestProperty {
    Cpu = 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"

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

## Properties

- `cpu`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEC2Fleet.CpuPerformanceFactorRequestProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnEC2Fleet.CpuPerformanceFactorRequestProperty.html) — The CPU performance to consider, using an instance family as the baseline reference.
