Skip to content

Commit 0015fbb

Browse files
Launching the feature to support ENA queues offering flexibility to support multiple queues per Enhanced Network Interface (ENI)
1 parent 9f656c8 commit 0015fbb

27 files changed

+507
-4
lines changed

generator/ServiceModels/ec2/ec2-2016-11-15.api.json

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8222,6 +8222,7 @@
82228222
"members":{
82238223
"NetworkCardIndex":{"shape":"Integer"},
82248224
"EnaSrdSpecification":{"shape":"EnaSrdSpecification"},
8225+
"EnaQueueCount":{"shape":"Integer"},
82258226
"DryRun":{
82268227
"shape":"Boolean",
82278228
"locationName":"dryRun"
@@ -14583,6 +14584,7 @@
1458314584
"locationName":"item"
1458414585
}
1458514586
},
14587+
"DefaultEnaQueueCountPerInterface":{"type":"integer"},
1458614588
"DefaultInstanceMetadataEndpointState":{
1458714589
"type":"string",
1458814590
"enum":[
@@ -25441,6 +25443,13 @@
2544125443
"instant"
2544225444
]
2544325445
},
25446+
"FlexibleEnaQueuesSupport":{
25447+
"type":"string",
25448+
"enum":[
25449+
"unsupported",
25450+
"supported"
25451+
]
25452+
},
2544425453
"Float":{"type":"float"},
2544525454
"FlowLog":{
2544625455
"type":"structure",
@@ -30108,6 +30117,10 @@
3010830117
"EnaSrdSpecification":{
3010930118
"shape":"InstanceAttachmentEnaSrdSpecification",
3011030119
"locationName":"enaSrdSpecification"
30120+
},
30121+
"EnaQueueCount":{
30122+
"shape":"Integer",
30123+
"locationName":"enaQueueCount"
3011130124
}
3011230125
}
3011330126
},
@@ -30186,7 +30199,8 @@
3018630199
"Ipv6PrefixCount":{"shape":"Integer"},
3018730200
"PrimaryIpv6":{"shape":"Boolean"},
3018830201
"EnaSrdSpecification":{"shape":"EnaSrdSpecificationRequest"},
30189-
"ConnectionTrackingSpecification":{"shape":"ConnectionTrackingSpecificationRequest"}
30202+
"ConnectionTrackingSpecification":{"shape":"ConnectionTrackingSpecificationRequest"},
30203+
"EnaQueueCount":{"shape":"Integer"}
3019030204
}
3019130205
},
3019230206
"InstanceNetworkInterfaceSpecificationList":{
@@ -34260,6 +34274,10 @@
3426034274
"ConnectionTrackingSpecification":{
3426134275
"shape":"ConnectionTrackingSpecification",
3426234276
"locationName":"connectionTrackingSpecification"
34277+
},
34278+
"EnaQueueCount":{
34279+
"shape":"Integer",
34280+
"locationName":"enaQueueCount"
3426334281
}
3426434282
}
3426534283
},
@@ -34303,7 +34321,8 @@
3430334321
"Ipv6PrefixCount":{"shape":"Integer"},
3430434322
"PrimaryIpv6":{"shape":"Boolean"},
3430534323
"EnaSrdSpecification":{"shape":"EnaSrdSpecificationRequest"},
34306-
"ConnectionTrackingSpecification":{"shape":"ConnectionTrackingSpecificationRequest"}
34324+
"ConnectionTrackingSpecification":{"shape":"ConnectionTrackingSpecificationRequest"},
34325+
"EnaQueueCount":{"shape":"Integer"}
3430734326
}
3430834327
},
3430934328
"LaunchTemplateInstanceNetworkInterfaceSpecificationRequestList":{
@@ -35516,6 +35535,8 @@
3551635535
},
3551735536
"MaximumBandwidthInMbps":{"type":"integer"},
3551835537
"MaximumEfaInterfaces":{"type":"integer"},
35538+
"MaximumEnaQueueCount":{"type":"integer"},
35539+
"MaximumEnaQueueCountPerInterface":{"type":"integer"},
3551935540
"MaximumIops":{"type":"integer"},
3552035541
"MaximumNetworkCards":{"type":"integer"},
3552135542
"MaximumThroughputInMBps":{"type":"double"},
@@ -38118,6 +38139,18 @@
3811838139
"PeakBandwidthInGbps":{
3811938140
"shape":"PeakBandwidthInGbps",
3812038141
"locationName":"peakBandwidthInGbps"
38142+
},
38143+
"DefaultEnaQueueCountPerInterface":{
38144+
"shape":"DefaultEnaQueueCountPerInterface",
38145+
"locationName":"defaultEnaQueueCountPerInterface"
38146+
},
38147+
"MaximumEnaQueueCount":{
38148+
"shape":"MaximumEnaQueueCount",
38149+
"locationName":"maximumEnaQueueCount"
38150+
},
38151+
"MaximumEnaQueueCountPerInterface":{
38152+
"shape":"MaximumEnaQueueCountPerInterface",
38153+
"locationName":"maximumEnaQueueCountPerInterface"
3812138154
}
3812238155
}
3812338156
},
@@ -38186,6 +38219,10 @@
3818638219
"BandwidthWeightings":{
3818738220
"shape":"BandwidthWeightingTypeList",
3818838221
"locationName":"bandwidthWeightings"
38222+
},
38223+
"FlexibleEnaQueuesSupport":{
38224+
"shape":"FlexibleEnaQueuesSupport",
38225+
"locationName":"flexibleEnaQueuesSupport"
3818938226
}
3819038227
}
3819138228
},
@@ -38668,12 +38705,18 @@
3866838705
"EnaSrdSpecification":{
3866938706
"shape":"AttachmentEnaSrdSpecification",
3867038707
"locationName":"enaSrdSpecification"
38708+
},
38709+
"EnaQueueCount":{
38710+
"shape":"Integer",
38711+
"locationName":"enaQueueCount"
3867138712
}
3867238713
}
3867338714
},
3867438715
"NetworkInterfaceAttachmentChanges":{
3867538716
"type":"structure",
3867638717
"members":{
38718+
"DefaultEnaQueueCount":{"shape":"Boolean"},
38719+
"EnaQueueCount":{"shape":"Integer"},
3867738720
"AttachmentId":{
3867838721
"shape":"NetworkInterfaceAttachmentId",
3867938722
"locationName":"attachmentId"

generator/ServiceModels/ec2/ec2-2016-11-15.docs.json

Lines changed: 33 additions & 1 deletion
Large diffs are not rendered by default.

generator/ServiceModels/ec2/ec2-2016-11-15.normal.json

Lines changed: 66 additions & 1 deletion
Large diffs are not rendered by default.

sdk/src/Services/EC2/Generated/Model/AttachNetworkInterfaceRequest.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ namespace Amazon.EC2.Model
3636
public partial class AttachNetworkInterfaceRequest : AmazonEC2Request
3737
{
3838
private int? _deviceIndex;
39+
private int? _enaQueueCount;
3940
private EnaSrdSpecification _enaSrdSpecification;
4041
private string _instanceId;
4142
private int? _networkCardIndex;
@@ -60,6 +61,24 @@ internal bool IsSetDeviceIndex()
6061
return this._deviceIndex.HasValue;
6162
}
6263

64+
/// <summary>
65+
/// Gets and sets the property EnaQueueCount.
66+
/// <para>
67+
/// The number of ENA queues to be created with the instance.
68+
/// </para>
69+
/// </summary>
70+
public int EnaQueueCount
71+
{
72+
get { return this._enaQueueCount.GetValueOrDefault(); }
73+
set { this._enaQueueCount = value; }
74+
}
75+
76+
// Check to see if EnaQueueCount property is set
77+
internal bool IsSetEnaQueueCount()
78+
{
79+
return this._enaQueueCount.HasValue;
80+
}
81+
6382
/// <summary>
6483
/// Gets and sets the property EnaSrdSpecification.
6584
/// <para>

sdk/src/Services/EC2/Generated/Model/DescribeInstanceTypesRequest.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ public partial class DescribeInstanceTypesRequest : AmazonEC2Request
195195
/// </para>
196196
/// </li> <li>
197197
/// <para>
198+
/// <c>network-info.flexible-ena-queues-support</c> - Indicates whether an instance supports
199+
/// flexible ENA queues (<c>supported</c> | <c>unsupported</c>).
200+
/// </para>
201+
/// </li> <li>
202+
/// <para>
198203
/// <c>network-info.encryption-in-transit-supported</c> - Indicates whether the instance
199204
/// type automatically encrypts in-transit traffic between instances (<c>true</c> | <c>false</c>).
200205
/// </para>

sdk/src/Services/EC2/Generated/Model/InstanceNetworkInterfaceAttachment.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public partial class InstanceNetworkInterfaceAttachment
3838
private DateTime? _attachTime;
3939
private bool? _deleteOnTermination;
4040
private int? _deviceIndex;
41+
private int? _enaQueueCount;
4142
private InstanceAttachmentEnaSrdSpecification _enaSrdSpecification;
4243
private int? _networkCardIndex;
4344
private AttachmentStatus _status;
@@ -114,6 +115,24 @@ internal bool IsSetDeviceIndex()
114115
return this._deviceIndex.HasValue;
115116
}
116117

118+
/// <summary>
119+
/// Gets and sets the property EnaQueueCount.
120+
/// <para>
121+
/// The number of ENA queues created with the instance.
122+
/// </para>
123+
/// </summary>
124+
public int EnaQueueCount
125+
{
126+
get { return this._enaQueueCount.GetValueOrDefault(); }
127+
set { this._enaQueueCount = value; }
128+
}
129+
130+
// Check to see if EnaQueueCount property is set
131+
internal bool IsSetEnaQueueCount()
132+
{
133+
return this._enaQueueCount.HasValue;
134+
}
135+
117136
/// <summary>
118137
/// Gets and sets the property EnaSrdSpecification.
119138
/// <para>

sdk/src/Services/EC2/Generated/Model/InstanceNetworkInterfaceSpecification.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public partial class InstanceNetworkInterfaceSpecification
4040
private bool? _deleteOnTermination;
4141
private string _description;
4242
private int? _deviceIndex;
43+
private int? _enaQueueCount;
4344
private EnaSrdSpecificationRequest _enaSrdSpecification;
4445
private List<string> _groups = AWSConfigs.InitializeCollections ? new List<string>() : null;
4546
private string _interfaceType;
@@ -194,6 +195,24 @@ internal bool IsSetDeviceIndex()
194195
return this._deviceIndex.HasValue;
195196
}
196197

198+
/// <summary>
199+
/// Gets and sets the property EnaQueueCount.
200+
/// <para>
201+
/// The number of ENA queues to be created with the instance.
202+
/// </para>
203+
/// </summary>
204+
public int EnaQueueCount
205+
{
206+
get { return this._enaQueueCount.GetValueOrDefault(); }
207+
set { this._enaQueueCount = value; }
208+
}
209+
210+
// Check to see if EnaQueueCount property is set
211+
internal bool IsSetEnaQueueCount()
212+
{
213+
return this._enaQueueCount.HasValue;
214+
}
215+
197216
/// <summary>
198217
/// Gets and sets the property EnaSrdSpecification.
199218
/// <para>

sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/AttachNetworkInterfaceRequestMarshaller.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ public IRequest Marshall(AttachNetworkInterfaceRequest publicRequest)
6363
{
6464
request.Parameters.Add("DeviceIndex", StringUtils.FromInt(publicRequest.DeviceIndex));
6565
}
66+
if(publicRequest.IsSetEnaQueueCount())
67+
{
68+
request.Parameters.Add("EnaQueueCount", StringUtils.FromInt(publicRequest.EnaQueueCount));
69+
}
6670
if(publicRequest.IsSetEnaSrdSpecification())
6771
{
6872
if(publicRequest.EnaSrdSpecification.IsSetEnaSrdEnabled())

sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/CreateLaunchTemplateRequestMarshaller.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,10 @@ public IRequest Marshall(CreateLaunchTemplateRequest publicRequest)
592592
{
593593
request.Parameters.Add("LaunchTemplateData" + "." + "NetworkInterface" + "." + publicRequestLaunchTemplateDatalistValueIndex + "." + "DeviceIndex", StringUtils.FromInt(publicRequestLaunchTemplateDatalistValue.DeviceIndex));
594594
}
595+
if(publicRequestLaunchTemplateDatalistValue.IsSetEnaQueueCount())
596+
{
597+
request.Parameters.Add("LaunchTemplateData" + "." + "NetworkInterface" + "." + publicRequestLaunchTemplateDatalistValueIndex + "." + "EnaQueueCount", StringUtils.FromInt(publicRequestLaunchTemplateDatalistValue.EnaQueueCount));
598+
}
595599
if(publicRequestLaunchTemplateDatalistValue.IsSetEnaSrdSpecification())
596600
{
597601
if(publicRequestLaunchTemplateDatalistValue.EnaSrdSpecification.IsSetEnaSrdEnabled())

sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/CreateLaunchTemplateVersionRequestMarshaller.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,10 @@ public IRequest Marshall(CreateLaunchTemplateVersionRequest publicRequest)
592592
{
593593
request.Parameters.Add("LaunchTemplateData" + "." + "NetworkInterface" + "." + publicRequestLaunchTemplateDatalistValueIndex + "." + "DeviceIndex", StringUtils.FromInt(publicRequestLaunchTemplateDatalistValue.DeviceIndex));
594594
}
595+
if(publicRequestLaunchTemplateDatalistValue.IsSetEnaQueueCount())
596+
{
597+
request.Parameters.Add("LaunchTemplateData" + "." + "NetworkInterface" + "." + publicRequestLaunchTemplateDatalistValueIndex + "." + "EnaQueueCount", StringUtils.FromInt(publicRequestLaunchTemplateDatalistValue.EnaQueueCount));
598+
}
595599
if(publicRequestLaunchTemplateDatalistValue.IsSetEnaSrdSpecification())
596600
{
597601
if(publicRequestLaunchTemplateDatalistValue.EnaSrdSpecification.IsSetEnaSrdEnabled())

0 commit comments

Comments
 (0)