Skip to content

Commit 6648b07

Browse files
authored
feat(clients): update clients as of 2021/01/07 (#3163)
1 parent 2675ed3 commit 6648b07

File tree

231 files changed

+24785
-4114
lines changed

Some content is hidden

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

231 files changed

+24785
-4114
lines changed

clients/client-appstream/src/AppStream.ts

Lines changed: 266 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ import {
66
AssociateApplicationFleetCommandInput,
77
AssociateApplicationFleetCommandOutput,
88
} from "./commands/AssociateApplicationFleetCommand";
9+
import {
10+
AssociateApplicationToEntitlementCommand,
11+
AssociateApplicationToEntitlementCommandInput,
12+
AssociateApplicationToEntitlementCommandOutput,
13+
} from "./commands/AssociateApplicationToEntitlementCommand";
914
import {
1015
AssociateFleetCommand,
1116
AssociateFleetCommandInput,
@@ -37,6 +42,11 @@ import {
3742
CreateDirectoryConfigCommandInput,
3843
CreateDirectoryConfigCommandOutput,
3944
} from "./commands/CreateDirectoryConfigCommand";
45+
import {
46+
CreateEntitlementCommand,
47+
CreateEntitlementCommandInput,
48+
CreateEntitlementCommandOutput,
49+
} from "./commands/CreateEntitlementCommand";
4050
import { CreateFleetCommand, CreateFleetCommandInput, CreateFleetCommandOutput } from "./commands/CreateFleetCommand";
4151
import {
4252
CreateImageBuilderCommand,
@@ -80,6 +90,11 @@ import {
8090
DeleteDirectoryConfigCommandInput,
8191
DeleteDirectoryConfigCommandOutput,
8292
} from "./commands/DeleteDirectoryConfigCommand";
93+
import {
94+
DeleteEntitlementCommand,
95+
DeleteEntitlementCommandInput,
96+
DeleteEntitlementCommandOutput,
97+
} from "./commands/DeleteEntitlementCommand";
8398
import { DeleteFleetCommand, DeleteFleetCommandInput, DeleteFleetCommandOutput } from "./commands/DeleteFleetCommand";
8499
import {
85100
DeleteImageBuilderCommand,
@@ -119,6 +134,11 @@ import {
119134
DescribeDirectoryConfigsCommandInput,
120135
DescribeDirectoryConfigsCommandOutput,
121136
} from "./commands/DescribeDirectoryConfigsCommand";
137+
import {
138+
DescribeEntitlementsCommand,
139+
DescribeEntitlementsCommandInput,
140+
DescribeEntitlementsCommandOutput,
141+
} from "./commands/DescribeEntitlementsCommand";
122142
import {
123143
DescribeFleetsCommand,
124144
DescribeFleetsCommandInput,
@@ -170,6 +190,11 @@ import {
170190
DisassociateApplicationFleetCommandInput,
171191
DisassociateApplicationFleetCommandOutput,
172192
} from "./commands/DisassociateApplicationFleetCommand";
193+
import {
194+
DisassociateApplicationFromEntitlementCommand,
195+
DisassociateApplicationFromEntitlementCommandInput,
196+
DisassociateApplicationFromEntitlementCommandOutput,
197+
} from "./commands/DisassociateApplicationFromEntitlementCommand";
173198
import {
174199
DisassociateFleetCommand,
175200
DisassociateFleetCommandInput,
@@ -191,6 +216,11 @@ import {
191216
ListAssociatedStacksCommandInput,
192217
ListAssociatedStacksCommandOutput,
193218
} from "./commands/ListAssociatedStacksCommand";
219+
import {
220+
ListEntitledApplicationsCommand,
221+
ListEntitledApplicationsCommandInput,
222+
ListEntitledApplicationsCommandOutput,
223+
} from "./commands/ListEntitledApplicationsCommand";
194224
import {
195225
ListTagsForResourceCommand,
196226
ListTagsForResourceCommandInput,
@@ -224,6 +254,11 @@ import {
224254
UpdateDirectoryConfigCommandInput,
225255
UpdateDirectoryConfigCommandOutput,
226256
} from "./commands/UpdateDirectoryConfigCommand";
257+
import {
258+
UpdateEntitlementCommand,
259+
UpdateEntitlementCommandInput,
260+
UpdateEntitlementCommandOutput,
261+
} from "./commands/UpdateEntitlementCommand";
227262
import { UpdateFleetCommand, UpdateFleetCommandInput, UpdateFleetCommandOutput } from "./commands/UpdateFleetCommand";
228263
import {
229264
UpdateImagePermissionsCommand,
@@ -288,6 +323,38 @@ export class AppStream extends AppStreamClient {
288323
}
289324
}
290325

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+
291358
/**
292359
* <p>Associates the specified fleet with the specified stack.</p>
293360
*/
@@ -518,6 +585,43 @@ export class AppStream extends AppStreamClient {
518585
}
519586
}
520587

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+
521625
/**
522626
* <p>Creates a fleet. A fleet consists of streaming instances that run a specified image when using Always-On or On-Demand.</p>
523627
*/
@@ -856,6 +960,38 @@ export class AppStream extends AppStreamClient {
856960
}
857961
}
858962

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+
859995
/**
860996
* <p>Deletes the specified fleet.</p>
861997
*/
@@ -1187,6 +1323,38 @@ export class AppStream extends AppStreamClient {
11871323
}
11881324
}
11891325

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+
11901358
/**
11911359
* <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>
11921360
*/
@@ -1543,6 +1711,40 @@ export class AppStream extends AppStreamClient {
15431711
}
15441712
}
15451713

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+
15461748
/**
15471749
* <p>Disassociates the specified fleet from the specified stack.</p>
15481750
*/
@@ -1697,6 +1899,38 @@ export class AppStream extends AppStreamClient {
16971899
}
16981900
}
16991901

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+
17001934
/**
17011935
* <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>
17021936
* <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 {
19762210
}
19772211
}
19782212

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+
19792245
/**
19802246
* <p>Updates the specified fleet.</p>
19812247
* <p>If the fleet is in the <code>STOPPED</code> state, you can update any attribute except

0 commit comments

Comments
 (0)