Skip to content

Commit

Permalink
feat(client-transfer): AWS Transfer Family now offers Web apps that e…
Browse files Browse the repository at this point in the history
…nables simple and secure access to data stored in Amazon S3.
  • Loading branch information
awstools committed Dec 2, 2024
1 parent f6492f5 commit 77c2e6a
Show file tree
Hide file tree
Showing 17 changed files with 3,211 additions and 28 deletions.
64 changes: 64 additions & 0 deletions clients/client-transfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,14 @@ CreateUser

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/CreateUserCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/CreateUserCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/CreateUserCommandOutput/)

</details>
<details>
<summary>
CreateWebApp
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/CreateWebAppCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/CreateWebAppCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/CreateWebAppCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -339,6 +347,22 @@ DeleteUser

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/DeleteUserCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DeleteUserCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DeleteUserCommandOutput/)

</details>
<details>
<summary>
DeleteWebApp
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/DeleteWebAppCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DeleteWebAppCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DeleteWebAppCommandOutput/)

</details>
<details>
<summary>
DeleteWebAppCustomization
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/DeleteWebAppCustomizationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DeleteWebAppCustomizationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DeleteWebAppCustomizationCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -427,6 +451,22 @@ DescribeUser

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/DescribeUserCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DescribeUserCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DescribeUserCommandOutput/)

</details>
<details>
<summary>
DescribeWebApp
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/DescribeWebAppCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DescribeWebAppCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DescribeWebAppCommandOutput/)

</details>
<details>
<summary>
DescribeWebAppCustomization
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/DescribeWebAppCustomizationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DescribeWebAppCustomizationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/DescribeWebAppCustomizationCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -555,6 +595,14 @@ ListUsers

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/ListUsersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/ListUsersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/ListUsersCommandOutput/)

</details>
<details>
<summary>
ListWebApps
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/ListWebAppsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/ListWebAppsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/ListWebAppsCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -700,3 +748,19 @@ UpdateUser
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/UpdateUserCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/UpdateUserCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/UpdateUserCommandOutput/)

</details>
<details>
<summary>
UpdateWebApp
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/UpdateWebAppCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/UpdateWebAppCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/UpdateWebAppCommandOutput/)

</details>
<details>
<summary>
UpdateWebAppCustomization
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/command/UpdateWebAppCustomizationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/UpdateWebAppCustomizationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-transfer/Interface/UpdateWebAppCustomizationCommandOutput/)

</details>
154 changes: 154 additions & 0 deletions clients/client-transfer/src/Transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ import {
CreateServerCommandOutput,
} from "./commands/CreateServerCommand";
import { CreateUserCommand, CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
import {
CreateWebAppCommand,
CreateWebAppCommandInput,
CreateWebAppCommandOutput,
} from "./commands/CreateWebAppCommand";
import {
CreateWorkflowCommand,
CreateWorkflowCommandInput,
Expand Down Expand Up @@ -74,6 +79,16 @@ import {
DeleteSshPublicKeyCommandOutput,
} from "./commands/DeleteSshPublicKeyCommand";
import { DeleteUserCommand, DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
import {
DeleteWebAppCommand,
DeleteWebAppCommandInput,
DeleteWebAppCommandOutput,
} from "./commands/DeleteWebAppCommand";
import {
DeleteWebAppCustomizationCommand,
DeleteWebAppCustomizationCommandInput,
DeleteWebAppCustomizationCommandOutput,
} from "./commands/DeleteWebAppCustomizationCommand";
import {
DeleteWorkflowCommand,
DeleteWorkflowCommandInput,
Expand Down Expand Up @@ -129,6 +144,16 @@ import {
DescribeUserCommandInput,
DescribeUserCommandOutput,
} from "./commands/DescribeUserCommand";
import {
DescribeWebAppCommand,
DescribeWebAppCommandInput,
DescribeWebAppCommandOutput,
} from "./commands/DescribeWebAppCommand";
import {
DescribeWebAppCustomizationCommand,
DescribeWebAppCustomizationCommandInput,
DescribeWebAppCustomizationCommandOutput,
} from "./commands/DescribeWebAppCustomizationCommand";
import {
DescribeWorkflowCommand,
DescribeWorkflowCommandInput,
Expand Down Expand Up @@ -201,6 +226,7 @@ import {
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import { ListUsersCommand, ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
import { ListWebAppsCommand, ListWebAppsCommandInput, ListWebAppsCommandOutput } from "./commands/ListWebAppsCommand";
import {
ListWorkflowsCommand,
ListWorkflowsCommandInput,
Expand Down Expand Up @@ -275,6 +301,16 @@ import {
UpdateServerCommandOutput,
} from "./commands/UpdateServerCommand";
import { UpdateUserCommand, UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
import {
UpdateWebAppCommand,
UpdateWebAppCommandInput,
UpdateWebAppCommandOutput,
} from "./commands/UpdateWebAppCommand";
import {
UpdateWebAppCustomizationCommand,
UpdateWebAppCustomizationCommandInput,
UpdateWebAppCustomizationCommandOutput,
} from "./commands/UpdateWebAppCustomizationCommand";
import { TransferClient, TransferClientConfig } from "./TransferClient";

const commands = {
Expand All @@ -284,6 +320,7 @@ const commands = {
CreateProfileCommand,
CreateServerCommand,
CreateUserCommand,
CreateWebAppCommand,
CreateWorkflowCommand,
DeleteAccessCommand,
DeleteAgreementCommand,
Expand All @@ -294,6 +331,8 @@ const commands = {
DeleteServerCommand,
DeleteSshPublicKeyCommand,
DeleteUserCommand,
DeleteWebAppCommand,
DeleteWebAppCustomizationCommand,
DeleteWorkflowCommand,
DescribeAccessCommand,
DescribeAgreementCommand,
Expand All @@ -305,6 +344,8 @@ const commands = {
DescribeSecurityPolicyCommand,
DescribeServerCommand,
DescribeUserCommand,
DescribeWebAppCommand,
DescribeWebAppCustomizationCommand,
DescribeWorkflowCommand,
ImportCertificateCommand,
ImportHostKeyCommand,
Expand All @@ -321,6 +362,7 @@ const commands = {
ListServersCommand,
ListTagsForResourceCommand,
ListUsersCommand,
ListWebAppsCommand,
ListWorkflowsCommand,
SendWorkflowStepStateCommand,
StartDirectoryListingCommand,
Expand All @@ -339,6 +381,8 @@ const commands = {
UpdateProfileCommand,
UpdateServerCommand,
UpdateUserCommand,
UpdateWebAppCommand,
UpdateWebAppCustomizationCommand,
};

export interface Transfer {
Expand Down Expand Up @@ -415,6 +459,17 @@ export interface Transfer {
cb: (err: any, data?: CreateUserCommandOutput) => void
): void;

/**
* @see {@link CreateWebAppCommand}
*/
createWebApp(args: CreateWebAppCommandInput, options?: __HttpHandlerOptions): Promise<CreateWebAppCommandOutput>;
createWebApp(args: CreateWebAppCommandInput, cb: (err: any, data?: CreateWebAppCommandOutput) => void): void;
createWebApp(
args: CreateWebAppCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateWebAppCommandOutput) => void
): void;

/**
* @see {@link CreateWorkflowCommand}
*/
Expand Down Expand Up @@ -546,6 +601,34 @@ export interface Transfer {
cb: (err: any, data?: DeleteUserCommandOutput) => void
): void;

/**
* @see {@link DeleteWebAppCommand}
*/
deleteWebApp(args: DeleteWebAppCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWebAppCommandOutput>;
deleteWebApp(args: DeleteWebAppCommandInput, cb: (err: any, data?: DeleteWebAppCommandOutput) => void): void;
deleteWebApp(
args: DeleteWebAppCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteWebAppCommandOutput) => void
): void;

/**
* @see {@link DeleteWebAppCustomizationCommand}
*/
deleteWebAppCustomization(
args: DeleteWebAppCustomizationCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteWebAppCustomizationCommandOutput>;
deleteWebAppCustomization(
args: DeleteWebAppCustomizationCommandInput,
cb: (err: any, data?: DeleteWebAppCustomizationCommandOutput) => void
): void;
deleteWebAppCustomization(
args: DeleteWebAppCustomizationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteWebAppCustomizationCommandOutput) => void
): void;

/**
* @see {@link DeleteWorkflowCommand}
*/
Expand Down Expand Up @@ -712,6 +795,37 @@ export interface Transfer {
cb: (err: any, data?: DescribeUserCommandOutput) => void
): void;

/**
* @see {@link DescribeWebAppCommand}
*/
describeWebApp(
args: DescribeWebAppCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeWebAppCommandOutput>;
describeWebApp(args: DescribeWebAppCommandInput, cb: (err: any, data?: DescribeWebAppCommandOutput) => void): void;
describeWebApp(
args: DescribeWebAppCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeWebAppCommandOutput) => void
): void;

/**
* @see {@link DescribeWebAppCustomizationCommand}
*/
describeWebAppCustomization(
args: DescribeWebAppCustomizationCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeWebAppCustomizationCommandOutput>;
describeWebAppCustomization(
args: DescribeWebAppCustomizationCommandInput,
cb: (err: any, data?: DescribeWebAppCustomizationCommandOutput) => void
): void;
describeWebAppCustomization(
args: DescribeWebAppCustomizationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeWebAppCustomizationCommandOutput) => void
): void;

/**
* @see {@link DescribeWorkflowCommand}
*/
Expand Down Expand Up @@ -944,6 +1058,18 @@ export interface Transfer {
cb: (err: any, data?: ListUsersCommandOutput) => void
): void;

/**
* @see {@link ListWebAppsCommand}
*/
listWebApps(): Promise<ListWebAppsCommandOutput>;
listWebApps(args: ListWebAppsCommandInput, options?: __HttpHandlerOptions): Promise<ListWebAppsCommandOutput>;
listWebApps(args: ListWebAppsCommandInput, cb: (err: any, data?: ListWebAppsCommandOutput) => void): void;
listWebApps(
args: ListWebAppsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListWebAppsCommandOutput) => void
): void;

/**
* @see {@link ListWorkflowsCommand}
*/
Expand Down Expand Up @@ -1181,6 +1307,34 @@ export interface Transfer {
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateUserCommandOutput) => void
): void;

/**
* @see {@link UpdateWebAppCommand}
*/
updateWebApp(args: UpdateWebAppCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWebAppCommandOutput>;
updateWebApp(args: UpdateWebAppCommandInput, cb: (err: any, data?: UpdateWebAppCommandOutput) => void): void;
updateWebApp(
args: UpdateWebAppCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateWebAppCommandOutput) => void
): void;

/**
* @see {@link UpdateWebAppCustomizationCommand}
*/
updateWebAppCustomization(
args: UpdateWebAppCustomizationCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateWebAppCustomizationCommandOutput>;
updateWebAppCustomization(
args: UpdateWebAppCustomizationCommandInput,
cb: (err: any, data?: UpdateWebAppCustomizationCommandOutput) => void
): void;
updateWebAppCustomization(
args: UpdateWebAppCustomizationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateWebAppCustomizationCommandOutput) => void
): void;
}

/**
Expand Down
Loading

0 comments on commit 77c2e6a

Please sign in to comment.