Skip to content

Commit 83dc3ef

Browse files
author
awstools
committed
feat(client-appintegrations): The Amazon AppIntegrations service adds DeleteApplication API for deleting applications, and updates APIs to support third party applications reacting to workspace events and make data requests to Amazon Connect for agent and contact events.
1 parent b7416af commit 83dc3ef

14 files changed

+1066
-5
lines changed

clients/client-appintegrations/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,14 @@ CreateEventIntegration
232232

233233
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appintegrations/command/CreateEventIntegrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appintegrations/Interface/CreateEventIntegrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appintegrations/Interface/CreateEventIntegrationCommandOutput/)
234234

235+
</details>
236+
<details>
237+
<summary>
238+
DeleteApplication
239+
</summary>
240+
241+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appintegrations/command/DeleteApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appintegrations/Interface/DeleteApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appintegrations/Interface/DeleteApplicationCommandOutput/)
242+
235243
</details>
236244
<details>
237245
<summary>
@@ -272,6 +280,14 @@ GetEventIntegration
272280

273281
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appintegrations/command/GetEventIntegrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appintegrations/Interface/GetEventIntegrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appintegrations/Interface/GetEventIntegrationCommandOutput/)
274282

283+
</details>
284+
<details>
285+
<summary>
286+
ListApplicationAssociations
287+
</summary>
288+
289+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appintegrations/command/ListApplicationAssociationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appintegrations/Interface/ListApplicationAssociationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appintegrations/Interface/ListApplicationAssociationsCommandOutput/)
290+
275291
</details>
276292
<details>
277293
<summary>

clients/client-appintegrations/src/AppIntegrations.ts

+46
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ import {
1818
CreateEventIntegrationCommandInput,
1919
CreateEventIntegrationCommandOutput,
2020
} from "./commands/CreateEventIntegrationCommand";
21+
import {
22+
DeleteApplicationCommand,
23+
DeleteApplicationCommandInput,
24+
DeleteApplicationCommandOutput,
25+
} from "./commands/DeleteApplicationCommand";
2126
import {
2227
DeleteDataIntegrationCommand,
2328
DeleteDataIntegrationCommandInput,
@@ -43,6 +48,11 @@ import {
4348
GetEventIntegrationCommandInput,
4449
GetEventIntegrationCommandOutput,
4550
} from "./commands/GetEventIntegrationCommand";
51+
import {
52+
ListApplicationAssociationsCommand,
53+
ListApplicationAssociationsCommandInput,
54+
ListApplicationAssociationsCommandOutput,
55+
} from "./commands/ListApplicationAssociationsCommand";
4656
import {
4757
ListApplicationsCommand,
4858
ListApplicationsCommandInput,
@@ -99,11 +109,13 @@ const commands = {
99109
CreateApplicationCommand,
100110
CreateDataIntegrationCommand,
101111
CreateEventIntegrationCommand,
112+
DeleteApplicationCommand,
102113
DeleteDataIntegrationCommand,
103114
DeleteEventIntegrationCommand,
104115
GetApplicationCommand,
105116
GetDataIntegrationCommand,
106117
GetEventIntegrationCommand,
118+
ListApplicationAssociationsCommand,
107119
ListApplicationsCommand,
108120
ListDataIntegrationAssociationsCommand,
109121
ListDataIntegrationsCommand,
@@ -169,6 +181,23 @@ export interface AppIntegrations {
169181
cb: (err: any, data?: CreateEventIntegrationCommandOutput) => void
170182
): void;
171183

184+
/**
185+
* @see {@link DeleteApplicationCommand}
186+
*/
187+
deleteApplication(
188+
args: DeleteApplicationCommandInput,
189+
options?: __HttpHandlerOptions
190+
): Promise<DeleteApplicationCommandOutput>;
191+
deleteApplication(
192+
args: DeleteApplicationCommandInput,
193+
cb: (err: any, data?: DeleteApplicationCommandOutput) => void
194+
): void;
195+
deleteApplication(
196+
args: DeleteApplicationCommandInput,
197+
options: __HttpHandlerOptions,
198+
cb: (err: any, data?: DeleteApplicationCommandOutput) => void
199+
): void;
200+
172201
/**
173202
* @see {@link DeleteDataIntegrationCommand}
174203
*/
@@ -251,6 +280,23 @@ export interface AppIntegrations {
251280
cb: (err: any, data?: GetEventIntegrationCommandOutput) => void
252281
): void;
253282

283+
/**
284+
* @see {@link ListApplicationAssociationsCommand}
285+
*/
286+
listApplicationAssociations(
287+
args: ListApplicationAssociationsCommandInput,
288+
options?: __HttpHandlerOptions
289+
): Promise<ListApplicationAssociationsCommandOutput>;
290+
listApplicationAssociations(
291+
args: ListApplicationAssociationsCommandInput,
292+
cb: (err: any, data?: ListApplicationAssociationsCommandOutput) => void
293+
): void;
294+
listApplicationAssociations(
295+
args: ListApplicationAssociationsCommandInput,
296+
options: __HttpHandlerOptions,
297+
cb: (err: any, data?: ListApplicationAssociationsCommandOutput) => void
298+
): void;
299+
254300
/**
255301
* @see {@link ListApplicationsCommand}
256302
*/

clients/client-appintegrations/src/AppIntegrationsClient.ts

+9
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import {
5757
CreateEventIntegrationCommandInput,
5858
CreateEventIntegrationCommandOutput,
5959
} from "./commands/CreateEventIntegrationCommand";
60+
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
6061
import {
6162
DeleteDataIntegrationCommandInput,
6263
DeleteDataIntegrationCommandOutput,
@@ -71,6 +72,10 @@ import {
7172
GetEventIntegrationCommandInput,
7273
GetEventIntegrationCommandOutput,
7374
} from "./commands/GetEventIntegrationCommand";
75+
import {
76+
ListApplicationAssociationsCommandInput,
77+
ListApplicationAssociationsCommandOutput,
78+
} from "./commands/ListApplicationAssociationsCommand";
7479
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
7580
import {
7681
ListDataIntegrationAssociationsCommandInput,
@@ -121,11 +126,13 @@ export type ServiceInputTypes =
121126
| CreateApplicationCommandInput
122127
| CreateDataIntegrationCommandInput
123128
| CreateEventIntegrationCommandInput
129+
| DeleteApplicationCommandInput
124130
| DeleteDataIntegrationCommandInput
125131
| DeleteEventIntegrationCommandInput
126132
| GetApplicationCommandInput
127133
| GetDataIntegrationCommandInput
128134
| GetEventIntegrationCommandInput
135+
| ListApplicationAssociationsCommandInput
129136
| ListApplicationsCommandInput
130137
| ListDataIntegrationAssociationsCommandInput
131138
| ListDataIntegrationsCommandInput
@@ -145,11 +152,13 @@ export type ServiceOutputTypes =
145152
| CreateApplicationCommandOutput
146153
| CreateDataIntegrationCommandOutput
147154
| CreateEventIntegrationCommandOutput
155+
| DeleteApplicationCommandOutput
148156
| DeleteDataIntegrationCommandOutput
149157
| DeleteEventIntegrationCommandOutput
150158
| GetApplicationCommandOutput
151159
| GetDataIntegrationCommandOutput
152160
| GetEventIntegrationCommandOutput
161+
| ListApplicationAssociationsCommandOutput
153162
| ListApplicationsCommandOutput
154163
| ListDataIntegrationAssociationsCommandOutput
155164
| ListDataIntegrationsCommandOutput

clients/client-appintegrations/src/commands/CreateApplicationCommand.ts

+6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
7474
* Tags: { // TagMap
7575
* "<keys>": "STRING_VALUE",
7676
* },
77+
* Permissions: [ // PermissionList
78+
* "STRING_VALUE",
79+
* ],
7780
* };
7881
* const command = new CreateApplicationCommand(input);
7982
* const response = await client.send(command);
@@ -108,6 +111,9 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
108111
* @throws {@link ThrottlingException} (client fault)
109112
* <p>The throttling limit has been exceeded.</p>
110113
*
114+
* @throws {@link UnsupportedOperationException} (client fault)
115+
* <p>The operation is not supported.</p>
116+
*
111117
* @throws {@link AppIntegrationsServiceException}
112118
* <p>Base exception class for all service exceptions from AppIntegrations service.</p>
113119
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5+
import { Command as $Command } from "@smithy/smithy-client";
6+
import {
7+
FinalizeHandlerArguments,
8+
Handler,
9+
HandlerExecutionContext,
10+
HttpHandlerOptions as __HttpHandlerOptions,
11+
MetadataBearer as __MetadataBearer,
12+
MiddlewareStack,
13+
SerdeContext as __SerdeContext,
14+
SMITHY_CONTEXT_KEY,
15+
} from "@smithy/types";
16+
17+
import { AppIntegrationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppIntegrationsClient";
18+
import { DeleteApplicationRequest, DeleteApplicationResponse } from "../models/models_0";
19+
import { de_DeleteApplicationCommand, se_DeleteApplicationCommand } from "../protocols/Aws_restJson1";
20+
21+
/**
22+
* @public
23+
*/
24+
export { __MetadataBearer, $Command };
25+
/**
26+
* @public
27+
*
28+
* The input for {@link DeleteApplicationCommand}.
29+
*/
30+
export interface DeleteApplicationCommandInput extends DeleteApplicationRequest {}
31+
/**
32+
* @public
33+
*
34+
* The output of {@link DeleteApplicationCommand}.
35+
*/
36+
export interface DeleteApplicationCommandOutput extends DeleteApplicationResponse, __MetadataBearer {}
37+
38+
/**
39+
* @public
40+
* <p>Deletes the Application. Only Applications that don't have any Application Associations can be deleted.</p>
41+
* @example
42+
* Use a bare-bones client and the command you need to make an API call.
43+
* ```javascript
44+
* import { AppIntegrationsClient, DeleteApplicationCommand } from "@aws-sdk/client-appintegrations"; // ES Modules import
45+
* // const { AppIntegrationsClient, DeleteApplicationCommand } = require("@aws-sdk/client-appintegrations"); // CommonJS import
46+
* const client = new AppIntegrationsClient(config);
47+
* const input = { // DeleteApplicationRequest
48+
* Arn: "STRING_VALUE", // required
49+
* };
50+
* const command = new DeleteApplicationCommand(input);
51+
* const response = await client.send(command);
52+
* // {};
53+
*
54+
* ```
55+
*
56+
* @param DeleteApplicationCommandInput - {@link DeleteApplicationCommandInput}
57+
* @returns {@link DeleteApplicationCommandOutput}
58+
* @see {@link DeleteApplicationCommandInput} for command's `input` shape.
59+
* @see {@link DeleteApplicationCommandOutput} for command's `response` shape.
60+
* @see {@link AppIntegrationsClientResolvedConfig | config} for AppIntegrationsClient's `config` shape.
61+
*
62+
* @throws {@link AccessDeniedException} (client fault)
63+
* <p>You do not have sufficient access to perform this action.</p>
64+
*
65+
* @throws {@link InternalServiceError} (server fault)
66+
* <p>Request processing failed due to an error or failure with the service.</p>
67+
*
68+
* @throws {@link InvalidRequestException} (client fault)
69+
* <p>The request is not valid. </p>
70+
*
71+
* @throws {@link ResourceNotFoundException} (client fault)
72+
* <p>The specified resource was not found.</p>
73+
*
74+
* @throws {@link ThrottlingException} (client fault)
75+
* <p>The throttling limit has been exceeded.</p>
76+
*
77+
* @throws {@link AppIntegrationsServiceException}
78+
* <p>Base exception class for all service exceptions from AppIntegrations service.</p>
79+
*
80+
*/
81+
export class DeleteApplicationCommand extends $Command<
82+
DeleteApplicationCommandInput,
83+
DeleteApplicationCommandOutput,
84+
AppIntegrationsClientResolvedConfig
85+
> {
86+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
87+
return {
88+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
89+
Endpoint: { type: "builtInParams", name: "endpoint" },
90+
Region: { type: "builtInParams", name: "region" },
91+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
92+
};
93+
}
94+
95+
/**
96+
* @public
97+
*/
98+
constructor(readonly input: DeleteApplicationCommandInput) {
99+
super();
100+
}
101+
102+
/**
103+
* @internal
104+
*/
105+
resolveMiddleware(
106+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
107+
configuration: AppIntegrationsClientResolvedConfig,
108+
options?: __HttpHandlerOptions
109+
): Handler<DeleteApplicationCommandInput, DeleteApplicationCommandOutput> {
110+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
111+
this.middlewareStack.use(
112+
getEndpointPlugin(configuration, DeleteApplicationCommand.getEndpointParameterInstructions())
113+
);
114+
115+
const stack = clientStack.concat(this.middlewareStack);
116+
117+
const { logger } = configuration;
118+
const clientName = "AppIntegrationsClient";
119+
const commandName = "DeleteApplicationCommand";
120+
const handlerExecutionContext: HandlerExecutionContext = {
121+
logger,
122+
clientName,
123+
commandName,
124+
inputFilterSensitiveLog: (_: any) => _,
125+
outputFilterSensitiveLog: (_: any) => _,
126+
[SMITHY_CONTEXT_KEY]: {
127+
service: "AmazonAppIntegrationService",
128+
operation: "DeleteApplication",
129+
},
130+
};
131+
const { requestHandler } = configuration;
132+
return stack.resolve(
133+
(request: FinalizeHandlerArguments<any>) =>
134+
requestHandler.handle(request.request as __HttpRequest, options || {}),
135+
handlerExecutionContext
136+
);
137+
}
138+
139+
/**
140+
* @internal
141+
*/
142+
private serialize(input: DeleteApplicationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
143+
return se_DeleteApplicationCommand(input, context);
144+
}
145+
146+
/**
147+
* @internal
148+
*/
149+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteApplicationCommandOutput> {
150+
return de_DeleteApplicationCommand(output, context);
151+
}
152+
}

clients/client-appintegrations/src/commands/GetApplicationCommand.ts

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ export interface GetApplicationCommandOutput extends GetApplicationResponse, __M
8282
* // Tags: { // TagMap
8383
* // "<keys>": "STRING_VALUE",
8484
* // },
85+
* // Permissions: [ // PermissionList
86+
* // "STRING_VALUE",
87+
* // ],
8588
* // };
8689
*
8790
* ```

0 commit comments

Comments
 (0)