@@ -6,6 +6,11 @@ import {
6
6
AssociateApplicationFleetCommandInput ,
7
7
AssociateApplicationFleetCommandOutput ,
8
8
} from "./commands/AssociateApplicationFleetCommand" ;
9
+ import {
10
+ AssociateApplicationToEntitlementCommand ,
11
+ AssociateApplicationToEntitlementCommandInput ,
12
+ AssociateApplicationToEntitlementCommandOutput ,
13
+ } from "./commands/AssociateApplicationToEntitlementCommand" ;
9
14
import {
10
15
AssociateFleetCommand ,
11
16
AssociateFleetCommandInput ,
@@ -37,6 +42,11 @@ import {
37
42
CreateDirectoryConfigCommandInput ,
38
43
CreateDirectoryConfigCommandOutput ,
39
44
} from "./commands/CreateDirectoryConfigCommand" ;
45
+ import {
46
+ CreateEntitlementCommand ,
47
+ CreateEntitlementCommandInput ,
48
+ CreateEntitlementCommandOutput ,
49
+ } from "./commands/CreateEntitlementCommand" ;
40
50
import { CreateFleetCommand , CreateFleetCommandInput , CreateFleetCommandOutput } from "./commands/CreateFleetCommand" ;
41
51
import {
42
52
CreateImageBuilderCommand ,
@@ -80,6 +90,11 @@ import {
80
90
DeleteDirectoryConfigCommandInput ,
81
91
DeleteDirectoryConfigCommandOutput ,
82
92
} from "./commands/DeleteDirectoryConfigCommand" ;
93
+ import {
94
+ DeleteEntitlementCommand ,
95
+ DeleteEntitlementCommandInput ,
96
+ DeleteEntitlementCommandOutput ,
97
+ } from "./commands/DeleteEntitlementCommand" ;
83
98
import { DeleteFleetCommand , DeleteFleetCommandInput , DeleteFleetCommandOutput } from "./commands/DeleteFleetCommand" ;
84
99
import {
85
100
DeleteImageBuilderCommand ,
@@ -119,6 +134,11 @@ import {
119
134
DescribeDirectoryConfigsCommandInput ,
120
135
DescribeDirectoryConfigsCommandOutput ,
121
136
} from "./commands/DescribeDirectoryConfigsCommand" ;
137
+ import {
138
+ DescribeEntitlementsCommand ,
139
+ DescribeEntitlementsCommandInput ,
140
+ DescribeEntitlementsCommandOutput ,
141
+ } from "./commands/DescribeEntitlementsCommand" ;
122
142
import {
123
143
DescribeFleetsCommand ,
124
144
DescribeFleetsCommandInput ,
@@ -170,6 +190,11 @@ import {
170
190
DisassociateApplicationFleetCommandInput ,
171
191
DisassociateApplicationFleetCommandOutput ,
172
192
} from "./commands/DisassociateApplicationFleetCommand" ;
193
+ import {
194
+ DisassociateApplicationFromEntitlementCommand ,
195
+ DisassociateApplicationFromEntitlementCommandInput ,
196
+ DisassociateApplicationFromEntitlementCommandOutput ,
197
+ } from "./commands/DisassociateApplicationFromEntitlementCommand" ;
173
198
import {
174
199
DisassociateFleetCommand ,
175
200
DisassociateFleetCommandInput ,
@@ -191,6 +216,11 @@ import {
191
216
ListAssociatedStacksCommandInput ,
192
217
ListAssociatedStacksCommandOutput ,
193
218
} from "./commands/ListAssociatedStacksCommand" ;
219
+ import {
220
+ ListEntitledApplicationsCommand ,
221
+ ListEntitledApplicationsCommandInput ,
222
+ ListEntitledApplicationsCommandOutput ,
223
+ } from "./commands/ListEntitledApplicationsCommand" ;
194
224
import {
195
225
ListTagsForResourceCommand ,
196
226
ListTagsForResourceCommandInput ,
@@ -224,6 +254,11 @@ import {
224
254
UpdateDirectoryConfigCommandInput ,
225
255
UpdateDirectoryConfigCommandOutput ,
226
256
} from "./commands/UpdateDirectoryConfigCommand" ;
257
+ import {
258
+ UpdateEntitlementCommand ,
259
+ UpdateEntitlementCommandInput ,
260
+ UpdateEntitlementCommandOutput ,
261
+ } from "./commands/UpdateEntitlementCommand" ;
227
262
import { UpdateFleetCommand , UpdateFleetCommandInput , UpdateFleetCommandOutput } from "./commands/UpdateFleetCommand" ;
228
263
import {
229
264
UpdateImagePermissionsCommand ,
@@ -288,6 +323,38 @@ export class AppStream extends AppStreamClient {
288
323
}
289
324
}
290
325
326
+ /**
327
+ * <p>Associates an application to entitle.</p>
328
+ */
329
+ public associateApplicationToEntitlement (
330
+ args : AssociateApplicationToEntitlementCommandInput ,
331
+ options ?: __HttpHandlerOptions
332
+ ) : Promise < AssociateApplicationToEntitlementCommandOutput > ;
333
+ public associateApplicationToEntitlement (
334
+ args : AssociateApplicationToEntitlementCommandInput ,
335
+ cb : ( err : any , data ?: AssociateApplicationToEntitlementCommandOutput ) => void
336
+ ) : void ;
337
+ public associateApplicationToEntitlement (
338
+ args : AssociateApplicationToEntitlementCommandInput ,
339
+ options : __HttpHandlerOptions ,
340
+ cb : ( err : any , data ?: AssociateApplicationToEntitlementCommandOutput ) => void
341
+ ) : void ;
342
+ public associateApplicationToEntitlement (
343
+ args : AssociateApplicationToEntitlementCommandInput ,
344
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: AssociateApplicationToEntitlementCommandOutput ) => void ) ,
345
+ cb ?: ( err : any , data ?: AssociateApplicationToEntitlementCommandOutput ) => void
346
+ ) : Promise < AssociateApplicationToEntitlementCommandOutput > | void {
347
+ const command = new AssociateApplicationToEntitlementCommand ( args ) ;
348
+ if ( typeof optionsOrCb === "function" ) {
349
+ this . send ( command , optionsOrCb ) ;
350
+ } else if ( typeof cb === "function" ) {
351
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
352
+ this . send ( command , optionsOrCb || { } , cb ) ;
353
+ } else {
354
+ return this . send ( command , optionsOrCb ) ;
355
+ }
356
+ }
357
+
291
358
/**
292
359
* <p>Associates the specified fleet with the specified stack.</p>
293
360
*/
@@ -518,6 +585,43 @@ export class AppStream extends AppStreamClient {
518
585
}
519
586
}
520
587
588
+ /**
589
+ * <p>Creates a new entitlement. Entitlements control access to specific applications within
590
+ * a stack, based on user attributes. Entitlements apply to SAML 2.0 federated user
591
+ * identities. Amazon AppStream 2.0 user pool and streaming URL users are entitled to all
592
+ * applications in a stack. Entitlements don't apply to the desktop stream view
593
+ * application, or to applications managed by a dynamic app provider using the Dynamic
594
+ * Application Framework.</p>
595
+ */
596
+ public createEntitlement (
597
+ args : CreateEntitlementCommandInput ,
598
+ options ?: __HttpHandlerOptions
599
+ ) : Promise < CreateEntitlementCommandOutput > ;
600
+ public createEntitlement (
601
+ args : CreateEntitlementCommandInput ,
602
+ cb : ( err : any , data ?: CreateEntitlementCommandOutput ) => void
603
+ ) : void ;
604
+ public createEntitlement (
605
+ args : CreateEntitlementCommandInput ,
606
+ options : __HttpHandlerOptions ,
607
+ cb : ( err : any , data ?: CreateEntitlementCommandOutput ) => void
608
+ ) : void ;
609
+ public createEntitlement (
610
+ args : CreateEntitlementCommandInput ,
611
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateEntitlementCommandOutput ) => void ) ,
612
+ cb ?: ( err : any , data ?: CreateEntitlementCommandOutput ) => void
613
+ ) : Promise < CreateEntitlementCommandOutput > | void {
614
+ const command = new CreateEntitlementCommand ( args ) ;
615
+ if ( typeof optionsOrCb === "function" ) {
616
+ this . send ( command , optionsOrCb ) ;
617
+ } else if ( typeof cb === "function" ) {
618
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
619
+ this . send ( command , optionsOrCb || { } , cb ) ;
620
+ } else {
621
+ return this . send ( command , optionsOrCb ) ;
622
+ }
623
+ }
624
+
521
625
/**
522
626
* <p>Creates a fleet. A fleet consists of streaming instances that run a specified image when using Always-On or On-Demand.</p>
523
627
*/
@@ -856,6 +960,38 @@ export class AppStream extends AppStreamClient {
856
960
}
857
961
}
858
962
963
+ /**
964
+ * <p>Deletes the specified entitlement.</p>
965
+ */
966
+ public deleteEntitlement (
967
+ args : DeleteEntitlementCommandInput ,
968
+ options ?: __HttpHandlerOptions
969
+ ) : Promise < DeleteEntitlementCommandOutput > ;
970
+ public deleteEntitlement (
971
+ args : DeleteEntitlementCommandInput ,
972
+ cb : ( err : any , data ?: DeleteEntitlementCommandOutput ) => void
973
+ ) : void ;
974
+ public deleteEntitlement (
975
+ args : DeleteEntitlementCommandInput ,
976
+ options : __HttpHandlerOptions ,
977
+ cb : ( err : any , data ?: DeleteEntitlementCommandOutput ) => void
978
+ ) : void ;
979
+ public deleteEntitlement (
980
+ args : DeleteEntitlementCommandInput ,
981
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteEntitlementCommandOutput ) => void ) ,
982
+ cb ?: ( err : any , data ?: DeleteEntitlementCommandOutput ) => void
983
+ ) : Promise < DeleteEntitlementCommandOutput > | void {
984
+ const command = new DeleteEntitlementCommand ( args ) ;
985
+ if ( typeof optionsOrCb === "function" ) {
986
+ this . send ( command , optionsOrCb ) ;
987
+ } else if ( typeof cb === "function" ) {
988
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
989
+ this . send ( command , optionsOrCb || { } , cb ) ;
990
+ } else {
991
+ return this . send ( command , optionsOrCb ) ;
992
+ }
993
+ }
994
+
859
995
/**
860
996
* <p>Deletes the specified fleet.</p>
861
997
*/
@@ -1187,6 +1323,38 @@ export class AppStream extends AppStreamClient {
1187
1323
}
1188
1324
}
1189
1325
1326
+ /**
1327
+ * <p>Retrieves a list that describes one of more entitlements.</p>
1328
+ */
1329
+ public describeEntitlements (
1330
+ args : DescribeEntitlementsCommandInput ,
1331
+ options ?: __HttpHandlerOptions
1332
+ ) : Promise < DescribeEntitlementsCommandOutput > ;
1333
+ public describeEntitlements (
1334
+ args : DescribeEntitlementsCommandInput ,
1335
+ cb : ( err : any , data ?: DescribeEntitlementsCommandOutput ) => void
1336
+ ) : void ;
1337
+ public describeEntitlements (
1338
+ args : DescribeEntitlementsCommandInput ,
1339
+ options : __HttpHandlerOptions ,
1340
+ cb : ( err : any , data ?: DescribeEntitlementsCommandOutput ) => void
1341
+ ) : void ;
1342
+ public describeEntitlements (
1343
+ args : DescribeEntitlementsCommandInput ,
1344
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeEntitlementsCommandOutput ) => void ) ,
1345
+ cb ?: ( err : any , data ?: DescribeEntitlementsCommandOutput ) => void
1346
+ ) : Promise < DescribeEntitlementsCommandOutput > | void {
1347
+ const command = new DescribeEntitlementsCommand ( args ) ;
1348
+ if ( typeof optionsOrCb === "function" ) {
1349
+ this . send ( command , optionsOrCb ) ;
1350
+ } else if ( typeof cb === "function" ) {
1351
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1352
+ this . send ( command , optionsOrCb || { } , cb ) ;
1353
+ } else {
1354
+ return this . send ( command , optionsOrCb ) ;
1355
+ }
1356
+ }
1357
+
1190
1358
/**
1191
1359
* <p>Retrieves a list that describes one or more specified fleets, if the fleet names are provided. Otherwise, all fleets in the account are described.</p>
1192
1360
*/
@@ -1543,6 +1711,40 @@ export class AppStream extends AppStreamClient {
1543
1711
}
1544
1712
}
1545
1713
1714
+ /**
1715
+ * <p>Deletes the specified application from the specified entitlement.</p>
1716
+ */
1717
+ public disassociateApplicationFromEntitlement (
1718
+ args : DisassociateApplicationFromEntitlementCommandInput ,
1719
+ options ?: __HttpHandlerOptions
1720
+ ) : Promise < DisassociateApplicationFromEntitlementCommandOutput > ;
1721
+ public disassociateApplicationFromEntitlement (
1722
+ args : DisassociateApplicationFromEntitlementCommandInput ,
1723
+ cb : ( err : any , data ?: DisassociateApplicationFromEntitlementCommandOutput ) => void
1724
+ ) : void ;
1725
+ public disassociateApplicationFromEntitlement (
1726
+ args : DisassociateApplicationFromEntitlementCommandInput ,
1727
+ options : __HttpHandlerOptions ,
1728
+ cb : ( err : any , data ?: DisassociateApplicationFromEntitlementCommandOutput ) => void
1729
+ ) : void ;
1730
+ public disassociateApplicationFromEntitlement (
1731
+ args : DisassociateApplicationFromEntitlementCommandInput ,
1732
+ optionsOrCb ?:
1733
+ | __HttpHandlerOptions
1734
+ | ( ( err : any , data ?: DisassociateApplicationFromEntitlementCommandOutput ) => void ) ,
1735
+ cb ?: ( err : any , data ?: DisassociateApplicationFromEntitlementCommandOutput ) => void
1736
+ ) : Promise < DisassociateApplicationFromEntitlementCommandOutput > | void {
1737
+ const command = new DisassociateApplicationFromEntitlementCommand ( args ) ;
1738
+ if ( typeof optionsOrCb === "function" ) {
1739
+ this . send ( command , optionsOrCb ) ;
1740
+ } else if ( typeof cb === "function" ) {
1741
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1742
+ this . send ( command , optionsOrCb || { } , cb ) ;
1743
+ } else {
1744
+ return this . send ( command , optionsOrCb ) ;
1745
+ }
1746
+ }
1747
+
1546
1748
/**
1547
1749
* <p>Disassociates the specified fleet from the specified stack.</p>
1548
1750
*/
@@ -1697,6 +1899,38 @@ export class AppStream extends AppStreamClient {
1697
1899
}
1698
1900
}
1699
1901
1902
+ /**
1903
+ * <p>Retrieves a list of entitled applications.</p>
1904
+ */
1905
+ public listEntitledApplications (
1906
+ args : ListEntitledApplicationsCommandInput ,
1907
+ options ?: __HttpHandlerOptions
1908
+ ) : Promise < ListEntitledApplicationsCommandOutput > ;
1909
+ public listEntitledApplications (
1910
+ args : ListEntitledApplicationsCommandInput ,
1911
+ cb : ( err : any , data ?: ListEntitledApplicationsCommandOutput ) => void
1912
+ ) : void ;
1913
+ public listEntitledApplications (
1914
+ args : ListEntitledApplicationsCommandInput ,
1915
+ options : __HttpHandlerOptions ,
1916
+ cb : ( err : any , data ?: ListEntitledApplicationsCommandOutput ) => void
1917
+ ) : void ;
1918
+ public listEntitledApplications (
1919
+ args : ListEntitledApplicationsCommandInput ,
1920
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListEntitledApplicationsCommandOutput ) => void ) ,
1921
+ cb ?: ( err : any , data ?: ListEntitledApplicationsCommandOutput ) => void
1922
+ ) : Promise < ListEntitledApplicationsCommandOutput > | void {
1923
+ const command = new ListEntitledApplicationsCommand ( args ) ;
1924
+ if ( typeof optionsOrCb === "function" ) {
1925
+ this . send ( command , optionsOrCb ) ;
1926
+ } else if ( typeof cb === "function" ) {
1927
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1928
+ this . send ( command , optionsOrCb || { } , cb ) ;
1929
+ } else {
1930
+ return this . send ( command , optionsOrCb ) ;
1931
+ }
1932
+ }
1933
+
1700
1934
/**
1701
1935
* <p>Retrieves a list of all tags for the specified AppStream 2.0 resource. You can tag AppStream 2.0 image builders, images, fleets, and stacks.</p>
1702
1936
* <p>For more information about tags, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html">Tagging Your Resources</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
@@ -1976,6 +2210,38 @@ export class AppStream extends AppStreamClient {
1976
2210
}
1977
2211
}
1978
2212
2213
+ /**
2214
+ * <p>Updates the specified entitlement.</p>
2215
+ */
2216
+ public updateEntitlement (
2217
+ args : UpdateEntitlementCommandInput ,
2218
+ options ?: __HttpHandlerOptions
2219
+ ) : Promise < UpdateEntitlementCommandOutput > ;
2220
+ public updateEntitlement (
2221
+ args : UpdateEntitlementCommandInput ,
2222
+ cb : ( err : any , data ?: UpdateEntitlementCommandOutput ) => void
2223
+ ) : void ;
2224
+ public updateEntitlement (
2225
+ args : UpdateEntitlementCommandInput ,
2226
+ options : __HttpHandlerOptions ,
2227
+ cb : ( err : any , data ?: UpdateEntitlementCommandOutput ) => void
2228
+ ) : void ;
2229
+ public updateEntitlement (
2230
+ args : UpdateEntitlementCommandInput ,
2231
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UpdateEntitlementCommandOutput ) => void ) ,
2232
+ cb ?: ( err : any , data ?: UpdateEntitlementCommandOutput ) => void
2233
+ ) : Promise < UpdateEntitlementCommandOutput > | void {
2234
+ const command = new UpdateEntitlementCommand ( args ) ;
2235
+ if ( typeof optionsOrCb === "function" ) {
2236
+ this . send ( command , optionsOrCb ) ;
2237
+ } else if ( typeof cb === "function" ) {
2238
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2239
+ this . send ( command , optionsOrCb || { } , cb ) ;
2240
+ } else {
2241
+ return this . send ( command , optionsOrCb ) ;
2242
+ }
2243
+ }
2244
+
1979
2245
/**
1980
2246
* <p>Updates the specified fleet.</p>
1981
2247
* <p>If the fleet is in the <code>STOPPED</code> state, you can update any attribute except
0 commit comments