@aws-sdk/client-workspaces-web 3.654.0 → 3.658.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +31 -6
  2. package/dist-cjs/index.js +207 -0
  3. package/dist-es/WorkSpacesWeb.js +6 -0
  4. package/dist-es/commands/ExpireSessionCommand.js +22 -0
  5. package/dist-es/commands/GetSessionCommand.js +23 -0
  6. package/dist-es/commands/ListSessionsCommand.js +23 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +29 -0
  9. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  10. package/dist-es/pagination/index.js +1 -0
  11. package/dist-es/protocols/Aws_restJson1.js +109 -0
  12. package/dist-types/WorkSpacesWeb.d.ts +28 -6
  13. package/dist-types/WorkSpacesWebClient.d.ts +12 -8
  14. package/dist-types/commands/CreateUserAccessLoggingSettingsCommand.d.ts +2 -1
  15. package/dist-types/commands/ExpireSessionCommand.d.ts +85 -0
  16. package/dist-types/commands/GetSessionCommand.d.ts +97 -0
  17. package/dist-types/commands/ListSessionsCommand.d.ts +102 -0
  18. package/dist-types/commands/index.d.ts +3 -0
  19. package/dist-types/index.d.ts +7 -6
  20. package/dist-types/models/models_0.d.ts +352 -75
  21. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  22. package/dist-types/pagination/index.d.ts +1 -0
  23. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  24. package/dist-types/ts3.4/WorkSpacesWeb.d.ts +51 -0
  25. package/dist-types/ts3.4/WorkSpacesWebClient.d.ts +18 -0
  26. package/dist-types/ts3.4/commands/ExpireSessionCommand.d.ts +50 -0
  27. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
  28. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +65 -0
  31. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  32. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  33. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  34. package/package.json +5 -5
@@ -108,6 +108,10 @@ export class ServiceQuotaExceededException extends __BaseException {
108
108
  this.quotaCode = opts.quotaCode;
109
109
  }
110
110
  }
111
+ export const SessionStatus = {
112
+ ACTIVE: "Active",
113
+ TERMINATED: "Terminated",
114
+ };
111
115
  export const IdentityProviderType = {
112
116
  Facebook: "Facebook",
113
117
  Google: "Google",
@@ -116,6 +120,10 @@ export const IdentityProviderType = {
116
120
  SAML: "SAML",
117
121
  SignInWithApple: "SignInWithApple",
118
122
  };
123
+ export const SessionSortBy = {
124
+ START_TIME_ASCENDING: "StartTimeAscending",
125
+ START_TIME_DESCENDING: "StartTimeDescending",
126
+ };
119
127
  export const BrowserType = {
120
128
  CHROME: "Chrome",
121
129
  };
@@ -175,6 +183,15 @@ export const UpdateBrowserSettingsResponseFilterSensitiveLog = (obj) => ({
175
183
  ...obj,
176
184
  ...(obj.browserSettings && { browserSettings: BrowserSettingsFilterSensitiveLog(obj.browserSettings) }),
177
185
  });
186
+ export const SessionFilterSensitiveLog = (obj) => ({
187
+ ...obj,
188
+ ...(obj.username && { username: SENSITIVE_STRING }),
189
+ ...(obj.clientIpAddresses && { clientIpAddresses: SENSITIVE_STRING }),
190
+ });
191
+ export const GetSessionResponseFilterSensitiveLog = (obj) => ({
192
+ ...obj,
193
+ ...(obj.session && { session: SessionFilterSensitiveLog(obj.session) }),
194
+ });
178
195
  export const CreateIdentityProviderRequestFilterSensitiveLog = (obj) => ({
179
196
  ...obj,
180
197
  ...(obj.identityProviderName && { identityProviderName: SENSITIVE_STRING }),
@@ -252,6 +269,18 @@ export const UpdateIpAccessSettingsResponseFilterSensitiveLog = (obj) => ({
252
269
  ...obj,
253
270
  ...(obj.ipAccessSettings && { ipAccessSettings: IpAccessSettingsFilterSensitiveLog(obj.ipAccessSettings) }),
254
271
  });
272
+ export const ListSessionsRequestFilterSensitiveLog = (obj) => ({
273
+ ...obj,
274
+ ...(obj.username && { username: SENSITIVE_STRING }),
275
+ });
276
+ export const SessionSummaryFilterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ ...(obj.username && { username: SENSITIVE_STRING }),
279
+ });
280
+ export const ListSessionsResponseFilterSensitiveLog = (obj) => ({
281
+ ...obj,
282
+ ...(obj.sessions && { sessions: obj.sessions.map((item) => SessionSummaryFilterSensitiveLog(item)) }),
283
+ });
255
284
  export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
256
285
  ...obj,
257
286
  ...(obj.tags && { tags: SENSITIVE_STRING }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListSessionsCommand, } from "../commands/ListSessionsCommand";
3
+ import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
4
+ export const paginateListSessions = createPaginator(WorkSpacesWebClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
@@ -4,6 +4,7 @@ export * from "./ListIdentityProvidersPaginator";
4
4
  export * from "./ListIpAccessSettingsPaginator";
5
5
  export * from "./ListNetworkSettingsPaginator";
6
6
  export * from "./ListPortalsPaginator";
7
+ export * from "./ListSessionsPaginator";
7
8
  export * from "./ListTrustStoreCertificatesPaginator";
8
9
  export * from "./ListTrustStoresPaginator";
9
10
  export * from "./ListUserAccessLoggingSettingsPaginator";
@@ -348,6 +348,16 @@ export const se_DisassociateUserSettingsCommand = async (input, context) => {
348
348
  b.m("DELETE").h(headers).b(body);
349
349
  return b.build();
350
350
  };
351
+ export const se_ExpireSessionCommand = async (input, context) => {
352
+ const b = rb(input, context);
353
+ const headers = {};
354
+ b.bp("/portals/{portalId}/sessions/{sessionId}");
355
+ b.p("portalId", () => input.portalId, "{portalId}", false);
356
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
357
+ let body;
358
+ b.m("DELETE").h(headers).b(body);
359
+ return b.build();
360
+ };
351
361
  export const se_GetBrowserSettingsCommand = async (input, context) => {
352
362
  const b = rb(input, context);
353
363
  const headers = {};
@@ -402,6 +412,16 @@ export const se_GetPortalServiceProviderMetadataCommand = async (input, context)
402
412
  b.m("GET").h(headers).b(body);
403
413
  return b.build();
404
414
  };
415
+ export const se_GetSessionCommand = async (input, context) => {
416
+ const b = rb(input, context);
417
+ const headers = {};
418
+ b.bp("/portals/{portalId}/sessions/{sessionId}");
419
+ b.p("portalId", () => input.portalId, "{portalId}", false);
420
+ b.p("sessionId", () => input.sessionId, "{sessionId}", false);
421
+ let body;
422
+ b.m("GET").h(headers).b(body);
423
+ return b.build();
424
+ };
405
425
  export const se_GetTrustStoreCommand = async (input, context) => {
406
426
  const b = rb(input, context);
407
427
  const headers = {};
@@ -502,6 +522,23 @@ export const se_ListPortalsCommand = async (input, context) => {
502
522
  b.m("GET").h(headers).q(query).b(body);
503
523
  return b.build();
504
524
  };
525
+ export const se_ListSessionsCommand = async (input, context) => {
526
+ const b = rb(input, context);
527
+ const headers = {};
528
+ b.bp("/portals/{portalId}/sessions");
529
+ b.p("portalId", () => input.portalId, "{portalId}", false);
530
+ const query = map({
531
+ [_u]: [, input[_u]],
532
+ [_sI]: [, input[_sI]],
533
+ [_sB]: [, input[_sB]],
534
+ [_s]: [, input[_s]],
535
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
536
+ [_nT]: [, input[_nT]],
537
+ });
538
+ let body;
539
+ b.m("GET").h(headers).q(query).b(body);
540
+ return b.build();
541
+ };
505
542
  export const se_ListTagsForResourceCommand = async (input, context) => {
506
543
  const b = rb(input, context);
507
544
  const headers = {};
@@ -1070,6 +1107,16 @@ export const de_DisassociateUserSettingsCommand = async (output, context) => {
1070
1107
  await collectBody(output.body, context);
1071
1108
  return contents;
1072
1109
  };
1110
+ export const de_ExpireSessionCommand = async (output, context) => {
1111
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1112
+ return de_CommandError(output, context);
1113
+ }
1114
+ const contents = map({
1115
+ $metadata: deserializeMetadata(output),
1116
+ });
1117
+ await collectBody(output.body, context);
1118
+ return contents;
1119
+ };
1073
1120
  export const de_GetBrowserSettingsCommand = async (output, context) => {
1074
1121
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1075
1122
  return de_CommandError(output, context);
@@ -1155,6 +1202,20 @@ export const de_GetPortalServiceProviderMetadataCommand = async (output, context
1155
1202
  Object.assign(contents, doc);
1156
1203
  return contents;
1157
1204
  };
1205
+ export const de_GetSessionCommand = async (output, context) => {
1206
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1207
+ return de_CommandError(output, context);
1208
+ }
1209
+ const contents = map({
1210
+ $metadata: deserializeMetadata(output),
1211
+ });
1212
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1213
+ const doc = take(data, {
1214
+ session: (_) => de_Session(_, context),
1215
+ });
1216
+ Object.assign(contents, doc);
1217
+ return contents;
1218
+ };
1158
1219
  export const de_GetTrustStoreCommand = async (output, context) => {
1159
1220
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1160
1221
  return de_CommandError(output, context);
@@ -1287,6 +1348,21 @@ export const de_ListPortalsCommand = async (output, context) => {
1287
1348
  Object.assign(contents, doc);
1288
1349
  return contents;
1289
1350
  };
1351
+ export const de_ListSessionsCommand = async (output, context) => {
1352
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1353
+ return de_CommandError(output, context);
1354
+ }
1355
+ const contents = map({
1356
+ $metadata: deserializeMetadata(output),
1357
+ });
1358
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1359
+ const doc = take(data, {
1360
+ nextToken: __expectString,
1361
+ sessions: (_) => de_SessionSummaryList(_, context),
1362
+ });
1363
+ Object.assign(contents, doc);
1364
+ return contents;
1365
+ };
1290
1366
  export const de_ListTagsForResourceCommand = async (output, context) => {
1291
1367
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1292
1368
  return de_CommandError(output, context);
@@ -1769,6 +1845,35 @@ const de_PortalSummary = (output, context) => {
1769
1845
  userSettingsArn: __expectString,
1770
1846
  });
1771
1847
  };
1848
+ const de_Session = (output, context) => {
1849
+ return take(output, {
1850
+ clientIpAddresses: _json,
1851
+ endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1852
+ portalArn: __expectString,
1853
+ sessionId: __expectString,
1854
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1855
+ status: __expectString,
1856
+ username: __expectString,
1857
+ });
1858
+ };
1859
+ const de_SessionSummary = (output, context) => {
1860
+ return take(output, {
1861
+ endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1862
+ portalArn: __expectString,
1863
+ sessionId: __expectString,
1864
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1865
+ status: __expectString,
1866
+ username: __expectString,
1867
+ });
1868
+ };
1869
+ const de_SessionSummaryList = (output, context) => {
1870
+ const retVal = (output || [])
1871
+ .filter((e) => e != null)
1872
+ .map((entry) => {
1873
+ return de_SessionSummary(entry, context);
1874
+ });
1875
+ return retVal;
1876
+ };
1772
1877
  const deserializeMetadata = (output) => ({
1773
1878
  httpStatusCode: output.statusCode,
1774
1879
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1788,8 +1893,12 @@ const _nSA = "networkSettingsArn";
1788
1893
  const _nT = "nextToken";
1789
1894
  const _rAS = "retryAfterSeconds";
1790
1895
  const _ra = "retry-after";
1896
+ const _s = "status";
1897
+ const _sB = "sortBy";
1898
+ const _sI = "sessionId";
1791
1899
  const _t = "thumbprint";
1792
1900
  const _tK = "tagKeys";
1793
1901
  const _tSA = "trustStoreArn";
1902
+ const _u = "username";
1794
1903
  const _uALSA = "userAccessLoggingSettingsArn";
1795
1904
  const _uSA = "userSettingsArn";
@@ -27,12 +27,14 @@ import { DisassociateNetworkSettingsCommandInput, DisassociateNetworkSettingsCom
27
27
  import { DisassociateTrustStoreCommandInput, DisassociateTrustStoreCommandOutput } from "./commands/DisassociateTrustStoreCommand";
28
28
  import { DisassociateUserAccessLoggingSettingsCommandInput, DisassociateUserAccessLoggingSettingsCommandOutput } from "./commands/DisassociateUserAccessLoggingSettingsCommand";
29
29
  import { DisassociateUserSettingsCommandInput, DisassociateUserSettingsCommandOutput } from "./commands/DisassociateUserSettingsCommand";
30
+ import { ExpireSessionCommandInput, ExpireSessionCommandOutput } from "./commands/ExpireSessionCommand";
30
31
  import { GetBrowserSettingsCommandInput, GetBrowserSettingsCommandOutput } from "./commands/GetBrowserSettingsCommand";
31
32
  import { GetIdentityProviderCommandInput, GetIdentityProviderCommandOutput } from "./commands/GetIdentityProviderCommand";
32
33
  import { GetIpAccessSettingsCommandInput, GetIpAccessSettingsCommandOutput } from "./commands/GetIpAccessSettingsCommand";
33
34
  import { GetNetworkSettingsCommandInput, GetNetworkSettingsCommandOutput } from "./commands/GetNetworkSettingsCommand";
34
35
  import { GetPortalCommandInput, GetPortalCommandOutput } from "./commands/GetPortalCommand";
35
36
  import { GetPortalServiceProviderMetadataCommandInput, GetPortalServiceProviderMetadataCommandOutput } from "./commands/GetPortalServiceProviderMetadataCommand";
37
+ import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
36
38
  import { GetTrustStoreCertificateCommandInput, GetTrustStoreCertificateCommandOutput } from "./commands/GetTrustStoreCertificateCommand";
37
39
  import { GetTrustStoreCommandInput, GetTrustStoreCommandOutput } from "./commands/GetTrustStoreCommand";
38
40
  import { GetUserAccessLoggingSettingsCommandInput, GetUserAccessLoggingSettingsCommandOutput } from "./commands/GetUserAccessLoggingSettingsCommand";
@@ -42,6 +44,7 @@ import { ListIdentityProvidersCommandInput, ListIdentityProvidersCommandOutput }
42
44
  import { ListIpAccessSettingsCommandInput, ListIpAccessSettingsCommandOutput } from "./commands/ListIpAccessSettingsCommand";
43
45
  import { ListNetworkSettingsCommandInput, ListNetworkSettingsCommandOutput } from "./commands/ListNetworkSettingsCommand";
44
46
  import { ListPortalsCommandInput, ListPortalsCommandOutput } from "./commands/ListPortalsCommand";
47
+ import { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
45
48
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
46
49
  import { ListTrustStoreCertificatesCommandInput, ListTrustStoreCertificatesCommandOutput } from "./commands/ListTrustStoreCertificatesCommand";
47
50
  import { ListTrustStoresCommandInput, ListTrustStoresCommandOutput } from "./commands/ListTrustStoresCommand";
@@ -228,6 +231,12 @@ export interface WorkSpacesWeb {
228
231
  disassociateUserSettings(args: DisassociateUserSettingsCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateUserSettingsCommandOutput>;
229
232
  disassociateUserSettings(args: DisassociateUserSettingsCommandInput, cb: (err: any, data?: DisassociateUserSettingsCommandOutput) => void): void;
230
233
  disassociateUserSettings(args: DisassociateUserSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateUserSettingsCommandOutput) => void): void;
234
+ /**
235
+ * @see {@link ExpireSessionCommand}
236
+ */
237
+ expireSession(args: ExpireSessionCommandInput, options?: __HttpHandlerOptions): Promise<ExpireSessionCommandOutput>;
238
+ expireSession(args: ExpireSessionCommandInput, cb: (err: any, data?: ExpireSessionCommandOutput) => void): void;
239
+ expireSession(args: ExpireSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExpireSessionCommandOutput) => void): void;
231
240
  /**
232
241
  * @see {@link GetBrowserSettingsCommand}
233
242
  */
@@ -264,6 +273,12 @@ export interface WorkSpacesWeb {
264
273
  getPortalServiceProviderMetadata(args: GetPortalServiceProviderMetadataCommandInput, options?: __HttpHandlerOptions): Promise<GetPortalServiceProviderMetadataCommandOutput>;
265
274
  getPortalServiceProviderMetadata(args: GetPortalServiceProviderMetadataCommandInput, cb: (err: any, data?: GetPortalServiceProviderMetadataCommandOutput) => void): void;
266
275
  getPortalServiceProviderMetadata(args: GetPortalServiceProviderMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPortalServiceProviderMetadataCommandOutput) => void): void;
276
+ /**
277
+ * @see {@link GetSessionCommand}
278
+ */
279
+ getSession(args: GetSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionCommandOutput>;
280
+ getSession(args: GetSessionCommandInput, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
281
+ getSession(args: GetSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
267
282
  /**
268
283
  * @see {@link GetTrustStoreCommand}
269
284
  */
@@ -322,6 +337,12 @@ export interface WorkSpacesWeb {
322
337
  listPortals(args: ListPortalsCommandInput, options?: __HttpHandlerOptions): Promise<ListPortalsCommandOutput>;
323
338
  listPortals(args: ListPortalsCommandInput, cb: (err: any, data?: ListPortalsCommandOutput) => void): void;
324
339
  listPortals(args: ListPortalsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPortalsCommandOutput) => void): void;
340
+ /**
341
+ * @see {@link ListSessionsCommand}
342
+ */
343
+ listSessions(args: ListSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSessionsCommandOutput>;
344
+ listSessions(args: ListSessionsCommandInput, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
345
+ listSessions(args: ListSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
325
346
  /**
326
347
  * @see {@link ListTagsForResourceCommand}
327
348
  */
@@ -417,12 +438,13 @@ export interface WorkSpacesWeb {
417
438
  updateUserSettings(args: UpdateUserSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserSettingsCommandOutput) => void): void;
418
439
  }
419
440
  /**
420
- * <p>Amazon WorkSpaces Secure Browser is a low cost, fully managed WorkSpace built specifically to facilitate
421
- * secure, web-based workloads. WorkSpaces Secure Browser makes it easy for customers to safely provide
422
- * their employees with access to internal websites and SaaS web applications without the
423
- * administrative burden of appliances or specialized client software. WorkSpaces Secure Browser provides
424
- * simple policy tools tailored for user interactions, while offloading common tasks like
425
- * capacity management, scaling, and maintaining browser images.</p>
441
+ * <p>Amazon WorkSpaces Secure Browser is a low cost, fully managed WorkSpace built
442
+ * specifically to facilitate secure, web-based workloads. WorkSpaces Secure Browser makes it
443
+ * easy for customers to safely provide their employees with access to internal websites and
444
+ * SaaS web applications without the administrative burden of appliances or specialized client
445
+ * software. WorkSpaces Secure Browser provides simple policy tools tailored for user
446
+ * interactions, while offloading common tasks like capacity management, scaling, and
447
+ * maintaining browser images.</p>
426
448
  * @public
427
449
  */
428
450
  export declare class WorkSpacesWeb extends WorkSpacesWebClient implements WorkSpacesWeb {
@@ -35,12 +35,14 @@ import { DisassociateNetworkSettingsCommandInput, DisassociateNetworkSettingsCom
35
35
  import { DisassociateTrustStoreCommandInput, DisassociateTrustStoreCommandOutput } from "./commands/DisassociateTrustStoreCommand";
36
36
  import { DisassociateUserAccessLoggingSettingsCommandInput, DisassociateUserAccessLoggingSettingsCommandOutput } from "./commands/DisassociateUserAccessLoggingSettingsCommand";
37
37
  import { DisassociateUserSettingsCommandInput, DisassociateUserSettingsCommandOutput } from "./commands/DisassociateUserSettingsCommand";
38
+ import { ExpireSessionCommandInput, ExpireSessionCommandOutput } from "./commands/ExpireSessionCommand";
38
39
  import { GetBrowserSettingsCommandInput, GetBrowserSettingsCommandOutput } from "./commands/GetBrowserSettingsCommand";
39
40
  import { GetIdentityProviderCommandInput, GetIdentityProviderCommandOutput } from "./commands/GetIdentityProviderCommand";
40
41
  import { GetIpAccessSettingsCommandInput, GetIpAccessSettingsCommandOutput } from "./commands/GetIpAccessSettingsCommand";
41
42
  import { GetNetworkSettingsCommandInput, GetNetworkSettingsCommandOutput } from "./commands/GetNetworkSettingsCommand";
42
43
  import { GetPortalCommandInput, GetPortalCommandOutput } from "./commands/GetPortalCommand";
43
44
  import { GetPortalServiceProviderMetadataCommandInput, GetPortalServiceProviderMetadataCommandOutput } from "./commands/GetPortalServiceProviderMetadataCommand";
45
+ import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
44
46
  import { GetTrustStoreCertificateCommandInput, GetTrustStoreCertificateCommandOutput } from "./commands/GetTrustStoreCertificateCommand";
45
47
  import { GetTrustStoreCommandInput, GetTrustStoreCommandOutput } from "./commands/GetTrustStoreCommand";
46
48
  import { GetUserAccessLoggingSettingsCommandInput, GetUserAccessLoggingSettingsCommandOutput } from "./commands/GetUserAccessLoggingSettingsCommand";
@@ -50,6 +52,7 @@ import { ListIdentityProvidersCommandInput, ListIdentityProvidersCommandOutput }
50
52
  import { ListIpAccessSettingsCommandInput, ListIpAccessSettingsCommandOutput } from "./commands/ListIpAccessSettingsCommand";
51
53
  import { ListNetworkSettingsCommandInput, ListNetworkSettingsCommandOutput } from "./commands/ListNetworkSettingsCommand";
52
54
  import { ListPortalsCommandInput, ListPortalsCommandOutput } from "./commands/ListPortalsCommand";
55
+ import { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
53
56
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
54
57
  import { ListTrustStoreCertificatesCommandInput, ListTrustStoreCertificatesCommandOutput } from "./commands/ListTrustStoreCertificatesCommand";
55
58
  import { ListTrustStoresCommandInput, ListTrustStoresCommandOutput } from "./commands/ListTrustStoresCommand";
@@ -71,11 +74,11 @@ export { __Client };
71
74
  /**
72
75
  * @public
73
76
  */
74
- export type ServiceInputTypes = AssociateBrowserSettingsCommandInput | AssociateIpAccessSettingsCommandInput | AssociateNetworkSettingsCommandInput | AssociateTrustStoreCommandInput | AssociateUserAccessLoggingSettingsCommandInput | AssociateUserSettingsCommandInput | CreateBrowserSettingsCommandInput | CreateIdentityProviderCommandInput | CreateIpAccessSettingsCommandInput | CreateNetworkSettingsCommandInput | CreatePortalCommandInput | CreateTrustStoreCommandInput | CreateUserAccessLoggingSettingsCommandInput | CreateUserSettingsCommandInput | DeleteBrowserSettingsCommandInput | DeleteIdentityProviderCommandInput | DeleteIpAccessSettingsCommandInput | DeleteNetworkSettingsCommandInput | DeletePortalCommandInput | DeleteTrustStoreCommandInput | DeleteUserAccessLoggingSettingsCommandInput | DeleteUserSettingsCommandInput | DisassociateBrowserSettingsCommandInput | DisassociateIpAccessSettingsCommandInput | DisassociateNetworkSettingsCommandInput | DisassociateTrustStoreCommandInput | DisassociateUserAccessLoggingSettingsCommandInput | DisassociateUserSettingsCommandInput | GetBrowserSettingsCommandInput | GetIdentityProviderCommandInput | GetIpAccessSettingsCommandInput | GetNetworkSettingsCommandInput | GetPortalCommandInput | GetPortalServiceProviderMetadataCommandInput | GetTrustStoreCertificateCommandInput | GetTrustStoreCommandInput | GetUserAccessLoggingSettingsCommandInput | GetUserSettingsCommandInput | ListBrowserSettingsCommandInput | ListIdentityProvidersCommandInput | ListIpAccessSettingsCommandInput | ListNetworkSettingsCommandInput | ListPortalsCommandInput | ListTagsForResourceCommandInput | ListTrustStoreCertificatesCommandInput | ListTrustStoresCommandInput | ListUserAccessLoggingSettingsCommandInput | ListUserSettingsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBrowserSettingsCommandInput | UpdateIdentityProviderCommandInput | UpdateIpAccessSettingsCommandInput | UpdateNetworkSettingsCommandInput | UpdatePortalCommandInput | UpdateTrustStoreCommandInput | UpdateUserAccessLoggingSettingsCommandInput | UpdateUserSettingsCommandInput;
77
+ export type ServiceInputTypes = AssociateBrowserSettingsCommandInput | AssociateIpAccessSettingsCommandInput | AssociateNetworkSettingsCommandInput | AssociateTrustStoreCommandInput | AssociateUserAccessLoggingSettingsCommandInput | AssociateUserSettingsCommandInput | CreateBrowserSettingsCommandInput | CreateIdentityProviderCommandInput | CreateIpAccessSettingsCommandInput | CreateNetworkSettingsCommandInput | CreatePortalCommandInput | CreateTrustStoreCommandInput | CreateUserAccessLoggingSettingsCommandInput | CreateUserSettingsCommandInput | DeleteBrowserSettingsCommandInput | DeleteIdentityProviderCommandInput | DeleteIpAccessSettingsCommandInput | DeleteNetworkSettingsCommandInput | DeletePortalCommandInput | DeleteTrustStoreCommandInput | DeleteUserAccessLoggingSettingsCommandInput | DeleteUserSettingsCommandInput | DisassociateBrowserSettingsCommandInput | DisassociateIpAccessSettingsCommandInput | DisassociateNetworkSettingsCommandInput | DisassociateTrustStoreCommandInput | DisassociateUserAccessLoggingSettingsCommandInput | DisassociateUserSettingsCommandInput | ExpireSessionCommandInput | GetBrowserSettingsCommandInput | GetIdentityProviderCommandInput | GetIpAccessSettingsCommandInput | GetNetworkSettingsCommandInput | GetPortalCommandInput | GetPortalServiceProviderMetadataCommandInput | GetSessionCommandInput | GetTrustStoreCertificateCommandInput | GetTrustStoreCommandInput | GetUserAccessLoggingSettingsCommandInput | GetUserSettingsCommandInput | ListBrowserSettingsCommandInput | ListIdentityProvidersCommandInput | ListIpAccessSettingsCommandInput | ListNetworkSettingsCommandInput | ListPortalsCommandInput | ListSessionsCommandInput | ListTagsForResourceCommandInput | ListTrustStoreCertificatesCommandInput | ListTrustStoresCommandInput | ListUserAccessLoggingSettingsCommandInput | ListUserSettingsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBrowserSettingsCommandInput | UpdateIdentityProviderCommandInput | UpdateIpAccessSettingsCommandInput | UpdateNetworkSettingsCommandInput | UpdatePortalCommandInput | UpdateTrustStoreCommandInput | UpdateUserAccessLoggingSettingsCommandInput | UpdateUserSettingsCommandInput;
75
78
  /**
76
79
  * @public
77
80
  */
78
- export type ServiceOutputTypes = AssociateBrowserSettingsCommandOutput | AssociateIpAccessSettingsCommandOutput | AssociateNetworkSettingsCommandOutput | AssociateTrustStoreCommandOutput | AssociateUserAccessLoggingSettingsCommandOutput | AssociateUserSettingsCommandOutput | CreateBrowserSettingsCommandOutput | CreateIdentityProviderCommandOutput | CreateIpAccessSettingsCommandOutput | CreateNetworkSettingsCommandOutput | CreatePortalCommandOutput | CreateTrustStoreCommandOutput | CreateUserAccessLoggingSettingsCommandOutput | CreateUserSettingsCommandOutput | DeleteBrowserSettingsCommandOutput | DeleteIdentityProviderCommandOutput | DeleteIpAccessSettingsCommandOutput | DeleteNetworkSettingsCommandOutput | DeletePortalCommandOutput | DeleteTrustStoreCommandOutput | DeleteUserAccessLoggingSettingsCommandOutput | DeleteUserSettingsCommandOutput | DisassociateBrowserSettingsCommandOutput | DisassociateIpAccessSettingsCommandOutput | DisassociateNetworkSettingsCommandOutput | DisassociateTrustStoreCommandOutput | DisassociateUserAccessLoggingSettingsCommandOutput | DisassociateUserSettingsCommandOutput | GetBrowserSettingsCommandOutput | GetIdentityProviderCommandOutput | GetIpAccessSettingsCommandOutput | GetNetworkSettingsCommandOutput | GetPortalCommandOutput | GetPortalServiceProviderMetadataCommandOutput | GetTrustStoreCertificateCommandOutput | GetTrustStoreCommandOutput | GetUserAccessLoggingSettingsCommandOutput | GetUserSettingsCommandOutput | ListBrowserSettingsCommandOutput | ListIdentityProvidersCommandOutput | ListIpAccessSettingsCommandOutput | ListNetworkSettingsCommandOutput | ListPortalsCommandOutput | ListTagsForResourceCommandOutput | ListTrustStoreCertificatesCommandOutput | ListTrustStoresCommandOutput | ListUserAccessLoggingSettingsCommandOutput | ListUserSettingsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBrowserSettingsCommandOutput | UpdateIdentityProviderCommandOutput | UpdateIpAccessSettingsCommandOutput | UpdateNetworkSettingsCommandOutput | UpdatePortalCommandOutput | UpdateTrustStoreCommandOutput | UpdateUserAccessLoggingSettingsCommandOutput | UpdateUserSettingsCommandOutput;
81
+ export type ServiceOutputTypes = AssociateBrowserSettingsCommandOutput | AssociateIpAccessSettingsCommandOutput | AssociateNetworkSettingsCommandOutput | AssociateTrustStoreCommandOutput | AssociateUserAccessLoggingSettingsCommandOutput | AssociateUserSettingsCommandOutput | CreateBrowserSettingsCommandOutput | CreateIdentityProviderCommandOutput | CreateIpAccessSettingsCommandOutput | CreateNetworkSettingsCommandOutput | CreatePortalCommandOutput | CreateTrustStoreCommandOutput | CreateUserAccessLoggingSettingsCommandOutput | CreateUserSettingsCommandOutput | DeleteBrowserSettingsCommandOutput | DeleteIdentityProviderCommandOutput | DeleteIpAccessSettingsCommandOutput | DeleteNetworkSettingsCommandOutput | DeletePortalCommandOutput | DeleteTrustStoreCommandOutput | DeleteUserAccessLoggingSettingsCommandOutput | DeleteUserSettingsCommandOutput | DisassociateBrowserSettingsCommandOutput | DisassociateIpAccessSettingsCommandOutput | DisassociateNetworkSettingsCommandOutput | DisassociateTrustStoreCommandOutput | DisassociateUserAccessLoggingSettingsCommandOutput | DisassociateUserSettingsCommandOutput | ExpireSessionCommandOutput | GetBrowserSettingsCommandOutput | GetIdentityProviderCommandOutput | GetIpAccessSettingsCommandOutput | GetNetworkSettingsCommandOutput | GetPortalCommandOutput | GetPortalServiceProviderMetadataCommandOutput | GetSessionCommandOutput | GetTrustStoreCertificateCommandOutput | GetTrustStoreCommandOutput | GetUserAccessLoggingSettingsCommandOutput | GetUserSettingsCommandOutput | ListBrowserSettingsCommandOutput | ListIdentityProvidersCommandOutput | ListIpAccessSettingsCommandOutput | ListNetworkSettingsCommandOutput | ListPortalsCommandOutput | ListSessionsCommandOutput | ListTagsForResourceCommandOutput | ListTrustStoreCertificatesCommandOutput | ListTrustStoresCommandOutput | ListUserAccessLoggingSettingsCommandOutput | ListUserSettingsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBrowserSettingsCommandOutput | UpdateIdentityProviderCommandOutput | UpdateIpAccessSettingsCommandOutput | UpdateNetworkSettingsCommandOutput | UpdatePortalCommandOutput | UpdateTrustStoreCommandOutput | UpdateUserAccessLoggingSettingsCommandOutput | UpdateUserSettingsCommandOutput;
79
82
  /**
80
83
  * @public
81
84
  */
@@ -209,12 +212,13 @@ export type WorkSpacesWebClientResolvedConfigType = __SmithyResolvedConfiguratio
209
212
  export interface WorkSpacesWebClientResolvedConfig extends WorkSpacesWebClientResolvedConfigType {
210
213
  }
211
214
  /**
212
- * <p>Amazon WorkSpaces Secure Browser is a low cost, fully managed WorkSpace built specifically to facilitate
213
- * secure, web-based workloads. WorkSpaces Secure Browser makes it easy for customers to safely provide
214
- * their employees with access to internal websites and SaaS web applications without the
215
- * administrative burden of appliances or specialized client software. WorkSpaces Secure Browser provides
216
- * simple policy tools tailored for user interactions, while offloading common tasks like
217
- * capacity management, scaling, and maintaining browser images.</p>
215
+ * <p>Amazon WorkSpaces Secure Browser is a low cost, fully managed WorkSpace built
216
+ * specifically to facilitate secure, web-based workloads. WorkSpaces Secure Browser makes it
217
+ * easy for customers to safely provide their employees with access to internal websites and
218
+ * SaaS web applications without the administrative burden of appliances or specialized client
219
+ * software. WorkSpaces Secure Browser provides simple policy tools tailored for user
220
+ * interactions, while offloading common tasks like capacity management, scaling, and
221
+ * maintaining browser images.</p>
218
222
  * @public
219
223
  */
220
224
  export declare class WorkSpacesWebClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, WorkSpacesWebClientResolvedConfig> {
@@ -27,7 +27,8 @@ declare const CreateUserAccessLoggingSettingsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a user access logging settings resource that can be associated with a web portal.</p>
30
+ * <p>Creates a user access logging settings resource that can be associated with a web
31
+ * portal.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -0,0 +1,85 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ExpireSessionRequest, ExpireSessionResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesWebClientResolvedConfig } from "../WorkSpacesWebClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ExpireSessionCommand}.
14
+ */
15
+ export interface ExpireSessionCommandInput extends ExpireSessionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ExpireSessionCommand}.
21
+ */
22
+ export interface ExpireSessionCommandOutput extends ExpireSessionResponse, __MetadataBearer {
23
+ }
24
+ declare const ExpireSessionCommand_base: {
25
+ new (input: ExpireSessionCommandInput): import("@smithy/smithy-client").CommandImpl<ExpireSessionCommandInput, ExpireSessionCommandOutput, WorkSpacesWebClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ExpireSessionCommandInput): import("@smithy/smithy-client").CommandImpl<ExpireSessionCommandInput, ExpireSessionCommandOutput, WorkSpacesWebClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Expires an active secure browser session.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WorkSpacesWebClient, ExpireSessionCommand } from "@aws-sdk/client-workspaces-web"; // ES Modules import
35
+ * // const { WorkSpacesWebClient, ExpireSessionCommand } = require("@aws-sdk/client-workspaces-web"); // CommonJS import
36
+ * const client = new WorkSpacesWebClient(config);
37
+ * const input = { // ExpireSessionRequest
38
+ * portalId: "STRING_VALUE", // required
39
+ * sessionId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new ExpireSessionCommand(input);
42
+ * const response = await client.send(command);
43
+ * // {};
44
+ *
45
+ * ```
46
+ *
47
+ * @param ExpireSessionCommandInput - {@link ExpireSessionCommandInput}
48
+ * @returns {@link ExpireSessionCommandOutput}
49
+ * @see {@link ExpireSessionCommandInput} for command's `input` shape.
50
+ * @see {@link ExpireSessionCommandOutput} for command's `response` shape.
51
+ * @see {@link WorkSpacesWebClientResolvedConfig | config} for WorkSpacesWebClient's `config` shape.
52
+ *
53
+ * @throws {@link AccessDeniedException} (client fault)
54
+ * <p>Access is denied.</p>
55
+ *
56
+ * @throws {@link InternalServerException} (server fault)
57
+ * <p>There is an internal server error.</p>
58
+ *
59
+ * @throws {@link ResourceNotFoundException} (client fault)
60
+ * <p>The resource cannot be found.</p>
61
+ *
62
+ * @throws {@link ThrottlingException} (client fault)
63
+ * <p>There is a throttling error.</p>
64
+ *
65
+ * @throws {@link ValidationException} (client fault)
66
+ * <p>There is a validation error.</p>
67
+ *
68
+ * @throws {@link WorkSpacesWebServiceException}
69
+ * <p>Base exception class for all service exceptions from WorkSpacesWeb service.</p>
70
+ *
71
+ * @public
72
+ */
73
+ export declare class ExpireSessionCommand extends ExpireSessionCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: ExpireSessionRequest;
78
+ output: {};
79
+ };
80
+ sdk: {
81
+ input: ExpireSessionCommandInput;
82
+ output: ExpireSessionCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -0,0 +1,97 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetSessionRequest, GetSessionResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesWebClientResolvedConfig } from "../WorkSpacesWebClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetSessionCommand}.
14
+ */
15
+ export interface GetSessionCommandInput extends GetSessionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetSessionCommand}.
21
+ */
22
+ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataBearer {
23
+ }
24
+ declare const GetSessionCommand_base: {
25
+ new (input: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, WorkSpacesWebClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, WorkSpacesWebClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Gets information for a secure browser session.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WorkSpacesWebClient, GetSessionCommand } from "@aws-sdk/client-workspaces-web"; // ES Modules import
35
+ * // const { WorkSpacesWebClient, GetSessionCommand } = require("@aws-sdk/client-workspaces-web"); // CommonJS import
36
+ * const client = new WorkSpacesWebClient(config);
37
+ * const input = { // GetSessionRequest
38
+ * portalId: "STRING_VALUE", // required
39
+ * sessionId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetSessionCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetSessionResponse
44
+ * // session: { // Session
45
+ * // portalArn: "STRING_VALUE",
46
+ * // sessionId: "STRING_VALUE",
47
+ * // username: "STRING_VALUE",
48
+ * // clientIpAddresses: [ // IpAddressList
49
+ * // "STRING_VALUE",
50
+ * // ],
51
+ * // status: "Active" || "Terminated",
52
+ * // startTime: new Date("TIMESTAMP"),
53
+ * // endTime: new Date("TIMESTAMP"),
54
+ * // },
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param GetSessionCommandInput - {@link GetSessionCommandInput}
60
+ * @returns {@link GetSessionCommandOutput}
61
+ * @see {@link GetSessionCommandInput} for command's `input` shape.
62
+ * @see {@link GetSessionCommandOutput} for command's `response` shape.
63
+ * @see {@link WorkSpacesWebClientResolvedConfig | config} for WorkSpacesWebClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>Access is denied.</p>
67
+ *
68
+ * @throws {@link InternalServerException} (server fault)
69
+ * <p>There is an internal server error.</p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>The resource cannot be found.</p>
73
+ *
74
+ * @throws {@link ThrottlingException} (client fault)
75
+ * <p>There is a throttling error.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>There is a validation error.</p>
79
+ *
80
+ * @throws {@link WorkSpacesWebServiceException}
81
+ * <p>Base exception class for all service exceptions from WorkSpacesWeb service.</p>
82
+ *
83
+ * @public
84
+ */
85
+ export declare class GetSessionCommand extends GetSessionCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: GetSessionRequest;
90
+ output: GetSessionResponse;
91
+ };
92
+ sdk: {
93
+ input: GetSessionCommandInput;
94
+ output: GetSessionCommandOutput;
95
+ };
96
+ };
97
+ }