Skip to content

Commit 17b3e66

Browse files
Add Context to GetInstanceTypesFromInstanceRequirements API
1 parent 5a2861d commit 17b3e66

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 bool? _dryRun;
5859
private InstanceRequirementsRequest _instanceRequirements;
5960
private int? _maxResults;
@@ -84,6 +85,24 @@ internal bool IsSetArchitectureTypes()
8485
return this._architectureTypes != null && (this._architectureTypes.Count > 0 || !AWSConfigs.InitializeCollections);
8586
}
8687

88+
/// <summary>
89+
/// Gets and sets the property Context.
90+
/// <para>
91+
/// Reserved.
92+
/// </para>
93+
/// </summary>
94+
public string Context
95+
{
96+
get { return this._context; }
97+
set { this._context = value; }
98+
}
99+
100+
// Check to see if Context property is set
101+
internal bool IsSetContext()
102+
{
103+
return this._context != null;
104+
}
105+
87106
/// <summary>
88107
/// Gets and sets the property DryRun.
89108
/// <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
@@ -73,6 +73,10 @@ public IRequest Marshall(GetInstanceTypesFromInstanceRequirementsRequest publicR
7373
}
7474
}
7575
}
76+
if(publicRequest.IsSetContext())
77+
{
78+
request.Parameters.Add("Context", StringUtils.FromString(publicRequest.Context));
79+
}
7680
if(publicRequest.IsSetDryRun())
7781
{
7882
request.Parameters.Add("DryRun", StringUtils.FromBool(publicRequest.DryRun));

0 commit comments

Comments
 (0)