1
1
// smithy-typescript generated code
2
2
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ;
3
3
4
+ import {
5
+ AssociateUserToPermissionGroupCommand ,
6
+ AssociateUserToPermissionGroupCommandInput ,
7
+ AssociateUserToPermissionGroupCommandOutput ,
8
+ } from "./commands/AssociateUserToPermissionGroupCommand" ;
4
9
import {
5
10
CreateChangesetCommand ,
6
11
CreateChangesetCommandInput ,
@@ -33,6 +38,11 @@ import {
33
38
DeletePermissionGroupCommandOutput ,
34
39
} from "./commands/DeletePermissionGroupCommand" ;
35
40
import { DisableUserCommand , DisableUserCommandInput , DisableUserCommandOutput } from "./commands/DisableUserCommand" ;
41
+ import {
42
+ DisassociateUserFromPermissionGroupCommand ,
43
+ DisassociateUserFromPermissionGroupCommandInput ,
44
+ DisassociateUserFromPermissionGroupCommandOutput ,
45
+ } from "./commands/DisassociateUserFromPermissionGroupCommand" ;
36
46
import { EnableUserCommand , EnableUserCommandInput , EnableUserCommandOutput } from "./commands/EnableUserCommand" ;
37
47
import {
38
48
GetChangesetCommand ,
@@ -41,6 +51,11 @@ import {
41
51
} from "./commands/GetChangesetCommand" ;
42
52
import { GetDatasetCommand , GetDatasetCommandInput , GetDatasetCommandOutput } from "./commands/GetDatasetCommand" ;
43
53
import { GetDataViewCommand , GetDataViewCommandInput , GetDataViewCommandOutput } from "./commands/GetDataViewCommand" ;
54
+ import {
55
+ GetPermissionGroupCommand ,
56
+ GetPermissionGroupCommandInput ,
57
+ GetPermissionGroupCommandOutput ,
58
+ } from "./commands/GetPermissionGroupCommand" ;
44
59
import {
45
60
GetProgrammaticAccessCredentialsCommand ,
46
61
GetProgrammaticAccessCredentialsCommandInput ,
@@ -67,11 +82,21 @@ import {
67
82
ListDataViewsCommandInput ,
68
83
ListDataViewsCommandOutput ,
69
84
} from "./commands/ListDataViewsCommand" ;
85
+ import {
86
+ ListPermissionGroupsByUserCommand ,
87
+ ListPermissionGroupsByUserCommandInput ,
88
+ ListPermissionGroupsByUserCommandOutput ,
89
+ } from "./commands/ListPermissionGroupsByUserCommand" ;
70
90
import {
71
91
ListPermissionGroupsCommand ,
72
92
ListPermissionGroupsCommandInput ,
73
93
ListPermissionGroupsCommandOutput ,
74
94
} from "./commands/ListPermissionGroupsCommand" ;
95
+ import {
96
+ ListUsersByPermissionGroupCommand ,
97
+ ListUsersByPermissionGroupCommandInput ,
98
+ ListUsersByPermissionGroupCommandOutput ,
99
+ } from "./commands/ListUsersByPermissionGroupCommand" ;
75
100
import { ListUsersCommand , ListUsersCommandInput , ListUsersCommandOutput } from "./commands/ListUsersCommand" ;
76
101
import {
77
102
ResetUserPasswordCommand ,
@@ -100,6 +125,38 @@ import { FinspaceDataClient } from "./FinspaceDataClient";
100
125
* <p> The FinSpace APIs let you take actions inside the FinSpace.</p>
101
126
*/
102
127
export class FinspaceData extends FinspaceDataClient {
128
+ /**
129
+ * <p>Adds a user account to a permission group to grant permissions for actions a user can perform in FinSpace.</p>
130
+ */
131
+ public associateUserToPermissionGroup (
132
+ args : AssociateUserToPermissionGroupCommandInput ,
133
+ options ?: __HttpHandlerOptions
134
+ ) : Promise < AssociateUserToPermissionGroupCommandOutput > ;
135
+ public associateUserToPermissionGroup (
136
+ args : AssociateUserToPermissionGroupCommandInput ,
137
+ cb : ( err : any , data ?: AssociateUserToPermissionGroupCommandOutput ) => void
138
+ ) : void ;
139
+ public associateUserToPermissionGroup (
140
+ args : AssociateUserToPermissionGroupCommandInput ,
141
+ options : __HttpHandlerOptions ,
142
+ cb : ( err : any , data ?: AssociateUserToPermissionGroupCommandOutput ) => void
143
+ ) : void ;
144
+ public associateUserToPermissionGroup (
145
+ args : AssociateUserToPermissionGroupCommandInput ,
146
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: AssociateUserToPermissionGroupCommandOutput ) => void ) ,
147
+ cb ?: ( err : any , data ?: AssociateUserToPermissionGroupCommandOutput ) => void
148
+ ) : Promise < AssociateUserToPermissionGroupCommandOutput > | void {
149
+ const command = new AssociateUserToPermissionGroupCommand ( args ) ;
150
+ if ( typeof optionsOrCb === "function" ) {
151
+ this . send ( command , optionsOrCb ) ;
152
+ } else if ( typeof cb === "function" ) {
153
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
154
+ this . send ( command , optionsOrCb || { } , cb ) ;
155
+ } else {
156
+ return this . send ( command , optionsOrCb ) ;
157
+ }
158
+ }
159
+
103
160
/**
104
161
* <p>Creates a new Changeset in a FinSpace Dataset.</p>
105
162
*/
@@ -344,6 +401,38 @@ export class FinspaceData extends FinspaceDataClient {
344
401
}
345
402
}
346
403
404
+ /**
405
+ * <p>Removes a user account from a permission group.</p>
406
+ */
407
+ public disassociateUserFromPermissionGroup (
408
+ args : DisassociateUserFromPermissionGroupCommandInput ,
409
+ options ?: __HttpHandlerOptions
410
+ ) : Promise < DisassociateUserFromPermissionGroupCommandOutput > ;
411
+ public disassociateUserFromPermissionGroup (
412
+ args : DisassociateUserFromPermissionGroupCommandInput ,
413
+ cb : ( err : any , data ?: DisassociateUserFromPermissionGroupCommandOutput ) => void
414
+ ) : void ;
415
+ public disassociateUserFromPermissionGroup (
416
+ args : DisassociateUserFromPermissionGroupCommandInput ,
417
+ options : __HttpHandlerOptions ,
418
+ cb : ( err : any , data ?: DisassociateUserFromPermissionGroupCommandOutput ) => void
419
+ ) : void ;
420
+ public disassociateUserFromPermissionGroup (
421
+ args : DisassociateUserFromPermissionGroupCommandInput ,
422
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DisassociateUserFromPermissionGroupCommandOutput ) => void ) ,
423
+ cb ?: ( err : any , data ?: DisassociateUserFromPermissionGroupCommandOutput ) => void
424
+ ) : Promise < DisassociateUserFromPermissionGroupCommandOutput > | void {
425
+ const command = new DisassociateUserFromPermissionGroupCommand ( args ) ;
426
+ if ( typeof optionsOrCb === "function" ) {
427
+ this . send ( command , optionsOrCb ) ;
428
+ } else if ( typeof cb === "function" ) {
429
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
430
+ this . send ( command , optionsOrCb || { } , cb ) ;
431
+ } else {
432
+ return this . send ( command , optionsOrCb ) ;
433
+ }
434
+ }
435
+
347
436
/**
348
437
* <p> Allows the specified user to access the FinSpace web application and API.</p>
349
438
*/
@@ -451,6 +540,38 @@ export class FinspaceData extends FinspaceDataClient {
451
540
}
452
541
}
453
542
543
+ /**
544
+ * <p>Retrieves the details of a specific permission group.</p>
545
+ */
546
+ public getPermissionGroup (
547
+ args : GetPermissionGroupCommandInput ,
548
+ options ?: __HttpHandlerOptions
549
+ ) : Promise < GetPermissionGroupCommandOutput > ;
550
+ public getPermissionGroup (
551
+ args : GetPermissionGroupCommandInput ,
552
+ cb : ( err : any , data ?: GetPermissionGroupCommandOutput ) => void
553
+ ) : void ;
554
+ public getPermissionGroup (
555
+ args : GetPermissionGroupCommandInput ,
556
+ options : __HttpHandlerOptions ,
557
+ cb : ( err : any , data ?: GetPermissionGroupCommandOutput ) => void
558
+ ) : void ;
559
+ public getPermissionGroup (
560
+ args : GetPermissionGroupCommandInput ,
561
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: GetPermissionGroupCommandOutput ) => void ) ,
562
+ cb ?: ( err : any , data ?: GetPermissionGroupCommandOutput ) => void
563
+ ) : Promise < GetPermissionGroupCommandOutput > | void {
564
+ const command = new GetPermissionGroupCommand ( args ) ;
565
+ if ( typeof optionsOrCb === "function" ) {
566
+ this . send ( command , optionsOrCb ) ;
567
+ } else if ( typeof cb === "function" ) {
568
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
569
+ this . send ( command , optionsOrCb || { } , cb ) ;
570
+ } else {
571
+ return this . send ( command , optionsOrCb ) ;
572
+ }
573
+ }
574
+
454
575
/**
455
576
* <p>Request programmatic credentials to use with FinSpace SDK.</p>
456
577
*/
@@ -667,6 +788,38 @@ export class FinspaceData extends FinspaceDataClient {
667
788
}
668
789
}
669
790
791
+ /**
792
+ * <p>Lists all the permission groups that are associated with a specific user account.</p>
793
+ */
794
+ public listPermissionGroupsByUser (
795
+ args : ListPermissionGroupsByUserCommandInput ,
796
+ options ?: __HttpHandlerOptions
797
+ ) : Promise < ListPermissionGroupsByUserCommandOutput > ;
798
+ public listPermissionGroupsByUser (
799
+ args : ListPermissionGroupsByUserCommandInput ,
800
+ cb : ( err : any , data ?: ListPermissionGroupsByUserCommandOutput ) => void
801
+ ) : void ;
802
+ public listPermissionGroupsByUser (
803
+ args : ListPermissionGroupsByUserCommandInput ,
804
+ options : __HttpHandlerOptions ,
805
+ cb : ( err : any , data ?: ListPermissionGroupsByUserCommandOutput ) => void
806
+ ) : void ;
807
+ public listPermissionGroupsByUser (
808
+ args : ListPermissionGroupsByUserCommandInput ,
809
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListPermissionGroupsByUserCommandOutput ) => void ) ,
810
+ cb ?: ( err : any , data ?: ListPermissionGroupsByUserCommandOutput ) => void
811
+ ) : Promise < ListPermissionGroupsByUserCommandOutput > | void {
812
+ const command = new ListPermissionGroupsByUserCommand ( args ) ;
813
+ if ( typeof optionsOrCb === "function" ) {
814
+ this . send ( command , optionsOrCb ) ;
815
+ } else if ( typeof cb === "function" ) {
816
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
817
+ this . send ( command , optionsOrCb || { } , cb ) ;
818
+ } else {
819
+ return this . send ( command , optionsOrCb ) ;
820
+ }
821
+ }
822
+
670
823
/**
671
824
* <p>Lists all available user accounts in FinSpace.</p>
672
825
*/
@@ -693,6 +846,38 @@ export class FinspaceData extends FinspaceDataClient {
693
846
}
694
847
}
695
848
849
+ /**
850
+ * <p>Lists details of all the users in a specific permission group.</p>
851
+ */
852
+ public listUsersByPermissionGroup (
853
+ args : ListUsersByPermissionGroupCommandInput ,
854
+ options ?: __HttpHandlerOptions
855
+ ) : Promise < ListUsersByPermissionGroupCommandOutput > ;
856
+ public listUsersByPermissionGroup (
857
+ args : ListUsersByPermissionGroupCommandInput ,
858
+ cb : ( err : any , data ?: ListUsersByPermissionGroupCommandOutput ) => void
859
+ ) : void ;
860
+ public listUsersByPermissionGroup (
861
+ args : ListUsersByPermissionGroupCommandInput ,
862
+ options : __HttpHandlerOptions ,
863
+ cb : ( err : any , data ?: ListUsersByPermissionGroupCommandOutput ) => void
864
+ ) : void ;
865
+ public listUsersByPermissionGroup (
866
+ args : ListUsersByPermissionGroupCommandInput ,
867
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListUsersByPermissionGroupCommandOutput ) => void ) ,
868
+ cb ?: ( err : any , data ?: ListUsersByPermissionGroupCommandOutput ) => void
869
+ ) : Promise < ListUsersByPermissionGroupCommandOutput > | void {
870
+ const command = new ListUsersByPermissionGroupCommand ( args ) ;
871
+ if ( typeof optionsOrCb === "function" ) {
872
+ this . send ( command , optionsOrCb ) ;
873
+ } else if ( typeof cb === "function" ) {
874
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
875
+ this . send ( command , optionsOrCb || { } , cb ) ;
876
+ } else {
877
+ return this . send ( command , optionsOrCb ) ;
878
+ }
879
+ }
880
+
696
881
/**
697
882
* <p>Resets the password for a specified user ID and generates a temporary one. Only a superuser can reset password for other users. Resetting the password immediately invalidates the previous password associated with the user.</p>
698
883
*/
0 commit comments