# NetworkPerformanceOptionsProperty

Contains settings for the network performance options for the instance.

- Source: Generated at build time
- Type last changed: v2.185.0 · 19 Mar 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 networkPerformanceOptionsProperty: ec2.CfnLaunchTemplate.NetworkPerformanceOptionsProperty = {
  bandwidthWeighting: 'bandwidthWeighting',
};
```

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

network_performance_options_property = ec2.CfnLaunchTemplate.NetworkPerformanceOptionsProperty(
    bandwidth_weighting="bandwidthWeighting"
)
```

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

NetworkPerformanceOptionsProperty networkPerformanceOptionsProperty = NetworkPerformanceOptionsProperty.builder()
        .bandwidthWeighting("bandwidthWeighting")
        .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 networkPerformanceOptionsProperty = new NetworkPerformanceOptionsProperty {
    BandwidthWeighting = "bandwidthWeighting"
};
```

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"

networkPerformanceOptionsProperty := &NetworkPerformanceOptionsProperty{
	BandwidthWeighting: jsii.String("bandwidthWeighting"),
}
```

## Properties

- `bandwidthWeighting`: string — Specify the bandwidth weighting option to boost the associated type of baseline bandwidth, as follows:.

  - **default** - This option uses the standard bandwidth configuration for your instance type.
  - **vpc-1** - This option boosts your networking baseline bandwidth and reduces your EBS baseline bandwidth.
  - **ebs-1** - This option boosts your EBS baseline bandwidth and reduces your networking baseline bandwidth.
