Skip to content

Commit e108390

Browse files
Add Context to GetInstanceTypesFromInstanceRequirements API
1 parent 63bbda2 commit e108390

File tree

5 files changed

+30
-1
lines changed

5 files changed

+30
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26525,7 +26525,8 @@
2652526525
},
2652626526
"InstanceRequirements":{"shape":"InstanceRequirementsRequest"},
2652726527
"MaxResults":{"shape":"Integer"},
26528-
"NextToken":{"shape":"String"}
26528+
"NextToken":{"shape":"String"},
26529+
"Context":{"shape":"String"}
2652926530
}
2653026531
},
2653126532
"GetInstanceTypesFromInstanceRequirementsResult":{

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22641,6 +22641,7 @@
2264122641
"GetHostReservationPurchasePreviewResult$TotalUpfrontPrice": "<p>The potential total upfront price. This is billed immediately.</p>",
2264222642
"GetImageBlockPublicAccessStateResult$ImageBlockPublicAccessState": "<p>The current state of block public access for AMIs at the account level in the specified Amazon Web Services Region.</p> <p>Possible values:</p> <ul> <li> <p> <code>block-new-sharing</code> - Any attempt to publicly share your AMIs in the specified Region is blocked.</p> </li> <li> <p> <code>unblocked</code> - Your AMIs in the specified Region can be publicly shared.</p> </li> </ul>",
2264322643
"GetInstanceTypesFromInstanceRequirementsRequest$NextToken": "<p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>",
22644+
"GetInstanceTypesFromInstanceRequirementsRequest$Context": "<p>Reserved.</p>",
2264422645
"GetInstanceTypesFromInstanceRequirementsResult$NextToken": "<p>The token to include in another request to get the next page of items. This value is <code>null</code> when there are no more items to return.</p>",
2264522646
"GetInstanceUefiDataResult$UefiData": "<p>Base64 representation of the non-volatile UEFI variable store.</p>",
2264622647
"GetIpamAddressHistoryRequest$Cidr": "<p>The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. You will not get records for any subnets within the /16 CIDR.</p>",

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34662,6 +34662,10 @@
3466234662
"NextToken":{
3466334663
"shape":"String",
3466434664
"documentation":"<p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>"
34665+
},
34666+
"Context":{
34667+
"shape":"String",
34668+
"documentation":"<p>Reserved.</p>"
3466534669
}
3466634670
}
3466734671
},

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ namespace Amazon.EC2.Model
5454
public partial class GetInstanceTypesFromInstanceRequirementsRequest : AmazonEC2Request
5555
{
5656
private List<string> _architectureTypes = AWSConfigs.InitializeCollections ? new List<string>() : null;
57+
private string _context;
5758
private InstanceRequirementsRequest _instanceRequirements;
5859
private int? _maxResults;
5960
private string _nextToken;
@@ -78,6 +79,24 @@ internal bool IsSetArchitectureTypes()
7879
return this._architectureTypes != null && (this._architectureTypes.Count > 0 || !AWSConfigs.InitializeCollections);
7980
}
8081

82+
/// <summary>
83+
/// Gets and sets the property Context.
84+
/// <para>
85+
/// Reserved.
86+
/// </para>
87+
/// </summary>
88+
public string Context
89+
{
90+
get { return this._context; }
91+
set { this._context = value; }
92+
}
93+
94+
// Check to see if Context property is set
95+
internal bool IsSetContext()
96+
{
97+
return this._context != null;
98+
}
99+
81100
/// <summary>
82101
/// Gets and sets the property InstanceRequirements.
83102
/// <para>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ public IRequest Marshall(GetInstanceTypesFromInstanceRequirementsRequest publicR
6868
publicRequestlistValueIndex++;
6969
}
7070
}
71+
if(publicRequest.IsSetContext())
72+
{
73+
request.Parameters.Add("Context", StringUtils.FromString(publicRequest.Context));
74+
}
7175
if(publicRequest.IsSetInstanceRequirements())
7276
{
7377
if(publicRequest.InstanceRequirements.IsSetAcceleratorCount())

0 commit comments

Comments
 (0)