Skip to content

Commit

Permalink
feat(client-appintegrations): The Amazon AppIntegrations service adds…
Browse files Browse the repository at this point in the history
… a set of APIs (in preview) to manage third party applications to be used in Amazon Connect agent workspace.
  • Loading branch information
awstools committed Sep 26, 2023
1 parent 2cb7f26 commit b5bd165
Show file tree
Hide file tree
Showing 19 changed files with 2,811 additions and 122 deletions.
46 changes: 39 additions & 7 deletions clients/client-appintegrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ using your favorite package manager:

The AWS SDK is modulized by clients and commands.
To send a request, you only need to import the `AppIntegrationsClient` and
the commands you need, for example `CreateDataIntegrationCommand`:
the commands you need, for example `CreateApplicationCommand`:

```js
// ES5 example
const { AppIntegrationsClient, CreateDataIntegrationCommand } = require("@aws-sdk/client-appintegrations");
const { AppIntegrationsClient, CreateApplicationCommand } = require("@aws-sdk/client-appintegrations");
```

```ts
// ES6+ example
import { AppIntegrationsClient, CreateDataIntegrationCommand } from "@aws-sdk/client-appintegrations";
import { AppIntegrationsClient, CreateApplicationCommand } from "@aws-sdk/client-appintegrations";
```

### Usage
Expand All @@ -57,7 +57,7 @@ const client = new AppIntegrationsClient({ region: "REGION" });
const params = {
/** input parameters */
};
const command = new CreateDataIntegrationCommand(params);
const command = new CreateApplicationCommand(params);
```

#### Async/await
Expand Down Expand Up @@ -136,15 +136,15 @@ const client = new AWS.AppIntegrations({ region: "REGION" });

// async/await.
try {
const data = await client.createDataIntegration(params);
const data = await client.createApplication(params);
// process data.
} catch (error) {
// error handling.
}

// Promises.
client
.createDataIntegration(params)
.createApplication(params)
.then((data) => {
// process data.
})
Expand All @@ -153,7 +153,7 @@ client
});

// callbacks.
client.createDataIntegration(params, (err, data) => {
client.createApplication(params, (err, data) => {
// process err and data.
});
```
Expand Down Expand Up @@ -209,6 +209,14 @@ see LICENSE for more information.

## Client Commands (Operations List)

<details>
<summary>
CreateApplication
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/classes/createapplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/createapplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/createapplicationcommandoutput.html)

</details>
<details>
<summary>
CreateDataIntegration
Expand Down Expand Up @@ -240,6 +248,14 @@ DeleteEventIntegration

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/classes/deleteeventintegrationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/deleteeventintegrationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/deleteeventintegrationcommandoutput.html)

</details>
<details>
<summary>
GetApplication
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/classes/getapplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/getapplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/getapplicationcommandoutput.html)

</details>
<details>
<summary>
Expand All @@ -256,6 +272,14 @@ GetEventIntegration

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/classes/geteventintegrationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/geteventintegrationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/geteventintegrationcommandoutput.html)

</details>
<details>
<summary>
ListApplications
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/classes/listapplicationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/listapplicationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/listapplicationscommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -312,6 +336,14 @@ UntagResource

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/classes/untagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/untagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/untagresourcecommandoutput.html)

</details>
<details>
<summary>
UpdateApplication
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/classes/updateapplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/updateapplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appintegrations/interfaces/updateapplicationcommandoutput.html)

</details>
<details>
<summary>
Expand Down
89 changes: 89 additions & 0 deletions clients/client-appintegrations/src/AppIntegrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import { createAggregatedClient } from "@smithy/smithy-client";
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";

import { AppIntegrationsClient, AppIntegrationsClientConfig } from "./AppIntegrationsClient";
import {
CreateApplicationCommand,
CreateApplicationCommandInput,
CreateApplicationCommandOutput,
} from "./commands/CreateApplicationCommand";
import {
CreateDataIntegrationCommand,
CreateDataIntegrationCommandInput,
Expand All @@ -23,6 +28,11 @@ import {
DeleteEventIntegrationCommandInput,
DeleteEventIntegrationCommandOutput,
} from "./commands/DeleteEventIntegrationCommand";
import {
GetApplicationCommand,
GetApplicationCommandInput,
GetApplicationCommandOutput,
} from "./commands/GetApplicationCommand";
import {
GetDataIntegrationCommand,
GetDataIntegrationCommandInput,
Expand All @@ -33,6 +43,11 @@ import {
GetEventIntegrationCommandInput,
GetEventIntegrationCommandOutput,
} from "./commands/GetEventIntegrationCommand";
import {
ListApplicationsCommand,
ListApplicationsCommandInput,
ListApplicationsCommandOutput,
} from "./commands/ListApplicationsCommand";
import {
ListDataIntegrationAssociationsCommand,
ListDataIntegrationAssociationsCommandInput,
Expand Down Expand Up @@ -64,6 +79,11 @@ import {
UntagResourceCommandInput,
UntagResourceCommandOutput,
} from "./commands/UntagResourceCommand";
import {
UpdateApplicationCommand,
UpdateApplicationCommandInput,
UpdateApplicationCommandOutput,
} from "./commands/UpdateApplicationCommand";
import {
UpdateDataIntegrationCommand,
UpdateDataIntegrationCommandInput,
Expand All @@ -76,24 +96,45 @@ import {
} from "./commands/UpdateEventIntegrationCommand";

const commands = {
CreateApplicationCommand,
CreateDataIntegrationCommand,
CreateEventIntegrationCommand,
DeleteDataIntegrationCommand,
DeleteEventIntegrationCommand,
GetApplicationCommand,
GetDataIntegrationCommand,
GetEventIntegrationCommand,
ListApplicationsCommand,
ListDataIntegrationAssociationsCommand,
ListDataIntegrationsCommand,
ListEventIntegrationAssociationsCommand,
ListEventIntegrationsCommand,
ListTagsForResourceCommand,
TagResourceCommand,
UntagResourceCommand,
UpdateApplicationCommand,
UpdateDataIntegrationCommand,
UpdateEventIntegrationCommand,
};

export interface AppIntegrations {
/**
* @see {@link CreateApplicationCommand}
*/
createApplication(
args: CreateApplicationCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateApplicationCommandOutput>;
createApplication(
args: CreateApplicationCommandInput,
cb: (err: any, data?: CreateApplicationCommandOutput) => void
): void;
createApplication(
args: CreateApplicationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateApplicationCommandOutput) => void
): void;

/**
* @see {@link CreateDataIntegrationCommand}
*/
Expand Down Expand Up @@ -162,6 +203,20 @@ export interface AppIntegrations {
cb: (err: any, data?: DeleteEventIntegrationCommandOutput) => void
): void;

/**
* @see {@link GetApplicationCommand}
*/
getApplication(
args: GetApplicationCommandInput,
options?: __HttpHandlerOptions
): Promise<GetApplicationCommandOutput>;
getApplication(args: GetApplicationCommandInput, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
getApplication(
args: GetApplicationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetApplicationCommandOutput) => void
): void;

/**
* @see {@link GetDataIntegrationCommand}
*/
Expand Down Expand Up @@ -196,6 +251,23 @@ export interface AppIntegrations {
cb: (err: any, data?: GetEventIntegrationCommandOutput) => void
): void;

/**
* @see {@link ListApplicationsCommand}
*/
listApplications(
args: ListApplicationsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListApplicationsCommandOutput>;
listApplications(
args: ListApplicationsCommandInput,
cb: (err: any, data?: ListApplicationsCommandOutput) => void
): void;
listApplications(
args: ListApplicationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListApplicationsCommandOutput) => void
): void;

/**
* @see {@link ListDataIntegrationAssociationsCommand}
*/
Expand Down Expand Up @@ -303,6 +375,23 @@ export interface AppIntegrations {
cb: (err: any, data?: UntagResourceCommandOutput) => void
): void;

/**
* @see {@link UpdateApplicationCommand}
*/
updateApplication(
args: UpdateApplicationCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateApplicationCommandOutput>;
updateApplication(
args: UpdateApplicationCommandInput,
cb: (err: any, data?: UpdateApplicationCommandOutput) => void
): void;
updateApplication(
args: UpdateApplicationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateApplicationCommandOutput) => void
): void;

/**
* @see {@link UpdateDataIntegrationCommand}
*/
Expand Down
12 changes: 12 additions & 0 deletions clients/client-appintegrations/src/AppIntegrationsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import {
UserAgent as __UserAgent,
} from "@smithy/types";

import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
import {
CreateDataIntegrationCommandInput,
CreateDataIntegrationCommandOutput,
Expand All @@ -66,11 +67,13 @@ import {
DeleteEventIntegrationCommandInput,
DeleteEventIntegrationCommandOutput,
} from "./commands/DeleteEventIntegrationCommand";
import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
import { GetDataIntegrationCommandInput, GetDataIntegrationCommandOutput } from "./commands/GetDataIntegrationCommand";
import {
GetEventIntegrationCommandInput,
GetEventIntegrationCommandOutput,
} from "./commands/GetEventIntegrationCommand";
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
import {
ListDataIntegrationAssociationsCommandInput,
ListDataIntegrationAssociationsCommandOutput,
Expand All @@ -93,6 +96,7 @@ import {
} from "./commands/ListTagsForResourceCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
import {
UpdateDataIntegrationCommandInput,
UpdateDataIntegrationCommandOutput,
Expand All @@ -116,39 +120,47 @@ export { __Client };
* @public
*/
export type ServiceInputTypes =
| CreateApplicationCommandInput
| CreateDataIntegrationCommandInput
| CreateEventIntegrationCommandInput
| DeleteDataIntegrationCommandInput
| DeleteEventIntegrationCommandInput
| GetApplicationCommandInput
| GetDataIntegrationCommandInput
| GetEventIntegrationCommandInput
| ListApplicationsCommandInput
| ListDataIntegrationAssociationsCommandInput
| ListDataIntegrationsCommandInput
| ListEventIntegrationAssociationsCommandInput
| ListEventIntegrationsCommandInput
| ListTagsForResourceCommandInput
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdateApplicationCommandInput
| UpdateDataIntegrationCommandInput
| UpdateEventIntegrationCommandInput;

/**
* @public
*/
export type ServiceOutputTypes =
| CreateApplicationCommandOutput
| CreateDataIntegrationCommandOutput
| CreateEventIntegrationCommandOutput
| DeleteDataIntegrationCommandOutput
| DeleteEventIntegrationCommandOutput
| GetApplicationCommandOutput
| GetDataIntegrationCommandOutput
| GetEventIntegrationCommandOutput
| ListApplicationsCommandOutput
| ListDataIntegrationAssociationsCommandOutput
| ListDataIntegrationsCommandOutput
| ListEventIntegrationAssociationsCommandOutput
| ListEventIntegrationsCommandOutput
| ListTagsForResourceCommandOutput
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdateApplicationCommandOutput
| UpdateDataIntegrationCommandOutput
| UpdateEventIntegrationCommandOutput;

Expand Down
Loading

0 comments on commit b5bd165

Please sign in to comment.