Skip to content
v2.278.0

BaselinePerformanceFactorsProperty Struct ​

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.

Example ​

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 baselinePerformanceFactorsProperty: ec2.CfnLaunchTemplate.BaselinePerformanceFactorsProperty = {
  cpu: {
    references: [{
      instanceFamily: 'instanceFamily',
    }],
  },
};
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_property = ec2.CfnLaunchTemplate.BaselinePerformanceFactorsProperty(
    cpu=ec2.CfnLaunchTemplate.CpuProperty(
        references=[ec2.CfnLaunchTemplate.ReferenceProperty(
            instance_family="instanceFamily"
        )]
    )
)
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.*;

BaselinePerformanceFactorsProperty baselinePerformanceFactorsProperty = BaselinePerformanceFactorsProperty.builder()
        .cpu(CpuProperty.builder()
                .references(List.of(ReferenceProperty.builder()
                        .instanceFamily("instanceFamily")
                        .build()))
                .build())
        .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.EC2;

var baselinePerformanceFactorsProperty = new BaselinePerformanceFactorsProperty {
    Cpu = new CpuProperty {
        References = new [] { new ReferenceProperty {
            InstanceFamily = "instanceFamily"
        } }
    }
};
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"

baselinePerformanceFactorsProperty := &BaselinePerformanceFactorsProperty{
	Cpu: &CpuProperty{
		References: []interface{}{
			&ReferenceProperty{
				InstanceFamily: jsii.String("instanceFamily"),
			},
		},
	},
}

Properties ​

cpuoptionalIResolvable | CfnLaunchTemplate.CpuPropertycpuoptionaltyping.Union[IResolvable, CpuProperty]cpuoptionalIResolvableCpuoptionalIResolvableCpuoptionalinterface{} #
The CPU performance to consider, using an instance family as the baseline reference.