Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
266 changes: 266 additions & 0 deletions clients/client-appstream/src/AppStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import {
AssociateApplicationFleetCommandInput,
AssociateApplicationFleetCommandOutput,
} from "./commands/AssociateApplicationFleetCommand";
import {
AssociateApplicationToEntitlementCommand,
AssociateApplicationToEntitlementCommandInput,
AssociateApplicationToEntitlementCommandOutput,
} from "./commands/AssociateApplicationToEntitlementCommand";
import {
AssociateFleetCommand,
AssociateFleetCommandInput,
Expand Down Expand Up @@ -37,6 +42,11 @@ import {
CreateDirectoryConfigCommandInput,
CreateDirectoryConfigCommandOutput,
} from "./commands/CreateDirectoryConfigCommand";
import {
CreateEntitlementCommand,
CreateEntitlementCommandInput,
CreateEntitlementCommandOutput,
} from "./commands/CreateEntitlementCommand";
import { CreateFleetCommand, CreateFleetCommandInput, CreateFleetCommandOutput } from "./commands/CreateFleetCommand";
import {
CreateImageBuilderCommand,
Expand Down Expand Up @@ -80,6 +90,11 @@ import {
DeleteDirectoryConfigCommandInput,
DeleteDirectoryConfigCommandOutput,
} from "./commands/DeleteDirectoryConfigCommand";
import {
DeleteEntitlementCommand,
DeleteEntitlementCommandInput,
DeleteEntitlementCommandOutput,
} from "./commands/DeleteEntitlementCommand";
import { DeleteFleetCommand, DeleteFleetCommandInput, DeleteFleetCommandOutput } from "./commands/DeleteFleetCommand";
import {
DeleteImageBuilderCommand,
Expand Down Expand Up @@ -119,6 +134,11 @@ import {
DescribeDirectoryConfigsCommandInput,
DescribeDirectoryConfigsCommandOutput,
} from "./commands/DescribeDirectoryConfigsCommand";
import {
DescribeEntitlementsCommand,
DescribeEntitlementsCommandInput,
DescribeEntitlementsCommandOutput,
} from "./commands/DescribeEntitlementsCommand";
import {
DescribeFleetsCommand,
DescribeFleetsCommandInput,
Expand Down Expand Up @@ -170,6 +190,11 @@ import {
DisassociateApplicationFleetCommandInput,
DisassociateApplicationFleetCommandOutput,
} from "./commands/DisassociateApplicationFleetCommand";
import {
DisassociateApplicationFromEntitlementCommand,
DisassociateApplicationFromEntitlementCommandInput,
DisassociateApplicationFromEntitlementCommandOutput,
} from "./commands/DisassociateApplicationFromEntitlementCommand";
import {
DisassociateFleetCommand,
DisassociateFleetCommandInput,
Expand All @@ -191,6 +216,11 @@ import {
ListAssociatedStacksCommandInput,
ListAssociatedStacksCommandOutput,
} from "./commands/ListAssociatedStacksCommand";
import {
ListEntitledApplicationsCommand,
ListEntitledApplicationsCommandInput,
ListEntitledApplicationsCommandOutput,
} from "./commands/ListEntitledApplicationsCommand";
import {
ListTagsForResourceCommand,
ListTagsForResourceCommandInput,
Expand Down Expand Up @@ -224,6 +254,11 @@ import {
UpdateDirectoryConfigCommandInput,
UpdateDirectoryConfigCommandOutput,
} from "./commands/UpdateDirectoryConfigCommand";
import {
UpdateEntitlementCommand,
UpdateEntitlementCommandInput,
UpdateEntitlementCommandOutput,
} from "./commands/UpdateEntitlementCommand";
import { UpdateFleetCommand, UpdateFleetCommandInput, UpdateFleetCommandOutput } from "./commands/UpdateFleetCommand";
import {
UpdateImagePermissionsCommand,
Expand Down Expand Up @@ -288,6 +323,38 @@ export class AppStream extends AppStreamClient {
}
}

/**
* <p>Associates an application to entitle.</p>
*/
public associateApplicationToEntitlement(
args: AssociateApplicationToEntitlementCommandInput,
options?: __HttpHandlerOptions
): Promise<AssociateApplicationToEntitlementCommandOutput>;
public associateApplicationToEntitlement(
args: AssociateApplicationToEntitlementCommandInput,
cb: (err: any, data?: AssociateApplicationToEntitlementCommandOutput) => void
): void;
public associateApplicationToEntitlement(
args: AssociateApplicationToEntitlementCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: AssociateApplicationToEntitlementCommandOutput) => void
): void;
public associateApplicationToEntitlement(
args: AssociateApplicationToEntitlementCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AssociateApplicationToEntitlementCommandOutput) => void),
cb?: (err: any, data?: AssociateApplicationToEntitlementCommandOutput) => void
): Promise<AssociateApplicationToEntitlementCommandOutput> | void {
const command = new AssociateApplicationToEntitlementCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Associates the specified fleet with the specified stack.</p>
*/
Expand Down Expand Up @@ -518,6 +585,43 @@ export class AppStream extends AppStreamClient {
}
}

/**
* <p>Creates a new entitlement. Entitlements control access to specific applications within
* a stack, based on user attributes. Entitlements apply to SAML 2.0 federated user
* identities. Amazon AppStream 2.0 user pool and streaming URL users are entitled to all
* applications in a stack. Entitlements don't apply to the desktop stream view
* application, or to applications managed by a dynamic app provider using the Dynamic
* Application Framework.</p>
*/
public createEntitlement(
args: CreateEntitlementCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateEntitlementCommandOutput>;
public createEntitlement(
args: CreateEntitlementCommandInput,
cb: (err: any, data?: CreateEntitlementCommandOutput) => void
): void;
public createEntitlement(
args: CreateEntitlementCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateEntitlementCommandOutput) => void
): void;
public createEntitlement(
args: CreateEntitlementCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateEntitlementCommandOutput) => void),
cb?: (err: any, data?: CreateEntitlementCommandOutput) => void
): Promise<CreateEntitlementCommandOutput> | void {
const command = new CreateEntitlementCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Creates a fleet. A fleet consists of streaming instances that run a specified image when using Always-On or On-Demand.</p>
*/
Expand Down Expand Up @@ -856,6 +960,38 @@ export class AppStream extends AppStreamClient {
}
}

/**
* <p>Deletes the specified entitlement.</p>
*/
public deleteEntitlement(
args: DeleteEntitlementCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteEntitlementCommandOutput>;
public deleteEntitlement(
args: DeleteEntitlementCommandInput,
cb: (err: any, data?: DeleteEntitlementCommandOutput) => void
): void;
public deleteEntitlement(
args: DeleteEntitlementCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteEntitlementCommandOutput) => void
): void;
public deleteEntitlement(
args: DeleteEntitlementCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteEntitlementCommandOutput) => void),
cb?: (err: any, data?: DeleteEntitlementCommandOutput) => void
): Promise<DeleteEntitlementCommandOutput> | void {
const command = new DeleteEntitlementCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Deletes the specified fleet.</p>
*/
Expand Down Expand Up @@ -1187,6 +1323,38 @@ export class AppStream extends AppStreamClient {
}
}

/**
* <p>Retrieves a list that describes one of more entitlements.</p>
*/
public describeEntitlements(
args: DescribeEntitlementsCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeEntitlementsCommandOutput>;
public describeEntitlements(
args: DescribeEntitlementsCommandInput,
cb: (err: any, data?: DescribeEntitlementsCommandOutput) => void
): void;
public describeEntitlements(
args: DescribeEntitlementsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeEntitlementsCommandOutput) => void
): void;
public describeEntitlements(
args: DescribeEntitlementsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeEntitlementsCommandOutput) => void),
cb?: (err: any, data?: DescribeEntitlementsCommandOutput) => void
): Promise<DescribeEntitlementsCommandOutput> | void {
const command = new DescribeEntitlementsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <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>
*/
Expand Down Expand Up @@ -1543,6 +1711,40 @@ export class AppStream extends AppStreamClient {
}
}

/**
* <p>Deletes the specified application from the specified entitlement.</p>
*/
public disassociateApplicationFromEntitlement(
args: DisassociateApplicationFromEntitlementCommandInput,
options?: __HttpHandlerOptions
): Promise<DisassociateApplicationFromEntitlementCommandOutput>;
public disassociateApplicationFromEntitlement(
args: DisassociateApplicationFromEntitlementCommandInput,
cb: (err: any, data?: DisassociateApplicationFromEntitlementCommandOutput) => void
): void;
public disassociateApplicationFromEntitlement(
args: DisassociateApplicationFromEntitlementCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DisassociateApplicationFromEntitlementCommandOutput) => void
): void;
public disassociateApplicationFromEntitlement(
args: DisassociateApplicationFromEntitlementCommandInput,
optionsOrCb?:
| __HttpHandlerOptions
| ((err: any, data?: DisassociateApplicationFromEntitlementCommandOutput) => void),
cb?: (err: any, data?: DisassociateApplicationFromEntitlementCommandOutput) => void
): Promise<DisassociateApplicationFromEntitlementCommandOutput> | void {
const command = new DisassociateApplicationFromEntitlementCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Disassociates the specified fleet from the specified stack.</p>
*/
Expand Down Expand Up @@ -1697,6 +1899,38 @@ export class AppStream extends AppStreamClient {
}
}

/**
* <p>Retrieves a list of entitled applications.</p>
*/
public listEntitledApplications(
args: ListEntitledApplicationsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListEntitledApplicationsCommandOutput>;
public listEntitledApplications(
args: ListEntitledApplicationsCommandInput,
cb: (err: any, data?: ListEntitledApplicationsCommandOutput) => void
): void;
public listEntitledApplications(
args: ListEntitledApplicationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListEntitledApplicationsCommandOutput) => void
): void;
public listEntitledApplications(
args: ListEntitledApplicationsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEntitledApplicationsCommandOutput) => void),
cb?: (err: any, data?: ListEntitledApplicationsCommandOutput) => void
): Promise<ListEntitledApplicationsCommandOutput> | void {
const command = new ListEntitledApplicationsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <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>
* <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>
Expand Down Expand Up @@ -1976,6 +2210,38 @@ export class AppStream extends AppStreamClient {
}
}

/**
* <p>Updates the specified entitlement.</p>
*/
public updateEntitlement(
args: UpdateEntitlementCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateEntitlementCommandOutput>;
public updateEntitlement(
args: UpdateEntitlementCommandInput,
cb: (err: any, data?: UpdateEntitlementCommandOutput) => void
): void;
public updateEntitlement(
args: UpdateEntitlementCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateEntitlementCommandOutput) => void
): void;
public updateEntitlement(
args: UpdateEntitlementCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateEntitlementCommandOutput) => void),
cb?: (err: any, data?: UpdateEntitlementCommandOutput) => void
): Promise<UpdateEntitlementCommandOutput> | void {
const command = new UpdateEntitlementCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Updates the specified fleet.</p>
* <p>If the fleet is in the <code>STOPPED</code> state, you can update any attribute except
Expand Down
Loading