Skip to content

Commit b84f8b8

Browse files
author
awstools
committed
feat(client-workspaces-web): WorkSpaces Web now supports user access logging for recording session start, stop, and URL navigation.
1 parent 6e4371e commit b84f8b8

File tree

65 files changed

+4654
-189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4654
-189
lines changed

clients/client-workspaces-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@aws-sdk/hash-node": "*",
2727
"@aws-sdk/invalid-dependency": "*",
2828
"@aws-sdk/middleware-content-length": "*",
29+
"@aws-sdk/middleware-endpoint": "*",
2930
"@aws-sdk/middleware-host-header": "*",
3031
"@aws-sdk/middleware-logger": "*",
3132
"@aws-sdk/middleware-recursion-detection": "*",

clients/client-workspaces-web/src/WorkSpacesWeb.ts

Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ import {
1616
AssociateTrustStoreCommandInput,
1717
AssociateTrustStoreCommandOutput,
1818
} from "./commands/AssociateTrustStoreCommand";
19+
import {
20+
AssociateUserAccessLoggingSettingsCommand,
21+
AssociateUserAccessLoggingSettingsCommandInput,
22+
AssociateUserAccessLoggingSettingsCommandOutput,
23+
} from "./commands/AssociateUserAccessLoggingSettingsCommand";
1924
import {
2025
AssociateUserSettingsCommand,
2126
AssociateUserSettingsCommandInput,
@@ -46,6 +51,11 @@ import {
4651
CreateTrustStoreCommandInput,
4752
CreateTrustStoreCommandOutput,
4853
} from "./commands/CreateTrustStoreCommand";
54+
import {
55+
CreateUserAccessLoggingSettingsCommand,
56+
CreateUserAccessLoggingSettingsCommandInput,
57+
CreateUserAccessLoggingSettingsCommandOutput,
58+
} from "./commands/CreateUserAccessLoggingSettingsCommand";
4959
import {
5060
CreateUserSettingsCommand,
5161
CreateUserSettingsCommandInput,
@@ -76,6 +86,11 @@ import {
7686
DeleteTrustStoreCommandInput,
7787
DeleteTrustStoreCommandOutput,
7888
} from "./commands/DeleteTrustStoreCommand";
89+
import {
90+
DeleteUserAccessLoggingSettingsCommand,
91+
DeleteUserAccessLoggingSettingsCommandInput,
92+
DeleteUserAccessLoggingSettingsCommandOutput,
93+
} from "./commands/DeleteUserAccessLoggingSettingsCommand";
7994
import {
8095
DeleteUserSettingsCommand,
8196
DeleteUserSettingsCommandInput,
@@ -96,6 +111,11 @@ import {
96111
DisassociateTrustStoreCommandInput,
97112
DisassociateTrustStoreCommandOutput,
98113
} from "./commands/DisassociateTrustStoreCommand";
114+
import {
115+
DisassociateUserAccessLoggingSettingsCommand,
116+
DisassociateUserAccessLoggingSettingsCommandInput,
117+
DisassociateUserAccessLoggingSettingsCommandOutput,
118+
} from "./commands/DisassociateUserAccessLoggingSettingsCommand";
99119
import {
100120
DisassociateUserSettingsCommand,
101121
DisassociateUserSettingsCommandInput,
@@ -132,6 +152,11 @@ import {
132152
GetTrustStoreCommandInput,
133153
GetTrustStoreCommandOutput,
134154
} from "./commands/GetTrustStoreCommand";
155+
import {
156+
GetUserAccessLoggingSettingsCommand,
157+
GetUserAccessLoggingSettingsCommandInput,
158+
GetUserAccessLoggingSettingsCommandOutput,
159+
} from "./commands/GetUserAccessLoggingSettingsCommand";
135160
import {
136161
GetUserSettingsCommand,
137162
GetUserSettingsCommandInput,
@@ -168,6 +193,11 @@ import {
168193
ListTrustStoresCommandInput,
169194
ListTrustStoresCommandOutput,
170195
} from "./commands/ListTrustStoresCommand";
196+
import {
197+
ListUserAccessLoggingSettingsCommand,
198+
ListUserAccessLoggingSettingsCommandInput,
199+
ListUserAccessLoggingSettingsCommandOutput,
200+
} from "./commands/ListUserAccessLoggingSettingsCommand";
171201
import {
172202
ListUserSettingsCommand,
173203
ListUserSettingsCommandInput,
@@ -204,6 +234,11 @@ import {
204234
UpdateTrustStoreCommandInput,
205235
UpdateTrustStoreCommandOutput,
206236
} from "./commands/UpdateTrustStoreCommand";
237+
import {
238+
UpdateUserAccessLoggingSettingsCommand,
239+
UpdateUserAccessLoggingSettingsCommandInput,
240+
UpdateUserAccessLoggingSettingsCommandOutput,
241+
} from "./commands/UpdateUserAccessLoggingSettingsCommand";
207242
import {
208243
UpdateUserSettingsCommand,
209244
UpdateUserSettingsCommandInput,
@@ -316,6 +351,38 @@ export class WorkSpacesWeb extends WorkSpacesWebClient {
316351
}
317352
}
318353

354+
/**
355+
* <p>Associates a user access logging settings resource with a web portal.</p>
356+
*/
357+
public associateUserAccessLoggingSettings(
358+
args: AssociateUserAccessLoggingSettingsCommandInput,
359+
options?: __HttpHandlerOptions
360+
): Promise<AssociateUserAccessLoggingSettingsCommandOutput>;
361+
public associateUserAccessLoggingSettings(
362+
args: AssociateUserAccessLoggingSettingsCommandInput,
363+
cb: (err: any, data?: AssociateUserAccessLoggingSettingsCommandOutput) => void
364+
): void;
365+
public associateUserAccessLoggingSettings(
366+
args: AssociateUserAccessLoggingSettingsCommandInput,
367+
options: __HttpHandlerOptions,
368+
cb: (err: any, data?: AssociateUserAccessLoggingSettingsCommandOutput) => void
369+
): void;
370+
public associateUserAccessLoggingSettings(
371+
args: AssociateUserAccessLoggingSettingsCommandInput,
372+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AssociateUserAccessLoggingSettingsCommandOutput) => void),
373+
cb?: (err: any, data?: AssociateUserAccessLoggingSettingsCommandOutput) => void
374+
): Promise<AssociateUserAccessLoggingSettingsCommandOutput> | void {
375+
const command = new AssociateUserAccessLoggingSettingsCommand(args);
376+
if (typeof optionsOrCb === "function") {
377+
this.send(command, optionsOrCb);
378+
} else if (typeof cb === "function") {
379+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
380+
this.send(command, optionsOrCb || {}, cb);
381+
} else {
382+
return this.send(command, optionsOrCb);
383+
}
384+
}
385+
319386
/**
320387
* <p>Associates a user settings resource with a web portal.</p>
321388
*/
@@ -513,6 +580,38 @@ export class WorkSpacesWeb extends WorkSpacesWebClient {
513580
}
514581
}
515582

583+
/**
584+
* <p>Creates a user access logging settings resource that can be associated with a web portal.</p>
585+
*/
586+
public createUserAccessLoggingSettings(
587+
args: CreateUserAccessLoggingSettingsCommandInput,
588+
options?: __HttpHandlerOptions
589+
): Promise<CreateUserAccessLoggingSettingsCommandOutput>;
590+
public createUserAccessLoggingSettings(
591+
args: CreateUserAccessLoggingSettingsCommandInput,
592+
cb: (err: any, data?: CreateUserAccessLoggingSettingsCommandOutput) => void
593+
): void;
594+
public createUserAccessLoggingSettings(
595+
args: CreateUserAccessLoggingSettingsCommandInput,
596+
options: __HttpHandlerOptions,
597+
cb: (err: any, data?: CreateUserAccessLoggingSettingsCommandOutput) => void
598+
): void;
599+
public createUserAccessLoggingSettings(
600+
args: CreateUserAccessLoggingSettingsCommandInput,
601+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateUserAccessLoggingSettingsCommandOutput) => void),
602+
cb?: (err: any, data?: CreateUserAccessLoggingSettingsCommandOutput) => void
603+
): Promise<CreateUserAccessLoggingSettingsCommandOutput> | void {
604+
const command = new CreateUserAccessLoggingSettingsCommand(args);
605+
if (typeof optionsOrCb === "function") {
606+
this.send(command, optionsOrCb);
607+
} else if (typeof cb === "function") {
608+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
609+
this.send(command, optionsOrCb || {}, cb);
610+
} else {
611+
return this.send(command, optionsOrCb);
612+
}
613+
}
614+
516615
/**
517616
* <p>Creates a user settings resource that can be associated with a web portal. Once
518617
* associated with a web portal, user settings control how users can transfer data between a
@@ -704,6 +803,38 @@ export class WorkSpacesWeb extends WorkSpacesWebClient {
704803
}
705804
}
706805

806+
/**
807+
* <p>Deletes user access logging settings.</p>
808+
*/
809+
public deleteUserAccessLoggingSettings(
810+
args: DeleteUserAccessLoggingSettingsCommandInput,
811+
options?: __HttpHandlerOptions
812+
): Promise<DeleteUserAccessLoggingSettingsCommandOutput>;
813+
public deleteUserAccessLoggingSettings(
814+
args: DeleteUserAccessLoggingSettingsCommandInput,
815+
cb: (err: any, data?: DeleteUserAccessLoggingSettingsCommandOutput) => void
816+
): void;
817+
public deleteUserAccessLoggingSettings(
818+
args: DeleteUserAccessLoggingSettingsCommandInput,
819+
options: __HttpHandlerOptions,
820+
cb: (err: any, data?: DeleteUserAccessLoggingSettingsCommandOutput) => void
821+
): void;
822+
public deleteUserAccessLoggingSettings(
823+
args: DeleteUserAccessLoggingSettingsCommandInput,
824+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteUserAccessLoggingSettingsCommandOutput) => void),
825+
cb?: (err: any, data?: DeleteUserAccessLoggingSettingsCommandOutput) => void
826+
): Promise<DeleteUserAccessLoggingSettingsCommandOutput> | void {
827+
const command = new DeleteUserAccessLoggingSettingsCommand(args);
828+
if (typeof optionsOrCb === "function") {
829+
this.send(command, optionsOrCb);
830+
} else if (typeof cb === "function") {
831+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
832+
this.send(command, optionsOrCb || {}, cb);
833+
} else {
834+
return this.send(command, optionsOrCb);
835+
}
836+
}
837+
707838
/**
708839
* <p>Deletes user settings.</p>
709840
*/
@@ -832,6 +963,40 @@ export class WorkSpacesWeb extends WorkSpacesWebClient {
832963
}
833964
}
834965

966+
/**
967+
* <p>Disassociates user access logging settings from a web portal.</p>
968+
*/
969+
public disassociateUserAccessLoggingSettings(
970+
args: DisassociateUserAccessLoggingSettingsCommandInput,
971+
options?: __HttpHandlerOptions
972+
): Promise<DisassociateUserAccessLoggingSettingsCommandOutput>;
973+
public disassociateUserAccessLoggingSettings(
974+
args: DisassociateUserAccessLoggingSettingsCommandInput,
975+
cb: (err: any, data?: DisassociateUserAccessLoggingSettingsCommandOutput) => void
976+
): void;
977+
public disassociateUserAccessLoggingSettings(
978+
args: DisassociateUserAccessLoggingSettingsCommandInput,
979+
options: __HttpHandlerOptions,
980+
cb: (err: any, data?: DisassociateUserAccessLoggingSettingsCommandOutput) => void
981+
): void;
982+
public disassociateUserAccessLoggingSettings(
983+
args: DisassociateUserAccessLoggingSettingsCommandInput,
984+
optionsOrCb?:
985+
| __HttpHandlerOptions
986+
| ((err: any, data?: DisassociateUserAccessLoggingSettingsCommandOutput) => void),
987+
cb?: (err: any, data?: DisassociateUserAccessLoggingSettingsCommandOutput) => void
988+
): Promise<DisassociateUserAccessLoggingSettingsCommandOutput> | void {
989+
const command = new DisassociateUserAccessLoggingSettingsCommand(args);
990+
if (typeof optionsOrCb === "function") {
991+
this.send(command, optionsOrCb);
992+
} else if (typeof cb === "function") {
993+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
994+
this.send(command, optionsOrCb || {}, cb);
995+
} else {
996+
return this.send(command, optionsOrCb);
997+
}
998+
}
999+
8351000
/**
8361001
* <p>Disassociates user settings from a web portal.</p>
8371002
*/
@@ -1082,6 +1247,38 @@ export class WorkSpacesWeb extends WorkSpacesWebClient {
10821247
}
10831248
}
10841249

1250+
/**
1251+
* <p>Gets user access logging settings.</p>
1252+
*/
1253+
public getUserAccessLoggingSettings(
1254+
args: GetUserAccessLoggingSettingsCommandInput,
1255+
options?: __HttpHandlerOptions
1256+
): Promise<GetUserAccessLoggingSettingsCommandOutput>;
1257+
public getUserAccessLoggingSettings(
1258+
args: GetUserAccessLoggingSettingsCommandInput,
1259+
cb: (err: any, data?: GetUserAccessLoggingSettingsCommandOutput) => void
1260+
): void;
1261+
public getUserAccessLoggingSettings(
1262+
args: GetUserAccessLoggingSettingsCommandInput,
1263+
options: __HttpHandlerOptions,
1264+
cb: (err: any, data?: GetUserAccessLoggingSettingsCommandOutput) => void
1265+
): void;
1266+
public getUserAccessLoggingSettings(
1267+
args: GetUserAccessLoggingSettingsCommandInput,
1268+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetUserAccessLoggingSettingsCommandOutput) => void),
1269+
cb?: (err: any, data?: GetUserAccessLoggingSettingsCommandOutput) => void
1270+
): Promise<GetUserAccessLoggingSettingsCommandOutput> | void {
1271+
const command = new GetUserAccessLoggingSettingsCommand(args);
1272+
if (typeof optionsOrCb === "function") {
1273+
this.send(command, optionsOrCb);
1274+
} else if (typeof cb === "function") {
1275+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1276+
this.send(command, optionsOrCb || {}, cb);
1277+
} else {
1278+
return this.send(command, optionsOrCb);
1279+
}
1280+
}
1281+
10851282
/**
10861283
* <p>Gets user settings.</p>
10871284
*/
@@ -1332,6 +1529,38 @@ export class WorkSpacesWeb extends WorkSpacesWebClient {
13321529
}
13331530
}
13341531

1532+
/**
1533+
* <p>Retrieves a list of user access logging settings.</p>
1534+
*/
1535+
public listUserAccessLoggingSettings(
1536+
args: ListUserAccessLoggingSettingsCommandInput,
1537+
options?: __HttpHandlerOptions
1538+
): Promise<ListUserAccessLoggingSettingsCommandOutput>;
1539+
public listUserAccessLoggingSettings(
1540+
args: ListUserAccessLoggingSettingsCommandInput,
1541+
cb: (err: any, data?: ListUserAccessLoggingSettingsCommandOutput) => void
1542+
): void;
1543+
public listUserAccessLoggingSettings(
1544+
args: ListUserAccessLoggingSettingsCommandInput,
1545+
options: __HttpHandlerOptions,
1546+
cb: (err: any, data?: ListUserAccessLoggingSettingsCommandOutput) => void
1547+
): void;
1548+
public listUserAccessLoggingSettings(
1549+
args: ListUserAccessLoggingSettingsCommandInput,
1550+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListUserAccessLoggingSettingsCommandOutput) => void),
1551+
cb?: (err: any, data?: ListUserAccessLoggingSettingsCommandOutput) => void
1552+
): Promise<ListUserAccessLoggingSettingsCommandOutput> | void {
1553+
const command = new ListUserAccessLoggingSettingsCommand(args);
1554+
if (typeof optionsOrCb === "function") {
1555+
this.send(command, optionsOrCb);
1556+
} else if (typeof cb === "function") {
1557+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1558+
this.send(command, optionsOrCb || {}, cb);
1559+
} else {
1560+
return this.send(command, optionsOrCb);
1561+
}
1562+
}
1563+
13351564
/**
13361565
* <p>Retrieves a list of user settings.</p>
13371566
*/
@@ -1579,6 +1808,38 @@ export class WorkSpacesWeb extends WorkSpacesWebClient {
15791808
}
15801809
}
15811810

1811+
/**
1812+
* <p>Updates the user access logging settings.</p>
1813+
*/
1814+
public updateUserAccessLoggingSettings(
1815+
args: UpdateUserAccessLoggingSettingsCommandInput,
1816+
options?: __HttpHandlerOptions
1817+
): Promise<UpdateUserAccessLoggingSettingsCommandOutput>;
1818+
public updateUserAccessLoggingSettings(
1819+
args: UpdateUserAccessLoggingSettingsCommandInput,
1820+
cb: (err: any, data?: UpdateUserAccessLoggingSettingsCommandOutput) => void
1821+
): void;
1822+
public updateUserAccessLoggingSettings(
1823+
args: UpdateUserAccessLoggingSettingsCommandInput,
1824+
options: __HttpHandlerOptions,
1825+
cb: (err: any, data?: UpdateUserAccessLoggingSettingsCommandOutput) => void
1826+
): void;
1827+
public updateUserAccessLoggingSettings(
1828+
args: UpdateUserAccessLoggingSettingsCommandInput,
1829+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateUserAccessLoggingSettingsCommandOutput) => void),
1830+
cb?: (err: any, data?: UpdateUserAccessLoggingSettingsCommandOutput) => void
1831+
): Promise<UpdateUserAccessLoggingSettingsCommandOutput> | void {
1832+
const command = new UpdateUserAccessLoggingSettingsCommand(args);
1833+
if (typeof optionsOrCb === "function") {
1834+
this.send(command, optionsOrCb);
1835+
} else if (typeof cb === "function") {
1836+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1837+
this.send(command, optionsOrCb || {}, cb);
1838+
} else {
1839+
return this.send(command, optionsOrCb);
1840+
}
1841+
}
1842+
15821843
/**
15831844
* <p>Updates the user settings.</p>
15841845
*/

0 commit comments

Comments
 (0)