@aws-sdk/client-appfabric 3.476.0 → 3.477.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/dist-cjs/protocols/Aws_restJson1.js +160 -365
- package/dist-es/protocols/Aws_restJson1.js +161 -366
- package/package.json +5 -4
|
@@ -1,61 +1,45 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
|
-
import {
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
|
|
2
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { AppFabricServiceException as __BaseException } from "../models/AppFabricServiceException";
|
|
6
6
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
7
|
export const se_BatchGetUserAccessTasksCommand = async (input, context) => {
|
|
8
|
-
const
|
|
8
|
+
const b = rb(input, context);
|
|
9
9
|
const headers = {
|
|
10
10
|
"content-type": "application/json",
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
b.bp("/useraccess/batchget");
|
|
13
13
|
let body;
|
|
14
14
|
body = JSON.stringify(take(input, {
|
|
15
15
|
appBundleIdentifier: [],
|
|
16
16
|
taskIdList: (_) => _json(_),
|
|
17
17
|
}));
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hostname,
|
|
21
|
-
port,
|
|
22
|
-
method: "POST",
|
|
23
|
-
headers,
|
|
24
|
-
path: resolvedPath,
|
|
25
|
-
body,
|
|
26
|
-
});
|
|
18
|
+
b.m("POST").h(headers).b(body);
|
|
19
|
+
return b.build();
|
|
27
20
|
};
|
|
28
21
|
export const se_ConnectAppAuthorizationCommand = async (input, context) => {
|
|
29
|
-
const
|
|
22
|
+
const b = rb(input, context);
|
|
30
23
|
const headers = {
|
|
31
24
|
"content-type": "application/json",
|
|
32
25
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
26
|
+
b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}/connect");
|
|
27
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
28
|
+
b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
37
29
|
let body;
|
|
38
30
|
body = JSON.stringify(take(input, {
|
|
39
31
|
authRequest: (_) => _json(_),
|
|
40
32
|
}));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
hostname,
|
|
44
|
-
port,
|
|
45
|
-
method: "POST",
|
|
46
|
-
headers,
|
|
47
|
-
path: resolvedPath,
|
|
48
|
-
body,
|
|
49
|
-
});
|
|
33
|
+
b.m("POST").h(headers).b(body);
|
|
34
|
+
return b.build();
|
|
50
35
|
};
|
|
51
36
|
export const se_CreateAppAuthorizationCommand = async (input, context) => {
|
|
52
|
-
const
|
|
37
|
+
const b = rb(input, context);
|
|
53
38
|
const headers = {
|
|
54
39
|
"content-type": "application/json",
|
|
55
40
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
41
|
+
b.bp("/appbundles/{appBundleIdentifier}/appauthorizations");
|
|
42
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
59
43
|
let body;
|
|
60
44
|
body = JSON.stringify(take(input, {
|
|
61
45
|
app: [],
|
|
@@ -65,46 +49,31 @@ export const se_CreateAppAuthorizationCommand = async (input, context) => {
|
|
|
65
49
|
tags: (_) => _json(_),
|
|
66
50
|
tenant: (_) => _json(_),
|
|
67
51
|
}));
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
hostname,
|
|
71
|
-
port,
|
|
72
|
-
method: "POST",
|
|
73
|
-
headers,
|
|
74
|
-
path: resolvedPath,
|
|
75
|
-
body,
|
|
76
|
-
});
|
|
52
|
+
b.m("POST").h(headers).b(body);
|
|
53
|
+
return b.build();
|
|
77
54
|
};
|
|
78
55
|
export const se_CreateAppBundleCommand = async (input, context) => {
|
|
79
|
-
const
|
|
56
|
+
const b = rb(input, context);
|
|
80
57
|
const headers = {
|
|
81
58
|
"content-type": "application/json",
|
|
82
59
|
};
|
|
83
|
-
|
|
60
|
+
b.bp("/appbundles");
|
|
84
61
|
let body;
|
|
85
62
|
body = JSON.stringify(take(input, {
|
|
86
63
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
87
64
|
customerManagedKeyIdentifier: [],
|
|
88
65
|
tags: (_) => _json(_),
|
|
89
66
|
}));
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
hostname,
|
|
93
|
-
port,
|
|
94
|
-
method: "POST",
|
|
95
|
-
headers,
|
|
96
|
-
path: resolvedPath,
|
|
97
|
-
body,
|
|
98
|
-
});
|
|
67
|
+
b.m("POST").h(headers).b(body);
|
|
68
|
+
return b.build();
|
|
99
69
|
};
|
|
100
70
|
export const se_CreateIngestionCommand = async (input, context) => {
|
|
101
|
-
const
|
|
71
|
+
const b = rb(input, context);
|
|
102
72
|
const headers = {
|
|
103
73
|
"content-type": "application/json",
|
|
104
74
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
75
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions");
|
|
76
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
108
77
|
let body;
|
|
109
78
|
body = JSON.stringify(take(input, {
|
|
110
79
|
app: [],
|
|
@@ -113,25 +82,17 @@ export const se_CreateIngestionCommand = async (input, context) => {
|
|
|
113
82
|
tags: (_) => _json(_),
|
|
114
83
|
tenantId: [],
|
|
115
84
|
}));
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
hostname,
|
|
119
|
-
port,
|
|
120
|
-
method: "POST",
|
|
121
|
-
headers,
|
|
122
|
-
path: resolvedPath,
|
|
123
|
-
body,
|
|
124
|
-
});
|
|
85
|
+
b.m("POST").h(headers).b(body);
|
|
86
|
+
return b.build();
|
|
125
87
|
};
|
|
126
88
|
export const se_CreateIngestionDestinationCommand = async (input, context) => {
|
|
127
|
-
const
|
|
89
|
+
const b = rb(input, context);
|
|
128
90
|
const headers = {
|
|
129
91
|
"content-type": "application/json",
|
|
130
92
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
93
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations");
|
|
94
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
95
|
+
b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
135
96
|
let body;
|
|
136
97
|
body = JSON.stringify(take(input, {
|
|
137
98
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -139,409 +100,244 @@ export const se_CreateIngestionDestinationCommand = async (input, context) => {
|
|
|
139
100
|
processingConfiguration: (_) => _json(_),
|
|
140
101
|
tags: (_) => _json(_),
|
|
141
102
|
}));
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
hostname,
|
|
145
|
-
port,
|
|
146
|
-
method: "POST",
|
|
147
|
-
headers,
|
|
148
|
-
path: resolvedPath,
|
|
149
|
-
body,
|
|
150
|
-
});
|
|
103
|
+
b.m("POST").h(headers).b(body);
|
|
104
|
+
return b.build();
|
|
151
105
|
};
|
|
152
106
|
export const se_DeleteAppAuthorizationCommand = async (input, context) => {
|
|
153
|
-
const
|
|
107
|
+
const b = rb(input, context);
|
|
154
108
|
const headers = {};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
109
|
+
b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
|
|
110
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
111
|
+
b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
159
112
|
let body;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
hostname,
|
|
163
|
-
port,
|
|
164
|
-
method: "DELETE",
|
|
165
|
-
headers,
|
|
166
|
-
path: resolvedPath,
|
|
167
|
-
body,
|
|
168
|
-
});
|
|
113
|
+
b.m("DELETE").h(headers).b(body);
|
|
114
|
+
return b.build();
|
|
169
115
|
};
|
|
170
116
|
export const se_DeleteAppBundleCommand = async (input, context) => {
|
|
171
|
-
const
|
|
117
|
+
const b = rb(input, context);
|
|
172
118
|
const headers = {};
|
|
173
|
-
|
|
174
|
-
|
|
119
|
+
b.bp("/appbundles/{appBundleIdentifier}");
|
|
120
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
175
121
|
let body;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
hostname,
|
|
179
|
-
port,
|
|
180
|
-
method: "DELETE",
|
|
181
|
-
headers,
|
|
182
|
-
path: resolvedPath,
|
|
183
|
-
body,
|
|
184
|
-
});
|
|
122
|
+
b.m("DELETE").h(headers).b(body);
|
|
123
|
+
return b.build();
|
|
185
124
|
};
|
|
186
125
|
export const se_DeleteIngestionCommand = async (input, context) => {
|
|
187
|
-
const
|
|
126
|
+
const b = rb(input, context);
|
|
188
127
|
const headers = {};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
128
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}");
|
|
129
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
130
|
+
b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
193
131
|
let body;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
hostname,
|
|
197
|
-
port,
|
|
198
|
-
method: "DELETE",
|
|
199
|
-
headers,
|
|
200
|
-
path: resolvedPath,
|
|
201
|
-
body,
|
|
202
|
-
});
|
|
132
|
+
b.m("DELETE").h(headers).b(body);
|
|
133
|
+
return b.build();
|
|
203
134
|
};
|
|
204
135
|
export const se_DeleteIngestionDestinationCommand = async (input, context) => {
|
|
205
|
-
const
|
|
136
|
+
const b = rb(input, context);
|
|
206
137
|
const headers = {};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
|
|
138
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}");
|
|
139
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
140
|
+
b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
141
|
+
b.p("ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
|
|
212
142
|
let body;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
hostname,
|
|
216
|
-
port,
|
|
217
|
-
method: "DELETE",
|
|
218
|
-
headers,
|
|
219
|
-
path: resolvedPath,
|
|
220
|
-
body,
|
|
221
|
-
});
|
|
143
|
+
b.m("DELETE").h(headers).b(body);
|
|
144
|
+
return b.build();
|
|
222
145
|
};
|
|
223
146
|
export const se_GetAppAuthorizationCommand = async (input, context) => {
|
|
224
|
-
const
|
|
147
|
+
const b = rb(input, context);
|
|
225
148
|
const headers = {};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
149
|
+
b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
|
|
150
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
151
|
+
b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
230
152
|
let body;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
hostname,
|
|
234
|
-
port,
|
|
235
|
-
method: "GET",
|
|
236
|
-
headers,
|
|
237
|
-
path: resolvedPath,
|
|
238
|
-
body,
|
|
239
|
-
});
|
|
153
|
+
b.m("GET").h(headers).b(body);
|
|
154
|
+
return b.build();
|
|
240
155
|
};
|
|
241
156
|
export const se_GetAppBundleCommand = async (input, context) => {
|
|
242
|
-
const
|
|
157
|
+
const b = rb(input, context);
|
|
243
158
|
const headers = {};
|
|
244
|
-
|
|
245
|
-
|
|
159
|
+
b.bp("/appbundles/{appBundleIdentifier}");
|
|
160
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
246
161
|
let body;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
hostname,
|
|
250
|
-
port,
|
|
251
|
-
method: "GET",
|
|
252
|
-
headers,
|
|
253
|
-
path: resolvedPath,
|
|
254
|
-
body,
|
|
255
|
-
});
|
|
162
|
+
b.m("GET").h(headers).b(body);
|
|
163
|
+
return b.build();
|
|
256
164
|
};
|
|
257
165
|
export const se_GetIngestionCommand = async (input, context) => {
|
|
258
|
-
const
|
|
166
|
+
const b = rb(input, context);
|
|
259
167
|
const headers = {};
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
168
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}");
|
|
169
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
170
|
+
b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
264
171
|
let body;
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
hostname,
|
|
268
|
-
port,
|
|
269
|
-
method: "GET",
|
|
270
|
-
headers,
|
|
271
|
-
path: resolvedPath,
|
|
272
|
-
body,
|
|
273
|
-
});
|
|
172
|
+
b.m("GET").h(headers).b(body);
|
|
173
|
+
return b.build();
|
|
274
174
|
};
|
|
275
175
|
export const se_GetIngestionDestinationCommand = async (input, context) => {
|
|
276
|
-
const
|
|
176
|
+
const b = rb(input, context);
|
|
277
177
|
const headers = {};
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
|
|
178
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}");
|
|
179
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
180
|
+
b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
181
|
+
b.p("ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
|
|
283
182
|
let body;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
hostname,
|
|
287
|
-
port,
|
|
288
|
-
method: "GET",
|
|
289
|
-
headers,
|
|
290
|
-
path: resolvedPath,
|
|
291
|
-
body,
|
|
292
|
-
});
|
|
183
|
+
b.m("GET").h(headers).b(body);
|
|
184
|
+
return b.build();
|
|
293
185
|
};
|
|
294
186
|
export const se_ListAppAuthorizationsCommand = async (input, context) => {
|
|
295
|
-
const
|
|
187
|
+
const b = rb(input, context);
|
|
296
188
|
const headers = {};
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
189
|
+
b.bp("/appbundles/{appBundleIdentifier}/appauthorizations");
|
|
190
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
300
191
|
const query = map({
|
|
301
|
-
|
|
302
|
-
|
|
192
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
193
|
+
[_nT]: [, input[_nT]],
|
|
303
194
|
});
|
|
304
195
|
let body;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
hostname,
|
|
308
|
-
port,
|
|
309
|
-
method: "GET",
|
|
310
|
-
headers,
|
|
311
|
-
path: resolvedPath,
|
|
312
|
-
query,
|
|
313
|
-
body,
|
|
314
|
-
});
|
|
196
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
197
|
+
return b.build();
|
|
315
198
|
};
|
|
316
199
|
export const se_ListAppBundlesCommand = async (input, context) => {
|
|
317
|
-
const
|
|
200
|
+
const b = rb(input, context);
|
|
318
201
|
const headers = {};
|
|
319
|
-
|
|
202
|
+
b.bp("/appbundles");
|
|
320
203
|
const query = map({
|
|
321
|
-
|
|
322
|
-
|
|
204
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
205
|
+
[_nT]: [, input[_nT]],
|
|
323
206
|
});
|
|
324
207
|
let body;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
hostname,
|
|
328
|
-
port,
|
|
329
|
-
method: "GET",
|
|
330
|
-
headers,
|
|
331
|
-
path: resolvedPath,
|
|
332
|
-
query,
|
|
333
|
-
body,
|
|
334
|
-
});
|
|
208
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
209
|
+
return b.build();
|
|
335
210
|
};
|
|
336
211
|
export const se_ListIngestionDestinationsCommand = async (input, context) => {
|
|
337
|
-
const
|
|
212
|
+
const b = rb(input, context);
|
|
338
213
|
const headers = {};
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
214
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations");
|
|
215
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
216
|
+
b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
343
217
|
const query = map({
|
|
344
|
-
|
|
345
|
-
|
|
218
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
219
|
+
[_nT]: [, input[_nT]],
|
|
346
220
|
});
|
|
347
221
|
let body;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
hostname,
|
|
351
|
-
port,
|
|
352
|
-
method: "GET",
|
|
353
|
-
headers,
|
|
354
|
-
path: resolvedPath,
|
|
355
|
-
query,
|
|
356
|
-
body,
|
|
357
|
-
});
|
|
222
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
223
|
+
return b.build();
|
|
358
224
|
};
|
|
359
225
|
export const se_ListIngestionsCommand = async (input, context) => {
|
|
360
|
-
const
|
|
226
|
+
const b = rb(input, context);
|
|
361
227
|
const headers = {};
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
228
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions");
|
|
229
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
365
230
|
const query = map({
|
|
366
|
-
|
|
367
|
-
|
|
231
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
232
|
+
[_nT]: [, input[_nT]],
|
|
368
233
|
});
|
|
369
234
|
let body;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
hostname,
|
|
373
|
-
port,
|
|
374
|
-
method: "GET",
|
|
375
|
-
headers,
|
|
376
|
-
path: resolvedPath,
|
|
377
|
-
query,
|
|
378
|
-
body,
|
|
379
|
-
});
|
|
235
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
236
|
+
return b.build();
|
|
380
237
|
};
|
|
381
238
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
382
|
-
const
|
|
239
|
+
const b = rb(input, context);
|
|
383
240
|
const headers = {};
|
|
384
|
-
|
|
385
|
-
|
|
241
|
+
b.bp("/tags/{resourceArn}");
|
|
242
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
386
243
|
let body;
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
hostname,
|
|
390
|
-
port,
|
|
391
|
-
method: "GET",
|
|
392
|
-
headers,
|
|
393
|
-
path: resolvedPath,
|
|
394
|
-
body,
|
|
395
|
-
});
|
|
244
|
+
b.m("GET").h(headers).b(body);
|
|
245
|
+
return b.build();
|
|
396
246
|
};
|
|
397
247
|
export const se_StartIngestionCommand = async (input, context) => {
|
|
398
|
-
const
|
|
248
|
+
const b = rb(input, context);
|
|
399
249
|
const headers = {};
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
250
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/start");
|
|
251
|
+
b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
252
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
404
253
|
let body;
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
hostname,
|
|
408
|
-
port,
|
|
409
|
-
method: "POST",
|
|
410
|
-
headers,
|
|
411
|
-
path: resolvedPath,
|
|
412
|
-
body,
|
|
413
|
-
});
|
|
254
|
+
b.m("POST").h(headers).b(body);
|
|
255
|
+
return b.build();
|
|
414
256
|
};
|
|
415
257
|
export const se_StartUserAccessTasksCommand = async (input, context) => {
|
|
416
|
-
const
|
|
258
|
+
const b = rb(input, context);
|
|
417
259
|
const headers = {
|
|
418
260
|
"content-type": "application/json",
|
|
419
261
|
};
|
|
420
|
-
|
|
262
|
+
b.bp("/useraccess/start");
|
|
421
263
|
let body;
|
|
422
264
|
body = JSON.stringify(take(input, {
|
|
423
265
|
appBundleIdentifier: [],
|
|
424
266
|
email: [],
|
|
425
267
|
}));
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
hostname,
|
|
429
|
-
port,
|
|
430
|
-
method: "POST",
|
|
431
|
-
headers,
|
|
432
|
-
path: resolvedPath,
|
|
433
|
-
body,
|
|
434
|
-
});
|
|
268
|
+
b.m("POST").h(headers).b(body);
|
|
269
|
+
return b.build();
|
|
435
270
|
};
|
|
436
271
|
export const se_StopIngestionCommand = async (input, context) => {
|
|
437
|
-
const
|
|
272
|
+
const b = rb(input, context);
|
|
438
273
|
const headers = {};
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
274
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/stop");
|
|
275
|
+
b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
276
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
443
277
|
let body;
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
hostname,
|
|
447
|
-
port,
|
|
448
|
-
method: "POST",
|
|
449
|
-
headers,
|
|
450
|
-
path: resolvedPath,
|
|
451
|
-
body,
|
|
452
|
-
});
|
|
278
|
+
b.m("POST").h(headers).b(body);
|
|
279
|
+
return b.build();
|
|
453
280
|
};
|
|
454
281
|
export const se_TagResourceCommand = async (input, context) => {
|
|
455
|
-
const
|
|
282
|
+
const b = rb(input, context);
|
|
456
283
|
const headers = {
|
|
457
284
|
"content-type": "application/json",
|
|
458
285
|
};
|
|
459
|
-
|
|
460
|
-
|
|
286
|
+
b.bp("/tags/{resourceArn}");
|
|
287
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
461
288
|
let body;
|
|
462
289
|
body = JSON.stringify(take(input, {
|
|
463
290
|
tags: (_) => _json(_),
|
|
464
291
|
}));
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
hostname,
|
|
468
|
-
port,
|
|
469
|
-
method: "POST",
|
|
470
|
-
headers,
|
|
471
|
-
path: resolvedPath,
|
|
472
|
-
body,
|
|
473
|
-
});
|
|
292
|
+
b.m("POST").h(headers).b(body);
|
|
293
|
+
return b.build();
|
|
474
294
|
};
|
|
475
295
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
476
|
-
const
|
|
296
|
+
const b = rb(input, context);
|
|
477
297
|
const headers = {};
|
|
478
|
-
|
|
479
|
-
|
|
298
|
+
b.bp("/tags/{resourceArn}");
|
|
299
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
480
300
|
const query = map({
|
|
481
|
-
|
|
301
|
+
[_tK]: [
|
|
482
302
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
483
|
-
() => (input
|
|
303
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
484
304
|
],
|
|
485
305
|
});
|
|
486
306
|
let body;
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
hostname,
|
|
490
|
-
port,
|
|
491
|
-
method: "DELETE",
|
|
492
|
-
headers,
|
|
493
|
-
path: resolvedPath,
|
|
494
|
-
query,
|
|
495
|
-
body,
|
|
496
|
-
});
|
|
307
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
308
|
+
return b.build();
|
|
497
309
|
};
|
|
498
310
|
export const se_UpdateAppAuthorizationCommand = async (input, context) => {
|
|
499
|
-
const
|
|
311
|
+
const b = rb(input, context);
|
|
500
312
|
const headers = {
|
|
501
313
|
"content-type": "application/json",
|
|
502
314
|
};
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
315
|
+
b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
|
|
316
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
317
|
+
b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
|
|
507
318
|
let body;
|
|
508
319
|
body = JSON.stringify(take(input, {
|
|
509
320
|
credential: (_) => _json(_),
|
|
510
321
|
tenant: (_) => _json(_),
|
|
511
322
|
}));
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
hostname,
|
|
515
|
-
port,
|
|
516
|
-
method: "PATCH",
|
|
517
|
-
headers,
|
|
518
|
-
path: resolvedPath,
|
|
519
|
-
body,
|
|
520
|
-
});
|
|
323
|
+
b.m("PATCH").h(headers).b(body);
|
|
324
|
+
return b.build();
|
|
521
325
|
};
|
|
522
326
|
export const se_UpdateIngestionDestinationCommand = async (input, context) => {
|
|
523
|
-
const
|
|
327
|
+
const b = rb(input, context);
|
|
524
328
|
const headers = {
|
|
525
329
|
"content-type": "application/json",
|
|
526
330
|
};
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
|
|
331
|
+
b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}");
|
|
332
|
+
b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
|
|
333
|
+
b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
|
|
334
|
+
b.p("ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
|
|
532
335
|
let body;
|
|
533
336
|
body = JSON.stringify(take(input, {
|
|
534
337
|
destinationConfiguration: (_) => _json(_),
|
|
535
338
|
}));
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
hostname,
|
|
539
|
-
port,
|
|
540
|
-
method: "PATCH",
|
|
541
|
-
headers,
|
|
542
|
-
path: resolvedPath,
|
|
543
|
-
body,
|
|
544
|
-
});
|
|
339
|
+
b.m("PATCH").h(headers).b(body);
|
|
340
|
+
return b.build();
|
|
545
341
|
};
|
|
546
342
|
export const de_BatchGetUserAccessTasksCommand = async (output, context) => {
|
|
547
343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1740,10 +1536,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1740
1536
|
};
|
|
1741
1537
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1742
1538
|
const contents = map({
|
|
1743
|
-
|
|
1744
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1745
|
-
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
1746
|
-
],
|
|
1539
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
1747
1540
|
});
|
|
1748
1541
|
const data = parsedOutput.body;
|
|
1749
1542
|
const doc = take(data, {
|
|
@@ -1790,10 +1583,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1790
1583
|
};
|
|
1791
1584
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1792
1585
|
const contents = map({
|
|
1793
|
-
|
|
1794
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1795
|
-
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
1796
|
-
],
|
|
1586
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
1797
1587
|
});
|
|
1798
1588
|
const data = parsedOutput.body;
|
|
1799
1589
|
const doc = take(data, {
|
|
@@ -1891,6 +1681,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1891
1681
|
value !== "" &&
|
|
1892
1682
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1893
1683
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1684
|
+
const _mR = "maxResults";
|
|
1685
|
+
const _nT = "nextToken";
|
|
1686
|
+
const _rAS = "retryAfterSeconds";
|
|
1687
|
+
const _ra = "retry-after";
|
|
1688
|
+
const _tK = "tagKeys";
|
|
1894
1689
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1895
1690
|
if (encoded.length) {
|
|
1896
1691
|
return JSON.parse(encoded);
|