Skip to content

Commit 522f858

Browse files
Added the lastUserId parameter to the ListDevices and GetDevice API.
1 parent db0ff03 commit 522f858

File tree

7 files changed

+79
-2
lines changed

7 files changed

+79
-2
lines changed

generator/ServiceModels/workspaces-thin-client/workspaces-thin-client-2023-08-22.api.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@
508508
"createdAt":{"shape":"Timestamp"},
509509
"updatedAt":{"shape":"Timestamp"},
510510
"arn":{"shape":"Arn"},
511-
"kmsKeyArn":{"shape":"KmsKeyArn"}
511+
"kmsKeyArn":{"shape":"KmsKeyArn"},
512+
"lastUserId":{"shape":"UserId"}
512513
}
513514
},
514515
"DeviceCreationTagKey":{
@@ -580,7 +581,8 @@
580581
"lastPostureAt":{"shape":"Timestamp"},
581582
"createdAt":{"shape":"Timestamp"},
582583
"updatedAt":{"shape":"Timestamp"},
583-
"arn":{"shape":"Arn"}
584+
"arn":{"shape":"Arn"},
585+
"lastUserId":{"shape":"UserId"}
584586
}
585587
},
586588
"Environment":{
@@ -1111,6 +1113,10 @@
11111113
"members":{
11121114
}
11131115
},
1116+
"UserId":{
1117+
"type":"string",
1118+
"sensitive":true
1119+
},
11141120
"ValidationException":{
11151121
"type":"structure",
11161122
"members":{

generator/ServiceModels/workspaces-thin-client/workspaces-thin-client-2023-08-22.docs.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,13 @@
666666
"refs": {
667667
}
668668
},
669+
"UserId": {
670+
"base": null,
671+
"refs": {
672+
"Device$lastUserId": "<p>The user ID of the most recent session on the device.</p>",
673+
"DeviceSummary$lastUserId": "<p>The user ID of the most recent session on the device.</p>"
674+
}
675+
},
669676
"ValidationException": {
670677
"base": "<p>The input fails to satisfy the specified constraints.</p>",
671678
"refs": {

generator/ServiceModels/workspaces-thin-client/workspaces-thin-client-2023-08-22.normal.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,10 @@
635635
"kmsKeyArn":{
636636
"shape":"KmsKeyArn",
637637
"documentation":"<p>The Amazon Resource Name (ARN) of the Key Management Service key used to encrypt the device.</p>"
638+
},
639+
"lastUserId":{
640+
"shape":"UserId",
641+
"documentation":"<p>The user ID of the most recent session on the device.</p>"
638642
}
639643
},
640644
"documentation":"<p>Describes a thin client device.</p>"
@@ -753,6 +757,10 @@
753757
"arn":{
754758
"shape":"Arn",
755759
"documentation":"<p>The Amazon Resource Name (ARN) of the device.</p>"
760+
},
761+
"lastUserId":{
762+
"shape":"UserId",
763+
"documentation":"<p>The user ID of the most recent session on the device.</p>"
756764
}
757765
},
758766
"documentation":"<p>Describes a thin client device.</p>"
@@ -1577,6 +1585,10 @@
15771585
"members":{
15781586
}
15791587
},
1588+
"UserId":{
1589+
"type":"string",
1590+
"sensitive":true
1591+
},
15801592
"ValidationException":{
15811593
"type":"structure",
15821594
"members":{

sdk/src/Services/WorkSpacesThinClient/Generated/Model/Device.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public partial class Device
4444
private string _kmsKeyArn;
4545
private DateTime? _lastConnectedAt;
4646
private DateTime? _lastPostureAt;
47+
private string _lastUserId;
4748
private string _model;
4849
private string _name;
4950
private string _pendingSoftwareSetId;
@@ -238,6 +239,25 @@ internal bool IsSetLastPostureAt()
238239
return this._lastPostureAt.HasValue;
239240
}
240241

242+
/// <summary>
243+
/// Gets and sets the property LastUserId.
244+
/// <para>
245+
/// The user ID of the most recent session on the device.
246+
/// </para>
247+
/// </summary>
248+
[AWSProperty(Sensitive=true)]
249+
public string LastUserId
250+
{
251+
get { return this._lastUserId; }
252+
set { this._lastUserId = value; }
253+
}
254+
255+
// Check to see if LastUserId property is set
256+
internal bool IsSetLastUserId()
257+
{
258+
return this._lastUserId != null;
259+
}
260+
241261
/// <summary>
242262
/// Gets and sets the property Model.
243263
/// <para>

sdk/src/Services/WorkSpacesThinClient/Generated/Model/DeviceSummary.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public partial class DeviceSummary
4242
private string _id;
4343
private DateTime? _lastConnectedAt;
4444
private DateTime? _lastPostureAt;
45+
private string _lastUserId;
4546
private string _model;
4647
private string _name;
4748
private string _pendingSoftwareSetId;
@@ -195,6 +196,25 @@ internal bool IsSetLastPostureAt()
195196
return this._lastPostureAt.HasValue;
196197
}
197198

199+
/// <summary>
200+
/// Gets and sets the property LastUserId.
201+
/// <para>
202+
/// The user ID of the most recent session on the device.
203+
/// </para>
204+
/// </summary>
205+
[AWSProperty(Sensitive=true)]
206+
public string LastUserId
207+
{
208+
get { return this._lastUserId; }
209+
set { this._lastUserId = value; }
210+
}
211+
212+
// Check to see if LastUserId property is set
213+
internal bool IsSetLastUserId()
214+
{
215+
return this._lastUserId != null;
216+
}
217+
198218
/// <summary>
199219
/// Gets and sets the property Model.
200220
/// <para>

sdk/src/Services/WorkSpacesThinClient/Generated/Model/Internal/MarshallTransformations/DeviceSummaryUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ public DeviceSummary Unmarshall(JsonUnmarshallerContext context, ref StreamingUt
104104
unmarshalledObject.LastPostureAt = unmarshaller.Unmarshall(context, ref reader);
105105
continue;
106106
}
107+
if (context.TestExpression("lastUserId", targetDepth))
108+
{
109+
var unmarshaller = StringUnmarshaller.Instance;
110+
unmarshalledObject.LastUserId = unmarshaller.Unmarshall(context, ref reader);
111+
continue;
112+
}
107113
if (context.TestExpression("model", targetDepth))
108114
{
109115
var unmarshaller = StringUnmarshaller.Instance;

sdk/src/Services/WorkSpacesThinClient/Generated/Model/Internal/MarshallTransformations/DeviceUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ public Device Unmarshall(JsonUnmarshallerContext context, ref StreamingUtf8JsonR
116116
unmarshalledObject.LastPostureAt = unmarshaller.Unmarshall(context, ref reader);
117117
continue;
118118
}
119+
if (context.TestExpression("lastUserId", targetDepth))
120+
{
121+
var unmarshaller = StringUnmarshaller.Instance;
122+
unmarshalledObject.LastUserId = unmarshaller.Unmarshall(context, ref reader);
123+
continue;
124+
}
119125
if (context.TestExpression("model", targetDepth))
120126
{
121127
var unmarshaller = StringUnmarshaller.Instance;

0 commit comments

Comments
 (0)