@aws-sdk/client-appfabric 3.361.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/LICENSE +201 -0
- package/README.md +421 -0
- package/dist-cjs/AppFabric.js +63 -0
- package/dist-cjs/AppFabricClient.js +41 -0
- package/dist-cjs/commands/BatchGetUserAccessTasksCommand.js +47 -0
- package/dist-cjs/commands/ConnectAppAuthorizationCommand.js +47 -0
- package/dist-cjs/commands/CreateAppAuthorizationCommand.js +47 -0
- package/dist-cjs/commands/CreateAppBundleCommand.js +46 -0
- package/dist-cjs/commands/CreateIngestionCommand.js +46 -0
- package/dist-cjs/commands/CreateIngestionDestinationCommand.js +46 -0
- package/dist-cjs/commands/DeleteAppAuthorizationCommand.js +46 -0
- package/dist-cjs/commands/DeleteAppBundleCommand.js +46 -0
- package/dist-cjs/commands/DeleteIngestionCommand.js +46 -0
- package/dist-cjs/commands/DeleteIngestionDestinationCommand.js +46 -0
- package/dist-cjs/commands/GetAppAuthorizationCommand.js +46 -0
- package/dist-cjs/commands/GetAppBundleCommand.js +46 -0
- package/dist-cjs/commands/GetIngestionCommand.js +46 -0
- package/dist-cjs/commands/GetIngestionDestinationCommand.js +46 -0
- package/dist-cjs/commands/ListAppAuthorizationsCommand.js +46 -0
- package/dist-cjs/commands/ListAppBundlesCommand.js +46 -0
- package/dist-cjs/commands/ListIngestionDestinationsCommand.js +46 -0
- package/dist-cjs/commands/ListIngestionsCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/StartIngestionCommand.js +46 -0
- package/dist-cjs/commands/StartUserAccessTasksCommand.js +47 -0
- package/dist-cjs/commands/StopIngestionCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateAppAuthorizationCommand.js +47 -0
- package/dist-cjs/commands/UpdateIngestionDestinationCommand.js +46 -0
- package/dist-cjs/commands/index.js +29 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/AppFabricServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +255 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAppAuthorizationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListAppBundlesPaginator.js +29 -0
- package/dist-cjs/pagination/ListIngestionDestinationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListIngestionsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1988 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/AppFabric.js +59 -0
- package/dist-es/AppFabricClient.js +37 -0
- package/dist-es/commands/BatchGetUserAccessTasksCommand.js +43 -0
- package/dist-es/commands/ConnectAppAuthorizationCommand.js +43 -0
- package/dist-es/commands/CreateAppAuthorizationCommand.js +43 -0
- package/dist-es/commands/CreateAppBundleCommand.js +42 -0
- package/dist-es/commands/CreateIngestionCommand.js +42 -0
- package/dist-es/commands/CreateIngestionDestinationCommand.js +42 -0
- package/dist-es/commands/DeleteAppAuthorizationCommand.js +42 -0
- package/dist-es/commands/DeleteAppBundleCommand.js +42 -0
- package/dist-es/commands/DeleteIngestionCommand.js +42 -0
- package/dist-es/commands/DeleteIngestionDestinationCommand.js +42 -0
- package/dist-es/commands/GetAppAuthorizationCommand.js +42 -0
- package/dist-es/commands/GetAppBundleCommand.js +42 -0
- package/dist-es/commands/GetIngestionCommand.js +42 -0
- package/dist-es/commands/GetIngestionDestinationCommand.js +42 -0
- package/dist-es/commands/ListAppAuthorizationsCommand.js +42 -0
- package/dist-es/commands/ListAppBundlesCommand.js +42 -0
- package/dist-es/commands/ListIngestionDestinationsCommand.js +42 -0
- package/dist-es/commands/ListIngestionsCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/StartIngestionCommand.js +42 -0
- package/dist-es/commands/StartUserAccessTasksCommand.js +43 -0
- package/dist-es/commands/StopIngestionCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateAppAuthorizationCommand.js +43 -0
- package/dist-es/commands/UpdateIngestionDestinationCommand.js +42 -0
- package/dist-es/commands/index.js +26 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/AppFabricServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +235 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAppAuthorizationsPaginator.js +25 -0
- package/dist-es/pagination/ListAppBundlesPaginator.js +25 -0
- package/dist-es/pagination/ListIngestionDestinationsPaginator.js +25 -0
- package/dist-es/pagination/ListIngestionsPaginator.js +25 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +1932 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/AppFabric.d.ts +200 -0
- package/dist-types/AppFabricClient.d.ts +196 -0
- package/dist-types/commands/BatchGetUserAccessTasksCommand.d.ts +112 -0
- package/dist-types/commands/ConnectAppAuthorizationCommand.d.ts +105 -0
- package/dist-types/commands/CreateAppAuthorizationCommand.d.ts +132 -0
- package/dist-types/commands/CreateAppBundleCommand.d.ts +102 -0
- package/dist-types/commands/CreateIngestionCommand.d.ts +111 -0
- package/dist-types/commands/CreateIngestionDestinationCommand.d.ts +146 -0
- package/dist-types/commands/DeleteAppAuthorizationCommand.d.ts +89 -0
- package/dist-types/commands/DeleteAppBundleCommand.d.ts +88 -0
- package/dist-types/commands/DeleteIngestionCommand.d.ts +89 -0
- package/dist-types/commands/DeleteIngestionDestinationCommand.d.ts +93 -0
- package/dist-types/commands/GetAppAuthorizationCommand.d.ts +104 -0
- package/dist-types/commands/GetAppBundleCommand.d.ts +92 -0
- package/dist-types/commands/GetIngestionCommand.d.ts +99 -0
- package/dist-types/commands/GetIngestionDestinationCommand.d.ts +117 -0
- package/dist-types/commands/ListAppAuthorizationsCommand.d.ts +104 -0
- package/dist-types/commands/ListAppBundlesCommand.d.ts +92 -0
- package/dist-types/commands/ListIngestionDestinationsCommand.d.ts +97 -0
- package/dist-types/commands/ListIngestionsCommand.d.ts +99 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +94 -0
- package/dist-types/commands/StartIngestionCommand.d.ts +91 -0
- package/dist-types/commands/StartUserAccessTasksCommand.d.ts +102 -0
- package/dist-types/commands/StopIngestionCommand.d.ts +91 -0
- package/dist-types/commands/TagResourceCommand.d.ts +93 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UpdateAppAuthorizationCommand.d.ts +120 -0
- package/dist-types/commands/UpdateIngestionDestinationCommand.d.ts +137 -0
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +19 -0
- package/dist-types/models/AppFabricServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1860 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAppAuthorizationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAppBundlesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListIngestionDestinationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListIngestionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +236 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/AppFabric.d.ts +447 -0
- package/dist-types/ts3.4/AppFabricClient.d.ts +270 -0
- package/dist-types/ts3.4/commands/BatchGetUserAccessTasksCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ConnectAppAuthorizationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateAppAuthorizationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateAppBundleCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateIngestionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateIngestionDestinationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteAppAuthorizationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteAppBundleCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteIngestionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteIngestionDestinationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAppAuthorizationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetAppBundleCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetIngestionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetIngestionDestinationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAppAuthorizationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAppBundlesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListIngestionDestinationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListIngestionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StartIngestionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartUserAccessTasksCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StopIngestionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateAppAuthorizationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateIngestionDestinationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/AppFabricServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +551 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAppAuthorizationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAppBundlesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListIngestionDestinationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListIngestionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +317 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +94 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +85 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +101 -0
|
@@ -0,0 +1,1988 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopIngestionCommand = exports.de_StartUserAccessTasksCommand = exports.de_StartIngestionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListIngestionsCommand = exports.de_ListIngestionDestinationsCommand = exports.de_ListAppBundlesCommand = exports.de_ListAppAuthorizationsCommand = exports.de_GetIngestionDestinationCommand = exports.de_GetIngestionCommand = exports.de_GetAppBundleCommand = exports.de_GetAppAuthorizationCommand = exports.de_DeleteIngestionDestinationCommand = exports.de_DeleteIngestionCommand = exports.de_DeleteAppBundleCommand = exports.de_DeleteAppAuthorizationCommand = exports.de_CreateIngestionDestinationCommand = exports.de_CreateIngestionCommand = exports.de_CreateAppBundleCommand = exports.de_CreateAppAuthorizationCommand = exports.de_ConnectAppAuthorizationCommand = exports.de_BatchGetUserAccessTasksCommand = exports.se_UpdateIngestionDestinationCommand = exports.se_UpdateAppAuthorizationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopIngestionCommand = exports.se_StartUserAccessTasksCommand = exports.se_StartIngestionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListIngestionsCommand = exports.se_ListIngestionDestinationsCommand = exports.se_ListAppBundlesCommand = exports.se_ListAppAuthorizationsCommand = exports.se_GetIngestionDestinationCommand = exports.se_GetIngestionCommand = exports.se_GetAppBundleCommand = exports.se_GetAppAuthorizationCommand = exports.se_DeleteIngestionDestinationCommand = exports.se_DeleteIngestionCommand = exports.se_DeleteAppBundleCommand = exports.se_DeleteAppAuthorizationCommand = exports.se_CreateIngestionDestinationCommand = exports.se_CreateIngestionCommand = exports.se_CreateAppBundleCommand = exports.se_CreateAppAuthorizationCommand = exports.se_ConnectAppAuthorizationCommand = exports.se_BatchGetUserAccessTasksCommand = void 0;
|
|
4
|
+
exports.de_UpdateIngestionDestinationCommand = exports.de_UpdateAppAuthorizationCommand = void 0;
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
+
const uuid_1 = require("uuid");
|
|
8
|
+
const AppFabricServiceException_1 = require("../models/AppFabricServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const se_BatchGetUserAccessTasksCommand = async (input, context) => {
|
|
11
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
12
|
+
const headers = {
|
|
13
|
+
"content-type": "application/json",
|
|
14
|
+
};
|
|
15
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/useraccess/batchget";
|
|
16
|
+
let body;
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
appBundleIdentifier: [],
|
|
19
|
+
taskIdList: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
}));
|
|
21
|
+
return new protocol_http_1.HttpRequest({
|
|
22
|
+
protocol,
|
|
23
|
+
hostname,
|
|
24
|
+
port,
|
|
25
|
+
method: "POST",
|
|
26
|
+
headers,
|
|
27
|
+
path: resolvedPath,
|
|
28
|
+
body,
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
exports.se_BatchGetUserAccessTasksCommand = se_BatchGetUserAccessTasksCommand;
|
|
32
|
+
const se_ConnectAppAuthorizationCommand = async (input, context) => {
|
|
33
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
|
+
const headers = {
|
|
35
|
+
"content-type": "application/json",
|
|
36
|
+
};
|
|
37
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
38
|
+
"/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}/connect";
|
|
39
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
40
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
41
|
+
let body;
|
|
42
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
|
+
authRequest: (_) => (0, smithy_client_1._json)(_),
|
|
44
|
+
}));
|
|
45
|
+
return new protocol_http_1.HttpRequest({
|
|
46
|
+
protocol,
|
|
47
|
+
hostname,
|
|
48
|
+
port,
|
|
49
|
+
method: "POST",
|
|
50
|
+
headers,
|
|
51
|
+
path: resolvedPath,
|
|
52
|
+
body,
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
exports.se_ConnectAppAuthorizationCommand = se_ConnectAppAuthorizationCommand;
|
|
56
|
+
const se_CreateAppAuthorizationCommand = async (input, context) => {
|
|
57
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
58
|
+
const headers = {
|
|
59
|
+
"content-type": "application/json",
|
|
60
|
+
};
|
|
61
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
62
|
+
"/appbundles/{appBundleIdentifier}/appauthorizations";
|
|
63
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
66
|
+
app: [],
|
|
67
|
+
authType: [],
|
|
68
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
69
|
+
credential: (_) => (0, smithy_client_1._json)(_),
|
|
70
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
71
|
+
tenant: (_) => (0, smithy_client_1._json)(_),
|
|
72
|
+
}));
|
|
73
|
+
return new protocol_http_1.HttpRequest({
|
|
74
|
+
protocol,
|
|
75
|
+
hostname,
|
|
76
|
+
port,
|
|
77
|
+
method: "POST",
|
|
78
|
+
headers,
|
|
79
|
+
path: resolvedPath,
|
|
80
|
+
body,
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
exports.se_CreateAppAuthorizationCommand = se_CreateAppAuthorizationCommand;
|
|
84
|
+
const se_CreateAppBundleCommand = async (input, context) => {
|
|
85
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
86
|
+
const headers = {
|
|
87
|
+
"content-type": "application/json",
|
|
88
|
+
};
|
|
89
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles";
|
|
90
|
+
let body;
|
|
91
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
92
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
93
|
+
customerManagedKeyIdentifier: [],
|
|
94
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
95
|
+
}));
|
|
96
|
+
return new protocol_http_1.HttpRequest({
|
|
97
|
+
protocol,
|
|
98
|
+
hostname,
|
|
99
|
+
port,
|
|
100
|
+
method: "POST",
|
|
101
|
+
headers,
|
|
102
|
+
path: resolvedPath,
|
|
103
|
+
body,
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
exports.se_CreateAppBundleCommand = se_CreateAppBundleCommand;
|
|
107
|
+
const se_CreateIngestionCommand = async (input, context) => {
|
|
108
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
109
|
+
const headers = {
|
|
110
|
+
"content-type": "application/json",
|
|
111
|
+
};
|
|
112
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
113
|
+
"/appbundles/{appBundleIdentifier}/ingestions";
|
|
114
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
115
|
+
let body;
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
117
|
+
app: [],
|
|
118
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
119
|
+
ingestionType: [],
|
|
120
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
121
|
+
tenantId: [],
|
|
122
|
+
}));
|
|
123
|
+
return new protocol_http_1.HttpRequest({
|
|
124
|
+
protocol,
|
|
125
|
+
hostname,
|
|
126
|
+
port,
|
|
127
|
+
method: "POST",
|
|
128
|
+
headers,
|
|
129
|
+
path: resolvedPath,
|
|
130
|
+
body,
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
exports.se_CreateIngestionCommand = se_CreateIngestionCommand;
|
|
134
|
+
const se_CreateIngestionDestinationCommand = async (input, context) => {
|
|
135
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
136
|
+
const headers = {
|
|
137
|
+
"content-type": "application/json",
|
|
138
|
+
};
|
|
139
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
140
|
+
"/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations";
|
|
141
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
142
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
143
|
+
let body;
|
|
144
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
145
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
146
|
+
destinationConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
147
|
+
processingConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
148
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
149
|
+
}));
|
|
150
|
+
return new protocol_http_1.HttpRequest({
|
|
151
|
+
protocol,
|
|
152
|
+
hostname,
|
|
153
|
+
port,
|
|
154
|
+
method: "POST",
|
|
155
|
+
headers,
|
|
156
|
+
path: resolvedPath,
|
|
157
|
+
body,
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
exports.se_CreateIngestionDestinationCommand = se_CreateIngestionDestinationCommand;
|
|
161
|
+
const se_DeleteAppAuthorizationCommand = async (input, context) => {
|
|
162
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
163
|
+
const headers = {};
|
|
164
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
165
|
+
"/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}";
|
|
166
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
167
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
168
|
+
let body;
|
|
169
|
+
return new protocol_http_1.HttpRequest({
|
|
170
|
+
protocol,
|
|
171
|
+
hostname,
|
|
172
|
+
port,
|
|
173
|
+
method: "DELETE",
|
|
174
|
+
headers,
|
|
175
|
+
path: resolvedPath,
|
|
176
|
+
body,
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
exports.se_DeleteAppAuthorizationCommand = se_DeleteAppAuthorizationCommand;
|
|
180
|
+
const se_DeleteAppBundleCommand = async (input, context) => {
|
|
181
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
182
|
+
const headers = {};
|
|
183
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles/{appBundleIdentifier}";
|
|
184
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
185
|
+
let body;
|
|
186
|
+
return new protocol_http_1.HttpRequest({
|
|
187
|
+
protocol,
|
|
188
|
+
hostname,
|
|
189
|
+
port,
|
|
190
|
+
method: "DELETE",
|
|
191
|
+
headers,
|
|
192
|
+
path: resolvedPath,
|
|
193
|
+
body,
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
exports.se_DeleteAppBundleCommand = se_DeleteAppBundleCommand;
|
|
197
|
+
const se_DeleteIngestionCommand = async (input, context) => {
|
|
198
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
199
|
+
const headers = {};
|
|
200
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
201
|
+
"/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}";
|
|
202
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
203
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
204
|
+
let body;
|
|
205
|
+
return new protocol_http_1.HttpRequest({
|
|
206
|
+
protocol,
|
|
207
|
+
hostname,
|
|
208
|
+
port,
|
|
209
|
+
method: "DELETE",
|
|
210
|
+
headers,
|
|
211
|
+
path: resolvedPath,
|
|
212
|
+
body,
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
exports.se_DeleteIngestionCommand = se_DeleteIngestionCommand;
|
|
216
|
+
const se_DeleteIngestionDestinationCommand = async (input, context) => {
|
|
217
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
218
|
+
const headers = {};
|
|
219
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
220
|
+
"/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}";
|
|
221
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
222
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
223
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
|
|
224
|
+
let body;
|
|
225
|
+
return new protocol_http_1.HttpRequest({
|
|
226
|
+
protocol,
|
|
227
|
+
hostname,
|
|
228
|
+
port,
|
|
229
|
+
method: "DELETE",
|
|
230
|
+
headers,
|
|
231
|
+
path: resolvedPath,
|
|
232
|
+
body,
|
|
233
|
+
});
|
|
234
|
+
};
|
|
235
|
+
exports.se_DeleteIngestionDestinationCommand = se_DeleteIngestionDestinationCommand;
|
|
236
|
+
const se_GetAppAuthorizationCommand = async (input, context) => {
|
|
237
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
238
|
+
const headers = {};
|
|
239
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
240
|
+
"/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}";
|
|
241
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
242
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
243
|
+
let body;
|
|
244
|
+
return new protocol_http_1.HttpRequest({
|
|
245
|
+
protocol,
|
|
246
|
+
hostname,
|
|
247
|
+
port,
|
|
248
|
+
method: "GET",
|
|
249
|
+
headers,
|
|
250
|
+
path: resolvedPath,
|
|
251
|
+
body,
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
exports.se_GetAppAuthorizationCommand = se_GetAppAuthorizationCommand;
|
|
255
|
+
const se_GetAppBundleCommand = async (input, context) => {
|
|
256
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
257
|
+
const headers = {};
|
|
258
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles/{appBundleIdentifier}";
|
|
259
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
260
|
+
let body;
|
|
261
|
+
return new protocol_http_1.HttpRequest({
|
|
262
|
+
protocol,
|
|
263
|
+
hostname,
|
|
264
|
+
port,
|
|
265
|
+
method: "GET",
|
|
266
|
+
headers,
|
|
267
|
+
path: resolvedPath,
|
|
268
|
+
body,
|
|
269
|
+
});
|
|
270
|
+
};
|
|
271
|
+
exports.se_GetAppBundleCommand = se_GetAppBundleCommand;
|
|
272
|
+
const se_GetIngestionCommand = async (input, context) => {
|
|
273
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
274
|
+
const headers = {};
|
|
275
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
276
|
+
"/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}";
|
|
277
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
278
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
279
|
+
let body;
|
|
280
|
+
return new protocol_http_1.HttpRequest({
|
|
281
|
+
protocol,
|
|
282
|
+
hostname,
|
|
283
|
+
port,
|
|
284
|
+
method: "GET",
|
|
285
|
+
headers,
|
|
286
|
+
path: resolvedPath,
|
|
287
|
+
body,
|
|
288
|
+
});
|
|
289
|
+
};
|
|
290
|
+
exports.se_GetIngestionCommand = se_GetIngestionCommand;
|
|
291
|
+
const se_GetIngestionDestinationCommand = async (input, context) => {
|
|
292
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
293
|
+
const headers = {};
|
|
294
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
295
|
+
"/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}";
|
|
296
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
297
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
298
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
|
|
299
|
+
let body;
|
|
300
|
+
return new protocol_http_1.HttpRequest({
|
|
301
|
+
protocol,
|
|
302
|
+
hostname,
|
|
303
|
+
port,
|
|
304
|
+
method: "GET",
|
|
305
|
+
headers,
|
|
306
|
+
path: resolvedPath,
|
|
307
|
+
body,
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
exports.se_GetIngestionDestinationCommand = se_GetIngestionDestinationCommand;
|
|
311
|
+
const se_ListAppAuthorizationsCommand = async (input, context) => {
|
|
312
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
313
|
+
const headers = {};
|
|
314
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
315
|
+
"/appbundles/{appBundleIdentifier}/appauthorizations";
|
|
316
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
317
|
+
const query = (0, smithy_client_1.map)({
|
|
318
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
319
|
+
nextToken: [, input.nextToken],
|
|
320
|
+
});
|
|
321
|
+
let body;
|
|
322
|
+
return new protocol_http_1.HttpRequest({
|
|
323
|
+
protocol,
|
|
324
|
+
hostname,
|
|
325
|
+
port,
|
|
326
|
+
method: "GET",
|
|
327
|
+
headers,
|
|
328
|
+
path: resolvedPath,
|
|
329
|
+
query,
|
|
330
|
+
body,
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
exports.se_ListAppAuthorizationsCommand = se_ListAppAuthorizationsCommand;
|
|
334
|
+
const se_ListAppBundlesCommand = async (input, context) => {
|
|
335
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
336
|
+
const headers = {};
|
|
337
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles";
|
|
338
|
+
const query = (0, smithy_client_1.map)({
|
|
339
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
340
|
+
nextToken: [, input.nextToken],
|
|
341
|
+
});
|
|
342
|
+
let body;
|
|
343
|
+
return new protocol_http_1.HttpRequest({
|
|
344
|
+
protocol,
|
|
345
|
+
hostname,
|
|
346
|
+
port,
|
|
347
|
+
method: "GET",
|
|
348
|
+
headers,
|
|
349
|
+
path: resolvedPath,
|
|
350
|
+
query,
|
|
351
|
+
body,
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
exports.se_ListAppBundlesCommand = se_ListAppBundlesCommand;
|
|
355
|
+
const se_ListIngestionDestinationsCommand = async (input, context) => {
|
|
356
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
357
|
+
const headers = {};
|
|
358
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
359
|
+
"/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations";
|
|
360
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
361
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
362
|
+
const query = (0, smithy_client_1.map)({
|
|
363
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
364
|
+
nextToken: [, input.nextToken],
|
|
365
|
+
});
|
|
366
|
+
let body;
|
|
367
|
+
return new protocol_http_1.HttpRequest({
|
|
368
|
+
protocol,
|
|
369
|
+
hostname,
|
|
370
|
+
port,
|
|
371
|
+
method: "GET",
|
|
372
|
+
headers,
|
|
373
|
+
path: resolvedPath,
|
|
374
|
+
query,
|
|
375
|
+
body,
|
|
376
|
+
});
|
|
377
|
+
};
|
|
378
|
+
exports.se_ListIngestionDestinationsCommand = se_ListIngestionDestinationsCommand;
|
|
379
|
+
const se_ListIngestionsCommand = async (input, context) => {
|
|
380
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
381
|
+
const headers = {};
|
|
382
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
383
|
+
"/appbundles/{appBundleIdentifier}/ingestions";
|
|
384
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
385
|
+
const query = (0, smithy_client_1.map)({
|
|
386
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
387
|
+
nextToken: [, input.nextToken],
|
|
388
|
+
});
|
|
389
|
+
let body;
|
|
390
|
+
return new protocol_http_1.HttpRequest({
|
|
391
|
+
protocol,
|
|
392
|
+
hostname,
|
|
393
|
+
port,
|
|
394
|
+
method: "GET",
|
|
395
|
+
headers,
|
|
396
|
+
path: resolvedPath,
|
|
397
|
+
query,
|
|
398
|
+
body,
|
|
399
|
+
});
|
|
400
|
+
};
|
|
401
|
+
exports.se_ListIngestionsCommand = se_ListIngestionsCommand;
|
|
402
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
403
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
404
|
+
const headers = {};
|
|
405
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
406
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
407
|
+
let body;
|
|
408
|
+
return new protocol_http_1.HttpRequest({
|
|
409
|
+
protocol,
|
|
410
|
+
hostname,
|
|
411
|
+
port,
|
|
412
|
+
method: "GET",
|
|
413
|
+
headers,
|
|
414
|
+
path: resolvedPath,
|
|
415
|
+
body,
|
|
416
|
+
});
|
|
417
|
+
};
|
|
418
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
419
|
+
const se_StartIngestionCommand = async (input, context) => {
|
|
420
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
421
|
+
const headers = {};
|
|
422
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
423
|
+
"/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/start";
|
|
424
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
425
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
426
|
+
let body;
|
|
427
|
+
return new protocol_http_1.HttpRequest({
|
|
428
|
+
protocol,
|
|
429
|
+
hostname,
|
|
430
|
+
port,
|
|
431
|
+
method: "POST",
|
|
432
|
+
headers,
|
|
433
|
+
path: resolvedPath,
|
|
434
|
+
body,
|
|
435
|
+
});
|
|
436
|
+
};
|
|
437
|
+
exports.se_StartIngestionCommand = se_StartIngestionCommand;
|
|
438
|
+
const se_StartUserAccessTasksCommand = async (input, context) => {
|
|
439
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
440
|
+
const headers = {
|
|
441
|
+
"content-type": "application/json",
|
|
442
|
+
};
|
|
443
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/useraccess/start";
|
|
444
|
+
let body;
|
|
445
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
446
|
+
appBundleIdentifier: [],
|
|
447
|
+
email: [],
|
|
448
|
+
}));
|
|
449
|
+
return new protocol_http_1.HttpRequest({
|
|
450
|
+
protocol,
|
|
451
|
+
hostname,
|
|
452
|
+
port,
|
|
453
|
+
method: "POST",
|
|
454
|
+
headers,
|
|
455
|
+
path: resolvedPath,
|
|
456
|
+
body,
|
|
457
|
+
});
|
|
458
|
+
};
|
|
459
|
+
exports.se_StartUserAccessTasksCommand = se_StartUserAccessTasksCommand;
|
|
460
|
+
const se_StopIngestionCommand = async (input, context) => {
|
|
461
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
462
|
+
const headers = {};
|
|
463
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
464
|
+
"/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/stop";
|
|
465
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
466
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
467
|
+
let body;
|
|
468
|
+
return new protocol_http_1.HttpRequest({
|
|
469
|
+
protocol,
|
|
470
|
+
hostname,
|
|
471
|
+
port,
|
|
472
|
+
method: "POST",
|
|
473
|
+
headers,
|
|
474
|
+
path: resolvedPath,
|
|
475
|
+
body,
|
|
476
|
+
});
|
|
477
|
+
};
|
|
478
|
+
exports.se_StopIngestionCommand = se_StopIngestionCommand;
|
|
479
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
480
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
481
|
+
const headers = {
|
|
482
|
+
"content-type": "application/json",
|
|
483
|
+
};
|
|
484
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
485
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
486
|
+
let body;
|
|
487
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
488
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
489
|
+
}));
|
|
490
|
+
return new protocol_http_1.HttpRequest({
|
|
491
|
+
protocol,
|
|
492
|
+
hostname,
|
|
493
|
+
port,
|
|
494
|
+
method: "POST",
|
|
495
|
+
headers,
|
|
496
|
+
path: resolvedPath,
|
|
497
|
+
body,
|
|
498
|
+
});
|
|
499
|
+
};
|
|
500
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
501
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
502
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
503
|
+
const headers = {};
|
|
504
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
505
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
506
|
+
const query = (0, smithy_client_1.map)({
|
|
507
|
+
tagKeys: [
|
|
508
|
+
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
509
|
+
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
510
|
+
],
|
|
511
|
+
});
|
|
512
|
+
let body;
|
|
513
|
+
return new protocol_http_1.HttpRequest({
|
|
514
|
+
protocol,
|
|
515
|
+
hostname,
|
|
516
|
+
port,
|
|
517
|
+
method: "DELETE",
|
|
518
|
+
headers,
|
|
519
|
+
path: resolvedPath,
|
|
520
|
+
query,
|
|
521
|
+
body,
|
|
522
|
+
});
|
|
523
|
+
};
|
|
524
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
525
|
+
const se_UpdateAppAuthorizationCommand = async (input, context) => {
|
|
526
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
527
|
+
const headers = {
|
|
528
|
+
"content-type": "application/json",
|
|
529
|
+
};
|
|
530
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
531
|
+
"/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}";
|
|
532
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
533
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
534
|
+
let body;
|
|
535
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
536
|
+
credential: (_) => (0, smithy_client_1._json)(_),
|
|
537
|
+
tenant: (_) => (0, smithy_client_1._json)(_),
|
|
538
|
+
}));
|
|
539
|
+
return new protocol_http_1.HttpRequest({
|
|
540
|
+
protocol,
|
|
541
|
+
hostname,
|
|
542
|
+
port,
|
|
543
|
+
method: "PATCH",
|
|
544
|
+
headers,
|
|
545
|
+
path: resolvedPath,
|
|
546
|
+
body,
|
|
547
|
+
});
|
|
548
|
+
};
|
|
549
|
+
exports.se_UpdateAppAuthorizationCommand = se_UpdateAppAuthorizationCommand;
|
|
550
|
+
const se_UpdateIngestionDestinationCommand = async (input, context) => {
|
|
551
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
552
|
+
const headers = {
|
|
553
|
+
"content-type": "application/json",
|
|
554
|
+
};
|
|
555
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
556
|
+
"/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}";
|
|
557
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
558
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
559
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
|
|
560
|
+
let body;
|
|
561
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
562
|
+
destinationConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
563
|
+
}));
|
|
564
|
+
return new protocol_http_1.HttpRequest({
|
|
565
|
+
protocol,
|
|
566
|
+
hostname,
|
|
567
|
+
port,
|
|
568
|
+
method: "PATCH",
|
|
569
|
+
headers,
|
|
570
|
+
path: resolvedPath,
|
|
571
|
+
body,
|
|
572
|
+
});
|
|
573
|
+
};
|
|
574
|
+
exports.se_UpdateIngestionDestinationCommand = se_UpdateIngestionDestinationCommand;
|
|
575
|
+
const de_BatchGetUserAccessTasksCommand = async (output, context) => {
|
|
576
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
577
|
+
return de_BatchGetUserAccessTasksCommandError(output, context);
|
|
578
|
+
}
|
|
579
|
+
const contents = (0, smithy_client_1.map)({
|
|
580
|
+
$metadata: deserializeMetadata(output),
|
|
581
|
+
});
|
|
582
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
583
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
584
|
+
userAccessResultsList: smithy_client_1._json,
|
|
585
|
+
});
|
|
586
|
+
Object.assign(contents, doc);
|
|
587
|
+
return contents;
|
|
588
|
+
};
|
|
589
|
+
exports.de_BatchGetUserAccessTasksCommand = de_BatchGetUserAccessTasksCommand;
|
|
590
|
+
const de_BatchGetUserAccessTasksCommandError = async (output, context) => {
|
|
591
|
+
const parsedOutput = {
|
|
592
|
+
...output,
|
|
593
|
+
body: await parseErrorBody(output.body, context),
|
|
594
|
+
};
|
|
595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
|
+
switch (errorCode) {
|
|
597
|
+
case "AccessDeniedException":
|
|
598
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
599
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
600
|
+
case "InternalServerException":
|
|
601
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
602
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
603
|
+
case "ResourceNotFoundException":
|
|
604
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
605
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
606
|
+
case "ThrottlingException":
|
|
607
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
608
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
609
|
+
case "ValidationException":
|
|
610
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
611
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
612
|
+
default:
|
|
613
|
+
const parsedBody = parsedOutput.body;
|
|
614
|
+
return throwDefaultError({
|
|
615
|
+
output,
|
|
616
|
+
parsedBody,
|
|
617
|
+
errorCode,
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
const de_ConnectAppAuthorizationCommand = async (output, context) => {
|
|
622
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
623
|
+
return de_ConnectAppAuthorizationCommandError(output, context);
|
|
624
|
+
}
|
|
625
|
+
const contents = (0, smithy_client_1.map)({
|
|
626
|
+
$metadata: deserializeMetadata(output),
|
|
627
|
+
});
|
|
628
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
629
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
630
|
+
appAuthorizationSummary: (_) => de_AppAuthorizationSummary(_, context),
|
|
631
|
+
});
|
|
632
|
+
Object.assign(contents, doc);
|
|
633
|
+
return contents;
|
|
634
|
+
};
|
|
635
|
+
exports.de_ConnectAppAuthorizationCommand = de_ConnectAppAuthorizationCommand;
|
|
636
|
+
const de_ConnectAppAuthorizationCommandError = async (output, context) => {
|
|
637
|
+
const parsedOutput = {
|
|
638
|
+
...output,
|
|
639
|
+
body: await parseErrorBody(output.body, context),
|
|
640
|
+
};
|
|
641
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
|
+
switch (errorCode) {
|
|
643
|
+
case "AccessDeniedException":
|
|
644
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
645
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
646
|
+
case "InternalServerException":
|
|
647
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
648
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
649
|
+
case "ResourceNotFoundException":
|
|
650
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
651
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
652
|
+
case "ThrottlingException":
|
|
653
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
654
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
655
|
+
case "ValidationException":
|
|
656
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
657
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
658
|
+
default:
|
|
659
|
+
const parsedBody = parsedOutput.body;
|
|
660
|
+
return throwDefaultError({
|
|
661
|
+
output,
|
|
662
|
+
parsedBody,
|
|
663
|
+
errorCode,
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
const de_CreateAppAuthorizationCommand = async (output, context) => {
|
|
668
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
669
|
+
return de_CreateAppAuthorizationCommandError(output, context);
|
|
670
|
+
}
|
|
671
|
+
const contents = (0, smithy_client_1.map)({
|
|
672
|
+
$metadata: deserializeMetadata(output),
|
|
673
|
+
});
|
|
674
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
675
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
676
|
+
appAuthorization: (_) => de_AppAuthorization(_, context),
|
|
677
|
+
});
|
|
678
|
+
Object.assign(contents, doc);
|
|
679
|
+
return contents;
|
|
680
|
+
};
|
|
681
|
+
exports.de_CreateAppAuthorizationCommand = de_CreateAppAuthorizationCommand;
|
|
682
|
+
const de_CreateAppAuthorizationCommandError = async (output, context) => {
|
|
683
|
+
const parsedOutput = {
|
|
684
|
+
...output,
|
|
685
|
+
body: await parseErrorBody(output.body, context),
|
|
686
|
+
};
|
|
687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
|
+
switch (errorCode) {
|
|
689
|
+
case "AccessDeniedException":
|
|
690
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
691
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
692
|
+
case "ConflictException":
|
|
693
|
+
case "com.amazonaws.appfabric#ConflictException":
|
|
694
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
695
|
+
case "InternalServerException":
|
|
696
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
697
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
698
|
+
case "ResourceNotFoundException":
|
|
699
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
700
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
701
|
+
case "ServiceQuotaExceededException":
|
|
702
|
+
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
703
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
704
|
+
case "ThrottlingException":
|
|
705
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
706
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
707
|
+
case "ValidationException":
|
|
708
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
709
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
710
|
+
default:
|
|
711
|
+
const parsedBody = parsedOutput.body;
|
|
712
|
+
return throwDefaultError({
|
|
713
|
+
output,
|
|
714
|
+
parsedBody,
|
|
715
|
+
errorCode,
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
const de_CreateAppBundleCommand = async (output, context) => {
|
|
720
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
721
|
+
return de_CreateAppBundleCommandError(output, context);
|
|
722
|
+
}
|
|
723
|
+
const contents = (0, smithy_client_1.map)({
|
|
724
|
+
$metadata: deserializeMetadata(output),
|
|
725
|
+
});
|
|
726
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
727
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
728
|
+
appBundle: smithy_client_1._json,
|
|
729
|
+
});
|
|
730
|
+
Object.assign(contents, doc);
|
|
731
|
+
return contents;
|
|
732
|
+
};
|
|
733
|
+
exports.de_CreateAppBundleCommand = de_CreateAppBundleCommand;
|
|
734
|
+
const de_CreateAppBundleCommandError = async (output, context) => {
|
|
735
|
+
const parsedOutput = {
|
|
736
|
+
...output,
|
|
737
|
+
body: await parseErrorBody(output.body, context),
|
|
738
|
+
};
|
|
739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
|
+
switch (errorCode) {
|
|
741
|
+
case "AccessDeniedException":
|
|
742
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
743
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
744
|
+
case "ConflictException":
|
|
745
|
+
case "com.amazonaws.appfabric#ConflictException":
|
|
746
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
747
|
+
case "InternalServerException":
|
|
748
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
749
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
750
|
+
case "ServiceQuotaExceededException":
|
|
751
|
+
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
752
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
753
|
+
case "ThrottlingException":
|
|
754
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
755
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
756
|
+
case "ValidationException":
|
|
757
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
758
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
759
|
+
default:
|
|
760
|
+
const parsedBody = parsedOutput.body;
|
|
761
|
+
return throwDefaultError({
|
|
762
|
+
output,
|
|
763
|
+
parsedBody,
|
|
764
|
+
errorCode,
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
const de_CreateIngestionCommand = async (output, context) => {
|
|
769
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
770
|
+
return de_CreateIngestionCommandError(output, context);
|
|
771
|
+
}
|
|
772
|
+
const contents = (0, smithy_client_1.map)({
|
|
773
|
+
$metadata: deserializeMetadata(output),
|
|
774
|
+
});
|
|
775
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
776
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
777
|
+
ingestion: (_) => de_Ingestion(_, context),
|
|
778
|
+
});
|
|
779
|
+
Object.assign(contents, doc);
|
|
780
|
+
return contents;
|
|
781
|
+
};
|
|
782
|
+
exports.de_CreateIngestionCommand = de_CreateIngestionCommand;
|
|
783
|
+
const de_CreateIngestionCommandError = async (output, context) => {
|
|
784
|
+
const parsedOutput = {
|
|
785
|
+
...output,
|
|
786
|
+
body: await parseErrorBody(output.body, context),
|
|
787
|
+
};
|
|
788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
+
switch (errorCode) {
|
|
790
|
+
case "AccessDeniedException":
|
|
791
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
792
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
793
|
+
case "ConflictException":
|
|
794
|
+
case "com.amazonaws.appfabric#ConflictException":
|
|
795
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
796
|
+
case "InternalServerException":
|
|
797
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
798
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
799
|
+
case "ServiceQuotaExceededException":
|
|
800
|
+
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
801
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
802
|
+
case "ThrottlingException":
|
|
803
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
804
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
805
|
+
case "ValidationException":
|
|
806
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
807
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
808
|
+
default:
|
|
809
|
+
const parsedBody = parsedOutput.body;
|
|
810
|
+
return throwDefaultError({
|
|
811
|
+
output,
|
|
812
|
+
parsedBody,
|
|
813
|
+
errorCode,
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
|
+
const de_CreateIngestionDestinationCommand = async (output, context) => {
|
|
818
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
819
|
+
return de_CreateIngestionDestinationCommandError(output, context);
|
|
820
|
+
}
|
|
821
|
+
const contents = (0, smithy_client_1.map)({
|
|
822
|
+
$metadata: deserializeMetadata(output),
|
|
823
|
+
});
|
|
824
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
825
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
826
|
+
ingestionDestination: (_) => de_IngestionDestination(_, context),
|
|
827
|
+
});
|
|
828
|
+
Object.assign(contents, doc);
|
|
829
|
+
return contents;
|
|
830
|
+
};
|
|
831
|
+
exports.de_CreateIngestionDestinationCommand = de_CreateIngestionDestinationCommand;
|
|
832
|
+
const de_CreateIngestionDestinationCommandError = async (output, context) => {
|
|
833
|
+
const parsedOutput = {
|
|
834
|
+
...output,
|
|
835
|
+
body: await parseErrorBody(output.body, context),
|
|
836
|
+
};
|
|
837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
|
+
switch (errorCode) {
|
|
839
|
+
case "AccessDeniedException":
|
|
840
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
841
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
842
|
+
case "ConflictException":
|
|
843
|
+
case "com.amazonaws.appfabric#ConflictException":
|
|
844
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
845
|
+
case "InternalServerException":
|
|
846
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
847
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
848
|
+
case "ServiceQuotaExceededException":
|
|
849
|
+
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
850
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
851
|
+
case "ThrottlingException":
|
|
852
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
853
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
854
|
+
case "ValidationException":
|
|
855
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
856
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
857
|
+
default:
|
|
858
|
+
const parsedBody = parsedOutput.body;
|
|
859
|
+
return throwDefaultError({
|
|
860
|
+
output,
|
|
861
|
+
parsedBody,
|
|
862
|
+
errorCode,
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
const de_DeleteAppAuthorizationCommand = async (output, context) => {
|
|
867
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
868
|
+
return de_DeleteAppAuthorizationCommandError(output, context);
|
|
869
|
+
}
|
|
870
|
+
const contents = (0, smithy_client_1.map)({
|
|
871
|
+
$metadata: deserializeMetadata(output),
|
|
872
|
+
});
|
|
873
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
874
|
+
return contents;
|
|
875
|
+
};
|
|
876
|
+
exports.de_DeleteAppAuthorizationCommand = de_DeleteAppAuthorizationCommand;
|
|
877
|
+
const de_DeleteAppAuthorizationCommandError = async (output, context) => {
|
|
878
|
+
const parsedOutput = {
|
|
879
|
+
...output,
|
|
880
|
+
body: await parseErrorBody(output.body, context),
|
|
881
|
+
};
|
|
882
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
|
+
switch (errorCode) {
|
|
884
|
+
case "AccessDeniedException":
|
|
885
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
886
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
887
|
+
case "InternalServerException":
|
|
888
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
889
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
890
|
+
case "ResourceNotFoundException":
|
|
891
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
892
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
893
|
+
case "ThrottlingException":
|
|
894
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
895
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
896
|
+
case "ValidationException":
|
|
897
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
898
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
899
|
+
default:
|
|
900
|
+
const parsedBody = parsedOutput.body;
|
|
901
|
+
return throwDefaultError({
|
|
902
|
+
output,
|
|
903
|
+
parsedBody,
|
|
904
|
+
errorCode,
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
const de_DeleteAppBundleCommand = async (output, context) => {
|
|
909
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
910
|
+
return de_DeleteAppBundleCommandError(output, context);
|
|
911
|
+
}
|
|
912
|
+
const contents = (0, smithy_client_1.map)({
|
|
913
|
+
$metadata: deserializeMetadata(output),
|
|
914
|
+
});
|
|
915
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
916
|
+
return contents;
|
|
917
|
+
};
|
|
918
|
+
exports.de_DeleteAppBundleCommand = de_DeleteAppBundleCommand;
|
|
919
|
+
const de_DeleteAppBundleCommandError = async (output, context) => {
|
|
920
|
+
const parsedOutput = {
|
|
921
|
+
...output,
|
|
922
|
+
body: await parseErrorBody(output.body, context),
|
|
923
|
+
};
|
|
924
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
+
switch (errorCode) {
|
|
926
|
+
case "AccessDeniedException":
|
|
927
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
928
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
929
|
+
case "ConflictException":
|
|
930
|
+
case "com.amazonaws.appfabric#ConflictException":
|
|
931
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
932
|
+
case "InternalServerException":
|
|
933
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
934
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
935
|
+
case "ThrottlingException":
|
|
936
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
937
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
938
|
+
case "ValidationException":
|
|
939
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
940
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
941
|
+
default:
|
|
942
|
+
const parsedBody = parsedOutput.body;
|
|
943
|
+
return throwDefaultError({
|
|
944
|
+
output,
|
|
945
|
+
parsedBody,
|
|
946
|
+
errorCode,
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
const de_DeleteIngestionCommand = async (output, context) => {
|
|
951
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
952
|
+
return de_DeleteIngestionCommandError(output, context);
|
|
953
|
+
}
|
|
954
|
+
const contents = (0, smithy_client_1.map)({
|
|
955
|
+
$metadata: deserializeMetadata(output),
|
|
956
|
+
});
|
|
957
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
958
|
+
return contents;
|
|
959
|
+
};
|
|
960
|
+
exports.de_DeleteIngestionCommand = de_DeleteIngestionCommand;
|
|
961
|
+
const de_DeleteIngestionCommandError = async (output, context) => {
|
|
962
|
+
const parsedOutput = {
|
|
963
|
+
...output,
|
|
964
|
+
body: await parseErrorBody(output.body, context),
|
|
965
|
+
};
|
|
966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
|
+
switch (errorCode) {
|
|
968
|
+
case "AccessDeniedException":
|
|
969
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
970
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
971
|
+
case "InternalServerException":
|
|
972
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
973
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
974
|
+
case "ResourceNotFoundException":
|
|
975
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
976
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
977
|
+
case "ThrottlingException":
|
|
978
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
979
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
980
|
+
case "ValidationException":
|
|
981
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
982
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
983
|
+
default:
|
|
984
|
+
const parsedBody = parsedOutput.body;
|
|
985
|
+
return throwDefaultError({
|
|
986
|
+
output,
|
|
987
|
+
parsedBody,
|
|
988
|
+
errorCode,
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
};
|
|
992
|
+
const de_DeleteIngestionDestinationCommand = async (output, context) => {
|
|
993
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
994
|
+
return de_DeleteIngestionDestinationCommandError(output, context);
|
|
995
|
+
}
|
|
996
|
+
const contents = (0, smithy_client_1.map)({
|
|
997
|
+
$metadata: deserializeMetadata(output),
|
|
998
|
+
});
|
|
999
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1000
|
+
return contents;
|
|
1001
|
+
};
|
|
1002
|
+
exports.de_DeleteIngestionDestinationCommand = de_DeleteIngestionDestinationCommand;
|
|
1003
|
+
const de_DeleteIngestionDestinationCommandError = async (output, context) => {
|
|
1004
|
+
const parsedOutput = {
|
|
1005
|
+
...output,
|
|
1006
|
+
body: await parseErrorBody(output.body, context),
|
|
1007
|
+
};
|
|
1008
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
+
switch (errorCode) {
|
|
1010
|
+
case "AccessDeniedException":
|
|
1011
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1012
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
+
case "InternalServerException":
|
|
1014
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1015
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1016
|
+
case "ResourceNotFoundException":
|
|
1017
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1018
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1019
|
+
case "ThrottlingException":
|
|
1020
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1021
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1022
|
+
case "ValidationException":
|
|
1023
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1024
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1025
|
+
default:
|
|
1026
|
+
const parsedBody = parsedOutput.body;
|
|
1027
|
+
return throwDefaultError({
|
|
1028
|
+
output,
|
|
1029
|
+
parsedBody,
|
|
1030
|
+
errorCode,
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
const de_GetAppAuthorizationCommand = async (output, context) => {
|
|
1035
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1036
|
+
return de_GetAppAuthorizationCommandError(output, context);
|
|
1037
|
+
}
|
|
1038
|
+
const contents = (0, smithy_client_1.map)({
|
|
1039
|
+
$metadata: deserializeMetadata(output),
|
|
1040
|
+
});
|
|
1041
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1042
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1043
|
+
appAuthorization: (_) => de_AppAuthorization(_, context),
|
|
1044
|
+
});
|
|
1045
|
+
Object.assign(contents, doc);
|
|
1046
|
+
return contents;
|
|
1047
|
+
};
|
|
1048
|
+
exports.de_GetAppAuthorizationCommand = de_GetAppAuthorizationCommand;
|
|
1049
|
+
const de_GetAppAuthorizationCommandError = async (output, context) => {
|
|
1050
|
+
const parsedOutput = {
|
|
1051
|
+
...output,
|
|
1052
|
+
body: await parseErrorBody(output.body, context),
|
|
1053
|
+
};
|
|
1054
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
|
+
switch (errorCode) {
|
|
1056
|
+
case "AccessDeniedException":
|
|
1057
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1058
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1059
|
+
case "InternalServerException":
|
|
1060
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1061
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1062
|
+
case "ResourceNotFoundException":
|
|
1063
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1064
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1065
|
+
case "ThrottlingException":
|
|
1066
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1067
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1068
|
+
case "ValidationException":
|
|
1069
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1070
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1071
|
+
default:
|
|
1072
|
+
const parsedBody = parsedOutput.body;
|
|
1073
|
+
return throwDefaultError({
|
|
1074
|
+
output,
|
|
1075
|
+
parsedBody,
|
|
1076
|
+
errorCode,
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
const de_GetAppBundleCommand = async (output, context) => {
|
|
1081
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1082
|
+
return de_GetAppBundleCommandError(output, context);
|
|
1083
|
+
}
|
|
1084
|
+
const contents = (0, smithy_client_1.map)({
|
|
1085
|
+
$metadata: deserializeMetadata(output),
|
|
1086
|
+
});
|
|
1087
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1088
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1089
|
+
appBundle: smithy_client_1._json,
|
|
1090
|
+
});
|
|
1091
|
+
Object.assign(contents, doc);
|
|
1092
|
+
return contents;
|
|
1093
|
+
};
|
|
1094
|
+
exports.de_GetAppBundleCommand = de_GetAppBundleCommand;
|
|
1095
|
+
const de_GetAppBundleCommandError = async (output, context) => {
|
|
1096
|
+
const parsedOutput = {
|
|
1097
|
+
...output,
|
|
1098
|
+
body: await parseErrorBody(output.body, context),
|
|
1099
|
+
};
|
|
1100
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
+
switch (errorCode) {
|
|
1102
|
+
case "AccessDeniedException":
|
|
1103
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1104
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1105
|
+
case "InternalServerException":
|
|
1106
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1107
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1108
|
+
case "ResourceNotFoundException":
|
|
1109
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1110
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1111
|
+
case "ThrottlingException":
|
|
1112
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1113
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1114
|
+
case "ValidationException":
|
|
1115
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1116
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
|
+
default:
|
|
1118
|
+
const parsedBody = parsedOutput.body;
|
|
1119
|
+
return throwDefaultError({
|
|
1120
|
+
output,
|
|
1121
|
+
parsedBody,
|
|
1122
|
+
errorCode,
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
};
|
|
1126
|
+
const de_GetIngestionCommand = async (output, context) => {
|
|
1127
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1128
|
+
return de_GetIngestionCommandError(output, context);
|
|
1129
|
+
}
|
|
1130
|
+
const contents = (0, smithy_client_1.map)({
|
|
1131
|
+
$metadata: deserializeMetadata(output),
|
|
1132
|
+
});
|
|
1133
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1134
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1135
|
+
ingestion: (_) => de_Ingestion(_, context),
|
|
1136
|
+
});
|
|
1137
|
+
Object.assign(contents, doc);
|
|
1138
|
+
return contents;
|
|
1139
|
+
};
|
|
1140
|
+
exports.de_GetIngestionCommand = de_GetIngestionCommand;
|
|
1141
|
+
const de_GetIngestionCommandError = async (output, context) => {
|
|
1142
|
+
const parsedOutput = {
|
|
1143
|
+
...output,
|
|
1144
|
+
body: await parseErrorBody(output.body, context),
|
|
1145
|
+
};
|
|
1146
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
+
switch (errorCode) {
|
|
1148
|
+
case "AccessDeniedException":
|
|
1149
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1150
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1151
|
+
case "InternalServerException":
|
|
1152
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1153
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1154
|
+
case "ResourceNotFoundException":
|
|
1155
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1156
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1157
|
+
case "ThrottlingException":
|
|
1158
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1159
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1160
|
+
case "ValidationException":
|
|
1161
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1162
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1163
|
+
default:
|
|
1164
|
+
const parsedBody = parsedOutput.body;
|
|
1165
|
+
return throwDefaultError({
|
|
1166
|
+
output,
|
|
1167
|
+
parsedBody,
|
|
1168
|
+
errorCode,
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
const de_GetIngestionDestinationCommand = async (output, context) => {
|
|
1173
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1174
|
+
return de_GetIngestionDestinationCommandError(output, context);
|
|
1175
|
+
}
|
|
1176
|
+
const contents = (0, smithy_client_1.map)({
|
|
1177
|
+
$metadata: deserializeMetadata(output),
|
|
1178
|
+
});
|
|
1179
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1180
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1181
|
+
ingestionDestination: (_) => de_IngestionDestination(_, context),
|
|
1182
|
+
});
|
|
1183
|
+
Object.assign(contents, doc);
|
|
1184
|
+
return contents;
|
|
1185
|
+
};
|
|
1186
|
+
exports.de_GetIngestionDestinationCommand = de_GetIngestionDestinationCommand;
|
|
1187
|
+
const de_GetIngestionDestinationCommandError = async (output, context) => {
|
|
1188
|
+
const parsedOutput = {
|
|
1189
|
+
...output,
|
|
1190
|
+
body: await parseErrorBody(output.body, context),
|
|
1191
|
+
};
|
|
1192
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
|
+
switch (errorCode) {
|
|
1194
|
+
case "AccessDeniedException":
|
|
1195
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1196
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1197
|
+
case "InternalServerException":
|
|
1198
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1199
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1200
|
+
case "ResourceNotFoundException":
|
|
1201
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1202
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1203
|
+
case "ThrottlingException":
|
|
1204
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1205
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1206
|
+
case "ValidationException":
|
|
1207
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1208
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1209
|
+
default:
|
|
1210
|
+
const parsedBody = parsedOutput.body;
|
|
1211
|
+
return throwDefaultError({
|
|
1212
|
+
output,
|
|
1213
|
+
parsedBody,
|
|
1214
|
+
errorCode,
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
};
|
|
1218
|
+
const de_ListAppAuthorizationsCommand = async (output, context) => {
|
|
1219
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1220
|
+
return de_ListAppAuthorizationsCommandError(output, context);
|
|
1221
|
+
}
|
|
1222
|
+
const contents = (0, smithy_client_1.map)({
|
|
1223
|
+
$metadata: deserializeMetadata(output),
|
|
1224
|
+
});
|
|
1225
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1226
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1227
|
+
appAuthorizationSummaryList: (_) => de_AppAuthorizationSummaryList(_, context),
|
|
1228
|
+
nextToken: smithy_client_1.expectString,
|
|
1229
|
+
});
|
|
1230
|
+
Object.assign(contents, doc);
|
|
1231
|
+
return contents;
|
|
1232
|
+
};
|
|
1233
|
+
exports.de_ListAppAuthorizationsCommand = de_ListAppAuthorizationsCommand;
|
|
1234
|
+
const de_ListAppAuthorizationsCommandError = async (output, context) => {
|
|
1235
|
+
const parsedOutput = {
|
|
1236
|
+
...output,
|
|
1237
|
+
body: await parseErrorBody(output.body, context),
|
|
1238
|
+
};
|
|
1239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
|
+
switch (errorCode) {
|
|
1241
|
+
case "AccessDeniedException":
|
|
1242
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1243
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1244
|
+
case "InternalServerException":
|
|
1245
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1246
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1247
|
+
case "ResourceNotFoundException":
|
|
1248
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1249
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
|
+
case "ThrottlingException":
|
|
1251
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1252
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1253
|
+
case "ValidationException":
|
|
1254
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1255
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1256
|
+
default:
|
|
1257
|
+
const parsedBody = parsedOutput.body;
|
|
1258
|
+
return throwDefaultError({
|
|
1259
|
+
output,
|
|
1260
|
+
parsedBody,
|
|
1261
|
+
errorCode,
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1265
|
+
const de_ListAppBundlesCommand = async (output, context) => {
|
|
1266
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
|
+
return de_ListAppBundlesCommandError(output, context);
|
|
1268
|
+
}
|
|
1269
|
+
const contents = (0, smithy_client_1.map)({
|
|
1270
|
+
$metadata: deserializeMetadata(output),
|
|
1271
|
+
});
|
|
1272
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1273
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1274
|
+
appBundleSummaryList: smithy_client_1._json,
|
|
1275
|
+
nextToken: smithy_client_1.expectString,
|
|
1276
|
+
});
|
|
1277
|
+
Object.assign(contents, doc);
|
|
1278
|
+
return contents;
|
|
1279
|
+
};
|
|
1280
|
+
exports.de_ListAppBundlesCommand = de_ListAppBundlesCommand;
|
|
1281
|
+
const de_ListAppBundlesCommandError = async (output, context) => {
|
|
1282
|
+
const parsedOutput = {
|
|
1283
|
+
...output,
|
|
1284
|
+
body: await parseErrorBody(output.body, context),
|
|
1285
|
+
};
|
|
1286
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
|
+
switch (errorCode) {
|
|
1288
|
+
case "AccessDeniedException":
|
|
1289
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1290
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1291
|
+
case "InternalServerException":
|
|
1292
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1293
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1294
|
+
case "ThrottlingException":
|
|
1295
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1296
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1297
|
+
case "ValidationException":
|
|
1298
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1299
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1300
|
+
default:
|
|
1301
|
+
const parsedBody = parsedOutput.body;
|
|
1302
|
+
return throwDefaultError({
|
|
1303
|
+
output,
|
|
1304
|
+
parsedBody,
|
|
1305
|
+
errorCode,
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
};
|
|
1309
|
+
const de_ListIngestionDestinationsCommand = async (output, context) => {
|
|
1310
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1311
|
+
return de_ListIngestionDestinationsCommandError(output, context);
|
|
1312
|
+
}
|
|
1313
|
+
const contents = (0, smithy_client_1.map)({
|
|
1314
|
+
$metadata: deserializeMetadata(output),
|
|
1315
|
+
});
|
|
1316
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1317
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1318
|
+
ingestionDestinations: smithy_client_1._json,
|
|
1319
|
+
nextToken: smithy_client_1.expectString,
|
|
1320
|
+
});
|
|
1321
|
+
Object.assign(contents, doc);
|
|
1322
|
+
return contents;
|
|
1323
|
+
};
|
|
1324
|
+
exports.de_ListIngestionDestinationsCommand = de_ListIngestionDestinationsCommand;
|
|
1325
|
+
const de_ListIngestionDestinationsCommandError = async (output, context) => {
|
|
1326
|
+
const parsedOutput = {
|
|
1327
|
+
...output,
|
|
1328
|
+
body: await parseErrorBody(output.body, context),
|
|
1329
|
+
};
|
|
1330
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
|
+
switch (errorCode) {
|
|
1332
|
+
case "AccessDeniedException":
|
|
1333
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1334
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1335
|
+
case "InternalServerException":
|
|
1336
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1337
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1338
|
+
case "ResourceNotFoundException":
|
|
1339
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1340
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1341
|
+
case "ThrottlingException":
|
|
1342
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1343
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1344
|
+
case "ValidationException":
|
|
1345
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1346
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1347
|
+
default:
|
|
1348
|
+
const parsedBody = parsedOutput.body;
|
|
1349
|
+
return throwDefaultError({
|
|
1350
|
+
output,
|
|
1351
|
+
parsedBody,
|
|
1352
|
+
errorCode,
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
};
|
|
1356
|
+
const de_ListIngestionsCommand = async (output, context) => {
|
|
1357
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1358
|
+
return de_ListIngestionsCommandError(output, context);
|
|
1359
|
+
}
|
|
1360
|
+
const contents = (0, smithy_client_1.map)({
|
|
1361
|
+
$metadata: deserializeMetadata(output),
|
|
1362
|
+
});
|
|
1363
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1364
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1365
|
+
ingestions: smithy_client_1._json,
|
|
1366
|
+
nextToken: smithy_client_1.expectString,
|
|
1367
|
+
});
|
|
1368
|
+
Object.assign(contents, doc);
|
|
1369
|
+
return contents;
|
|
1370
|
+
};
|
|
1371
|
+
exports.de_ListIngestionsCommand = de_ListIngestionsCommand;
|
|
1372
|
+
const de_ListIngestionsCommandError = async (output, context) => {
|
|
1373
|
+
const parsedOutput = {
|
|
1374
|
+
...output,
|
|
1375
|
+
body: await parseErrorBody(output.body, context),
|
|
1376
|
+
};
|
|
1377
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
+
switch (errorCode) {
|
|
1379
|
+
case "AccessDeniedException":
|
|
1380
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1381
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1382
|
+
case "InternalServerException":
|
|
1383
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1384
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1385
|
+
case "ResourceNotFoundException":
|
|
1386
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1387
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1388
|
+
case "ThrottlingException":
|
|
1389
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1390
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1391
|
+
case "ValidationException":
|
|
1392
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1393
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1394
|
+
default:
|
|
1395
|
+
const parsedBody = parsedOutput.body;
|
|
1396
|
+
return throwDefaultError({
|
|
1397
|
+
output,
|
|
1398
|
+
parsedBody,
|
|
1399
|
+
errorCode,
|
|
1400
|
+
});
|
|
1401
|
+
}
|
|
1402
|
+
};
|
|
1403
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1404
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1405
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1406
|
+
}
|
|
1407
|
+
const contents = (0, smithy_client_1.map)({
|
|
1408
|
+
$metadata: deserializeMetadata(output),
|
|
1409
|
+
});
|
|
1410
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1411
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1412
|
+
tags: smithy_client_1._json,
|
|
1413
|
+
});
|
|
1414
|
+
Object.assign(contents, doc);
|
|
1415
|
+
return contents;
|
|
1416
|
+
};
|
|
1417
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1418
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1419
|
+
const parsedOutput = {
|
|
1420
|
+
...output,
|
|
1421
|
+
body: await parseErrorBody(output.body, context),
|
|
1422
|
+
};
|
|
1423
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
|
+
switch (errorCode) {
|
|
1425
|
+
case "AccessDeniedException":
|
|
1426
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1427
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1428
|
+
case "InternalServerException":
|
|
1429
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1430
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1431
|
+
case "ResourceNotFoundException":
|
|
1432
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1433
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1434
|
+
case "ThrottlingException":
|
|
1435
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1436
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1437
|
+
case "ValidationException":
|
|
1438
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1439
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1440
|
+
default:
|
|
1441
|
+
const parsedBody = parsedOutput.body;
|
|
1442
|
+
return throwDefaultError({
|
|
1443
|
+
output,
|
|
1444
|
+
parsedBody,
|
|
1445
|
+
errorCode,
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1449
|
+
const de_StartIngestionCommand = async (output, context) => {
|
|
1450
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1451
|
+
return de_StartIngestionCommandError(output, context);
|
|
1452
|
+
}
|
|
1453
|
+
const contents = (0, smithy_client_1.map)({
|
|
1454
|
+
$metadata: deserializeMetadata(output),
|
|
1455
|
+
});
|
|
1456
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1457
|
+
return contents;
|
|
1458
|
+
};
|
|
1459
|
+
exports.de_StartIngestionCommand = de_StartIngestionCommand;
|
|
1460
|
+
const de_StartIngestionCommandError = async (output, context) => {
|
|
1461
|
+
const parsedOutput = {
|
|
1462
|
+
...output,
|
|
1463
|
+
body: await parseErrorBody(output.body, context),
|
|
1464
|
+
};
|
|
1465
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
+
switch (errorCode) {
|
|
1467
|
+
case "AccessDeniedException":
|
|
1468
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1469
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1470
|
+
case "ConflictException":
|
|
1471
|
+
case "com.amazonaws.appfabric#ConflictException":
|
|
1472
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1473
|
+
case "InternalServerException":
|
|
1474
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1475
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1476
|
+
case "ResourceNotFoundException":
|
|
1477
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1478
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1479
|
+
case "ThrottlingException":
|
|
1480
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1481
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1482
|
+
case "ValidationException":
|
|
1483
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1484
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1485
|
+
default:
|
|
1486
|
+
const parsedBody = parsedOutput.body;
|
|
1487
|
+
return throwDefaultError({
|
|
1488
|
+
output,
|
|
1489
|
+
parsedBody,
|
|
1490
|
+
errorCode,
|
|
1491
|
+
});
|
|
1492
|
+
}
|
|
1493
|
+
};
|
|
1494
|
+
const de_StartUserAccessTasksCommand = async (output, context) => {
|
|
1495
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1496
|
+
return de_StartUserAccessTasksCommandError(output, context);
|
|
1497
|
+
}
|
|
1498
|
+
const contents = (0, smithy_client_1.map)({
|
|
1499
|
+
$metadata: deserializeMetadata(output),
|
|
1500
|
+
});
|
|
1501
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1502
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1503
|
+
userAccessTasksList: smithy_client_1._json,
|
|
1504
|
+
});
|
|
1505
|
+
Object.assign(contents, doc);
|
|
1506
|
+
return contents;
|
|
1507
|
+
};
|
|
1508
|
+
exports.de_StartUserAccessTasksCommand = de_StartUserAccessTasksCommand;
|
|
1509
|
+
const de_StartUserAccessTasksCommandError = async (output, context) => {
|
|
1510
|
+
const parsedOutput = {
|
|
1511
|
+
...output,
|
|
1512
|
+
body: await parseErrorBody(output.body, context),
|
|
1513
|
+
};
|
|
1514
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
|
+
switch (errorCode) {
|
|
1516
|
+
case "AccessDeniedException":
|
|
1517
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1518
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1519
|
+
case "InternalServerException":
|
|
1520
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1521
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1522
|
+
case "ResourceNotFoundException":
|
|
1523
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1524
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1525
|
+
case "ThrottlingException":
|
|
1526
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1527
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1528
|
+
case "ValidationException":
|
|
1529
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1530
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1531
|
+
default:
|
|
1532
|
+
const parsedBody = parsedOutput.body;
|
|
1533
|
+
return throwDefaultError({
|
|
1534
|
+
output,
|
|
1535
|
+
parsedBody,
|
|
1536
|
+
errorCode,
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
};
|
|
1540
|
+
const de_StopIngestionCommand = async (output, context) => {
|
|
1541
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1542
|
+
return de_StopIngestionCommandError(output, context);
|
|
1543
|
+
}
|
|
1544
|
+
const contents = (0, smithy_client_1.map)({
|
|
1545
|
+
$metadata: deserializeMetadata(output),
|
|
1546
|
+
});
|
|
1547
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1548
|
+
return contents;
|
|
1549
|
+
};
|
|
1550
|
+
exports.de_StopIngestionCommand = de_StopIngestionCommand;
|
|
1551
|
+
const de_StopIngestionCommandError = async (output, context) => {
|
|
1552
|
+
const parsedOutput = {
|
|
1553
|
+
...output,
|
|
1554
|
+
body: await parseErrorBody(output.body, context),
|
|
1555
|
+
};
|
|
1556
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
|
+
switch (errorCode) {
|
|
1558
|
+
case "AccessDeniedException":
|
|
1559
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1560
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1561
|
+
case "ConflictException":
|
|
1562
|
+
case "com.amazonaws.appfabric#ConflictException":
|
|
1563
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1564
|
+
case "InternalServerException":
|
|
1565
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1566
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1567
|
+
case "ResourceNotFoundException":
|
|
1568
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1569
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1570
|
+
case "ThrottlingException":
|
|
1571
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1572
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1573
|
+
case "ValidationException":
|
|
1574
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1575
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1576
|
+
default:
|
|
1577
|
+
const parsedBody = parsedOutput.body;
|
|
1578
|
+
return throwDefaultError({
|
|
1579
|
+
output,
|
|
1580
|
+
parsedBody,
|
|
1581
|
+
errorCode,
|
|
1582
|
+
});
|
|
1583
|
+
}
|
|
1584
|
+
};
|
|
1585
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1586
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1587
|
+
return de_TagResourceCommandError(output, context);
|
|
1588
|
+
}
|
|
1589
|
+
const contents = (0, smithy_client_1.map)({
|
|
1590
|
+
$metadata: deserializeMetadata(output),
|
|
1591
|
+
});
|
|
1592
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1593
|
+
return contents;
|
|
1594
|
+
};
|
|
1595
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1596
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1597
|
+
const parsedOutput = {
|
|
1598
|
+
...output,
|
|
1599
|
+
body: await parseErrorBody(output.body, context),
|
|
1600
|
+
};
|
|
1601
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
|
+
switch (errorCode) {
|
|
1603
|
+
case "AccessDeniedException":
|
|
1604
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1605
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1606
|
+
case "InternalServerException":
|
|
1607
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1608
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1609
|
+
case "ResourceNotFoundException":
|
|
1610
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1611
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1612
|
+
case "ThrottlingException":
|
|
1613
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1614
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1615
|
+
case "ValidationException":
|
|
1616
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1617
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1618
|
+
default:
|
|
1619
|
+
const parsedBody = parsedOutput.body;
|
|
1620
|
+
return throwDefaultError({
|
|
1621
|
+
output,
|
|
1622
|
+
parsedBody,
|
|
1623
|
+
errorCode,
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
};
|
|
1627
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1628
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1629
|
+
return de_UntagResourceCommandError(output, context);
|
|
1630
|
+
}
|
|
1631
|
+
const contents = (0, smithy_client_1.map)({
|
|
1632
|
+
$metadata: deserializeMetadata(output),
|
|
1633
|
+
});
|
|
1634
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1635
|
+
return contents;
|
|
1636
|
+
};
|
|
1637
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1638
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1639
|
+
const parsedOutput = {
|
|
1640
|
+
...output,
|
|
1641
|
+
body: await parseErrorBody(output.body, context),
|
|
1642
|
+
};
|
|
1643
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1644
|
+
switch (errorCode) {
|
|
1645
|
+
case "AccessDeniedException":
|
|
1646
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1647
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1648
|
+
case "InternalServerException":
|
|
1649
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1650
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1651
|
+
case "ResourceNotFoundException":
|
|
1652
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1653
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1654
|
+
case "ThrottlingException":
|
|
1655
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1656
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1657
|
+
case "ValidationException":
|
|
1658
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1659
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1660
|
+
default:
|
|
1661
|
+
const parsedBody = parsedOutput.body;
|
|
1662
|
+
return throwDefaultError({
|
|
1663
|
+
output,
|
|
1664
|
+
parsedBody,
|
|
1665
|
+
errorCode,
|
|
1666
|
+
});
|
|
1667
|
+
}
|
|
1668
|
+
};
|
|
1669
|
+
const de_UpdateAppAuthorizationCommand = async (output, context) => {
|
|
1670
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1671
|
+
return de_UpdateAppAuthorizationCommandError(output, context);
|
|
1672
|
+
}
|
|
1673
|
+
const contents = (0, smithy_client_1.map)({
|
|
1674
|
+
$metadata: deserializeMetadata(output),
|
|
1675
|
+
});
|
|
1676
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1677
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1678
|
+
appAuthorization: (_) => de_AppAuthorization(_, context),
|
|
1679
|
+
});
|
|
1680
|
+
Object.assign(contents, doc);
|
|
1681
|
+
return contents;
|
|
1682
|
+
};
|
|
1683
|
+
exports.de_UpdateAppAuthorizationCommand = de_UpdateAppAuthorizationCommand;
|
|
1684
|
+
const de_UpdateAppAuthorizationCommandError = async (output, context) => {
|
|
1685
|
+
const parsedOutput = {
|
|
1686
|
+
...output,
|
|
1687
|
+
body: await parseErrorBody(output.body, context),
|
|
1688
|
+
};
|
|
1689
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
|
+
switch (errorCode) {
|
|
1691
|
+
case "AccessDeniedException":
|
|
1692
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1693
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1694
|
+
case "InternalServerException":
|
|
1695
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1696
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1697
|
+
case "ResourceNotFoundException":
|
|
1698
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1699
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1700
|
+
case "ThrottlingException":
|
|
1701
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1702
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1703
|
+
case "ValidationException":
|
|
1704
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1705
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1706
|
+
default:
|
|
1707
|
+
const parsedBody = parsedOutput.body;
|
|
1708
|
+
return throwDefaultError({
|
|
1709
|
+
output,
|
|
1710
|
+
parsedBody,
|
|
1711
|
+
errorCode,
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
};
|
|
1715
|
+
const de_UpdateIngestionDestinationCommand = async (output, context) => {
|
|
1716
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1717
|
+
return de_UpdateIngestionDestinationCommandError(output, context);
|
|
1718
|
+
}
|
|
1719
|
+
const contents = (0, smithy_client_1.map)({
|
|
1720
|
+
$metadata: deserializeMetadata(output),
|
|
1721
|
+
});
|
|
1722
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1723
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1724
|
+
ingestionDestination: (_) => de_IngestionDestination(_, context),
|
|
1725
|
+
});
|
|
1726
|
+
Object.assign(contents, doc);
|
|
1727
|
+
return contents;
|
|
1728
|
+
};
|
|
1729
|
+
exports.de_UpdateIngestionDestinationCommand = de_UpdateIngestionDestinationCommand;
|
|
1730
|
+
const de_UpdateIngestionDestinationCommandError = async (output, context) => {
|
|
1731
|
+
const parsedOutput = {
|
|
1732
|
+
...output,
|
|
1733
|
+
body: await parseErrorBody(output.body, context),
|
|
1734
|
+
};
|
|
1735
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
|
+
switch (errorCode) {
|
|
1737
|
+
case "AccessDeniedException":
|
|
1738
|
+
case "com.amazonaws.appfabric#AccessDeniedException":
|
|
1739
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1740
|
+
case "ConflictException":
|
|
1741
|
+
case "com.amazonaws.appfabric#ConflictException":
|
|
1742
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1743
|
+
case "InternalServerException":
|
|
1744
|
+
case "com.amazonaws.appfabric#InternalServerException":
|
|
1745
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1746
|
+
case "ResourceNotFoundException":
|
|
1747
|
+
case "com.amazonaws.appfabric#ResourceNotFoundException":
|
|
1748
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1749
|
+
case "ServiceQuotaExceededException":
|
|
1750
|
+
case "com.amazonaws.appfabric#ServiceQuotaExceededException":
|
|
1751
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1752
|
+
case "ThrottlingException":
|
|
1753
|
+
case "com.amazonaws.appfabric#ThrottlingException":
|
|
1754
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1755
|
+
case "ValidationException":
|
|
1756
|
+
case "com.amazonaws.appfabric#ValidationException":
|
|
1757
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1758
|
+
default:
|
|
1759
|
+
const parsedBody = parsedOutput.body;
|
|
1760
|
+
return throwDefaultError({
|
|
1761
|
+
output,
|
|
1762
|
+
parsedBody,
|
|
1763
|
+
errorCode,
|
|
1764
|
+
});
|
|
1765
|
+
}
|
|
1766
|
+
};
|
|
1767
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(AppFabricServiceException_1.AppFabricServiceException);
|
|
1768
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1769
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1770
|
+
const data = parsedOutput.body;
|
|
1771
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1772
|
+
message: smithy_client_1.expectString,
|
|
1773
|
+
});
|
|
1774
|
+
Object.assign(contents, doc);
|
|
1775
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1776
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1777
|
+
...contents,
|
|
1778
|
+
});
|
|
1779
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1780
|
+
};
|
|
1781
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1782
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1783
|
+
const data = parsedOutput.body;
|
|
1784
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1785
|
+
message: smithy_client_1.expectString,
|
|
1786
|
+
resourceId: smithy_client_1.expectString,
|
|
1787
|
+
resourceType: smithy_client_1.expectString,
|
|
1788
|
+
});
|
|
1789
|
+
Object.assign(contents, doc);
|
|
1790
|
+
const exception = new models_0_1.ConflictException({
|
|
1791
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1792
|
+
...contents,
|
|
1793
|
+
});
|
|
1794
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1795
|
+
};
|
|
1796
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1797
|
+
const contents = (0, smithy_client_1.map)({
|
|
1798
|
+
retryAfterSeconds: [
|
|
1799
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1800
|
+
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1801
|
+
],
|
|
1802
|
+
});
|
|
1803
|
+
const data = parsedOutput.body;
|
|
1804
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1805
|
+
message: smithy_client_1.expectString,
|
|
1806
|
+
});
|
|
1807
|
+
Object.assign(contents, doc);
|
|
1808
|
+
const exception = new models_0_1.InternalServerException({
|
|
1809
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1810
|
+
...contents,
|
|
1811
|
+
});
|
|
1812
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1813
|
+
};
|
|
1814
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1815
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1816
|
+
const data = parsedOutput.body;
|
|
1817
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1818
|
+
message: smithy_client_1.expectString,
|
|
1819
|
+
resourceId: smithy_client_1.expectString,
|
|
1820
|
+
resourceType: smithy_client_1.expectString,
|
|
1821
|
+
});
|
|
1822
|
+
Object.assign(contents, doc);
|
|
1823
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1824
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1825
|
+
...contents,
|
|
1826
|
+
});
|
|
1827
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1828
|
+
};
|
|
1829
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1830
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1831
|
+
const data = parsedOutput.body;
|
|
1832
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1833
|
+
message: smithy_client_1.expectString,
|
|
1834
|
+
quotaCode: smithy_client_1.expectString,
|
|
1835
|
+
resourceId: smithy_client_1.expectString,
|
|
1836
|
+
resourceType: smithy_client_1.expectString,
|
|
1837
|
+
serviceCode: smithy_client_1.expectString,
|
|
1838
|
+
});
|
|
1839
|
+
Object.assign(contents, doc);
|
|
1840
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1841
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1842
|
+
...contents,
|
|
1843
|
+
});
|
|
1844
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1845
|
+
};
|
|
1846
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1847
|
+
const contents = (0, smithy_client_1.map)({
|
|
1848
|
+
retryAfterSeconds: [
|
|
1849
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1850
|
+
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1851
|
+
],
|
|
1852
|
+
});
|
|
1853
|
+
const data = parsedOutput.body;
|
|
1854
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1855
|
+
message: smithy_client_1.expectString,
|
|
1856
|
+
quotaCode: smithy_client_1.expectString,
|
|
1857
|
+
serviceCode: smithy_client_1.expectString,
|
|
1858
|
+
});
|
|
1859
|
+
Object.assign(contents, doc);
|
|
1860
|
+
const exception = new models_0_1.ThrottlingException({
|
|
1861
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1862
|
+
...contents,
|
|
1863
|
+
});
|
|
1864
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1865
|
+
};
|
|
1866
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1867
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1868
|
+
const data = parsedOutput.body;
|
|
1869
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1870
|
+
fieldList: smithy_client_1._json,
|
|
1871
|
+
message: smithy_client_1.expectString,
|
|
1872
|
+
reason: smithy_client_1.expectString,
|
|
1873
|
+
});
|
|
1874
|
+
Object.assign(contents, doc);
|
|
1875
|
+
const exception = new models_0_1.ValidationException({
|
|
1876
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1877
|
+
...contents,
|
|
1878
|
+
});
|
|
1879
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1880
|
+
};
|
|
1881
|
+
const de_AppAuthorization = (output, context) => {
|
|
1882
|
+
return (0, smithy_client_1.take)(output, {
|
|
1883
|
+
app: smithy_client_1.expectString,
|
|
1884
|
+
appAuthorizationArn: smithy_client_1.expectString,
|
|
1885
|
+
appBundleArn: smithy_client_1.expectString,
|
|
1886
|
+
authType: smithy_client_1.expectString,
|
|
1887
|
+
authUrl: smithy_client_1.expectString,
|
|
1888
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1889
|
+
persona: smithy_client_1.expectString,
|
|
1890
|
+
status: smithy_client_1.expectString,
|
|
1891
|
+
tenant: smithy_client_1._json,
|
|
1892
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1893
|
+
});
|
|
1894
|
+
};
|
|
1895
|
+
const de_AppAuthorizationSummary = (output, context) => {
|
|
1896
|
+
return (0, smithy_client_1.take)(output, {
|
|
1897
|
+
app: smithy_client_1.expectString,
|
|
1898
|
+
appAuthorizationArn: smithy_client_1.expectString,
|
|
1899
|
+
appBundleArn: smithy_client_1.expectString,
|
|
1900
|
+
status: smithy_client_1.expectString,
|
|
1901
|
+
tenant: smithy_client_1._json,
|
|
1902
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1903
|
+
});
|
|
1904
|
+
};
|
|
1905
|
+
const de_AppAuthorizationSummaryList = (output, context) => {
|
|
1906
|
+
const retVal = (output || [])
|
|
1907
|
+
.filter((e) => e != null)
|
|
1908
|
+
.map((entry) => {
|
|
1909
|
+
return de_AppAuthorizationSummary(entry, context);
|
|
1910
|
+
});
|
|
1911
|
+
return retVal;
|
|
1912
|
+
};
|
|
1913
|
+
const de_Ingestion = (output, context) => {
|
|
1914
|
+
return (0, smithy_client_1.take)(output, {
|
|
1915
|
+
app: smithy_client_1.expectString,
|
|
1916
|
+
appBundleArn: smithy_client_1.expectString,
|
|
1917
|
+
arn: smithy_client_1.expectString,
|
|
1918
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1919
|
+
ingestionType: smithy_client_1.expectString,
|
|
1920
|
+
state: smithy_client_1.expectString,
|
|
1921
|
+
tenantId: smithy_client_1.expectString,
|
|
1922
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1923
|
+
});
|
|
1924
|
+
};
|
|
1925
|
+
const de_IngestionDestination = (output, context) => {
|
|
1926
|
+
return (0, smithy_client_1.take)(output, {
|
|
1927
|
+
arn: smithy_client_1.expectString,
|
|
1928
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1929
|
+
destinationConfiguration: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
1930
|
+
ingestionArn: smithy_client_1.expectString,
|
|
1931
|
+
processingConfiguration: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
1932
|
+
status: smithy_client_1.expectString,
|
|
1933
|
+
statusReason: smithy_client_1.expectString,
|
|
1934
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1935
|
+
});
|
|
1936
|
+
};
|
|
1937
|
+
const deserializeMetadata = (output) => ({
|
|
1938
|
+
httpStatusCode: output.statusCode,
|
|
1939
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1940
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1941
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1942
|
+
});
|
|
1943
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1944
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1945
|
+
value !== null &&
|
|
1946
|
+
value !== "" &&
|
|
1947
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1948
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1949
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1950
|
+
if (encoded.length) {
|
|
1951
|
+
return JSON.parse(encoded);
|
|
1952
|
+
}
|
|
1953
|
+
return {};
|
|
1954
|
+
});
|
|
1955
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1956
|
+
const value = await parseBody(errorBody, context);
|
|
1957
|
+
value.message = value.message ?? value.Message;
|
|
1958
|
+
return value;
|
|
1959
|
+
};
|
|
1960
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1961
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1962
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1963
|
+
let cleanValue = rawValue;
|
|
1964
|
+
if (typeof cleanValue === "number") {
|
|
1965
|
+
cleanValue = cleanValue.toString();
|
|
1966
|
+
}
|
|
1967
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1968
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1969
|
+
}
|
|
1970
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1971
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1972
|
+
}
|
|
1973
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1974
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1975
|
+
}
|
|
1976
|
+
return cleanValue;
|
|
1977
|
+
};
|
|
1978
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1979
|
+
if (headerKey !== undefined) {
|
|
1980
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1981
|
+
}
|
|
1982
|
+
if (data.code !== undefined) {
|
|
1983
|
+
return sanitizeErrorCode(data.code);
|
|
1984
|
+
}
|
|
1985
|
+
if (data["__type"] !== undefined) {
|
|
1986
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1987
|
+
}
|
|
1988
|
+
};
|