Skip to content

Commit

Permalink
feat(client-appstream): This release includes following new APIs: Cre…
Browse files Browse the repository at this point in the history
…ateThemeForStack, DescribeThemeForStack, UpdateThemeForStack, DeleteThemeForStack to support custom branding programmatically.
  • Loading branch information
awstools committed Aug 13, 2024
1 parent db3560c commit 86d89c6
Show file tree
Hide file tree
Showing 19 changed files with 1,815 additions and 3 deletions.
32 changes: 32 additions & 0 deletions clients/client-appstream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,14 @@ CreateStreamingURL

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appstream/command/CreateStreamingURLCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/CreateStreamingURLCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/CreateStreamingURLCommandOutput/)

</details>
<details>
<summary>
CreateThemeForStack
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appstream/command/CreateThemeForStackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/CreateThemeForStackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/CreateThemeForStackCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -468,6 +476,14 @@ DeleteStack

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appstream/command/DeleteStackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/DeleteStackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/DeleteStackCommandOutput/)

</details>
<details>
<summary>
DeleteThemeForStack
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appstream/command/DeleteThemeForStackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/DeleteThemeForStackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/DeleteThemeForStackCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -588,6 +604,14 @@ DescribeStacks

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appstream/command/DescribeStacksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/DescribeStacksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/DescribeStacksCommandOutput/)

</details>
<details>
<summary>
DescribeThemeForStack
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appstream/command/DescribeThemeForStackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/DescribeThemeForStackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/DescribeThemeForStackCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -821,3 +845,11 @@ UpdateStack
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appstream/command/UpdateStackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/UpdateStackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/UpdateStackCommandOutput/)

</details>
<details>
<summary>
UpdateThemeForStack
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appstream/command/UpdateThemeForStackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/UpdateThemeForStackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/UpdateThemeForStackCommandOutput/)

</details>
92 changes: 92 additions & 0 deletions clients/client-appstream/src/AppStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ import {
CreateStreamingURLCommandInput,
CreateStreamingURLCommandOutput,
} from "./commands/CreateStreamingURLCommand";
import {
CreateThemeForStackCommand,
CreateThemeForStackCommandInput,
CreateThemeForStackCommandOutput,
} from "./commands/CreateThemeForStackCommand";
import {
CreateUpdatedImageCommand,
CreateUpdatedImageCommandInput,
Expand Down Expand Up @@ -130,6 +135,11 @@ import {
DeleteImagePermissionsCommandOutput,
} from "./commands/DeleteImagePermissionsCommand";
import { DeleteStackCommand, DeleteStackCommandInput, DeleteStackCommandOutput } from "./commands/DeleteStackCommand";
import {
DeleteThemeForStackCommand,
DeleteThemeForStackCommandInput,
DeleteThemeForStackCommandOutput,
} from "./commands/DeleteThemeForStackCommand";
import {
DeleteUsageReportSubscriptionCommand,
DeleteUsageReportSubscriptionCommandInput,
Expand Down Expand Up @@ -201,6 +211,11 @@ import {
DescribeStacksCommandInput,
DescribeStacksCommandOutput,
} from "./commands/DescribeStacksCommand";
import {
DescribeThemeForStackCommand,
DescribeThemeForStackCommandInput,
DescribeThemeForStackCommandOutput,
} from "./commands/DescribeThemeForStackCommand";
import {
DescribeUsageReportSubscriptionsCommand,
DescribeUsageReportSubscriptionsCommandInput,
Expand Down Expand Up @@ -318,6 +333,11 @@ import {
UpdateImagePermissionsCommandOutput,
} from "./commands/UpdateImagePermissionsCommand";
import { UpdateStackCommand, UpdateStackCommandInput, UpdateStackCommandOutput } from "./commands/UpdateStackCommand";
import {
UpdateThemeForStackCommand,
UpdateThemeForStackCommandInput,
UpdateThemeForStackCommandOutput,
} from "./commands/UpdateThemeForStackCommand";

const commands = {
AssociateAppBlockBuilderAppBlockCommand,
Expand All @@ -338,6 +358,7 @@ const commands = {
CreateImageBuilderStreamingURLCommand,
CreateStackCommand,
CreateStreamingURLCommand,
CreateThemeForStackCommand,
CreateUpdatedImageCommand,
CreateUsageReportSubscriptionCommand,
CreateUserCommand,
Expand All @@ -351,6 +372,7 @@ const commands = {
DeleteImageBuilderCommand,
DeleteImagePermissionsCommand,
DeleteStackCommand,
DeleteThemeForStackCommand,
DeleteUsageReportSubscriptionCommand,
DeleteUserCommand,
DescribeAppBlockBuilderAppBlockAssociationsCommand,
Expand All @@ -366,6 +388,7 @@ const commands = {
DescribeImagesCommand,
DescribeSessionsCommand,
DescribeStacksCommand,
DescribeThemeForStackCommand,
DescribeUsageReportSubscriptionsCommand,
DescribeUsersCommand,
DescribeUserStackAssociationsCommand,
Expand Down Expand Up @@ -395,6 +418,7 @@ const commands = {
UpdateFleetCommand,
UpdateImagePermissionsCommand,
UpdateStackCommand,
UpdateThemeForStackCommand,
};

export interface AppStream {
Expand Down Expand Up @@ -680,6 +704,23 @@ export interface AppStream {
cb: (err: any, data?: CreateStreamingURLCommandOutput) => void
): void;

/**
* @see {@link CreateThemeForStackCommand}
*/
createThemeForStack(
args: CreateThemeForStackCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateThemeForStackCommandOutput>;
createThemeForStack(
args: CreateThemeForStackCommandInput,
cb: (err: any, data?: CreateThemeForStackCommandOutput) => void
): void;
createThemeForStack(
args: CreateThemeForStackCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateThemeForStackCommandOutput) => void
): void;

/**
* @see {@link CreateUpdatedImageCommand}
*/
Expand Down Expand Up @@ -875,6 +916,23 @@ export interface AppStream {
cb: (err: any, data?: DeleteStackCommandOutput) => void
): void;

/**
* @see {@link DeleteThemeForStackCommand}
*/
deleteThemeForStack(
args: DeleteThemeForStackCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteThemeForStackCommandOutput>;
deleteThemeForStack(
args: DeleteThemeForStackCommandInput,
cb: (err: any, data?: DeleteThemeForStackCommandOutput) => void
): void;
deleteThemeForStack(
args: DeleteThemeForStackCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteThemeForStackCommandOutput) => void
): void;

/**
* @see {@link DeleteUsageReportSubscriptionCommand}
*/
Expand Down Expand Up @@ -1126,6 +1184,23 @@ export interface AppStream {
cb: (err: any, data?: DescribeStacksCommandOutput) => void
): void;

/**
* @see {@link DescribeThemeForStackCommand}
*/
describeThemeForStack(
args: DescribeThemeForStackCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeThemeForStackCommandOutput>;
describeThemeForStack(
args: DescribeThemeForStackCommandInput,
cb: (err: any, data?: DescribeThemeForStackCommandOutput) => void
): void;
describeThemeForStack(
args: DescribeThemeForStackCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeThemeForStackCommandOutput) => void
): void;

/**
* @see {@link DescribeUsageReportSubscriptionsCommand}
*/
Expand Down Expand Up @@ -1561,6 +1636,23 @@ export interface AppStream {
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateStackCommandOutput) => void
): void;

/**
* @see {@link UpdateThemeForStackCommand}
*/
updateThemeForStack(
args: UpdateThemeForStackCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateThemeForStackCommandOutput>;
updateThemeForStack(
args: UpdateThemeForStackCommandInput,
cb: (err: any, data?: UpdateThemeForStackCommandOutput) => void
): void;
updateThemeForStack(
args: UpdateThemeForStackCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateThemeForStackCommandOutput) => void
): void;
}

/**
Expand Down
28 changes: 26 additions & 2 deletions clients/client-appstream/src/AppStreamClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ import {
} from "./commands/CreateImageBuilderStreamingURLCommand";
import { CreateStackCommandInput, CreateStackCommandOutput } from "./commands/CreateStackCommand";
import { CreateStreamingURLCommandInput, CreateStreamingURLCommandOutput } from "./commands/CreateStreamingURLCommand";
import {
CreateThemeForStackCommandInput,
CreateThemeForStackCommandOutput,
} from "./commands/CreateThemeForStackCommand";
import { CreateUpdatedImageCommandInput, CreateUpdatedImageCommandOutput } from "./commands/CreateUpdatedImageCommand";
import {
CreateUsageReportSubscriptionCommandInput,
Expand All @@ -123,6 +127,10 @@ import {
DeleteImagePermissionsCommandOutput,
} from "./commands/DeleteImagePermissionsCommand";
import { DeleteStackCommandInput, DeleteStackCommandOutput } from "./commands/DeleteStackCommand";
import {
DeleteThemeForStackCommandInput,
DeleteThemeForStackCommandOutput,
} from "./commands/DeleteThemeForStackCommand";
import {
DeleteUsageReportSubscriptionCommandInput,
DeleteUsageReportSubscriptionCommandOutput,
Expand Down Expand Up @@ -165,6 +173,10 @@ import {
import { DescribeImagesCommandInput, DescribeImagesCommandOutput } from "./commands/DescribeImagesCommand";
import { DescribeSessionsCommandInput, DescribeSessionsCommandOutput } from "./commands/DescribeSessionsCommand";
import { DescribeStacksCommandInput, DescribeStacksCommandOutput } from "./commands/DescribeStacksCommand";
import {
DescribeThemeForStackCommandInput,
DescribeThemeForStackCommandOutput,
} from "./commands/DescribeThemeForStackCommand";
import {
DescribeUsageReportSubscriptionsCommandInput,
DescribeUsageReportSubscriptionsCommandOutput,
Expand Down Expand Up @@ -236,6 +248,10 @@ import {
UpdateImagePermissionsCommandOutput,
} from "./commands/UpdateImagePermissionsCommand";
import { UpdateStackCommandInput, UpdateStackCommandOutput } from "./commands/UpdateStackCommand";
import {
UpdateThemeForStackCommandInput,
UpdateThemeForStackCommandOutput,
} from "./commands/UpdateThemeForStackCommand";
import {
ClientInputEndpointParameters,
ClientResolvedEndpointParameters,
Expand Down Expand Up @@ -269,6 +285,7 @@ export type ServiceInputTypes =
| CreateImageBuilderStreamingURLCommandInput
| CreateStackCommandInput
| CreateStreamingURLCommandInput
| CreateThemeForStackCommandInput
| CreateUpdatedImageCommandInput
| CreateUsageReportSubscriptionCommandInput
| CreateUserCommandInput
Expand All @@ -282,6 +299,7 @@ export type ServiceInputTypes =
| DeleteImageCommandInput
| DeleteImagePermissionsCommandInput
| DeleteStackCommandInput
| DeleteThemeForStackCommandInput
| DeleteUsageReportSubscriptionCommandInput
| DeleteUserCommandInput
| DescribeAppBlockBuilderAppBlockAssociationsCommandInput
Expand All @@ -297,6 +315,7 @@ export type ServiceInputTypes =
| DescribeImagesCommandInput
| DescribeSessionsCommandInput
| DescribeStacksCommandInput
| DescribeThemeForStackCommandInput
| DescribeUsageReportSubscriptionsCommandInput
| DescribeUserStackAssociationsCommandInput
| DescribeUsersCommandInput
Expand Down Expand Up @@ -325,7 +344,8 @@ export type ServiceInputTypes =
| UpdateEntitlementCommandInput
| UpdateFleetCommandInput
| UpdateImagePermissionsCommandInput
| UpdateStackCommandInput;
| UpdateStackCommandInput
| UpdateThemeForStackCommandInput;

/**
* @public
Expand All @@ -349,6 +369,7 @@ export type ServiceOutputTypes =
| CreateImageBuilderStreamingURLCommandOutput
| CreateStackCommandOutput
| CreateStreamingURLCommandOutput
| CreateThemeForStackCommandOutput
| CreateUpdatedImageCommandOutput
| CreateUsageReportSubscriptionCommandOutput
| CreateUserCommandOutput
Expand All @@ -362,6 +383,7 @@ export type ServiceOutputTypes =
| DeleteImageCommandOutput
| DeleteImagePermissionsCommandOutput
| DeleteStackCommandOutput
| DeleteThemeForStackCommandOutput
| DeleteUsageReportSubscriptionCommandOutput
| DeleteUserCommandOutput
| DescribeAppBlockBuilderAppBlockAssociationsCommandOutput
Expand All @@ -377,6 +399,7 @@ export type ServiceOutputTypes =
| DescribeImagesCommandOutput
| DescribeSessionsCommandOutput
| DescribeStacksCommandOutput
| DescribeThemeForStackCommandOutput
| DescribeUsageReportSubscriptionsCommandOutput
| DescribeUserStackAssociationsCommandOutput
| DescribeUsersCommandOutput
Expand Down Expand Up @@ -405,7 +428,8 @@ export type ServiceOutputTypes =
| UpdateEntitlementCommandOutput
| UpdateFleetCommandOutput
| UpdateImagePermissionsCommandOutput
| UpdateStackCommandOutput;
| UpdateStackCommandOutput
| UpdateThemeForStackCommandOutput;

/**
* @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export interface CreateImageBuilderCommandOutput extends CreateImageBuilderResul
* // VpceId: "STRING_VALUE",
* // },
* // ],
* // LatestAppstreamAgentVersion: "TRUE" || "FALSE",
* // },
* // };
*
Expand Down
Loading

0 comments on commit 86d89c6

Please sign in to comment.