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