Skip to content

Commit 5bde47b

Browse files
author
awstools
committed
feat(client-workspaces-thin-client): Added the lastUserId parameter to the ListDevices and GetDevice API.
1 parent 1708c81 commit 5bde47b

File tree

6 files changed

+37
-0
lines changed

6 files changed

+37
-0
lines changed

clients/client-workspaces-thin-client/src/commands/GetDeviceCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export interface GetDeviceCommandOutput extends GetDeviceResponse, __MetadataBea
6666
* // updatedAt: new Date("TIMESTAMP"),
6767
* // arn: "STRING_VALUE",
6868
* // kmsKeyArn: "STRING_VALUE",
69+
* // lastUserId: "STRING_VALUE",
6970
* // },
7071
* // };
7172
*

clients/client-workspaces-thin-client/src/commands/ListDevicesCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export interface ListDevicesCommandOutput extends ListDevicesResponse, __Metadat
6363
* // createdAt: new Date("TIMESTAMP"),
6464
* // updatedAt: new Date("TIMESTAMP"),
6565
* // arn: "STRING_VALUE",
66+
* // lastUserId: "STRING_VALUE",
6667
* // },
6768
* // ],
6869
* // nextToken: "STRING_VALUE",

clients/client-workspaces-thin-client/src/commands/UpdateDeviceCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export interface UpdateDeviceCommandOutput extends UpdateDeviceResponse, __Metad
6969
* // createdAt: new Date("TIMESTAMP"),
7070
* // updatedAt: new Date("TIMESTAMP"),
7171
* // arn: "STRING_VALUE",
72+
* // lastUserId: "STRING_VALUE",
7273
* // },
7374
* // };
7475
*

clients/client-workspaces-thin-client/src/models/models_0.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,12 @@ export interface Device {
842842
* @public
843843
*/
844844
kmsKeyArn?: string | undefined;
845+
846+
/**
847+
* <p>The user ID of the most recent session on the device.</p>
848+
* @public
849+
*/
850+
lastUserId?: string | undefined;
845851
}
846852

847853
/**
@@ -938,6 +944,12 @@ export interface DeviceSummary {
938944
* @public
939945
*/
940946
arn?: string | undefined;
947+
948+
/**
949+
* <p>The user ID of the most recent session on the device.</p>
950+
* @public
951+
*/
952+
lastUserId?: string | undefined;
941953
}
942954

943955
/**
@@ -1600,6 +1612,7 @@ export const CreateEnvironmentResponseFilterSensitiveLog = (obj: CreateEnvironme
16001612
export const DeviceFilterSensitiveLog = (obj: Device): any => ({
16011613
...obj,
16021614
...(obj.name && { name: SENSITIVE_STRING }),
1615+
...(obj.lastUserId && { lastUserId: SENSITIVE_STRING }),
16031616
});
16041617

16051618
/**
@@ -1608,6 +1621,7 @@ export const DeviceFilterSensitiveLog = (obj: Device): any => ({
16081621
export const DeviceSummaryFilterSensitiveLog = (obj: DeviceSummary): any => ({
16091622
...obj,
16101623
...(obj.name && { name: SENSITIVE_STRING }),
1624+
...(obj.lastUserId && { lastUserId: SENSITIVE_STRING }),
16111625
});
16121626

16131627
/**

clients/client-workspaces-thin-client/src/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,7 @@ const de_Device = (output: any, context: __SerdeContext): Device => {
10601060
kmsKeyArn: __expectString,
10611061
lastConnectedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
10621062
lastPostureAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1063+
lastUserId: __expectString,
10631064
model: __expectString,
10641065
name: __expectString,
10651066
pendingSoftwareSetId: __expectString,
@@ -1100,6 +1101,7 @@ const de_DeviceSummary = (output: any, context: __SerdeContext): DeviceSummary =
11001101
id: __expectString,
11011102
lastConnectedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
11021103
lastPostureAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1104+
lastUserId: __expectString,
11031105
model: __expectString,
11041106
name: __expectString,
11051107
pendingSoftwareSetId: __expectString,

codegen/sdk-codegen/aws-models/workspaces-thin-client.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,12 @@
660660
"traits": {
661661
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the Key Management Service key used to encrypt the device.</p>"
662662
}
663+
},
664+
"lastUserId": {
665+
"target": "com.amazonaws.workspacesthinclient#UserId",
666+
"traits": {
667+
"smithy.api#documentation": "<p>The user ID of the most recent session on the device.</p>"
668+
}
663669
}
664670
},
665671
"traits": {
@@ -868,6 +874,12 @@
868874
"traits": {
869875
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the device.</p>"
870876
}
877+
},
878+
"lastUserId": {
879+
"target": "com.amazonaws.workspacesthinclient#UserId",
880+
"traits": {
881+
"smithy.api#documentation": "<p>The user ID of the most recent session on the device.</p>"
882+
}
871883
}
872884
},
873885
"traits": {
@@ -3303,6 +3315,12 @@
33033315
"smithy.api#output": {}
33043316
}
33053317
},
3318+
"com.amazonaws.workspacesthinclient#UserId": {
3319+
"type": "string",
3320+
"traits": {
3321+
"smithy.api#sensitive": {}
3322+
}
3323+
},
33063324
"com.amazonaws.workspacesthinclient#ValidationException": {
33073325
"type": "structure",
33083326
"members": {

0 commit comments

Comments
 (0)