Skip to content
v2.278.0

NetworkPerformanceOptionsProperty Struct ​

Contains settings for the network performance options for the instance.

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 networkPerformanceOptionsProperty: ec2.CfnLaunchTemplate.NetworkPerformanceOptionsProperty = {
  bandwidthWeighting: 'bandwidthWeighting',
};
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
// 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();
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"
};
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 ​

bandwidthWeightingoptionalstringbandwidth_weightingoptionalstrbandwidthWeightingoptionalStringBandwidthWeightingoptionalstringBandwidthWeightingoptional*string #
Specify the bandwidth weighting option to boost the associated type of baseline bandwidth, as follows:.
notes
  • 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.