Skip to content

Commit 3a76d97

Browse files
Launching the feature to support ENA queues offering flexibility to support multiple queues per Enhanced Network Interface (ENI)
1 parent a1df4fd commit 3a76d97

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
@@ -37,6 +37,7 @@ public partial class AttachNetworkInterfaceRequest : AmazonEC2Request
3737
{
3838
private int? _deviceIndex;
3939
private bool? _dryRun;
40+
private int? _enaQueueCount;
4041
private EnaSrdSpecification _enaSrdSpecification;
4142
private string _instanceId;
4243
private int? _networkCardIndex;
@@ -81,6 +82,24 @@ internal bool IsSetDryRun()
8182
return this._dryRun.HasValue;
8283
}
8384

85+
/// <summary>
86+
/// Gets and sets the property EnaQueueCount.
87+
/// <para>
88+
/// The number of ENA queues to be created with the instance.
89+
/// </para>
90+
/// </summary>
91+
public int? EnaQueueCount
92+
{
93+
get { return this._enaQueueCount; }
94+
set { this._enaQueueCount = value; }
95+
}
96+
97+
// Check to see if EnaQueueCount property is set
98+
internal bool IsSetEnaQueueCount()
99+
{
100+
return this._enaQueueCount.HasValue;
101+
}
102+
84103
/// <summary>
85104
/// Gets and sets the property EnaSrdSpecification.
86105
/// <para>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ internal bool IsSetDryRun()
216216
/// </para>
217217
/// </li> <li>
218218
/// <para>
219+
/// <c>network-info.flexible-ena-queues-support</c> - Indicates whether an instance supports
220+
/// flexible ENA queues (<c>supported</c> | <c>unsupported</c>).
221+
/// </para>
222+
/// </li> <li>
223+
/// <para>
219224
/// <c>network-info.encryption-in-transit-supported</c> - Indicates whether the instance
220225
/// type automatically encrypts in-transit traffic between instances (<c>true</c> | <c>false</c>).
221226
/// </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; }
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; }
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
@@ -67,6 +67,10 @@ public IRequest Marshall(AttachNetworkInterfaceRequest publicRequest)
6767
{
6868
request.Parameters.Add("DryRun", StringUtils.FromBool(publicRequest.DryRun));
6969
}
70+
if(publicRequest.IsSetEnaQueueCount())
71+
{
72+
request.Parameters.Add("EnaQueueCount", StringUtils.FromInt(publicRequest.EnaQueueCount));
73+
}
7074
if(publicRequest.IsSetEnaSrdSpecification())
7175
{
7276
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
@@ -665,6 +665,10 @@ public IRequest Marshall(CreateLaunchTemplateRequest publicRequest)
665665
{
666666
request.Parameters.Add("LaunchTemplateData" + "." + "NetworkInterface" + "." + publicRequestLaunchTemplateDatalistValueIndex + "." + "DeviceIndex", StringUtils.FromInt(publicRequestLaunchTemplateDatalistValue.DeviceIndex));
667667
}
668+
if(publicRequestLaunchTemplateDatalistValue.IsSetEnaQueueCount())
669+
{
670+
request.Parameters.Add("LaunchTemplateData" + "." + "NetworkInterface" + "." + publicRequestLaunchTemplateDatalistValueIndex + "." + "EnaQueueCount", StringUtils.FromInt(publicRequestLaunchTemplateDatalistValue.EnaQueueCount));
671+
}
668672
if(publicRequestLaunchTemplateDatalistValue.IsSetEnaSrdSpecification())
669673
{
670674
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
@@ -665,6 +665,10 @@ public IRequest Marshall(CreateLaunchTemplateVersionRequest publicRequest)
665665
{
666666
request.Parameters.Add("LaunchTemplateData" + "." + "NetworkInterface" + "." + publicRequestLaunchTemplateDatalistValueIndex + "." + "DeviceIndex", StringUtils.FromInt(publicRequestLaunchTemplateDatalistValue.DeviceIndex));
667667
}
668+
if(publicRequestLaunchTemplateDatalistValue.IsSetEnaQueueCount())
669+
{
670+
request.Parameters.Add("LaunchTemplateData" + "." + "NetworkInterface" + "." + publicRequestLaunchTemplateDatalistValueIndex + "." + "EnaQueueCount", StringUtils.FromInt(publicRequestLaunchTemplateDatalistValue.EnaQueueCount));
671+
}
668672
if(publicRequestLaunchTemplateDatalistValue.IsSetEnaSrdSpecification())
669673
{
670674
if(publicRequestLaunchTemplateDatalistValue.EnaSrdSpecification.IsSetEnaSrdEnabled())

0 commit comments

Comments
 (0)