Skip to content

Commit d9716d1

Browse files
Adds support for linkedGroupId on the CreatePlacementGroup and DescribePlacementGroups APIs. The linkedGroupId parameter is reserved for future use.
1 parent 67900f1 commit d9716d1

File tree

7 files changed

+64
-0
lines changed

7 files changed

+64
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14294,6 +14294,7 @@
1429414294
"locationName":"TagSpecification"
1429514295
},
1429614296
"SpreadLevel":{"shape":"SpreadLevel"},
14297+
"LinkedGroupId":{"shape":"PlacementGroupId"},
1429714298
"DryRun":{
1429814299
"shape":"Boolean",
1429914300
"locationName":"dryRun"
@@ -44707,6 +44708,10 @@
4470744708
"SpreadLevel":{
4470844709
"shape":"SpreadLevel",
4470944710
"locationName":"spreadLevel"
44711+
},
44712+
"LinkedGroupId":{
44713+
"shape":"PlacementGroupId",
44714+
"locationName":"linkedGroupId"
4471044715
}
4471144716
}
4471244717
},

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20372,10 +20372,12 @@
2037220372
"PlacementGroupId": {
2037320373
"base": null,
2037420374
"refs": {
20375+
"CreatePlacementGroupRequest$LinkedGroupId": "<p>Reserved for future use.</p>",
2037520376
"LaunchTemplatePlacement$GroupId": "<p>The Group ID of the placement group. You must specify the Placement Group <b>Group ID</b> to launch an instance in a shared placement group.</p>",
2037620377
"LaunchTemplatePlacementRequest$GroupId": "<p>The Group Id of a placement group. You must specify the Placement Group <b>Group Id</b> to launch an instance in a shared placement group.</p>",
2037720378
"ModifyInstancePlacementRequest$GroupId": "<p>The Group Id of a placement group. You must specify the Placement Group <b>Group Id</b> to launch an instance in a shared placement group.</p>",
2037820379
"Placement$GroupId": "<p>The ID of the placement group that the instance is in.</p> <p>On input, you can specify <code>GroupId</code> or <code>GroupName</code>, but not both.</p>",
20380+
"PlacementGroup$LinkedGroupId": "<p>Reserved for future use.</p>",
2037920381
"PlacementGroupIdStringList$member": null
2038020382
}
2038120383
},

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17542,6 +17542,10 @@
1754217542
"shape":"SpreadLevel",
1754317543
"documentation":"<p>Determines how placement groups spread instances. </p> <ul> <li> <p>Host – You can use <code>host</code> only with Outpost placement groups.</p> </li> <li> <p>Rack – No usage restrictions.</p> </li> </ul>"
1754417544
},
17545+
"LinkedGroupId":{
17546+
"shape":"PlacementGroupId",
17547+
"documentation":"<p>Reserved for future use.</p>"
17548+
},
1754517549
"DryRun":{
1754617550
"shape":"Boolean",
1754717551
"documentation":"<p>Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>",
@@ -58338,6 +58342,11 @@
5833858342
"shape":"SpreadLevel",
5833958343
"documentation":"<p>The spread level for the placement group. <i>Only</i> Outpost placement groups can be spread across hosts.</p>",
5834058344
"locationName":"spreadLevel"
58345+
},
58346+
"LinkedGroupId":{
58347+
"shape":"PlacementGroupId",
58348+
"documentation":"<p>Reserved for future use.</p>",
58349+
"locationName":"linkedGroupId"
5834158350
}
5834258351
},
5834358352
"documentation":"<p>Describes a placement group.</p>"

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public partial class CreatePlacementGroupRequest : AmazonEC2Request
5252
{
5353
private bool? _dryRun;
5454
private string _groupName;
55+
private string _linkedGroupId;
5556
private int? _partitionCount;
5657
private SpreadLevel _spreadLevel;
5758
private PlacementStrategy _strategy;
@@ -116,6 +117,24 @@ internal bool IsSetGroupName()
116117
return this._groupName != null;
117118
}
118119

120+
/// <summary>
121+
/// Gets and sets the property LinkedGroupId.
122+
/// <para>
123+
/// Reserved for future use.
124+
/// </para>
125+
/// </summary>
126+
public string LinkedGroupId
127+
{
128+
get { return this._linkedGroupId; }
129+
set { this._linkedGroupId = value; }
130+
}
131+
132+
// Check to see if LinkedGroupId property is set
133+
internal bool IsSetLinkedGroupId()
134+
{
135+
return this._linkedGroupId != null;
136+
}
137+
119138
/// <summary>
120139
/// Gets and sets the property PartitionCount.
121140
/// <para>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ public IRequest Marshall(CreatePlacementGroupRequest publicRequest)
6767
{
6868
request.Parameters.Add("GroupName", StringUtils.FromString(publicRequest.GroupName));
6969
}
70+
if(publicRequest.IsSetLinkedGroupId())
71+
{
72+
request.Parameters.Add("LinkedGroupId", StringUtils.FromString(publicRequest.LinkedGroupId));
73+
}
7074
if(publicRequest.IsSetPartitionCount())
7175
{
7276
request.Parameters.Add("PartitionCount", StringUtils.FromInt(publicRequest.PartitionCount));

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ public PlacementGroup Unmarshall(XmlUnmarshallerContext context)
7373
unmarshalledObject.GroupName = unmarshaller.Unmarshall(context);
7474
continue;
7575
}
76+
if (context.TestExpression("linkedGroupId", targetDepth))
77+
{
78+
var unmarshaller = StringUnmarshaller.Instance;
79+
unmarshalledObject.LinkedGroupId = unmarshaller.Unmarshall(context);
80+
continue;
81+
}
7682
if (context.TestExpression("partitionCount", targetDepth))
7783
{
7884
var unmarshaller = NullableIntUnmarshaller.Instance;

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public partial class PlacementGroup
3737
private string _groupArn;
3838
private string _groupId;
3939
private string _groupName;
40+
private string _linkedGroupId;
4041
private int? _partitionCount;
4142
private SpreadLevel _spreadLevel;
4243
private PlacementGroupState _state;
@@ -111,6 +112,24 @@ internal bool IsSetGroupName()
111112
return this._groupName != null;
112113
}
113114

115+
/// <summary>
116+
/// Gets and sets the property LinkedGroupId.
117+
/// <para>
118+
/// Reserved for future use.
119+
/// </para>
120+
/// </summary>
121+
public string LinkedGroupId
122+
{
123+
get { return this._linkedGroupId; }
124+
set { this._linkedGroupId = value; }
125+
}
126+
127+
// Check to see if LinkedGroupId property is set
128+
internal bool IsSetLinkedGroupId()
129+
{
130+
return this._linkedGroupId != null;
131+
}
132+
114133
/// <summary>
115134
/// Gets and sets the property PartitionCount.
116135
/// <para>

0 commit comments

Comments
 (0)