@aws-sdk/client-chime-sdk-identity 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 +171 -390
- package/dist-es/protocols/Aws_restJson1.js +172 -391
- package/package.json +5 -4
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_ListAppInstanceUsersCommand = exports.de_ListAppInstanceUserEndpointsCommand = exports.de_ListAppInstancesCommand = exports.de_ListAppInstanceBotsCommand = exports.de_ListAppInstanceAdminsCommand = exports.de_GetAppInstanceRetentionSettingsCommand = exports.de_DescribeAppInstanceUserEndpointCommand = exports.de_DescribeAppInstanceUserCommand = exports.de_DescribeAppInstanceBotCommand = exports.de_DescribeAppInstanceAdminCommand = exports.de_DescribeAppInstanceCommand = exports.de_DeregisterAppInstanceUserEndpointCommand = exports.de_DeleteAppInstanceUserCommand = exports.de_DeleteAppInstanceBotCommand = exports.de_DeleteAppInstanceAdminCommand = exports.de_DeleteAppInstanceCommand = exports.de_CreateAppInstanceUserCommand = exports.de_CreateAppInstanceBotCommand = exports.de_CreateAppInstanceAdminCommand = exports.de_CreateAppInstanceCommand = exports.se_UpdateAppInstanceUserEndpointCommand = exports.se_UpdateAppInstanceUserCommand = exports.se_UpdateAppInstanceBotCommand = exports.se_UpdateAppInstanceCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterAppInstanceUserEndpointCommand = exports.se_PutAppInstanceUserExpirationSettingsCommand = exports.se_PutAppInstanceRetentionSettingsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListAppInstanceUsersCommand = exports.se_ListAppInstanceUserEndpointsCommand = exports.se_ListAppInstancesCommand = exports.se_ListAppInstanceBotsCommand = exports.se_ListAppInstanceAdminsCommand = exports.se_GetAppInstanceRetentionSettingsCommand = exports.se_DescribeAppInstanceUserEndpointCommand = exports.se_DescribeAppInstanceUserCommand = exports.se_DescribeAppInstanceBotCommand = exports.se_DescribeAppInstanceAdminCommand = exports.se_DescribeAppInstanceCommand = exports.se_DeregisterAppInstanceUserEndpointCommand = exports.se_DeleteAppInstanceUserCommand = exports.se_DeleteAppInstanceBotCommand = exports.se_DeleteAppInstanceAdminCommand = exports.se_DeleteAppInstanceCommand = exports.se_CreateAppInstanceUserCommand = exports.se_CreateAppInstanceBotCommand = exports.se_CreateAppInstanceAdminCommand = exports.se_CreateAppInstanceCommand = void 0;
|
|
4
4
|
exports.de_UpdateAppInstanceUserEndpointCommand = exports.de_UpdateAppInstanceUserCommand = exports.de_UpdateAppInstanceBotCommand = exports.de_UpdateAppInstanceCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterAppInstanceUserEndpointCommand = exports.de_PutAppInstanceUserExpirationSettingsCommand = exports.de_PutAppInstanceRetentionSettingsCommand = exports.de_ListTagsForResourceCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const ChimeSDKIdentityServiceException_1 = require("../models/ChimeSDKIdentityServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_CreateAppInstanceCommand = async (input, context) => {
|
|
11
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
b.bp("/app-instances");
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -20,45 +20,31 @@ const se_CreateAppInstanceCommand = async (input, context) => {
|
|
|
20
20
|
Name: [],
|
|
21
21
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
22
22
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hostname,
|
|
26
|
-
port,
|
|
27
|
-
method: "POST",
|
|
28
|
-
headers,
|
|
29
|
-
path: resolvedPath,
|
|
30
|
-
body,
|
|
31
|
-
});
|
|
23
|
+
b.m("POST").h(headers).b(body);
|
|
24
|
+
return b.build();
|
|
32
25
|
};
|
|
33
26
|
exports.se_CreateAppInstanceCommand = se_CreateAppInstanceCommand;
|
|
34
27
|
const se_CreateAppInstanceAdminCommand = async (input, context) => {
|
|
35
|
-
const
|
|
28
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
36
29
|
const headers = {
|
|
37
30
|
"content-type": "application/json",
|
|
38
31
|
};
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
b.bp("/app-instances/{AppInstanceArn}/admins");
|
|
33
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
41
34
|
let body;
|
|
42
35
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
36
|
AppInstanceAdminArn: [],
|
|
44
37
|
}));
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
hostname,
|
|
48
|
-
port,
|
|
49
|
-
method: "POST",
|
|
50
|
-
headers,
|
|
51
|
-
path: resolvedPath,
|
|
52
|
-
body,
|
|
53
|
-
});
|
|
38
|
+
b.m("POST").h(headers).b(body);
|
|
39
|
+
return b.build();
|
|
54
40
|
};
|
|
55
41
|
exports.se_CreateAppInstanceAdminCommand = se_CreateAppInstanceAdminCommand;
|
|
56
42
|
const se_CreateAppInstanceBotCommand = async (input, context) => {
|
|
57
|
-
const
|
|
43
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
58
44
|
const headers = {
|
|
59
45
|
"content-type": "application/json",
|
|
60
46
|
};
|
|
61
|
-
|
|
47
|
+
b.bp("/app-instance-bots");
|
|
62
48
|
let body;
|
|
63
49
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
50
|
AppInstanceArn: [],
|
|
@@ -68,23 +54,16 @@ const se_CreateAppInstanceBotCommand = async (input, context) => {
|
|
|
68
54
|
Name: [],
|
|
69
55
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
70
56
|
}));
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
hostname,
|
|
74
|
-
port,
|
|
75
|
-
method: "POST",
|
|
76
|
-
headers,
|
|
77
|
-
path: resolvedPath,
|
|
78
|
-
body,
|
|
79
|
-
});
|
|
57
|
+
b.m("POST").h(headers).b(body);
|
|
58
|
+
return b.build();
|
|
80
59
|
};
|
|
81
60
|
exports.se_CreateAppInstanceBotCommand = se_CreateAppInstanceBotCommand;
|
|
82
61
|
const se_CreateAppInstanceUserCommand = async (input, context) => {
|
|
83
|
-
const
|
|
62
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
84
63
|
const headers = {
|
|
85
64
|
"content-type": "application/json",
|
|
86
65
|
};
|
|
87
|
-
|
|
66
|
+
b.bp("/app-instance-users");
|
|
88
67
|
let body;
|
|
89
68
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
90
69
|
AppInstanceArn: [],
|
|
@@ -95,397 +74,242 @@ const se_CreateAppInstanceUserCommand = async (input, context) => {
|
|
|
95
74
|
Name: [],
|
|
96
75
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
97
76
|
}));
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
hostname,
|
|
101
|
-
port,
|
|
102
|
-
method: "POST",
|
|
103
|
-
headers,
|
|
104
|
-
path: resolvedPath,
|
|
105
|
-
body,
|
|
106
|
-
});
|
|
77
|
+
b.m("POST").h(headers).b(body);
|
|
78
|
+
return b.build();
|
|
107
79
|
};
|
|
108
80
|
exports.se_CreateAppInstanceUserCommand = se_CreateAppInstanceUserCommand;
|
|
109
81
|
const se_DeleteAppInstanceCommand = async (input, context) => {
|
|
110
|
-
const
|
|
82
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
111
83
|
const headers = {};
|
|
112
|
-
|
|
113
|
-
|
|
84
|
+
b.bp("/app-instances/{AppInstanceArn}");
|
|
85
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
114
86
|
let body;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
hostname,
|
|
118
|
-
port,
|
|
119
|
-
method: "DELETE",
|
|
120
|
-
headers,
|
|
121
|
-
path: resolvedPath,
|
|
122
|
-
body,
|
|
123
|
-
});
|
|
87
|
+
b.m("DELETE").h(headers).b(body);
|
|
88
|
+
return b.build();
|
|
124
89
|
};
|
|
125
90
|
exports.se_DeleteAppInstanceCommand = se_DeleteAppInstanceCommand;
|
|
126
91
|
const se_DeleteAppInstanceAdminCommand = async (input, context) => {
|
|
127
|
-
const
|
|
92
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
128
93
|
const headers = {};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
94
|
+
b.bp("/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}");
|
|
95
|
+
b.p("AppInstanceAdminArn", () => input.AppInstanceAdminArn, "{AppInstanceAdminArn}", false);
|
|
96
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
133
97
|
let body;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
hostname,
|
|
137
|
-
port,
|
|
138
|
-
method: "DELETE",
|
|
139
|
-
headers,
|
|
140
|
-
path: resolvedPath,
|
|
141
|
-
body,
|
|
142
|
-
});
|
|
98
|
+
b.m("DELETE").h(headers).b(body);
|
|
99
|
+
return b.build();
|
|
143
100
|
};
|
|
144
101
|
exports.se_DeleteAppInstanceAdminCommand = se_DeleteAppInstanceAdminCommand;
|
|
145
102
|
const se_DeleteAppInstanceBotCommand = async (input, context) => {
|
|
146
|
-
const
|
|
103
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
147
104
|
const headers = {};
|
|
148
|
-
|
|
149
|
-
|
|
105
|
+
b.bp("/app-instance-bots/{AppInstanceBotArn}");
|
|
106
|
+
b.p("AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
150
107
|
let body;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
hostname,
|
|
154
|
-
port,
|
|
155
|
-
method: "DELETE",
|
|
156
|
-
headers,
|
|
157
|
-
path: resolvedPath,
|
|
158
|
-
body,
|
|
159
|
-
});
|
|
108
|
+
b.m("DELETE").h(headers).b(body);
|
|
109
|
+
return b.build();
|
|
160
110
|
};
|
|
161
111
|
exports.se_DeleteAppInstanceBotCommand = se_DeleteAppInstanceBotCommand;
|
|
162
112
|
const se_DeleteAppInstanceUserCommand = async (input, context) => {
|
|
163
|
-
const
|
|
113
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
164
114
|
const headers = {};
|
|
165
|
-
|
|
166
|
-
|
|
115
|
+
b.bp("/app-instance-users/{AppInstanceUserArn}");
|
|
116
|
+
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
167
117
|
let body;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
hostname,
|
|
171
|
-
port,
|
|
172
|
-
method: "DELETE",
|
|
173
|
-
headers,
|
|
174
|
-
path: resolvedPath,
|
|
175
|
-
body,
|
|
176
|
-
});
|
|
118
|
+
b.m("DELETE").h(headers).b(body);
|
|
119
|
+
return b.build();
|
|
177
120
|
};
|
|
178
121
|
exports.se_DeleteAppInstanceUserCommand = se_DeleteAppInstanceUserCommand;
|
|
179
122
|
const se_DeregisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
180
|
-
const
|
|
123
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
181
124
|
const headers = {};
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
125
|
+
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}");
|
|
126
|
+
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
127
|
+
b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
186
128
|
let body;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
hostname,
|
|
190
|
-
port,
|
|
191
|
-
method: "DELETE",
|
|
192
|
-
headers,
|
|
193
|
-
path: resolvedPath,
|
|
194
|
-
body,
|
|
195
|
-
});
|
|
129
|
+
b.m("DELETE").h(headers).b(body);
|
|
130
|
+
return b.build();
|
|
196
131
|
};
|
|
197
132
|
exports.se_DeregisterAppInstanceUserEndpointCommand = se_DeregisterAppInstanceUserEndpointCommand;
|
|
198
133
|
const se_DescribeAppInstanceCommand = async (input, context) => {
|
|
199
|
-
const
|
|
134
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
200
135
|
const headers = {};
|
|
201
|
-
|
|
202
|
-
|
|
136
|
+
b.bp("/app-instances/{AppInstanceArn}");
|
|
137
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
203
138
|
let body;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
hostname,
|
|
207
|
-
port,
|
|
208
|
-
method: "GET",
|
|
209
|
-
headers,
|
|
210
|
-
path: resolvedPath,
|
|
211
|
-
body,
|
|
212
|
-
});
|
|
139
|
+
b.m("GET").h(headers).b(body);
|
|
140
|
+
return b.build();
|
|
213
141
|
};
|
|
214
142
|
exports.se_DescribeAppInstanceCommand = se_DescribeAppInstanceCommand;
|
|
215
143
|
const se_DescribeAppInstanceAdminCommand = async (input, context) => {
|
|
216
|
-
const
|
|
144
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
217
145
|
const headers = {};
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
146
|
+
b.bp("/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}");
|
|
147
|
+
b.p("AppInstanceAdminArn", () => input.AppInstanceAdminArn, "{AppInstanceAdminArn}", false);
|
|
148
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
222
149
|
let body;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
hostname,
|
|
226
|
-
port,
|
|
227
|
-
method: "GET",
|
|
228
|
-
headers,
|
|
229
|
-
path: resolvedPath,
|
|
230
|
-
body,
|
|
231
|
-
});
|
|
150
|
+
b.m("GET").h(headers).b(body);
|
|
151
|
+
return b.build();
|
|
232
152
|
};
|
|
233
153
|
exports.se_DescribeAppInstanceAdminCommand = se_DescribeAppInstanceAdminCommand;
|
|
234
154
|
const se_DescribeAppInstanceBotCommand = async (input, context) => {
|
|
235
|
-
const
|
|
155
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
236
156
|
const headers = {};
|
|
237
|
-
|
|
238
|
-
|
|
157
|
+
b.bp("/app-instance-bots/{AppInstanceBotArn}");
|
|
158
|
+
b.p("AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
239
159
|
let body;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
hostname,
|
|
243
|
-
port,
|
|
244
|
-
method: "GET",
|
|
245
|
-
headers,
|
|
246
|
-
path: resolvedPath,
|
|
247
|
-
body,
|
|
248
|
-
});
|
|
160
|
+
b.m("GET").h(headers).b(body);
|
|
161
|
+
return b.build();
|
|
249
162
|
};
|
|
250
163
|
exports.se_DescribeAppInstanceBotCommand = se_DescribeAppInstanceBotCommand;
|
|
251
164
|
const se_DescribeAppInstanceUserCommand = async (input, context) => {
|
|
252
|
-
const
|
|
165
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
253
166
|
const headers = {};
|
|
254
|
-
|
|
255
|
-
|
|
167
|
+
b.bp("/app-instance-users/{AppInstanceUserArn}");
|
|
168
|
+
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
256
169
|
let body;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
hostname,
|
|
260
|
-
port,
|
|
261
|
-
method: "GET",
|
|
262
|
-
headers,
|
|
263
|
-
path: resolvedPath,
|
|
264
|
-
body,
|
|
265
|
-
});
|
|
170
|
+
b.m("GET").h(headers).b(body);
|
|
171
|
+
return b.build();
|
|
266
172
|
};
|
|
267
173
|
exports.se_DescribeAppInstanceUserCommand = se_DescribeAppInstanceUserCommand;
|
|
268
174
|
const se_DescribeAppInstanceUserEndpointCommand = async (input, context) => {
|
|
269
|
-
const
|
|
175
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
270
176
|
const headers = {};
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
177
|
+
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}");
|
|
178
|
+
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
179
|
+
b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
275
180
|
let body;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
hostname,
|
|
279
|
-
port,
|
|
280
|
-
method: "GET",
|
|
281
|
-
headers,
|
|
282
|
-
path: resolvedPath,
|
|
283
|
-
body,
|
|
284
|
-
});
|
|
181
|
+
b.m("GET").h(headers).b(body);
|
|
182
|
+
return b.build();
|
|
285
183
|
};
|
|
286
184
|
exports.se_DescribeAppInstanceUserEndpointCommand = se_DescribeAppInstanceUserEndpointCommand;
|
|
287
185
|
const se_GetAppInstanceRetentionSettingsCommand = async (input, context) => {
|
|
288
|
-
const
|
|
186
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
289
187
|
const headers = {};
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
188
|
+
b.bp("/app-instances/{AppInstanceArn}/retention-settings");
|
|
189
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
293
190
|
let body;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
hostname,
|
|
297
|
-
port,
|
|
298
|
-
method: "GET",
|
|
299
|
-
headers,
|
|
300
|
-
path: resolvedPath,
|
|
301
|
-
body,
|
|
302
|
-
});
|
|
191
|
+
b.m("GET").h(headers).b(body);
|
|
192
|
+
return b.build();
|
|
303
193
|
};
|
|
304
194
|
exports.se_GetAppInstanceRetentionSettingsCommand = se_GetAppInstanceRetentionSettingsCommand;
|
|
305
195
|
const se_ListAppInstanceAdminsCommand = async (input, context) => {
|
|
306
|
-
const
|
|
196
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
307
197
|
const headers = {};
|
|
308
|
-
|
|
309
|
-
|
|
198
|
+
b.bp("/app-instances/{AppInstanceArn}/admins");
|
|
199
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
310
200
|
const query = (0, smithy_client_1.map)({
|
|
311
|
-
|
|
312
|
-
|
|
201
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
202
|
+
[_nt]: [, input[_NT]],
|
|
313
203
|
});
|
|
314
204
|
let body;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
hostname,
|
|
318
|
-
port,
|
|
319
|
-
method: "GET",
|
|
320
|
-
headers,
|
|
321
|
-
path: resolvedPath,
|
|
322
|
-
query,
|
|
323
|
-
body,
|
|
324
|
-
});
|
|
205
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
206
|
+
return b.build();
|
|
325
207
|
};
|
|
326
208
|
exports.se_ListAppInstanceAdminsCommand = se_ListAppInstanceAdminsCommand;
|
|
327
209
|
const se_ListAppInstanceBotsCommand = async (input, context) => {
|
|
328
|
-
const
|
|
210
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
329
211
|
const headers = {};
|
|
330
|
-
|
|
212
|
+
b.bp("/app-instance-bots");
|
|
331
213
|
const query = (0, smithy_client_1.map)({
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
214
|
+
[_aia]: [, (0, smithy_client_1.expectNonNull)(input[_AIA], `AppInstanceArn`)],
|
|
215
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
216
|
+
[_nt]: [, input[_NT]],
|
|
335
217
|
});
|
|
336
218
|
let body;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
hostname,
|
|
340
|
-
port,
|
|
341
|
-
method: "GET",
|
|
342
|
-
headers,
|
|
343
|
-
path: resolvedPath,
|
|
344
|
-
query,
|
|
345
|
-
body,
|
|
346
|
-
});
|
|
219
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
220
|
+
return b.build();
|
|
347
221
|
};
|
|
348
222
|
exports.se_ListAppInstanceBotsCommand = se_ListAppInstanceBotsCommand;
|
|
349
223
|
const se_ListAppInstancesCommand = async (input, context) => {
|
|
350
|
-
const
|
|
224
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
351
225
|
const headers = {};
|
|
352
|
-
|
|
226
|
+
b.bp("/app-instances");
|
|
353
227
|
const query = (0, smithy_client_1.map)({
|
|
354
|
-
|
|
355
|
-
|
|
228
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
229
|
+
[_nt]: [, input[_NT]],
|
|
356
230
|
});
|
|
357
231
|
let body;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
hostname,
|
|
361
|
-
port,
|
|
362
|
-
method: "GET",
|
|
363
|
-
headers,
|
|
364
|
-
path: resolvedPath,
|
|
365
|
-
query,
|
|
366
|
-
body,
|
|
367
|
-
});
|
|
232
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
233
|
+
return b.build();
|
|
368
234
|
};
|
|
369
235
|
exports.se_ListAppInstancesCommand = se_ListAppInstancesCommand;
|
|
370
236
|
const se_ListAppInstanceUserEndpointsCommand = async (input, context) => {
|
|
371
|
-
const
|
|
237
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
372
238
|
const headers = {};
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
239
|
+
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints");
|
|
240
|
+
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
376
241
|
const query = (0, smithy_client_1.map)({
|
|
377
|
-
|
|
378
|
-
|
|
242
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
243
|
+
[_nt]: [, input[_NT]],
|
|
379
244
|
});
|
|
380
245
|
let body;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
hostname,
|
|
384
|
-
port,
|
|
385
|
-
method: "GET",
|
|
386
|
-
headers,
|
|
387
|
-
path: resolvedPath,
|
|
388
|
-
query,
|
|
389
|
-
body,
|
|
390
|
-
});
|
|
246
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
247
|
+
return b.build();
|
|
391
248
|
};
|
|
392
249
|
exports.se_ListAppInstanceUserEndpointsCommand = se_ListAppInstanceUserEndpointsCommand;
|
|
393
250
|
const se_ListAppInstanceUsersCommand = async (input, context) => {
|
|
394
|
-
const
|
|
251
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
395
252
|
const headers = {};
|
|
396
|
-
|
|
253
|
+
b.bp("/app-instance-users");
|
|
397
254
|
const query = (0, smithy_client_1.map)({
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
255
|
+
[_aia]: [, (0, smithy_client_1.expectNonNull)(input[_AIA], `AppInstanceArn`)],
|
|
256
|
+
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
257
|
+
[_nt]: [, input[_NT]],
|
|
401
258
|
});
|
|
402
259
|
let body;
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
hostname,
|
|
406
|
-
port,
|
|
407
|
-
method: "GET",
|
|
408
|
-
headers,
|
|
409
|
-
path: resolvedPath,
|
|
410
|
-
query,
|
|
411
|
-
body,
|
|
412
|
-
});
|
|
260
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
261
|
+
return b.build();
|
|
413
262
|
};
|
|
414
263
|
exports.se_ListAppInstanceUsersCommand = se_ListAppInstanceUsersCommand;
|
|
415
264
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
416
|
-
const
|
|
265
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
417
266
|
const headers = {};
|
|
418
|
-
|
|
267
|
+
b.bp("/tags");
|
|
419
268
|
const query = (0, smithy_client_1.map)({
|
|
420
|
-
|
|
269
|
+
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_RARN], `ResourceARN`)],
|
|
421
270
|
});
|
|
422
271
|
let body;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
hostname,
|
|
426
|
-
port,
|
|
427
|
-
method: "GET",
|
|
428
|
-
headers,
|
|
429
|
-
path: resolvedPath,
|
|
430
|
-
query,
|
|
431
|
-
body,
|
|
432
|
-
});
|
|
272
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
273
|
+
return b.build();
|
|
433
274
|
};
|
|
434
275
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
435
276
|
const se_PutAppInstanceRetentionSettingsCommand = async (input, context) => {
|
|
436
|
-
const
|
|
277
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
437
278
|
const headers = {
|
|
438
279
|
"content-type": "application/json",
|
|
439
280
|
};
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
281
|
+
b.bp("/app-instances/{AppInstanceArn}/retention-settings");
|
|
282
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
443
283
|
let body;
|
|
444
284
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
445
285
|
AppInstanceRetentionSettings: (_) => (0, smithy_client_1._json)(_),
|
|
446
286
|
}));
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
hostname,
|
|
450
|
-
port,
|
|
451
|
-
method: "PUT",
|
|
452
|
-
headers,
|
|
453
|
-
path: resolvedPath,
|
|
454
|
-
body,
|
|
455
|
-
});
|
|
287
|
+
b.m("PUT").h(headers).b(body);
|
|
288
|
+
return b.build();
|
|
456
289
|
};
|
|
457
290
|
exports.se_PutAppInstanceRetentionSettingsCommand = se_PutAppInstanceRetentionSettingsCommand;
|
|
458
291
|
const se_PutAppInstanceUserExpirationSettingsCommand = async (input, context) => {
|
|
459
|
-
const
|
|
292
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
460
293
|
const headers = {
|
|
461
294
|
"content-type": "application/json",
|
|
462
295
|
};
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
296
|
+
b.bp("/app-instance-users/{AppInstanceUserArn}/expiration-settings");
|
|
297
|
+
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
466
298
|
let body;
|
|
467
299
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
468
300
|
ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
469
301
|
}));
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
hostname,
|
|
473
|
-
port,
|
|
474
|
-
method: "PUT",
|
|
475
|
-
headers,
|
|
476
|
-
path: resolvedPath,
|
|
477
|
-
body,
|
|
478
|
-
});
|
|
302
|
+
b.m("PUT").h(headers).b(body);
|
|
303
|
+
return b.build();
|
|
479
304
|
};
|
|
480
305
|
exports.se_PutAppInstanceUserExpirationSettingsCommand = se_PutAppInstanceUserExpirationSettingsCommand;
|
|
481
306
|
const se_RegisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
482
|
-
const
|
|
307
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
483
308
|
const headers = {
|
|
484
309
|
"content-type": "application/json",
|
|
485
310
|
};
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
311
|
+
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints");
|
|
312
|
+
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
489
313
|
let body;
|
|
490
314
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
491
315
|
AllowMessages: [],
|
|
@@ -495,162 +319,110 @@ const se_RegisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
|
495
319
|
ResourceArn: [],
|
|
496
320
|
Type: [],
|
|
497
321
|
}));
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
hostname,
|
|
501
|
-
port,
|
|
502
|
-
method: "POST",
|
|
503
|
-
headers,
|
|
504
|
-
path: resolvedPath,
|
|
505
|
-
body,
|
|
506
|
-
});
|
|
322
|
+
b.m("POST").h(headers).b(body);
|
|
323
|
+
return b.build();
|
|
507
324
|
};
|
|
508
325
|
exports.se_RegisterAppInstanceUserEndpointCommand = se_RegisterAppInstanceUserEndpointCommand;
|
|
509
326
|
const se_TagResourceCommand = async (input, context) => {
|
|
510
|
-
const
|
|
327
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
511
328
|
const headers = {
|
|
512
329
|
"content-type": "application/json",
|
|
513
330
|
};
|
|
514
|
-
|
|
331
|
+
b.bp("/tags");
|
|
515
332
|
const query = (0, smithy_client_1.map)({
|
|
516
|
-
|
|
333
|
+
[_o]: [, "tag-resource"],
|
|
517
334
|
});
|
|
518
335
|
let body;
|
|
519
336
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
520
337
|
ResourceARN: [],
|
|
521
338
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
522
339
|
}));
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
hostname,
|
|
526
|
-
port,
|
|
527
|
-
method: "POST",
|
|
528
|
-
headers,
|
|
529
|
-
path: resolvedPath,
|
|
530
|
-
query,
|
|
531
|
-
body,
|
|
532
|
-
});
|
|
340
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
341
|
+
return b.build();
|
|
533
342
|
};
|
|
534
343
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
535
344
|
const se_UntagResourceCommand = async (input, context) => {
|
|
536
|
-
const
|
|
345
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
537
346
|
const headers = {
|
|
538
347
|
"content-type": "application/json",
|
|
539
348
|
};
|
|
540
|
-
|
|
349
|
+
b.bp("/tags");
|
|
541
350
|
const query = (0, smithy_client_1.map)({
|
|
542
|
-
|
|
351
|
+
[_o]: [, "untag-resource"],
|
|
543
352
|
});
|
|
544
353
|
let body;
|
|
545
354
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
546
355
|
ResourceARN: [],
|
|
547
356
|
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
548
357
|
}));
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
hostname,
|
|
552
|
-
port,
|
|
553
|
-
method: "POST",
|
|
554
|
-
headers,
|
|
555
|
-
path: resolvedPath,
|
|
556
|
-
query,
|
|
557
|
-
body,
|
|
558
|
-
});
|
|
358
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
359
|
+
return b.build();
|
|
559
360
|
};
|
|
560
361
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
561
362
|
const se_UpdateAppInstanceCommand = async (input, context) => {
|
|
562
|
-
const
|
|
363
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
563
364
|
const headers = {
|
|
564
365
|
"content-type": "application/json",
|
|
565
366
|
};
|
|
566
|
-
|
|
567
|
-
|
|
367
|
+
b.bp("/app-instances/{AppInstanceArn}");
|
|
368
|
+
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
568
369
|
let body;
|
|
569
370
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
570
371
|
Metadata: [],
|
|
571
372
|
Name: [],
|
|
572
373
|
}));
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
hostname,
|
|
576
|
-
port,
|
|
577
|
-
method: "PUT",
|
|
578
|
-
headers,
|
|
579
|
-
path: resolvedPath,
|
|
580
|
-
body,
|
|
581
|
-
});
|
|
374
|
+
b.m("PUT").h(headers).b(body);
|
|
375
|
+
return b.build();
|
|
582
376
|
};
|
|
583
377
|
exports.se_UpdateAppInstanceCommand = se_UpdateAppInstanceCommand;
|
|
584
378
|
const se_UpdateAppInstanceBotCommand = async (input, context) => {
|
|
585
|
-
const
|
|
379
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
586
380
|
const headers = {
|
|
587
381
|
"content-type": "application/json",
|
|
588
382
|
};
|
|
589
|
-
|
|
590
|
-
|
|
383
|
+
b.bp("/app-instance-bots/{AppInstanceBotArn}");
|
|
384
|
+
b.p("AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
591
385
|
let body;
|
|
592
386
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
593
387
|
Configuration: (_) => (0, smithy_client_1._json)(_),
|
|
594
388
|
Metadata: [],
|
|
595
389
|
Name: [],
|
|
596
390
|
}));
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
hostname,
|
|
600
|
-
port,
|
|
601
|
-
method: "PUT",
|
|
602
|
-
headers,
|
|
603
|
-
path: resolvedPath,
|
|
604
|
-
body,
|
|
605
|
-
});
|
|
391
|
+
b.m("PUT").h(headers).b(body);
|
|
392
|
+
return b.build();
|
|
606
393
|
};
|
|
607
394
|
exports.se_UpdateAppInstanceBotCommand = se_UpdateAppInstanceBotCommand;
|
|
608
395
|
const se_UpdateAppInstanceUserCommand = async (input, context) => {
|
|
609
|
-
const
|
|
396
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
610
397
|
const headers = {
|
|
611
398
|
"content-type": "application/json",
|
|
612
399
|
};
|
|
613
|
-
|
|
614
|
-
|
|
400
|
+
b.bp("/app-instance-users/{AppInstanceUserArn}");
|
|
401
|
+
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
615
402
|
let body;
|
|
616
403
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
617
404
|
Metadata: [],
|
|
618
405
|
Name: [],
|
|
619
406
|
}));
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
hostname,
|
|
623
|
-
port,
|
|
624
|
-
method: "PUT",
|
|
625
|
-
headers,
|
|
626
|
-
path: resolvedPath,
|
|
627
|
-
body,
|
|
628
|
-
});
|
|
407
|
+
b.m("PUT").h(headers).b(body);
|
|
408
|
+
return b.build();
|
|
629
409
|
};
|
|
630
410
|
exports.se_UpdateAppInstanceUserCommand = se_UpdateAppInstanceUserCommand;
|
|
631
411
|
const se_UpdateAppInstanceUserEndpointCommand = async (input, context) => {
|
|
632
|
-
const
|
|
412
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
633
413
|
const headers = {
|
|
634
414
|
"content-type": "application/json",
|
|
635
415
|
};
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
416
|
+
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}");
|
|
417
|
+
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
418
|
+
b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
640
419
|
let body;
|
|
641
420
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
642
421
|
AllowMessages: [],
|
|
643
422
|
Name: [],
|
|
644
423
|
}));
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
hostname,
|
|
648
|
-
port,
|
|
649
|
-
method: "PUT",
|
|
650
|
-
headers,
|
|
651
|
-
path: resolvedPath,
|
|
652
|
-
body,
|
|
653
|
-
});
|
|
424
|
+
b.m("PUT").h(headers).b(body);
|
|
425
|
+
return b.build();
|
|
654
426
|
};
|
|
655
427
|
exports.se_UpdateAppInstanceUserEndpointCommand = se_UpdateAppInstanceUserEndpointCommand;
|
|
656
428
|
const de_CreateAppInstanceCommand = async (output, context) => {
|
|
@@ -2382,6 +2154,15 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2382
2154
|
value !== "" &&
|
|
2383
2155
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2384
2156
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2157
|
+
const _AIA = "AppInstanceArn";
|
|
2158
|
+
const _MR = "MaxResults";
|
|
2159
|
+
const _NT = "NextToken";
|
|
2160
|
+
const _RARN = "ResourceARN";
|
|
2161
|
+
const _a = "arn";
|
|
2162
|
+
const _aia = "app-instance-arn";
|
|
2163
|
+
const _mr = "max-results";
|
|
2164
|
+
const _nt = "next-token";
|
|
2165
|
+
const _o = "operation";
|
|
2385
2166
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2386
2167
|
if (encoded.length) {
|
|
2387
2168
|
return JSON.parse(encoded);
|