@aws-sdk/client-appintegrations 3.477.0 → 3.479.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist-cjs/AppIntegrations.js +4 -0
- package/dist-cjs/commands/DeleteApplicationCommand.js +51 -0
- package/dist-cjs/commands/ListApplicationAssociationsCommand.js +51 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +15 -1
- package/dist-cjs/pagination/ListApplicationAssociationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListApplicationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataIntegrationAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataIntegrationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEventIntegrationAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEventIntegrationsPaginator.js +2 -24
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +136 -1
- package/dist-es/AppIntegrations.js +4 -0
- package/dist-es/commands/DeleteApplicationCommand.js +47 -0
- package/dist-es/commands/ListApplicationAssociationsCommand.js +47 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/pagination/ListApplicationAssociationsPaginator.js +4 -0
- package/dist-es/pagination/ListApplicationsPaginator.js +2 -23
- package/dist-es/pagination/ListDataIntegrationAssociationsPaginator.js +2 -23
- package/dist-es/pagination/ListDataIntegrationsPaginator.js +2 -23
- package/dist-es/pagination/ListEventIntegrationAssociationsPaginator.js +2 -23
- package/dist-es/pagination/ListEventIntegrationsPaginator.js +2 -23
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +132 -1
- package/dist-types/AppIntegrations.d.ts +14 -0
- package/dist-types/AppIntegrationsClient.d.ts +4 -2
- package/dist-types/commands/CreateApplicationCommand.d.ts +6 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +86 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +3 -0
- package/dist-types/commands/ListApplicationAssociationsCommand.d.ts +97 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +6 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +116 -4
- package/dist-types/pagination/ListApplicationAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataIntegrationAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataIntegrationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEventIntegrationAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEventIntegrationsPaginator.d.ts +1 -1
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/AppIntegrations.d.ts +34 -0
- package/dist-types/ts3.4/AppIntegrationsClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListApplicationAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -3
- package/dist-types/ts3.4/pagination/ListApplicationAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataIntegrationAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataIntegrationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEventIntegrationAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEventIntegrationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +5 -5
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DeleteApplicationCommand, se_DeleteApplicationCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteApplicationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteApplicationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "AppIntegrationsClient";
|
|
26
|
+
const commandName = "DeleteApplicationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonAppIntegrationService",
|
|
35
|
+
operation: "DeleteApplication",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DeleteApplicationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DeleteApplicationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListApplicationAssociationsCommand, se_ListApplicationAssociationsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListApplicationAssociationsCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListApplicationAssociationsCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "AppIntegrationsClient";
|
|
26
|
+
const commandName = "ListApplicationAssociationsCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AmazonAppIntegrationService",
|
|
35
|
+
operation: "ListApplicationAssociations",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListApplicationAssociationsCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListApplicationAssociationsCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export * from "./CreateApplicationCommand";
|
|
2
2
|
export * from "./CreateDataIntegrationCommand";
|
|
3
3
|
export * from "./CreateEventIntegrationCommand";
|
|
4
|
+
export * from "./DeleteApplicationCommand";
|
|
4
5
|
export * from "./DeleteDataIntegrationCommand";
|
|
5
6
|
export * from "./DeleteEventIntegrationCommand";
|
|
6
7
|
export * from "./GetApplicationCommand";
|
|
7
8
|
export * from "./GetDataIntegrationCommand";
|
|
8
9
|
export * from "./GetEventIntegrationCommand";
|
|
10
|
+
export * from "./ListApplicationAssociationsCommand";
|
|
9
11
|
export * from "./ListApplicationsCommand";
|
|
10
12
|
export * from "./ListDataIntegrationAssociationsCommand";
|
|
11
13
|
export * from "./ListDataIntegrationsCommand";
|
|
@@ -77,6 +77,19 @@ export class ThrottlingException extends __BaseException {
|
|
|
77
77
|
this.Message = opts.Message;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
+
export class UnsupportedOperationException extends __BaseException {
|
|
81
|
+
constructor(opts) {
|
|
82
|
+
super({
|
|
83
|
+
name: "UnsupportedOperationException",
|
|
84
|
+
$fault: "client",
|
|
85
|
+
...opts,
|
|
86
|
+
});
|
|
87
|
+
this.name = "UnsupportedOperationException";
|
|
88
|
+
this.$fault = "client";
|
|
89
|
+
Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
|
|
90
|
+
this.Message = opts.Message;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
80
93
|
export class ResourceNotFoundException extends __BaseException {
|
|
81
94
|
constructor(opts) {
|
|
82
95
|
super({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { AppIntegrationsClient } from "../AppIntegrationsClient";
|
|
3
|
+
import { ListApplicationAssociationsCommand, } from "../commands/ListApplicationAssociationsCommand";
|
|
4
|
+
export const paginateListApplicationAssociations = createPaginator(AppIntegrationsClient, ListApplicationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppIntegrationsClient } from "../AppIntegrationsClient";
|
|
2
3
|
import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListApplicationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListApplications(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppIntegrationsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListApplications = createPaginator(AppIntegrationsClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppIntegrationsClient } from "../AppIntegrationsClient";
|
|
2
3
|
import { ListDataIntegrationAssociationsCommand, } from "../commands/ListDataIntegrationAssociationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataIntegrationAssociationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataIntegrationAssociations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppIntegrationsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDataIntegrationAssociations = createPaginator(AppIntegrationsClient, ListDataIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppIntegrationsClient } from "../AppIntegrationsClient";
|
|
2
3
|
import { ListDataIntegrationsCommand, } from "../commands/ListDataIntegrationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataIntegrationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataIntegrations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppIntegrationsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDataIntegrations = createPaginator(AppIntegrationsClient, ListDataIntegrationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppIntegrationsClient } from "../AppIntegrationsClient";
|
|
2
3
|
import { ListEventIntegrationAssociationsCommand, } from "../commands/ListEventIntegrationAssociationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEventIntegrationAssociationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEventIntegrationAssociations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppIntegrationsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListEventIntegrationAssociations = createPaginator(AppIntegrationsClient, ListEventIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppIntegrationsClient } from "../AppIntegrationsClient";
|
|
2
3
|
import { ListEventIntegrationsCommand, } from "../commands/ListEventIntegrationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEventIntegrationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEventIntegrations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppIntegrationsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListEventIntegrations = createPaginator(AppIntegrationsClient, ListEventIntegrationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -2,7 +2,7 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AppIntegrationsServiceException as __BaseException } from "../models/AppIntegrationsServiceException";
|
|
5
|
-
import { AccessDeniedException, DuplicateResourceException, InternalServiceError, InvalidRequestException, ResourceNotFoundException, ResourceQuotaExceededException, ThrottlingException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, DuplicateResourceException, InternalServiceError, InvalidRequestException, ResourceNotFoundException, ResourceQuotaExceededException, ThrottlingException, UnsupportedOperationException, } from "../models/models_0";
|
|
6
6
|
export const se_CreateApplicationCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
@@ -16,6 +16,7 @@ export const se_CreateApplicationCommand = async (input, context) => {
|
|
|
16
16
|
Description: [],
|
|
17
17
|
Name: [],
|
|
18
18
|
Namespace: [],
|
|
19
|
+
Permissions: (_) => _json(_),
|
|
19
20
|
Publications: (_) => _json(_),
|
|
20
21
|
Subscriptions: (_) => _json(_),
|
|
21
22
|
Tags: (_) => _json(_),
|
|
@@ -62,6 +63,15 @@ export const se_CreateEventIntegrationCommand = async (input, context) => {
|
|
|
62
63
|
b.m("POST").h(headers).b(body);
|
|
63
64
|
return b.build();
|
|
64
65
|
};
|
|
66
|
+
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
67
|
+
const b = rb(input, context);
|
|
68
|
+
const headers = {};
|
|
69
|
+
b.bp("/applications/{Arn}");
|
|
70
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
71
|
+
let body;
|
|
72
|
+
b.m("DELETE").h(headers).b(body);
|
|
73
|
+
return b.build();
|
|
74
|
+
};
|
|
65
75
|
export const se_DeleteDataIntegrationCommand = async (input, context) => {
|
|
66
76
|
const b = rb(input, context);
|
|
67
77
|
const headers = {};
|
|
@@ -107,6 +117,19 @@ export const se_GetEventIntegrationCommand = async (input, context) => {
|
|
|
107
117
|
b.m("GET").h(headers).b(body);
|
|
108
118
|
return b.build();
|
|
109
119
|
};
|
|
120
|
+
export const se_ListApplicationAssociationsCommand = async (input, context) => {
|
|
121
|
+
const b = rb(input, context);
|
|
122
|
+
const headers = {};
|
|
123
|
+
b.bp("/applications/{ApplicationId}/associations");
|
|
124
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
125
|
+
const query = map({
|
|
126
|
+
[_nT]: [, input[_NT]],
|
|
127
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
128
|
+
});
|
|
129
|
+
let body;
|
|
130
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
131
|
+
return b.build();
|
|
132
|
+
};
|
|
110
133
|
export const se_ListApplicationsCommand = async (input, context) => {
|
|
111
134
|
const b = rb(input, context);
|
|
112
135
|
const headers = {};
|
|
@@ -219,6 +242,7 @@ export const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
219
242
|
ApplicationSourceConfig: (_) => _json(_),
|
|
220
243
|
Description: [],
|
|
221
244
|
Name: [],
|
|
245
|
+
Permissions: (_) => _json(_),
|
|
222
246
|
Publications: (_) => _json(_),
|
|
223
247
|
Subscriptions: (_) => _json(_),
|
|
224
248
|
}));
|
|
@@ -294,6 +318,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
294
318
|
case "ThrottlingException":
|
|
295
319
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
296
320
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
321
|
+
case "UnsupportedOperationException":
|
|
322
|
+
case "com.amazonaws.appintegrations#UnsupportedOperationException":
|
|
323
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
297
324
|
default:
|
|
298
325
|
const parsedBody = parsedOutput.body;
|
|
299
326
|
return throwDefaultError({
|
|
@@ -409,6 +436,47 @@ const de_CreateEventIntegrationCommandError = async (output, context) => {
|
|
|
409
436
|
});
|
|
410
437
|
}
|
|
411
438
|
};
|
|
439
|
+
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
440
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
441
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
442
|
+
}
|
|
443
|
+
const contents = map({
|
|
444
|
+
$metadata: deserializeMetadata(output),
|
|
445
|
+
});
|
|
446
|
+
await collectBody(output.body, context);
|
|
447
|
+
return contents;
|
|
448
|
+
};
|
|
449
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
450
|
+
const parsedOutput = {
|
|
451
|
+
...output,
|
|
452
|
+
body: await parseErrorBody(output.body, context),
|
|
453
|
+
};
|
|
454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
+
switch (errorCode) {
|
|
456
|
+
case "AccessDeniedException":
|
|
457
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
458
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
459
|
+
case "InternalServiceError":
|
|
460
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
461
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
462
|
+
case "InvalidRequestException":
|
|
463
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
464
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
465
|
+
case "ResourceNotFoundException":
|
|
466
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
467
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
468
|
+
case "ThrottlingException":
|
|
469
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
470
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
471
|
+
default:
|
|
472
|
+
const parsedBody = parsedOutput.body;
|
|
473
|
+
return throwDefaultError({
|
|
474
|
+
output,
|
|
475
|
+
parsedBody,
|
|
476
|
+
errorCode,
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
};
|
|
412
480
|
export const de_DeleteDataIntegrationCommand = async (output, context) => {
|
|
413
481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
414
482
|
return de_DeleteDataIntegrationCommandError(output, context);
|
|
@@ -508,6 +576,7 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
508
576
|
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
509
577
|
Name: __expectString,
|
|
510
578
|
Namespace: __expectString,
|
|
579
|
+
Permissions: _json,
|
|
511
580
|
Publications: _json,
|
|
512
581
|
Subscriptions: _json,
|
|
513
582
|
Tags: _json,
|
|
@@ -650,6 +719,52 @@ const de_GetEventIntegrationCommandError = async (output, context) => {
|
|
|
650
719
|
});
|
|
651
720
|
}
|
|
652
721
|
};
|
|
722
|
+
export const de_ListApplicationAssociationsCommand = async (output, context) => {
|
|
723
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
|
+
return de_ListApplicationAssociationsCommandError(output, context);
|
|
725
|
+
}
|
|
726
|
+
const contents = map({
|
|
727
|
+
$metadata: deserializeMetadata(output),
|
|
728
|
+
});
|
|
729
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
730
|
+
const doc = take(data, {
|
|
731
|
+
ApplicationAssociations: _json,
|
|
732
|
+
NextToken: __expectString,
|
|
733
|
+
});
|
|
734
|
+
Object.assign(contents, doc);
|
|
735
|
+
return contents;
|
|
736
|
+
};
|
|
737
|
+
const de_ListApplicationAssociationsCommandError = async (output, context) => {
|
|
738
|
+
const parsedOutput = {
|
|
739
|
+
...output,
|
|
740
|
+
body: await parseErrorBody(output.body, context),
|
|
741
|
+
};
|
|
742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
|
+
switch (errorCode) {
|
|
744
|
+
case "AccessDeniedException":
|
|
745
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
746
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
747
|
+
case "InternalServiceError":
|
|
748
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
749
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
750
|
+
case "InvalidRequestException":
|
|
751
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
752
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
753
|
+
case "ResourceNotFoundException":
|
|
754
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
755
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
756
|
+
case "ThrottlingException":
|
|
757
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
758
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
759
|
+
default:
|
|
760
|
+
const parsedBody = parsedOutput.body;
|
|
761
|
+
return throwDefaultError({
|
|
762
|
+
output,
|
|
763
|
+
parsedBody,
|
|
764
|
+
errorCode,
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
};
|
|
653
768
|
export const de_ListApplicationsCommand = async (output, context) => {
|
|
654
769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
655
770
|
return de_ListApplicationsCommandError(output, context);
|
|
@@ -1021,6 +1136,9 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
1021
1136
|
case "ThrottlingException":
|
|
1022
1137
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1023
1138
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1139
|
+
case "UnsupportedOperationException":
|
|
1140
|
+
case "com.amazonaws.appintegrations#UnsupportedOperationException":
|
|
1141
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1024
1142
|
default:
|
|
1025
1143
|
const parsedBody = parsedOutput.body;
|
|
1026
1144
|
return throwDefaultError({
|
|
@@ -1204,6 +1322,19 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1204
1322
|
});
|
|
1205
1323
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1206
1324
|
};
|
|
1325
|
+
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
1326
|
+
const contents = map({});
|
|
1327
|
+
const data = parsedOutput.body;
|
|
1328
|
+
const doc = take(data, {
|
|
1329
|
+
Message: __expectString,
|
|
1330
|
+
});
|
|
1331
|
+
Object.assign(contents, doc);
|
|
1332
|
+
const exception = new UnsupportedOperationException({
|
|
1333
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1334
|
+
...contents,
|
|
1335
|
+
});
|
|
1336
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1337
|
+
};
|
|
1207
1338
|
const de_ApplicationsList = (output, context) => {
|
|
1208
1339
|
const retVal = (output || [])
|
|
1209
1340
|
.filter((e) => e != null)
|
|
@@ -3,11 +3,13 @@ import { AppIntegrationsClient } from "./AppIntegrationsClient";
|
|
|
3
3
|
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
|
|
4
4
|
import { CreateDataIntegrationCommandInput, CreateDataIntegrationCommandOutput } from "./commands/CreateDataIntegrationCommand";
|
|
5
5
|
import { CreateEventIntegrationCommandInput, CreateEventIntegrationCommandOutput } from "./commands/CreateEventIntegrationCommand";
|
|
6
|
+
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
|
|
6
7
|
import { DeleteDataIntegrationCommandInput, DeleteDataIntegrationCommandOutput } from "./commands/DeleteDataIntegrationCommand";
|
|
7
8
|
import { DeleteEventIntegrationCommandInput, DeleteEventIntegrationCommandOutput } from "./commands/DeleteEventIntegrationCommand";
|
|
8
9
|
import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
|
|
9
10
|
import { GetDataIntegrationCommandInput, GetDataIntegrationCommandOutput } from "./commands/GetDataIntegrationCommand";
|
|
10
11
|
import { GetEventIntegrationCommandInput, GetEventIntegrationCommandOutput } from "./commands/GetEventIntegrationCommand";
|
|
12
|
+
import { ListApplicationAssociationsCommandInput, ListApplicationAssociationsCommandOutput } from "./commands/ListApplicationAssociationsCommand";
|
|
11
13
|
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
|
|
12
14
|
import { ListDataIntegrationAssociationsCommandInput, ListDataIntegrationAssociationsCommandOutput } from "./commands/ListDataIntegrationAssociationsCommand";
|
|
13
15
|
import { ListDataIntegrationsCommandInput, ListDataIntegrationsCommandOutput } from "./commands/ListDataIntegrationsCommand";
|
|
@@ -38,6 +40,12 @@ export interface AppIntegrations {
|
|
|
38
40
|
createEventIntegration(args: CreateEventIntegrationCommandInput, options?: __HttpHandlerOptions): Promise<CreateEventIntegrationCommandOutput>;
|
|
39
41
|
createEventIntegration(args: CreateEventIntegrationCommandInput, cb: (err: any, data?: CreateEventIntegrationCommandOutput) => void): void;
|
|
40
42
|
createEventIntegration(args: CreateEventIntegrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEventIntegrationCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link DeleteApplicationCommand}
|
|
45
|
+
*/
|
|
46
|
+
deleteApplication(args: DeleteApplicationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteApplicationCommandOutput>;
|
|
47
|
+
deleteApplication(args: DeleteApplicationCommandInput, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
48
|
+
deleteApplication(args: DeleteApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
41
49
|
/**
|
|
42
50
|
* @see {@link DeleteDataIntegrationCommand}
|
|
43
51
|
*/
|
|
@@ -68,6 +76,12 @@ export interface AppIntegrations {
|
|
|
68
76
|
getEventIntegration(args: GetEventIntegrationCommandInput, options?: __HttpHandlerOptions): Promise<GetEventIntegrationCommandOutput>;
|
|
69
77
|
getEventIntegration(args: GetEventIntegrationCommandInput, cb: (err: any, data?: GetEventIntegrationCommandOutput) => void): void;
|
|
70
78
|
getEventIntegration(args: GetEventIntegrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEventIntegrationCommandOutput) => void): void;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link ListApplicationAssociationsCommand}
|
|
81
|
+
*/
|
|
82
|
+
listApplicationAssociations(args: ListApplicationAssociationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationAssociationsCommandOutput>;
|
|
83
|
+
listApplicationAssociations(args: ListApplicationAssociationsCommandInput, cb: (err: any, data?: ListApplicationAssociationsCommandOutput) => void): void;
|
|
84
|
+
listApplicationAssociations(args: ListApplicationAssociationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationAssociationsCommandOutput) => void): void;
|
|
71
85
|
/**
|
|
72
86
|
* @see {@link ListApplicationsCommand}
|
|
73
87
|
*/
|
|
@@ -11,11 +11,13 @@ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConf
|
|
|
11
11
|
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
|
|
12
12
|
import { CreateDataIntegrationCommandInput, CreateDataIntegrationCommandOutput } from "./commands/CreateDataIntegrationCommand";
|
|
13
13
|
import { CreateEventIntegrationCommandInput, CreateEventIntegrationCommandOutput } from "./commands/CreateEventIntegrationCommand";
|
|
14
|
+
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
|
|
14
15
|
import { DeleteDataIntegrationCommandInput, DeleteDataIntegrationCommandOutput } from "./commands/DeleteDataIntegrationCommand";
|
|
15
16
|
import { DeleteEventIntegrationCommandInput, DeleteEventIntegrationCommandOutput } from "./commands/DeleteEventIntegrationCommand";
|
|
16
17
|
import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
|
|
17
18
|
import { GetDataIntegrationCommandInput, GetDataIntegrationCommandOutput } from "./commands/GetDataIntegrationCommand";
|
|
18
19
|
import { GetEventIntegrationCommandInput, GetEventIntegrationCommandOutput } from "./commands/GetEventIntegrationCommand";
|
|
20
|
+
import { ListApplicationAssociationsCommandInput, ListApplicationAssociationsCommandOutput } from "./commands/ListApplicationAssociationsCommand";
|
|
19
21
|
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
|
|
20
22
|
import { ListDataIntegrationAssociationsCommandInput, ListDataIntegrationAssociationsCommandOutput } from "./commands/ListDataIntegrationAssociationsCommand";
|
|
21
23
|
import { ListDataIntegrationsCommandInput, ListDataIntegrationsCommandOutput } from "./commands/ListDataIntegrationsCommand";
|
|
@@ -33,11 +35,11 @@ export { __Client };
|
|
|
33
35
|
/**
|
|
34
36
|
* @public
|
|
35
37
|
*/
|
|
36
|
-
export type ServiceInputTypes = CreateApplicationCommandInput | CreateDataIntegrationCommandInput | CreateEventIntegrationCommandInput | DeleteDataIntegrationCommandInput | DeleteEventIntegrationCommandInput | GetApplicationCommandInput | GetDataIntegrationCommandInput | GetEventIntegrationCommandInput | ListApplicationsCommandInput | ListDataIntegrationAssociationsCommandInput | ListDataIntegrationsCommandInput | ListEventIntegrationAssociationsCommandInput | ListEventIntegrationsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateDataIntegrationCommandInput | UpdateEventIntegrationCommandInput;
|
|
38
|
+
export type ServiceInputTypes = CreateApplicationCommandInput | CreateDataIntegrationCommandInput | CreateEventIntegrationCommandInput | DeleteApplicationCommandInput | DeleteDataIntegrationCommandInput | DeleteEventIntegrationCommandInput | GetApplicationCommandInput | GetDataIntegrationCommandInput | GetEventIntegrationCommandInput | ListApplicationAssociationsCommandInput | ListApplicationsCommandInput | ListDataIntegrationAssociationsCommandInput | ListDataIntegrationsCommandInput | ListEventIntegrationAssociationsCommandInput | ListEventIntegrationsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateDataIntegrationCommandInput | UpdateEventIntegrationCommandInput;
|
|
37
39
|
/**
|
|
38
40
|
* @public
|
|
39
41
|
*/
|
|
40
|
-
export type ServiceOutputTypes = CreateApplicationCommandOutput | CreateDataIntegrationCommandOutput | CreateEventIntegrationCommandOutput | DeleteDataIntegrationCommandOutput | DeleteEventIntegrationCommandOutput | GetApplicationCommandOutput | GetDataIntegrationCommandOutput | GetEventIntegrationCommandOutput | ListApplicationsCommandOutput | ListDataIntegrationAssociationsCommandOutput | ListDataIntegrationsCommandOutput | ListEventIntegrationAssociationsCommandOutput | ListEventIntegrationsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateDataIntegrationCommandOutput | UpdateEventIntegrationCommandOutput;
|
|
42
|
+
export type ServiceOutputTypes = CreateApplicationCommandOutput | CreateDataIntegrationCommandOutput | CreateEventIntegrationCommandOutput | DeleteApplicationCommandOutput | DeleteDataIntegrationCommandOutput | DeleteEventIntegrationCommandOutput | GetApplicationCommandOutput | GetDataIntegrationCommandOutput | GetEventIntegrationCommandOutput | ListApplicationAssociationsCommandOutput | ListApplicationsCommandOutput | ListDataIntegrationAssociationsCommandOutput | ListDataIntegrationsCommandOutput | ListEventIntegrationAssociationsCommandOutput | ListEventIntegrationsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateDataIntegrationCommandOutput | UpdateEventIntegrationCommandOutput;
|
|
41
43
|
/**
|
|
42
44
|
* @public
|
|
43
45
|
*/
|
|
@@ -60,6 +60,9 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
|
|
|
60
60
|
* Tags: { // TagMap
|
|
61
61
|
* "<keys>": "STRING_VALUE",
|
|
62
62
|
* },
|
|
63
|
+
* Permissions: [ // PermissionList
|
|
64
|
+
* "STRING_VALUE",
|
|
65
|
+
* ],
|
|
63
66
|
* };
|
|
64
67
|
* const command = new CreateApplicationCommand(input);
|
|
65
68
|
* const response = await client.send(command);
|
|
@@ -94,6 +97,9 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
|
|
|
94
97
|
* @throws {@link ThrottlingException} (client fault)
|
|
95
98
|
* <p>The throttling limit has been exceeded.</p>
|
|
96
99
|
*
|
|
100
|
+
* @throws {@link UnsupportedOperationException} (client fault)
|
|
101
|
+
* <p>The operation is not supported.</p>
|
|
102
|
+
*
|
|
97
103
|
* @throws {@link AppIntegrationsServiceException}
|
|
98
104
|
* <p>Base exception class for all service exceptions from AppIntegrations service.</p>
|
|
99
105
|
*
|