@aws-sdk/client-chime-sdk-identity 3.489.0 → 3.495.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/ChimeSDKIdentity.js +1 -71
- package/dist-cjs/ChimeSDKIdentityClient.js +1 -43
- package/dist-cjs/commands/CreateAppInstanceAdminCommand.js +1 -29
- package/dist-cjs/commands/CreateAppInstanceBotCommand.js +1 -29
- package/dist-cjs/commands/CreateAppInstanceCommand.js +1 -29
- package/dist-cjs/commands/CreateAppInstanceUserCommand.js +1 -29
- package/dist-cjs/commands/DeleteAppInstanceAdminCommand.js +1 -28
- package/dist-cjs/commands/DeleteAppInstanceBotCommand.js +1 -28
- package/dist-cjs/commands/DeleteAppInstanceCommand.js +1 -28
- package/dist-cjs/commands/DeleteAppInstanceUserCommand.js +1 -28
- package/dist-cjs/commands/DeregisterAppInstanceUserEndpointCommand.js +1 -28
- package/dist-cjs/commands/DescribeAppInstanceAdminCommand.js +1 -29
- package/dist-cjs/commands/DescribeAppInstanceBotCommand.js +1 -29
- package/dist-cjs/commands/DescribeAppInstanceCommand.js +1 -29
- package/dist-cjs/commands/DescribeAppInstanceUserCommand.js +1 -29
- package/dist-cjs/commands/DescribeAppInstanceUserEndpointCommand.js +1 -29
- package/dist-cjs/commands/GetAppInstanceRetentionSettingsCommand.js +1 -28
- package/dist-cjs/commands/ListAppInstanceAdminsCommand.js +1 -29
- package/dist-cjs/commands/ListAppInstanceBotsCommand.js +1 -29
- package/dist-cjs/commands/ListAppInstanceUserEndpointsCommand.js +1 -29
- package/dist-cjs/commands/ListAppInstanceUsersCommand.js +1 -29
- package/dist-cjs/commands/ListAppInstancesCommand.js +1 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
- package/dist-cjs/commands/PutAppInstanceRetentionSettingsCommand.js +1 -28
- package/dist-cjs/commands/PutAppInstanceUserExpirationSettingsCommand.js +1 -28
- package/dist-cjs/commands/RegisterAppInstanceUserEndpointCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -29
- package/dist-cjs/commands/UpdateAppInstanceBotCommand.js +1 -29
- package/dist-cjs/commands/UpdateAppInstanceCommand.js +1 -29
- package/dist-cjs/commands/UpdateAppInstanceUserCommand.js +1 -29
- package/dist-cjs/commands/UpdateAppInstanceUserEndpointCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -33
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3484 -11
- package/dist-cjs/models/ChimeSDKIdentityServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -428
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAppInstanceAdminsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAppInstanceBotsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAppInstanceUserEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAppInstanceUsersPaginator.js +1 -7
- package/dist-cjs/pagination/ListAppInstancesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -9
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2205
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2205 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
-
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 core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const ChimeSDKIdentityServiceException_1 = require("../models/ChimeSDKIdentityServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CreateAppInstanceCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/app-instances");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
19
|
-
Metadata: [],
|
|
20
|
-
Name: [],
|
|
21
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
-
}));
|
|
23
|
-
b.m("POST").h(headers).b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
exports.se_CreateAppInstanceCommand = se_CreateAppInstanceCommand;
|
|
27
|
-
const se_CreateAppInstanceAdminCommand = async (input, context) => {
|
|
28
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
29
|
-
const headers = {
|
|
30
|
-
"content-type": "application/json",
|
|
31
|
-
};
|
|
32
|
-
b.bp("/app-instances/{AppInstanceArn}/admins");
|
|
33
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
36
|
-
AppInstanceAdminArn: [],
|
|
37
|
-
}));
|
|
38
|
-
b.m("POST").h(headers).b(body);
|
|
39
|
-
return b.build();
|
|
40
|
-
};
|
|
41
|
-
exports.se_CreateAppInstanceAdminCommand = se_CreateAppInstanceAdminCommand;
|
|
42
|
-
const se_CreateAppInstanceBotCommand = async (input, context) => {
|
|
43
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
44
|
-
const headers = {
|
|
45
|
-
"content-type": "application/json",
|
|
46
|
-
};
|
|
47
|
-
b.bp("/app-instance-bots");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
50
|
-
AppInstanceArn: [],
|
|
51
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
52
|
-
Configuration: (_) => (0, smithy_client_1._json)(_),
|
|
53
|
-
Metadata: [],
|
|
54
|
-
Name: [],
|
|
55
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
56
|
-
}));
|
|
57
|
-
b.m("POST").h(headers).b(body);
|
|
58
|
-
return b.build();
|
|
59
|
-
};
|
|
60
|
-
exports.se_CreateAppInstanceBotCommand = se_CreateAppInstanceBotCommand;
|
|
61
|
-
const se_CreateAppInstanceUserCommand = async (input, context) => {
|
|
62
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
63
|
-
const headers = {
|
|
64
|
-
"content-type": "application/json",
|
|
65
|
-
};
|
|
66
|
-
b.bp("/app-instance-users");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
69
|
-
AppInstanceArn: [],
|
|
70
|
-
AppInstanceUserId: [],
|
|
71
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
72
|
-
ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
73
|
-
Metadata: [],
|
|
74
|
-
Name: [],
|
|
75
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
76
|
-
}));
|
|
77
|
-
b.m("POST").h(headers).b(body);
|
|
78
|
-
return b.build();
|
|
79
|
-
};
|
|
80
|
-
exports.se_CreateAppInstanceUserCommand = se_CreateAppInstanceUserCommand;
|
|
81
|
-
const se_DeleteAppInstanceCommand = async (input, context) => {
|
|
82
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
83
|
-
const headers = {};
|
|
84
|
-
b.bp("/app-instances/{AppInstanceArn}");
|
|
85
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
86
|
-
let body;
|
|
87
|
-
b.m("DELETE").h(headers).b(body);
|
|
88
|
-
return b.build();
|
|
89
|
-
};
|
|
90
|
-
exports.se_DeleteAppInstanceCommand = se_DeleteAppInstanceCommand;
|
|
91
|
-
const se_DeleteAppInstanceAdminCommand = async (input, context) => {
|
|
92
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
93
|
-
const headers = {};
|
|
94
|
-
b.bp("/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}");
|
|
95
|
-
b.p("AppInstanceAdminArn", () => input.AppInstanceAdminArn, "{AppInstanceAdminArn}", false);
|
|
96
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
97
|
-
let body;
|
|
98
|
-
b.m("DELETE").h(headers).b(body);
|
|
99
|
-
return b.build();
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteAppInstanceAdminCommand = se_DeleteAppInstanceAdminCommand;
|
|
102
|
-
const se_DeleteAppInstanceBotCommand = async (input, context) => {
|
|
103
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
104
|
-
const headers = {};
|
|
105
|
-
b.bp("/app-instance-bots/{AppInstanceBotArn}");
|
|
106
|
-
b.p("AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
107
|
-
let body;
|
|
108
|
-
b.m("DELETE").h(headers).b(body);
|
|
109
|
-
return b.build();
|
|
110
|
-
};
|
|
111
|
-
exports.se_DeleteAppInstanceBotCommand = se_DeleteAppInstanceBotCommand;
|
|
112
|
-
const se_DeleteAppInstanceUserCommand = async (input, context) => {
|
|
113
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
114
|
-
const headers = {};
|
|
115
|
-
b.bp("/app-instance-users/{AppInstanceUserArn}");
|
|
116
|
-
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
117
|
-
let body;
|
|
118
|
-
b.m("DELETE").h(headers).b(body);
|
|
119
|
-
return b.build();
|
|
120
|
-
};
|
|
121
|
-
exports.se_DeleteAppInstanceUserCommand = se_DeleteAppInstanceUserCommand;
|
|
122
|
-
const se_DeregisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
123
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
124
|
-
const headers = {};
|
|
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);
|
|
128
|
-
let body;
|
|
129
|
-
b.m("DELETE").h(headers).b(body);
|
|
130
|
-
return b.build();
|
|
131
|
-
};
|
|
132
|
-
exports.se_DeregisterAppInstanceUserEndpointCommand = se_DeregisterAppInstanceUserEndpointCommand;
|
|
133
|
-
const se_DescribeAppInstanceCommand = async (input, context) => {
|
|
134
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
135
|
-
const headers = {};
|
|
136
|
-
b.bp("/app-instances/{AppInstanceArn}");
|
|
137
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
138
|
-
let body;
|
|
139
|
-
b.m("GET").h(headers).b(body);
|
|
140
|
-
return b.build();
|
|
141
|
-
};
|
|
142
|
-
exports.se_DescribeAppInstanceCommand = se_DescribeAppInstanceCommand;
|
|
143
|
-
const se_DescribeAppInstanceAdminCommand = async (input, context) => {
|
|
144
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
145
|
-
const headers = {};
|
|
146
|
-
b.bp("/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}");
|
|
147
|
-
b.p("AppInstanceAdminArn", () => input.AppInstanceAdminArn, "{AppInstanceAdminArn}", false);
|
|
148
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
149
|
-
let body;
|
|
150
|
-
b.m("GET").h(headers).b(body);
|
|
151
|
-
return b.build();
|
|
152
|
-
};
|
|
153
|
-
exports.se_DescribeAppInstanceAdminCommand = se_DescribeAppInstanceAdminCommand;
|
|
154
|
-
const se_DescribeAppInstanceBotCommand = async (input, context) => {
|
|
155
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
156
|
-
const headers = {};
|
|
157
|
-
b.bp("/app-instance-bots/{AppInstanceBotArn}");
|
|
158
|
-
b.p("AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
159
|
-
let body;
|
|
160
|
-
b.m("GET").h(headers).b(body);
|
|
161
|
-
return b.build();
|
|
162
|
-
};
|
|
163
|
-
exports.se_DescribeAppInstanceBotCommand = se_DescribeAppInstanceBotCommand;
|
|
164
|
-
const se_DescribeAppInstanceUserCommand = async (input, context) => {
|
|
165
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
166
|
-
const headers = {};
|
|
167
|
-
b.bp("/app-instance-users/{AppInstanceUserArn}");
|
|
168
|
-
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
169
|
-
let body;
|
|
170
|
-
b.m("GET").h(headers).b(body);
|
|
171
|
-
return b.build();
|
|
172
|
-
};
|
|
173
|
-
exports.se_DescribeAppInstanceUserCommand = se_DescribeAppInstanceUserCommand;
|
|
174
|
-
const se_DescribeAppInstanceUserEndpointCommand = async (input, context) => {
|
|
175
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
176
|
-
const headers = {};
|
|
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);
|
|
180
|
-
let body;
|
|
181
|
-
b.m("GET").h(headers).b(body);
|
|
182
|
-
return b.build();
|
|
183
|
-
};
|
|
184
|
-
exports.se_DescribeAppInstanceUserEndpointCommand = se_DescribeAppInstanceUserEndpointCommand;
|
|
185
|
-
const se_GetAppInstanceRetentionSettingsCommand = async (input, context) => {
|
|
186
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
187
|
-
const headers = {};
|
|
188
|
-
b.bp("/app-instances/{AppInstanceArn}/retention-settings");
|
|
189
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
190
|
-
let body;
|
|
191
|
-
b.m("GET").h(headers).b(body);
|
|
192
|
-
return b.build();
|
|
193
|
-
};
|
|
194
|
-
exports.se_GetAppInstanceRetentionSettingsCommand = se_GetAppInstanceRetentionSettingsCommand;
|
|
195
|
-
const se_ListAppInstanceAdminsCommand = async (input, context) => {
|
|
196
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
197
|
-
const headers = {};
|
|
198
|
-
b.bp("/app-instances/{AppInstanceArn}/admins");
|
|
199
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
200
|
-
const query = (0, smithy_client_1.map)({
|
|
201
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
202
|
-
[_nt]: [, input[_NT]],
|
|
203
|
-
});
|
|
204
|
-
let body;
|
|
205
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
206
|
-
return b.build();
|
|
207
|
-
};
|
|
208
|
-
exports.se_ListAppInstanceAdminsCommand = se_ListAppInstanceAdminsCommand;
|
|
209
|
-
const se_ListAppInstanceBotsCommand = async (input, context) => {
|
|
210
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
211
|
-
const headers = {};
|
|
212
|
-
b.bp("/app-instance-bots");
|
|
213
|
-
const query = (0, smithy_client_1.map)({
|
|
214
|
-
[_aia]: [, (0, smithy_client_1.expectNonNull)(input[_AIA], `AppInstanceArn`)],
|
|
215
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
216
|
-
[_nt]: [, input[_NT]],
|
|
217
|
-
});
|
|
218
|
-
let body;
|
|
219
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
220
|
-
return b.build();
|
|
221
|
-
};
|
|
222
|
-
exports.se_ListAppInstanceBotsCommand = se_ListAppInstanceBotsCommand;
|
|
223
|
-
const se_ListAppInstancesCommand = async (input, context) => {
|
|
224
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
225
|
-
const headers = {};
|
|
226
|
-
b.bp("/app-instances");
|
|
227
|
-
const query = (0, smithy_client_1.map)({
|
|
228
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
229
|
-
[_nt]: [, input[_NT]],
|
|
230
|
-
});
|
|
231
|
-
let body;
|
|
232
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
233
|
-
return b.build();
|
|
234
|
-
};
|
|
235
|
-
exports.se_ListAppInstancesCommand = se_ListAppInstancesCommand;
|
|
236
|
-
const se_ListAppInstanceUserEndpointsCommand = async (input, context) => {
|
|
237
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
238
|
-
const headers = {};
|
|
239
|
-
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints");
|
|
240
|
-
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
241
|
-
const query = (0, smithy_client_1.map)({
|
|
242
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
243
|
-
[_nt]: [, input[_NT]],
|
|
244
|
-
});
|
|
245
|
-
let body;
|
|
246
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
247
|
-
return b.build();
|
|
248
|
-
};
|
|
249
|
-
exports.se_ListAppInstanceUserEndpointsCommand = se_ListAppInstanceUserEndpointsCommand;
|
|
250
|
-
const se_ListAppInstanceUsersCommand = async (input, context) => {
|
|
251
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
252
|
-
const headers = {};
|
|
253
|
-
b.bp("/app-instance-users");
|
|
254
|
-
const query = (0, smithy_client_1.map)({
|
|
255
|
-
[_aia]: [, (0, smithy_client_1.expectNonNull)(input[_AIA], `AppInstanceArn`)],
|
|
256
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
257
|
-
[_nt]: [, input[_NT]],
|
|
258
|
-
});
|
|
259
|
-
let body;
|
|
260
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
261
|
-
return b.build();
|
|
262
|
-
};
|
|
263
|
-
exports.se_ListAppInstanceUsersCommand = se_ListAppInstanceUsersCommand;
|
|
264
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
265
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
266
|
-
const headers = {};
|
|
267
|
-
b.bp("/tags");
|
|
268
|
-
const query = (0, smithy_client_1.map)({
|
|
269
|
-
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_RARN], `ResourceARN`)],
|
|
270
|
-
});
|
|
271
|
-
let body;
|
|
272
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
273
|
-
return b.build();
|
|
274
|
-
};
|
|
275
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
276
|
-
const se_PutAppInstanceRetentionSettingsCommand = async (input, context) => {
|
|
277
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
278
|
-
const headers = {
|
|
279
|
-
"content-type": "application/json",
|
|
280
|
-
};
|
|
281
|
-
b.bp("/app-instances/{AppInstanceArn}/retention-settings");
|
|
282
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
283
|
-
let body;
|
|
284
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
285
|
-
AppInstanceRetentionSettings: (_) => (0, smithy_client_1._json)(_),
|
|
286
|
-
}));
|
|
287
|
-
b.m("PUT").h(headers).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
exports.se_PutAppInstanceRetentionSettingsCommand = se_PutAppInstanceRetentionSettingsCommand;
|
|
291
|
-
const se_PutAppInstanceUserExpirationSettingsCommand = async (input, context) => {
|
|
292
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
293
|
-
const headers = {
|
|
294
|
-
"content-type": "application/json",
|
|
295
|
-
};
|
|
296
|
-
b.bp("/app-instance-users/{AppInstanceUserArn}/expiration-settings");
|
|
297
|
-
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
298
|
-
let body;
|
|
299
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
300
|
-
ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
301
|
-
}));
|
|
302
|
-
b.m("PUT").h(headers).b(body);
|
|
303
|
-
return b.build();
|
|
304
|
-
};
|
|
305
|
-
exports.se_PutAppInstanceUserExpirationSettingsCommand = se_PutAppInstanceUserExpirationSettingsCommand;
|
|
306
|
-
const se_RegisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
307
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
308
|
-
const headers = {
|
|
309
|
-
"content-type": "application/json",
|
|
310
|
-
};
|
|
311
|
-
b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints");
|
|
312
|
-
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
313
|
-
let body;
|
|
314
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
315
|
-
AllowMessages: [],
|
|
316
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
317
|
-
EndpointAttributes: (_) => (0, smithy_client_1._json)(_),
|
|
318
|
-
Name: [],
|
|
319
|
-
ResourceArn: [],
|
|
320
|
-
Type: [],
|
|
321
|
-
}));
|
|
322
|
-
b.m("POST").h(headers).b(body);
|
|
323
|
-
return b.build();
|
|
324
|
-
};
|
|
325
|
-
exports.se_RegisterAppInstanceUserEndpointCommand = se_RegisterAppInstanceUserEndpointCommand;
|
|
326
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
327
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
328
|
-
const headers = {
|
|
329
|
-
"content-type": "application/json",
|
|
330
|
-
};
|
|
331
|
-
b.bp("/tags");
|
|
332
|
-
const query = (0, smithy_client_1.map)({
|
|
333
|
-
[_o]: [, "tag-resource"],
|
|
334
|
-
});
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
337
|
-
ResourceARN: [],
|
|
338
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
339
|
-
}));
|
|
340
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
341
|
-
return b.build();
|
|
342
|
-
};
|
|
343
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
344
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
345
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
346
|
-
const headers = {
|
|
347
|
-
"content-type": "application/json",
|
|
348
|
-
};
|
|
349
|
-
b.bp("/tags");
|
|
350
|
-
const query = (0, smithy_client_1.map)({
|
|
351
|
-
[_o]: [, "untag-resource"],
|
|
352
|
-
});
|
|
353
|
-
let body;
|
|
354
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
355
|
-
ResourceARN: [],
|
|
356
|
-
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
357
|
-
}));
|
|
358
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
359
|
-
return b.build();
|
|
360
|
-
};
|
|
361
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
362
|
-
const se_UpdateAppInstanceCommand = async (input, context) => {
|
|
363
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
364
|
-
const headers = {
|
|
365
|
-
"content-type": "application/json",
|
|
366
|
-
};
|
|
367
|
-
b.bp("/app-instances/{AppInstanceArn}");
|
|
368
|
-
b.p("AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
369
|
-
let body;
|
|
370
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
371
|
-
Metadata: [],
|
|
372
|
-
Name: [],
|
|
373
|
-
}));
|
|
374
|
-
b.m("PUT").h(headers).b(body);
|
|
375
|
-
return b.build();
|
|
376
|
-
};
|
|
377
|
-
exports.se_UpdateAppInstanceCommand = se_UpdateAppInstanceCommand;
|
|
378
|
-
const se_UpdateAppInstanceBotCommand = async (input, context) => {
|
|
379
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
380
|
-
const headers = {
|
|
381
|
-
"content-type": "application/json",
|
|
382
|
-
};
|
|
383
|
-
b.bp("/app-instance-bots/{AppInstanceBotArn}");
|
|
384
|
-
b.p("AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
385
|
-
let body;
|
|
386
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
387
|
-
Configuration: (_) => (0, smithy_client_1._json)(_),
|
|
388
|
-
Metadata: [],
|
|
389
|
-
Name: [],
|
|
390
|
-
}));
|
|
391
|
-
b.m("PUT").h(headers).b(body);
|
|
392
|
-
return b.build();
|
|
393
|
-
};
|
|
394
|
-
exports.se_UpdateAppInstanceBotCommand = se_UpdateAppInstanceBotCommand;
|
|
395
|
-
const se_UpdateAppInstanceUserCommand = async (input, context) => {
|
|
396
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
397
|
-
const headers = {
|
|
398
|
-
"content-type": "application/json",
|
|
399
|
-
};
|
|
400
|
-
b.bp("/app-instance-users/{AppInstanceUserArn}");
|
|
401
|
-
b.p("AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
402
|
-
let body;
|
|
403
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
404
|
-
Metadata: [],
|
|
405
|
-
Name: [],
|
|
406
|
-
}));
|
|
407
|
-
b.m("PUT").h(headers).b(body);
|
|
408
|
-
return b.build();
|
|
409
|
-
};
|
|
410
|
-
exports.se_UpdateAppInstanceUserCommand = se_UpdateAppInstanceUserCommand;
|
|
411
|
-
const se_UpdateAppInstanceUserEndpointCommand = async (input, context) => {
|
|
412
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
413
|
-
const headers = {
|
|
414
|
-
"content-type": "application/json",
|
|
415
|
-
};
|
|
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);
|
|
419
|
-
let body;
|
|
420
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
421
|
-
AllowMessages: [],
|
|
422
|
-
Name: [],
|
|
423
|
-
}));
|
|
424
|
-
b.m("PUT").h(headers).b(body);
|
|
425
|
-
return b.build();
|
|
426
|
-
};
|
|
427
|
-
exports.se_UpdateAppInstanceUserEndpointCommand = se_UpdateAppInstanceUserEndpointCommand;
|
|
428
|
-
const de_CreateAppInstanceCommand = async (output, context) => {
|
|
429
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
430
|
-
return de_CreateAppInstanceCommandError(output, context);
|
|
431
|
-
}
|
|
432
|
-
const contents = (0, smithy_client_1.map)({
|
|
433
|
-
$metadata: deserializeMetadata(output),
|
|
434
|
-
});
|
|
435
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
436
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
437
|
-
AppInstanceArn: smithy_client_1.expectString,
|
|
438
|
-
});
|
|
439
|
-
Object.assign(contents, doc);
|
|
440
|
-
return contents;
|
|
441
|
-
};
|
|
442
|
-
exports.de_CreateAppInstanceCommand = de_CreateAppInstanceCommand;
|
|
443
|
-
const de_CreateAppInstanceCommandError = async (output, context) => {
|
|
444
|
-
const parsedOutput = {
|
|
445
|
-
...output,
|
|
446
|
-
body: await parseErrorBody(output.body, context),
|
|
447
|
-
};
|
|
448
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
449
|
-
switch (errorCode) {
|
|
450
|
-
case "BadRequestException":
|
|
451
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
452
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
453
|
-
case "ConflictException":
|
|
454
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
455
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
456
|
-
case "ForbiddenException":
|
|
457
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
458
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
459
|
-
case "ResourceLimitExceededException":
|
|
460
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
461
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
462
|
-
case "ServiceFailureException":
|
|
463
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
464
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
465
|
-
case "ServiceUnavailableException":
|
|
466
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
467
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ThrottledClientException":
|
|
469
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
470
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
471
|
-
case "UnauthorizedClientException":
|
|
472
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
473
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
474
|
-
default:
|
|
475
|
-
const parsedBody = parsedOutput.body;
|
|
476
|
-
return throwDefaultError({
|
|
477
|
-
output,
|
|
478
|
-
parsedBody,
|
|
479
|
-
errorCode,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
const de_CreateAppInstanceAdminCommand = async (output, context) => {
|
|
484
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
485
|
-
return de_CreateAppInstanceAdminCommandError(output, context);
|
|
486
|
-
}
|
|
487
|
-
const contents = (0, smithy_client_1.map)({
|
|
488
|
-
$metadata: deserializeMetadata(output),
|
|
489
|
-
});
|
|
490
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
491
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
492
|
-
AppInstanceAdmin: smithy_client_1._json,
|
|
493
|
-
AppInstanceArn: smithy_client_1.expectString,
|
|
494
|
-
});
|
|
495
|
-
Object.assign(contents, doc);
|
|
496
|
-
return contents;
|
|
497
|
-
};
|
|
498
|
-
exports.de_CreateAppInstanceAdminCommand = de_CreateAppInstanceAdminCommand;
|
|
499
|
-
const de_CreateAppInstanceAdminCommandError = async (output, context) => {
|
|
500
|
-
const parsedOutput = {
|
|
501
|
-
...output,
|
|
502
|
-
body: await parseErrorBody(output.body, context),
|
|
503
|
-
};
|
|
504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
|
-
switch (errorCode) {
|
|
506
|
-
case "BadRequestException":
|
|
507
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
508
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ConflictException":
|
|
510
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
511
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
512
|
-
case "ForbiddenException":
|
|
513
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
514
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
515
|
-
case "ResourceLimitExceededException":
|
|
516
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
517
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
518
|
-
case "ServiceFailureException":
|
|
519
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
520
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
521
|
-
case "ServiceUnavailableException":
|
|
522
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
523
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
524
|
-
case "ThrottledClientException":
|
|
525
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
526
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
527
|
-
case "UnauthorizedClientException":
|
|
528
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
529
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
530
|
-
default:
|
|
531
|
-
const parsedBody = parsedOutput.body;
|
|
532
|
-
return throwDefaultError({
|
|
533
|
-
output,
|
|
534
|
-
parsedBody,
|
|
535
|
-
errorCode,
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
|
-
const de_CreateAppInstanceBotCommand = async (output, context) => {
|
|
540
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
541
|
-
return de_CreateAppInstanceBotCommandError(output, context);
|
|
542
|
-
}
|
|
543
|
-
const contents = (0, smithy_client_1.map)({
|
|
544
|
-
$metadata: deserializeMetadata(output),
|
|
545
|
-
});
|
|
546
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
547
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
548
|
-
AppInstanceBotArn: smithy_client_1.expectString,
|
|
549
|
-
});
|
|
550
|
-
Object.assign(contents, doc);
|
|
551
|
-
return contents;
|
|
552
|
-
};
|
|
553
|
-
exports.de_CreateAppInstanceBotCommand = de_CreateAppInstanceBotCommand;
|
|
554
|
-
const de_CreateAppInstanceBotCommandError = async (output, context) => {
|
|
555
|
-
const parsedOutput = {
|
|
556
|
-
...output,
|
|
557
|
-
body: await parseErrorBody(output.body, context),
|
|
558
|
-
};
|
|
559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
560
|
-
switch (errorCode) {
|
|
561
|
-
case "BadRequestException":
|
|
562
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
563
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ConflictException":
|
|
565
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
566
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
567
|
-
case "ForbiddenException":
|
|
568
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
569
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
570
|
-
case "ResourceLimitExceededException":
|
|
571
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
572
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ServiceFailureException":
|
|
574
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
575
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
576
|
-
case "ServiceUnavailableException":
|
|
577
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
578
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
579
|
-
case "ThrottledClientException":
|
|
580
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
581
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
582
|
-
case "UnauthorizedClientException":
|
|
583
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
584
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
585
|
-
default:
|
|
586
|
-
const parsedBody = parsedOutput.body;
|
|
587
|
-
return throwDefaultError({
|
|
588
|
-
output,
|
|
589
|
-
parsedBody,
|
|
590
|
-
errorCode,
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
const de_CreateAppInstanceUserCommand = async (output, context) => {
|
|
595
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
596
|
-
return de_CreateAppInstanceUserCommandError(output, context);
|
|
597
|
-
}
|
|
598
|
-
const contents = (0, smithy_client_1.map)({
|
|
599
|
-
$metadata: deserializeMetadata(output),
|
|
600
|
-
});
|
|
601
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
602
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
603
|
-
AppInstanceUserArn: smithy_client_1.expectString,
|
|
604
|
-
});
|
|
605
|
-
Object.assign(contents, doc);
|
|
606
|
-
return contents;
|
|
607
|
-
};
|
|
608
|
-
exports.de_CreateAppInstanceUserCommand = de_CreateAppInstanceUserCommand;
|
|
609
|
-
const de_CreateAppInstanceUserCommandError = async (output, context) => {
|
|
610
|
-
const parsedOutput = {
|
|
611
|
-
...output,
|
|
612
|
-
body: await parseErrorBody(output.body, context),
|
|
613
|
-
};
|
|
614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
|
-
switch (errorCode) {
|
|
616
|
-
case "BadRequestException":
|
|
617
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
618
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
619
|
-
case "ConflictException":
|
|
620
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
621
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
622
|
-
case "ForbiddenException":
|
|
623
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
624
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
625
|
-
case "ResourceLimitExceededException":
|
|
626
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
627
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ServiceFailureException":
|
|
629
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
630
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ServiceUnavailableException":
|
|
632
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
633
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
634
|
-
case "ThrottledClientException":
|
|
635
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
636
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
637
|
-
case "UnauthorizedClientException":
|
|
638
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
639
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
640
|
-
default:
|
|
641
|
-
const parsedBody = parsedOutput.body;
|
|
642
|
-
return throwDefaultError({
|
|
643
|
-
output,
|
|
644
|
-
parsedBody,
|
|
645
|
-
errorCode,
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
const de_DeleteAppInstanceCommand = async (output, context) => {
|
|
650
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
651
|
-
return de_DeleteAppInstanceCommandError(output, context);
|
|
652
|
-
}
|
|
653
|
-
const contents = (0, smithy_client_1.map)({
|
|
654
|
-
$metadata: deserializeMetadata(output),
|
|
655
|
-
});
|
|
656
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
657
|
-
return contents;
|
|
658
|
-
};
|
|
659
|
-
exports.de_DeleteAppInstanceCommand = de_DeleteAppInstanceCommand;
|
|
660
|
-
const de_DeleteAppInstanceCommandError = async (output, context) => {
|
|
661
|
-
const parsedOutput = {
|
|
662
|
-
...output,
|
|
663
|
-
body: await parseErrorBody(output.body, context),
|
|
664
|
-
};
|
|
665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
|
-
switch (errorCode) {
|
|
667
|
-
case "BadRequestException":
|
|
668
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
669
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
670
|
-
case "ForbiddenException":
|
|
671
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
672
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
673
|
-
case "ResourceLimitExceededException":
|
|
674
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
675
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
676
|
-
case "ServiceFailureException":
|
|
677
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
678
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
679
|
-
case "ServiceUnavailableException":
|
|
680
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
681
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
682
|
-
case "ThrottledClientException":
|
|
683
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
684
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
685
|
-
case "UnauthorizedClientException":
|
|
686
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
687
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
688
|
-
default:
|
|
689
|
-
const parsedBody = parsedOutput.body;
|
|
690
|
-
return throwDefaultError({
|
|
691
|
-
output,
|
|
692
|
-
parsedBody,
|
|
693
|
-
errorCode,
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
const de_DeleteAppInstanceAdminCommand = async (output, context) => {
|
|
698
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
699
|
-
return de_DeleteAppInstanceAdminCommandError(output, context);
|
|
700
|
-
}
|
|
701
|
-
const contents = (0, smithy_client_1.map)({
|
|
702
|
-
$metadata: deserializeMetadata(output),
|
|
703
|
-
});
|
|
704
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
705
|
-
return contents;
|
|
706
|
-
};
|
|
707
|
-
exports.de_DeleteAppInstanceAdminCommand = de_DeleteAppInstanceAdminCommand;
|
|
708
|
-
const de_DeleteAppInstanceAdminCommandError = async (output, context) => {
|
|
709
|
-
const parsedOutput = {
|
|
710
|
-
...output,
|
|
711
|
-
body: await parseErrorBody(output.body, context),
|
|
712
|
-
};
|
|
713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
|
-
switch (errorCode) {
|
|
715
|
-
case "BadRequestException":
|
|
716
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
717
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ConflictException":
|
|
719
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
720
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ForbiddenException":
|
|
722
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
723
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
724
|
-
case "ResourceLimitExceededException":
|
|
725
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
726
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ServiceFailureException":
|
|
728
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
729
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ServiceUnavailableException":
|
|
731
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
732
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
733
|
-
case "ThrottledClientException":
|
|
734
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
735
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
736
|
-
case "UnauthorizedClientException":
|
|
737
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
738
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode,
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
const de_DeleteAppInstanceBotCommand = async (output, context) => {
|
|
749
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
750
|
-
return de_DeleteAppInstanceBotCommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
const contents = (0, smithy_client_1.map)({
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
});
|
|
755
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
756
|
-
return contents;
|
|
757
|
-
};
|
|
758
|
-
exports.de_DeleteAppInstanceBotCommand = de_DeleteAppInstanceBotCommand;
|
|
759
|
-
const de_DeleteAppInstanceBotCommandError = async (output, context) => {
|
|
760
|
-
const parsedOutput = {
|
|
761
|
-
...output,
|
|
762
|
-
body: await parseErrorBody(output.body, context),
|
|
763
|
-
};
|
|
764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
|
-
switch (errorCode) {
|
|
766
|
-
case "BadRequestException":
|
|
767
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
768
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ConflictException":
|
|
770
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
771
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
772
|
-
case "ForbiddenException":
|
|
773
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
774
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ResourceLimitExceededException":
|
|
776
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
777
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ServiceFailureException":
|
|
779
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
780
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ServiceUnavailableException":
|
|
782
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
783
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
784
|
-
case "ThrottledClientException":
|
|
785
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
786
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
787
|
-
case "UnauthorizedClientException":
|
|
788
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
789
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
790
|
-
default:
|
|
791
|
-
const parsedBody = parsedOutput.body;
|
|
792
|
-
return throwDefaultError({
|
|
793
|
-
output,
|
|
794
|
-
parsedBody,
|
|
795
|
-
errorCode,
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
};
|
|
799
|
-
const de_DeleteAppInstanceUserCommand = async (output, context) => {
|
|
800
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
801
|
-
return de_DeleteAppInstanceUserCommandError(output, context);
|
|
802
|
-
}
|
|
803
|
-
const contents = (0, smithy_client_1.map)({
|
|
804
|
-
$metadata: deserializeMetadata(output),
|
|
805
|
-
});
|
|
806
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
807
|
-
return contents;
|
|
808
|
-
};
|
|
809
|
-
exports.de_DeleteAppInstanceUserCommand = de_DeleteAppInstanceUserCommand;
|
|
810
|
-
const de_DeleteAppInstanceUserCommandError = async (output, context) => {
|
|
811
|
-
const parsedOutput = {
|
|
812
|
-
...output,
|
|
813
|
-
body: await parseErrorBody(output.body, context),
|
|
814
|
-
};
|
|
815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
|
-
switch (errorCode) {
|
|
817
|
-
case "BadRequestException":
|
|
818
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
819
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ConflictException":
|
|
821
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
822
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ForbiddenException":
|
|
824
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
825
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
826
|
-
case "ResourceLimitExceededException":
|
|
827
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
828
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ServiceFailureException":
|
|
830
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
831
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
832
|
-
case "ServiceUnavailableException":
|
|
833
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
834
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ThrottledClientException":
|
|
836
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
837
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
838
|
-
case "UnauthorizedClientException":
|
|
839
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
840
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
841
|
-
default:
|
|
842
|
-
const parsedBody = parsedOutput.body;
|
|
843
|
-
return throwDefaultError({
|
|
844
|
-
output,
|
|
845
|
-
parsedBody,
|
|
846
|
-
errorCode,
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
|
-
const de_DeregisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
851
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
852
|
-
return de_DeregisterAppInstanceUserEndpointCommandError(output, context);
|
|
853
|
-
}
|
|
854
|
-
const contents = (0, smithy_client_1.map)({
|
|
855
|
-
$metadata: deserializeMetadata(output),
|
|
856
|
-
});
|
|
857
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
858
|
-
return contents;
|
|
859
|
-
};
|
|
860
|
-
exports.de_DeregisterAppInstanceUserEndpointCommand = de_DeregisterAppInstanceUserEndpointCommand;
|
|
861
|
-
const de_DeregisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
862
|
-
const parsedOutput = {
|
|
863
|
-
...output,
|
|
864
|
-
body: await parseErrorBody(output.body, context),
|
|
865
|
-
};
|
|
866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
|
-
switch (errorCode) {
|
|
868
|
-
case "BadRequestException":
|
|
869
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
870
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ForbiddenException":
|
|
872
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
873
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ServiceFailureException":
|
|
875
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
876
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
877
|
-
case "ServiceUnavailableException":
|
|
878
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
879
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ThrottledClientException":
|
|
881
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
882
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
883
|
-
case "UnauthorizedClientException":
|
|
884
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
885
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
886
|
-
default:
|
|
887
|
-
const parsedBody = parsedOutput.body;
|
|
888
|
-
return throwDefaultError({
|
|
889
|
-
output,
|
|
890
|
-
parsedBody,
|
|
891
|
-
errorCode,
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
const de_DescribeAppInstanceCommand = async (output, context) => {
|
|
896
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
897
|
-
return de_DescribeAppInstanceCommandError(output, context);
|
|
898
|
-
}
|
|
899
|
-
const contents = (0, smithy_client_1.map)({
|
|
900
|
-
$metadata: deserializeMetadata(output),
|
|
901
|
-
});
|
|
902
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
903
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
904
|
-
AppInstance: (_) => de_AppInstance(_, context),
|
|
905
|
-
});
|
|
906
|
-
Object.assign(contents, doc);
|
|
907
|
-
return contents;
|
|
908
|
-
};
|
|
909
|
-
exports.de_DescribeAppInstanceCommand = de_DescribeAppInstanceCommand;
|
|
910
|
-
const de_DescribeAppInstanceCommandError = async (output, context) => {
|
|
911
|
-
const parsedOutput = {
|
|
912
|
-
...output,
|
|
913
|
-
body: await parseErrorBody(output.body, context),
|
|
914
|
-
};
|
|
915
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
-
switch (errorCode) {
|
|
917
|
-
case "BadRequestException":
|
|
918
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
919
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ForbiddenException":
|
|
921
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
922
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ServiceFailureException":
|
|
924
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
925
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ServiceUnavailableException":
|
|
927
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
928
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ThrottledClientException":
|
|
930
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
931
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
932
|
-
case "UnauthorizedClientException":
|
|
933
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
934
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
935
|
-
default:
|
|
936
|
-
const parsedBody = parsedOutput.body;
|
|
937
|
-
return throwDefaultError({
|
|
938
|
-
output,
|
|
939
|
-
parsedBody,
|
|
940
|
-
errorCode,
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
|
-
};
|
|
944
|
-
const de_DescribeAppInstanceAdminCommand = async (output, context) => {
|
|
945
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
946
|
-
return de_DescribeAppInstanceAdminCommandError(output, context);
|
|
947
|
-
}
|
|
948
|
-
const contents = (0, smithy_client_1.map)({
|
|
949
|
-
$metadata: deserializeMetadata(output),
|
|
950
|
-
});
|
|
951
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
952
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
953
|
-
AppInstanceAdmin: (_) => de_AppInstanceAdmin(_, context),
|
|
954
|
-
});
|
|
955
|
-
Object.assign(contents, doc);
|
|
956
|
-
return contents;
|
|
957
|
-
};
|
|
958
|
-
exports.de_DescribeAppInstanceAdminCommand = de_DescribeAppInstanceAdminCommand;
|
|
959
|
-
const de_DescribeAppInstanceAdminCommandError = async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context),
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "BadRequestException":
|
|
967
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
968
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ForbiddenException":
|
|
970
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
971
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ServiceFailureException":
|
|
973
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
974
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ServiceUnavailableException":
|
|
976
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
977
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ThrottledClientException":
|
|
979
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
980
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
981
|
-
case "UnauthorizedClientException":
|
|
982
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
983
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
984
|
-
default:
|
|
985
|
-
const parsedBody = parsedOutput.body;
|
|
986
|
-
return throwDefaultError({
|
|
987
|
-
output,
|
|
988
|
-
parsedBody,
|
|
989
|
-
errorCode,
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
const de_DescribeAppInstanceBotCommand = async (output, context) => {
|
|
994
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
|
-
return de_DescribeAppInstanceBotCommandError(output, context);
|
|
996
|
-
}
|
|
997
|
-
const contents = (0, smithy_client_1.map)({
|
|
998
|
-
$metadata: deserializeMetadata(output),
|
|
999
|
-
});
|
|
1000
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1001
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1002
|
-
AppInstanceBot: (_) => de_AppInstanceBot(_, context),
|
|
1003
|
-
});
|
|
1004
|
-
Object.assign(contents, doc);
|
|
1005
|
-
return contents;
|
|
1006
|
-
};
|
|
1007
|
-
exports.de_DescribeAppInstanceBotCommand = de_DescribeAppInstanceBotCommand;
|
|
1008
|
-
const de_DescribeAppInstanceBotCommandError = 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 "BadRequestException":
|
|
1016
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1017
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ForbiddenException":
|
|
1019
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1020
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "NotFoundException":
|
|
1022
|
-
case "com.amazonaws.chimesdkidentity#NotFoundException":
|
|
1023
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "ServiceFailureException":
|
|
1025
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1026
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ServiceUnavailableException":
|
|
1028
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1029
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ThrottledClientException":
|
|
1031
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1032
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "UnauthorizedClientException":
|
|
1034
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1035
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1036
|
-
default:
|
|
1037
|
-
const parsedBody = parsedOutput.body;
|
|
1038
|
-
return throwDefaultError({
|
|
1039
|
-
output,
|
|
1040
|
-
parsedBody,
|
|
1041
|
-
errorCode,
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
};
|
|
1045
|
-
const de_DescribeAppInstanceUserCommand = async (output, context) => {
|
|
1046
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
|
-
return de_DescribeAppInstanceUserCommandError(output, context);
|
|
1048
|
-
}
|
|
1049
|
-
const contents = (0, smithy_client_1.map)({
|
|
1050
|
-
$metadata: deserializeMetadata(output),
|
|
1051
|
-
});
|
|
1052
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1053
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1054
|
-
AppInstanceUser: (_) => de_AppInstanceUser(_, context),
|
|
1055
|
-
});
|
|
1056
|
-
Object.assign(contents, doc);
|
|
1057
|
-
return contents;
|
|
1058
|
-
};
|
|
1059
|
-
exports.de_DescribeAppInstanceUserCommand = de_DescribeAppInstanceUserCommand;
|
|
1060
|
-
const de_DescribeAppInstanceUserCommandError = async (output, context) => {
|
|
1061
|
-
const parsedOutput = {
|
|
1062
|
-
...output,
|
|
1063
|
-
body: await parseErrorBody(output.body, context),
|
|
1064
|
-
};
|
|
1065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
-
switch (errorCode) {
|
|
1067
|
-
case "BadRequestException":
|
|
1068
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1069
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ForbiddenException":
|
|
1071
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1072
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ServiceFailureException":
|
|
1074
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1075
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ServiceUnavailableException":
|
|
1077
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1078
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "ThrottledClientException":
|
|
1080
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1081
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "UnauthorizedClientException":
|
|
1083
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1084
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1085
|
-
default:
|
|
1086
|
-
const parsedBody = parsedOutput.body;
|
|
1087
|
-
return throwDefaultError({
|
|
1088
|
-
output,
|
|
1089
|
-
parsedBody,
|
|
1090
|
-
errorCode,
|
|
1091
|
-
});
|
|
1092
|
-
}
|
|
1093
|
-
};
|
|
1094
|
-
const de_DescribeAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1095
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1096
|
-
return de_DescribeAppInstanceUserEndpointCommandError(output, context);
|
|
1097
|
-
}
|
|
1098
|
-
const contents = (0, smithy_client_1.map)({
|
|
1099
|
-
$metadata: deserializeMetadata(output),
|
|
1100
|
-
});
|
|
1101
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1102
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1103
|
-
AppInstanceUserEndpoint: (_) => de_AppInstanceUserEndpoint(_, context),
|
|
1104
|
-
});
|
|
1105
|
-
Object.assign(contents, doc);
|
|
1106
|
-
return contents;
|
|
1107
|
-
};
|
|
1108
|
-
exports.de_DescribeAppInstanceUserEndpointCommand = de_DescribeAppInstanceUserEndpointCommand;
|
|
1109
|
-
const de_DescribeAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1110
|
-
const parsedOutput = {
|
|
1111
|
-
...output,
|
|
1112
|
-
body: await parseErrorBody(output.body, context),
|
|
1113
|
-
};
|
|
1114
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1115
|
-
switch (errorCode) {
|
|
1116
|
-
case "BadRequestException":
|
|
1117
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1118
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "ForbiddenException":
|
|
1120
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1121
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "ServiceFailureException":
|
|
1123
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1124
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "ServiceUnavailableException":
|
|
1126
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1127
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "ThrottledClientException":
|
|
1129
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1130
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "UnauthorizedClientException":
|
|
1132
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1133
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1134
|
-
default:
|
|
1135
|
-
const parsedBody = parsedOutput.body;
|
|
1136
|
-
return throwDefaultError({
|
|
1137
|
-
output,
|
|
1138
|
-
parsedBody,
|
|
1139
|
-
errorCode,
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
};
|
|
1143
|
-
const de_GetAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
1144
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1145
|
-
return de_GetAppInstanceRetentionSettingsCommandError(output, context);
|
|
1146
|
-
}
|
|
1147
|
-
const contents = (0, smithy_client_1.map)({
|
|
1148
|
-
$metadata: deserializeMetadata(output),
|
|
1149
|
-
});
|
|
1150
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1151
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1152
|
-
AppInstanceRetentionSettings: smithy_client_1._json,
|
|
1153
|
-
InitiateDeletionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1154
|
-
});
|
|
1155
|
-
Object.assign(contents, doc);
|
|
1156
|
-
return contents;
|
|
1157
|
-
};
|
|
1158
|
-
exports.de_GetAppInstanceRetentionSettingsCommand = de_GetAppInstanceRetentionSettingsCommand;
|
|
1159
|
-
const de_GetAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
1160
|
-
const parsedOutput = {
|
|
1161
|
-
...output,
|
|
1162
|
-
body: await parseErrorBody(output.body, context),
|
|
1163
|
-
};
|
|
1164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
|
-
switch (errorCode) {
|
|
1166
|
-
case "BadRequestException":
|
|
1167
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1168
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ForbiddenException":
|
|
1170
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1171
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ServiceFailureException":
|
|
1173
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1174
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ServiceUnavailableException":
|
|
1176
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1177
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ThrottledClientException":
|
|
1179
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1180
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "UnauthorizedClientException":
|
|
1182
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1183
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1184
|
-
default:
|
|
1185
|
-
const parsedBody = parsedOutput.body;
|
|
1186
|
-
return throwDefaultError({
|
|
1187
|
-
output,
|
|
1188
|
-
parsedBody,
|
|
1189
|
-
errorCode,
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
};
|
|
1193
|
-
const de_ListAppInstanceAdminsCommand = async (output, context) => {
|
|
1194
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1195
|
-
return de_ListAppInstanceAdminsCommandError(output, context);
|
|
1196
|
-
}
|
|
1197
|
-
const contents = (0, smithy_client_1.map)({
|
|
1198
|
-
$metadata: deserializeMetadata(output),
|
|
1199
|
-
});
|
|
1200
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1201
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1202
|
-
AppInstanceAdmins: smithy_client_1._json,
|
|
1203
|
-
AppInstanceArn: smithy_client_1.expectString,
|
|
1204
|
-
NextToken: smithy_client_1.expectString,
|
|
1205
|
-
});
|
|
1206
|
-
Object.assign(contents, doc);
|
|
1207
|
-
return contents;
|
|
1208
|
-
};
|
|
1209
|
-
exports.de_ListAppInstanceAdminsCommand = de_ListAppInstanceAdminsCommand;
|
|
1210
|
-
const de_ListAppInstanceAdminsCommandError = async (output, context) => {
|
|
1211
|
-
const parsedOutput = {
|
|
1212
|
-
...output,
|
|
1213
|
-
body: await parseErrorBody(output.body, context),
|
|
1214
|
-
};
|
|
1215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
|
-
switch (errorCode) {
|
|
1217
|
-
case "BadRequestException":
|
|
1218
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1219
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "ForbiddenException":
|
|
1221
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1222
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ResourceLimitExceededException":
|
|
1224
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1225
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ServiceFailureException":
|
|
1227
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1228
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ServiceUnavailableException":
|
|
1230
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1231
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ThrottledClientException":
|
|
1233
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1234
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "UnauthorizedClientException":
|
|
1236
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1237
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1238
|
-
default:
|
|
1239
|
-
const parsedBody = parsedOutput.body;
|
|
1240
|
-
return throwDefaultError({
|
|
1241
|
-
output,
|
|
1242
|
-
parsedBody,
|
|
1243
|
-
errorCode,
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
};
|
|
1247
|
-
const de_ListAppInstanceBotsCommand = async (output, context) => {
|
|
1248
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1249
|
-
return de_ListAppInstanceBotsCommandError(output, context);
|
|
1250
|
-
}
|
|
1251
|
-
const contents = (0, smithy_client_1.map)({
|
|
1252
|
-
$metadata: deserializeMetadata(output),
|
|
1253
|
-
});
|
|
1254
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1255
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1256
|
-
AppInstanceArn: smithy_client_1.expectString,
|
|
1257
|
-
AppInstanceBots: smithy_client_1._json,
|
|
1258
|
-
NextToken: smithy_client_1.expectString,
|
|
1259
|
-
});
|
|
1260
|
-
Object.assign(contents, doc);
|
|
1261
|
-
return contents;
|
|
1262
|
-
};
|
|
1263
|
-
exports.de_ListAppInstanceBotsCommand = de_ListAppInstanceBotsCommand;
|
|
1264
|
-
const de_ListAppInstanceBotsCommandError = async (output, context) => {
|
|
1265
|
-
const parsedOutput = {
|
|
1266
|
-
...output,
|
|
1267
|
-
body: await parseErrorBody(output.body, context),
|
|
1268
|
-
};
|
|
1269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
|
-
switch (errorCode) {
|
|
1271
|
-
case "BadRequestException":
|
|
1272
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1273
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ForbiddenException":
|
|
1275
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1276
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ResourceLimitExceededException":
|
|
1278
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1279
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ServiceFailureException":
|
|
1281
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1282
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ServiceUnavailableException":
|
|
1284
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1285
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ThrottledClientException":
|
|
1287
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1288
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "UnauthorizedClientException":
|
|
1290
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1291
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1292
|
-
default:
|
|
1293
|
-
const parsedBody = parsedOutput.body;
|
|
1294
|
-
return throwDefaultError({
|
|
1295
|
-
output,
|
|
1296
|
-
parsedBody,
|
|
1297
|
-
errorCode,
|
|
1298
|
-
});
|
|
1299
|
-
}
|
|
1300
|
-
};
|
|
1301
|
-
const de_ListAppInstancesCommand = async (output, context) => {
|
|
1302
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1303
|
-
return de_ListAppInstancesCommandError(output, context);
|
|
1304
|
-
}
|
|
1305
|
-
const contents = (0, smithy_client_1.map)({
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
});
|
|
1308
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1309
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1310
|
-
AppInstances: smithy_client_1._json,
|
|
1311
|
-
NextToken: smithy_client_1.expectString,
|
|
1312
|
-
});
|
|
1313
|
-
Object.assign(contents, doc);
|
|
1314
|
-
return contents;
|
|
1315
|
-
};
|
|
1316
|
-
exports.de_ListAppInstancesCommand = de_ListAppInstancesCommand;
|
|
1317
|
-
const de_ListAppInstancesCommandError = async (output, context) => {
|
|
1318
|
-
const parsedOutput = {
|
|
1319
|
-
...output,
|
|
1320
|
-
body: await parseErrorBody(output.body, context),
|
|
1321
|
-
};
|
|
1322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
-
switch (errorCode) {
|
|
1324
|
-
case "BadRequestException":
|
|
1325
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1326
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ForbiddenException":
|
|
1328
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1329
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ServiceFailureException":
|
|
1331
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1332
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ServiceUnavailableException":
|
|
1334
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1335
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "ThrottledClientException":
|
|
1337
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1338
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "UnauthorizedClientException":
|
|
1340
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1341
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1342
|
-
default:
|
|
1343
|
-
const parsedBody = parsedOutput.body;
|
|
1344
|
-
return throwDefaultError({
|
|
1345
|
-
output,
|
|
1346
|
-
parsedBody,
|
|
1347
|
-
errorCode,
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
};
|
|
1351
|
-
const de_ListAppInstanceUserEndpointsCommand = async (output, context) => {
|
|
1352
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
|
-
return de_ListAppInstanceUserEndpointsCommandError(output, context);
|
|
1354
|
-
}
|
|
1355
|
-
const contents = (0, smithy_client_1.map)({
|
|
1356
|
-
$metadata: deserializeMetadata(output),
|
|
1357
|
-
});
|
|
1358
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1359
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1360
|
-
AppInstanceUserEndpoints: smithy_client_1._json,
|
|
1361
|
-
NextToken: smithy_client_1.expectString,
|
|
1362
|
-
});
|
|
1363
|
-
Object.assign(contents, doc);
|
|
1364
|
-
return contents;
|
|
1365
|
-
};
|
|
1366
|
-
exports.de_ListAppInstanceUserEndpointsCommand = de_ListAppInstanceUserEndpointsCommand;
|
|
1367
|
-
const de_ListAppInstanceUserEndpointsCommandError = async (output, context) => {
|
|
1368
|
-
const parsedOutput = {
|
|
1369
|
-
...output,
|
|
1370
|
-
body: await parseErrorBody(output.body, context),
|
|
1371
|
-
};
|
|
1372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
|
-
switch (errorCode) {
|
|
1374
|
-
case "BadRequestException":
|
|
1375
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1376
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ForbiddenException":
|
|
1378
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1379
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ServiceFailureException":
|
|
1381
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1382
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ServiceUnavailableException":
|
|
1384
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1385
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ThrottledClientException":
|
|
1387
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1388
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "UnauthorizedClientException":
|
|
1390
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1391
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1392
|
-
default:
|
|
1393
|
-
const parsedBody = parsedOutput.body;
|
|
1394
|
-
return throwDefaultError({
|
|
1395
|
-
output,
|
|
1396
|
-
parsedBody,
|
|
1397
|
-
errorCode,
|
|
1398
|
-
});
|
|
1399
|
-
}
|
|
1400
|
-
};
|
|
1401
|
-
const de_ListAppInstanceUsersCommand = async (output, context) => {
|
|
1402
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1403
|
-
return de_ListAppInstanceUsersCommandError(output, context);
|
|
1404
|
-
}
|
|
1405
|
-
const contents = (0, smithy_client_1.map)({
|
|
1406
|
-
$metadata: deserializeMetadata(output),
|
|
1407
|
-
});
|
|
1408
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1409
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1410
|
-
AppInstanceArn: smithy_client_1.expectString,
|
|
1411
|
-
AppInstanceUsers: smithy_client_1._json,
|
|
1412
|
-
NextToken: smithy_client_1.expectString,
|
|
1413
|
-
});
|
|
1414
|
-
Object.assign(contents, doc);
|
|
1415
|
-
return contents;
|
|
1416
|
-
};
|
|
1417
|
-
exports.de_ListAppInstanceUsersCommand = de_ListAppInstanceUsersCommand;
|
|
1418
|
-
const de_ListAppInstanceUsersCommandError = async (output, context) => {
|
|
1419
|
-
const parsedOutput = {
|
|
1420
|
-
...output,
|
|
1421
|
-
body: await parseErrorBody(output.body, context),
|
|
1422
|
-
};
|
|
1423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
|
-
switch (errorCode) {
|
|
1425
|
-
case "BadRequestException":
|
|
1426
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1427
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ForbiddenException":
|
|
1429
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1430
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ServiceFailureException":
|
|
1432
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1433
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ServiceUnavailableException":
|
|
1435
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1436
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ThrottledClientException":
|
|
1438
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1439
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "UnauthorizedClientException":
|
|
1441
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1442
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1443
|
-
default:
|
|
1444
|
-
const parsedBody = parsedOutput.body;
|
|
1445
|
-
return throwDefaultError({
|
|
1446
|
-
output,
|
|
1447
|
-
parsedBody,
|
|
1448
|
-
errorCode,
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
};
|
|
1452
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1453
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1454
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1455
|
-
}
|
|
1456
|
-
const contents = (0, smithy_client_1.map)({
|
|
1457
|
-
$metadata: deserializeMetadata(output),
|
|
1458
|
-
});
|
|
1459
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1460
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1461
|
-
Tags: smithy_client_1._json,
|
|
1462
|
-
});
|
|
1463
|
-
Object.assign(contents, doc);
|
|
1464
|
-
return contents;
|
|
1465
|
-
};
|
|
1466
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1467
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1468
|
-
const parsedOutput = {
|
|
1469
|
-
...output,
|
|
1470
|
-
body: await parseErrorBody(output.body, context),
|
|
1471
|
-
};
|
|
1472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1473
|
-
switch (errorCode) {
|
|
1474
|
-
case "BadRequestException":
|
|
1475
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1476
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1477
|
-
case "ForbiddenException":
|
|
1478
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1479
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1480
|
-
case "ServiceFailureException":
|
|
1481
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1482
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "ServiceUnavailableException":
|
|
1484
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1485
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "ThrottledClientException":
|
|
1487
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1488
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "UnauthorizedClientException":
|
|
1490
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1491
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1492
|
-
default:
|
|
1493
|
-
const parsedBody = parsedOutput.body;
|
|
1494
|
-
return throwDefaultError({
|
|
1495
|
-
output,
|
|
1496
|
-
parsedBody,
|
|
1497
|
-
errorCode,
|
|
1498
|
-
});
|
|
1499
|
-
}
|
|
1500
|
-
};
|
|
1501
|
-
const de_PutAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
1502
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1503
|
-
return de_PutAppInstanceRetentionSettingsCommandError(output, context);
|
|
1504
|
-
}
|
|
1505
|
-
const contents = (0, smithy_client_1.map)({
|
|
1506
|
-
$metadata: deserializeMetadata(output),
|
|
1507
|
-
});
|
|
1508
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1509
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1510
|
-
AppInstanceRetentionSettings: smithy_client_1._json,
|
|
1511
|
-
InitiateDeletionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1512
|
-
});
|
|
1513
|
-
Object.assign(contents, doc);
|
|
1514
|
-
return contents;
|
|
1515
|
-
};
|
|
1516
|
-
exports.de_PutAppInstanceRetentionSettingsCommand = de_PutAppInstanceRetentionSettingsCommand;
|
|
1517
|
-
const de_PutAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
1518
|
-
const parsedOutput = {
|
|
1519
|
-
...output,
|
|
1520
|
-
body: await parseErrorBody(output.body, context),
|
|
1521
|
-
};
|
|
1522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
|
-
switch (errorCode) {
|
|
1524
|
-
case "BadRequestException":
|
|
1525
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1526
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "ForbiddenException":
|
|
1528
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1529
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1530
|
-
case "ServiceFailureException":
|
|
1531
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1532
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "ServiceUnavailableException":
|
|
1534
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1535
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "ThrottledClientException":
|
|
1537
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1538
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "UnauthorizedClientException":
|
|
1540
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1541
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1542
|
-
default:
|
|
1543
|
-
const parsedBody = parsedOutput.body;
|
|
1544
|
-
return throwDefaultError({
|
|
1545
|
-
output,
|
|
1546
|
-
parsedBody,
|
|
1547
|
-
errorCode,
|
|
1548
|
-
});
|
|
1549
|
-
}
|
|
1550
|
-
};
|
|
1551
|
-
const de_PutAppInstanceUserExpirationSettingsCommand = async (output, context) => {
|
|
1552
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1553
|
-
return de_PutAppInstanceUserExpirationSettingsCommandError(output, context);
|
|
1554
|
-
}
|
|
1555
|
-
const contents = (0, smithy_client_1.map)({
|
|
1556
|
-
$metadata: deserializeMetadata(output),
|
|
1557
|
-
});
|
|
1558
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1559
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1560
|
-
AppInstanceUserArn: smithy_client_1.expectString,
|
|
1561
|
-
ExpirationSettings: smithy_client_1._json,
|
|
1562
|
-
});
|
|
1563
|
-
Object.assign(contents, doc);
|
|
1564
|
-
return contents;
|
|
1565
|
-
};
|
|
1566
|
-
exports.de_PutAppInstanceUserExpirationSettingsCommand = de_PutAppInstanceUserExpirationSettingsCommand;
|
|
1567
|
-
const de_PutAppInstanceUserExpirationSettingsCommandError = async (output, context) => {
|
|
1568
|
-
const parsedOutput = {
|
|
1569
|
-
...output,
|
|
1570
|
-
body: await parseErrorBody(output.body, context),
|
|
1571
|
-
};
|
|
1572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1573
|
-
switch (errorCode) {
|
|
1574
|
-
case "BadRequestException":
|
|
1575
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1576
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "ConflictException":
|
|
1578
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1579
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "ForbiddenException":
|
|
1581
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1582
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "ServiceFailureException":
|
|
1584
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1585
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "ServiceUnavailableException":
|
|
1587
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1588
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ThrottledClientException":
|
|
1590
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1591
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "UnauthorizedClientException":
|
|
1593
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1594
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1595
|
-
default:
|
|
1596
|
-
const parsedBody = parsedOutput.body;
|
|
1597
|
-
return throwDefaultError({
|
|
1598
|
-
output,
|
|
1599
|
-
parsedBody,
|
|
1600
|
-
errorCode,
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
};
|
|
1604
|
-
const de_RegisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1605
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1606
|
-
return de_RegisterAppInstanceUserEndpointCommandError(output, context);
|
|
1607
|
-
}
|
|
1608
|
-
const contents = (0, smithy_client_1.map)({
|
|
1609
|
-
$metadata: deserializeMetadata(output),
|
|
1610
|
-
});
|
|
1611
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1612
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1613
|
-
AppInstanceUserArn: smithy_client_1.expectString,
|
|
1614
|
-
EndpointId: smithy_client_1.expectString,
|
|
1615
|
-
});
|
|
1616
|
-
Object.assign(contents, doc);
|
|
1617
|
-
return contents;
|
|
1618
|
-
};
|
|
1619
|
-
exports.de_RegisterAppInstanceUserEndpointCommand = de_RegisterAppInstanceUserEndpointCommand;
|
|
1620
|
-
const de_RegisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1621
|
-
const parsedOutput = {
|
|
1622
|
-
...output,
|
|
1623
|
-
body: await parseErrorBody(output.body, context),
|
|
1624
|
-
};
|
|
1625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
|
-
switch (errorCode) {
|
|
1627
|
-
case "BadRequestException":
|
|
1628
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1629
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "ConflictException":
|
|
1631
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1632
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "ForbiddenException":
|
|
1634
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1635
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "ResourceLimitExceededException":
|
|
1637
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1638
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ServiceFailureException":
|
|
1640
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1641
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "ServiceUnavailableException":
|
|
1643
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1644
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ThrottledClientException":
|
|
1646
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1647
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "UnauthorizedClientException":
|
|
1649
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1650
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1651
|
-
default:
|
|
1652
|
-
const parsedBody = parsedOutput.body;
|
|
1653
|
-
return throwDefaultError({
|
|
1654
|
-
output,
|
|
1655
|
-
parsedBody,
|
|
1656
|
-
errorCode,
|
|
1657
|
-
});
|
|
1658
|
-
}
|
|
1659
|
-
};
|
|
1660
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1661
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1662
|
-
return de_TagResourceCommandError(output, context);
|
|
1663
|
-
}
|
|
1664
|
-
const contents = (0, smithy_client_1.map)({
|
|
1665
|
-
$metadata: deserializeMetadata(output),
|
|
1666
|
-
});
|
|
1667
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1668
|
-
return contents;
|
|
1669
|
-
};
|
|
1670
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1671
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1672
|
-
const parsedOutput = {
|
|
1673
|
-
...output,
|
|
1674
|
-
body: await parseErrorBody(output.body, context),
|
|
1675
|
-
};
|
|
1676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1677
|
-
switch (errorCode) {
|
|
1678
|
-
case "BadRequestException":
|
|
1679
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1680
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ForbiddenException":
|
|
1682
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1683
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ResourceLimitExceededException":
|
|
1685
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1686
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ServiceFailureException":
|
|
1688
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1689
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ServiceUnavailableException":
|
|
1691
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1692
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "ThrottledClientException":
|
|
1694
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1695
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "UnauthorizedClientException":
|
|
1697
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1698
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1699
|
-
default:
|
|
1700
|
-
const parsedBody = parsedOutput.body;
|
|
1701
|
-
return throwDefaultError({
|
|
1702
|
-
output,
|
|
1703
|
-
parsedBody,
|
|
1704
|
-
errorCode,
|
|
1705
|
-
});
|
|
1706
|
-
}
|
|
1707
|
-
};
|
|
1708
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1709
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1710
|
-
return de_UntagResourceCommandError(output, context);
|
|
1711
|
-
}
|
|
1712
|
-
const contents = (0, smithy_client_1.map)({
|
|
1713
|
-
$metadata: deserializeMetadata(output),
|
|
1714
|
-
});
|
|
1715
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1716
|
-
return contents;
|
|
1717
|
-
};
|
|
1718
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1719
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1720
|
-
const parsedOutput = {
|
|
1721
|
-
...output,
|
|
1722
|
-
body: await parseErrorBody(output.body, context),
|
|
1723
|
-
};
|
|
1724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1725
|
-
switch (errorCode) {
|
|
1726
|
-
case "BadRequestException":
|
|
1727
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1728
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "ForbiddenException":
|
|
1730
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1731
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "ServiceFailureException":
|
|
1733
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1734
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "ServiceUnavailableException":
|
|
1736
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1737
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1738
|
-
case "ThrottledClientException":
|
|
1739
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1740
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1741
|
-
case "UnauthorizedClientException":
|
|
1742
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1743
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1744
|
-
default:
|
|
1745
|
-
const parsedBody = parsedOutput.body;
|
|
1746
|
-
return throwDefaultError({
|
|
1747
|
-
output,
|
|
1748
|
-
parsedBody,
|
|
1749
|
-
errorCode,
|
|
1750
|
-
});
|
|
1751
|
-
}
|
|
1752
|
-
};
|
|
1753
|
-
const de_UpdateAppInstanceCommand = async (output, context) => {
|
|
1754
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1755
|
-
return de_UpdateAppInstanceCommandError(output, context);
|
|
1756
|
-
}
|
|
1757
|
-
const contents = (0, smithy_client_1.map)({
|
|
1758
|
-
$metadata: deserializeMetadata(output),
|
|
1759
|
-
});
|
|
1760
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1761
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1762
|
-
AppInstanceArn: smithy_client_1.expectString,
|
|
1763
|
-
});
|
|
1764
|
-
Object.assign(contents, doc);
|
|
1765
|
-
return contents;
|
|
1766
|
-
};
|
|
1767
|
-
exports.de_UpdateAppInstanceCommand = de_UpdateAppInstanceCommand;
|
|
1768
|
-
const de_UpdateAppInstanceCommandError = async (output, context) => {
|
|
1769
|
-
const parsedOutput = {
|
|
1770
|
-
...output,
|
|
1771
|
-
body: await parseErrorBody(output.body, context),
|
|
1772
|
-
};
|
|
1773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
-
switch (errorCode) {
|
|
1775
|
-
case "BadRequestException":
|
|
1776
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1777
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "ConflictException":
|
|
1779
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1780
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "ForbiddenException":
|
|
1782
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1783
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "ServiceFailureException":
|
|
1785
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1786
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "ServiceUnavailableException":
|
|
1788
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1789
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "ThrottledClientException":
|
|
1791
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1792
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "UnauthorizedClientException":
|
|
1794
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1795
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1796
|
-
default:
|
|
1797
|
-
const parsedBody = parsedOutput.body;
|
|
1798
|
-
return throwDefaultError({
|
|
1799
|
-
output,
|
|
1800
|
-
parsedBody,
|
|
1801
|
-
errorCode,
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
};
|
|
1805
|
-
const de_UpdateAppInstanceBotCommand = async (output, context) => {
|
|
1806
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1807
|
-
return de_UpdateAppInstanceBotCommandError(output, context);
|
|
1808
|
-
}
|
|
1809
|
-
const contents = (0, smithy_client_1.map)({
|
|
1810
|
-
$metadata: deserializeMetadata(output),
|
|
1811
|
-
});
|
|
1812
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1813
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1814
|
-
AppInstanceBotArn: smithy_client_1.expectString,
|
|
1815
|
-
});
|
|
1816
|
-
Object.assign(contents, doc);
|
|
1817
|
-
return contents;
|
|
1818
|
-
};
|
|
1819
|
-
exports.de_UpdateAppInstanceBotCommand = de_UpdateAppInstanceBotCommand;
|
|
1820
|
-
const de_UpdateAppInstanceBotCommandError = async (output, context) => {
|
|
1821
|
-
const parsedOutput = {
|
|
1822
|
-
...output,
|
|
1823
|
-
body: await parseErrorBody(output.body, context),
|
|
1824
|
-
};
|
|
1825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
|
-
switch (errorCode) {
|
|
1827
|
-
case "BadRequestException":
|
|
1828
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1829
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "ConflictException":
|
|
1831
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1832
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "ForbiddenException":
|
|
1834
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1835
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "ResourceLimitExceededException":
|
|
1837
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1838
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "ServiceFailureException":
|
|
1840
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1841
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "ServiceUnavailableException":
|
|
1843
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1844
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "ThrottledClientException":
|
|
1846
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1847
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "UnauthorizedClientException":
|
|
1849
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1850
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1851
|
-
default:
|
|
1852
|
-
const parsedBody = parsedOutput.body;
|
|
1853
|
-
return throwDefaultError({
|
|
1854
|
-
output,
|
|
1855
|
-
parsedBody,
|
|
1856
|
-
errorCode,
|
|
1857
|
-
});
|
|
1858
|
-
}
|
|
1859
|
-
};
|
|
1860
|
-
const de_UpdateAppInstanceUserCommand = async (output, context) => {
|
|
1861
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1862
|
-
return de_UpdateAppInstanceUserCommandError(output, context);
|
|
1863
|
-
}
|
|
1864
|
-
const contents = (0, smithy_client_1.map)({
|
|
1865
|
-
$metadata: deserializeMetadata(output),
|
|
1866
|
-
});
|
|
1867
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1868
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1869
|
-
AppInstanceUserArn: smithy_client_1.expectString,
|
|
1870
|
-
});
|
|
1871
|
-
Object.assign(contents, doc);
|
|
1872
|
-
return contents;
|
|
1873
|
-
};
|
|
1874
|
-
exports.de_UpdateAppInstanceUserCommand = de_UpdateAppInstanceUserCommand;
|
|
1875
|
-
const de_UpdateAppInstanceUserCommandError = async (output, context) => {
|
|
1876
|
-
const parsedOutput = {
|
|
1877
|
-
...output,
|
|
1878
|
-
body: await parseErrorBody(output.body, context),
|
|
1879
|
-
};
|
|
1880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1881
|
-
switch (errorCode) {
|
|
1882
|
-
case "BadRequestException":
|
|
1883
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1884
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "ConflictException":
|
|
1886
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1887
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "ForbiddenException":
|
|
1889
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1890
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "ResourceLimitExceededException":
|
|
1892
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1893
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "ServiceFailureException":
|
|
1895
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1896
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "ServiceUnavailableException":
|
|
1898
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1899
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ThrottledClientException":
|
|
1901
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1902
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "UnauthorizedClientException":
|
|
1904
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1905
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1906
|
-
default:
|
|
1907
|
-
const parsedBody = parsedOutput.body;
|
|
1908
|
-
return throwDefaultError({
|
|
1909
|
-
output,
|
|
1910
|
-
parsedBody,
|
|
1911
|
-
errorCode,
|
|
1912
|
-
});
|
|
1913
|
-
}
|
|
1914
|
-
};
|
|
1915
|
-
const de_UpdateAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1916
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1917
|
-
return de_UpdateAppInstanceUserEndpointCommandError(output, context);
|
|
1918
|
-
}
|
|
1919
|
-
const contents = (0, smithy_client_1.map)({
|
|
1920
|
-
$metadata: deserializeMetadata(output),
|
|
1921
|
-
});
|
|
1922
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1923
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1924
|
-
AppInstanceUserArn: smithy_client_1.expectString,
|
|
1925
|
-
EndpointId: smithy_client_1.expectString,
|
|
1926
|
-
});
|
|
1927
|
-
Object.assign(contents, doc);
|
|
1928
|
-
return contents;
|
|
1929
|
-
};
|
|
1930
|
-
exports.de_UpdateAppInstanceUserEndpointCommand = de_UpdateAppInstanceUserEndpointCommand;
|
|
1931
|
-
const de_UpdateAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1932
|
-
const parsedOutput = {
|
|
1933
|
-
...output,
|
|
1934
|
-
body: await parseErrorBody(output.body, context),
|
|
1935
|
-
};
|
|
1936
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
|
-
switch (errorCode) {
|
|
1938
|
-
case "BadRequestException":
|
|
1939
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1940
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "ConflictException":
|
|
1942
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1943
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "ForbiddenException":
|
|
1945
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1946
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "ServiceFailureException":
|
|
1948
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1949
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "ServiceUnavailableException":
|
|
1951
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1952
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1953
|
-
case "ThrottledClientException":
|
|
1954
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1955
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "UnauthorizedClientException":
|
|
1957
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1958
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1959
|
-
default:
|
|
1960
|
-
const parsedBody = parsedOutput.body;
|
|
1961
|
-
return throwDefaultError({
|
|
1962
|
-
output,
|
|
1963
|
-
parsedBody,
|
|
1964
|
-
errorCode,
|
|
1965
|
-
});
|
|
1966
|
-
}
|
|
1967
|
-
};
|
|
1968
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException);
|
|
1969
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1970
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1971
|
-
const data = parsedOutput.body;
|
|
1972
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1973
|
-
Code: smithy_client_1.expectString,
|
|
1974
|
-
Message: smithy_client_1.expectString,
|
|
1975
|
-
});
|
|
1976
|
-
Object.assign(contents, doc);
|
|
1977
|
-
const exception = new models_0_1.BadRequestException({
|
|
1978
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1979
|
-
...contents,
|
|
1980
|
-
});
|
|
1981
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1982
|
-
};
|
|
1983
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1984
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1985
|
-
const data = parsedOutput.body;
|
|
1986
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1987
|
-
Code: smithy_client_1.expectString,
|
|
1988
|
-
Message: smithy_client_1.expectString,
|
|
1989
|
-
});
|
|
1990
|
-
Object.assign(contents, doc);
|
|
1991
|
-
const exception = new models_0_1.ConflictException({
|
|
1992
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1993
|
-
...contents,
|
|
1994
|
-
});
|
|
1995
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1996
|
-
};
|
|
1997
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1998
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1999
|
-
const data = parsedOutput.body;
|
|
2000
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2001
|
-
Code: smithy_client_1.expectString,
|
|
2002
|
-
Message: smithy_client_1.expectString,
|
|
2003
|
-
});
|
|
2004
|
-
Object.assign(contents, doc);
|
|
2005
|
-
const exception = new models_0_1.ForbiddenException({
|
|
2006
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2007
|
-
...contents,
|
|
2008
|
-
});
|
|
2009
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2010
|
-
};
|
|
2011
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2012
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2013
|
-
const data = parsedOutput.body;
|
|
2014
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2015
|
-
Code: smithy_client_1.expectString,
|
|
2016
|
-
Message: smithy_client_1.expectString,
|
|
2017
|
-
});
|
|
2018
|
-
Object.assign(contents, doc);
|
|
2019
|
-
const exception = new models_0_1.NotFoundException({
|
|
2020
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2021
|
-
...contents,
|
|
2022
|
-
});
|
|
2023
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2024
|
-
};
|
|
2025
|
-
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2026
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2027
|
-
const data = parsedOutput.body;
|
|
2028
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2029
|
-
Code: smithy_client_1.expectString,
|
|
2030
|
-
Message: smithy_client_1.expectString,
|
|
2031
|
-
});
|
|
2032
|
-
Object.assign(contents, doc);
|
|
2033
|
-
const exception = new models_0_1.ResourceLimitExceededException({
|
|
2034
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2035
|
-
...contents,
|
|
2036
|
-
});
|
|
2037
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2038
|
-
};
|
|
2039
|
-
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
2040
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2041
|
-
const data = parsedOutput.body;
|
|
2042
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2043
|
-
Code: smithy_client_1.expectString,
|
|
2044
|
-
Message: smithy_client_1.expectString,
|
|
2045
|
-
});
|
|
2046
|
-
Object.assign(contents, doc);
|
|
2047
|
-
const exception = new models_0_1.ServiceFailureException({
|
|
2048
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2049
|
-
...contents,
|
|
2050
|
-
});
|
|
2051
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2052
|
-
};
|
|
2053
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2054
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2055
|
-
const data = parsedOutput.body;
|
|
2056
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2057
|
-
Code: smithy_client_1.expectString,
|
|
2058
|
-
Message: smithy_client_1.expectString,
|
|
2059
|
-
});
|
|
2060
|
-
Object.assign(contents, doc);
|
|
2061
|
-
const exception = new models_0_1.ServiceUnavailableException({
|
|
2062
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2063
|
-
...contents,
|
|
2064
|
-
});
|
|
2065
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2066
|
-
};
|
|
2067
|
-
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
2068
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2069
|
-
const data = parsedOutput.body;
|
|
2070
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2071
|
-
Code: smithy_client_1.expectString,
|
|
2072
|
-
Message: smithy_client_1.expectString,
|
|
2073
|
-
});
|
|
2074
|
-
Object.assign(contents, doc);
|
|
2075
|
-
const exception = new models_0_1.ThrottledClientException({
|
|
2076
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2077
|
-
...contents,
|
|
2078
|
-
});
|
|
2079
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2080
|
-
};
|
|
2081
|
-
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
2082
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2083
|
-
const data = parsedOutput.body;
|
|
2084
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2085
|
-
Code: smithy_client_1.expectString,
|
|
2086
|
-
Message: smithy_client_1.expectString,
|
|
2087
|
-
});
|
|
2088
|
-
Object.assign(contents, doc);
|
|
2089
|
-
const exception = new models_0_1.UnauthorizedClientException({
|
|
2090
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2091
|
-
...contents,
|
|
2092
|
-
});
|
|
2093
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2094
|
-
};
|
|
2095
|
-
const de_AppInstance = (output, context) => {
|
|
2096
|
-
return (0, smithy_client_1.take)(output, {
|
|
2097
|
-
AppInstanceArn: smithy_client_1.expectString,
|
|
2098
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2099
|
-
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2100
|
-
Metadata: smithy_client_1.expectString,
|
|
2101
|
-
Name: smithy_client_1.expectString,
|
|
2102
|
-
});
|
|
2103
|
-
};
|
|
2104
|
-
const de_AppInstanceAdmin = (output, context) => {
|
|
2105
|
-
return (0, smithy_client_1.take)(output, {
|
|
2106
|
-
Admin: smithy_client_1._json,
|
|
2107
|
-
AppInstanceArn: smithy_client_1.expectString,
|
|
2108
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2109
|
-
});
|
|
2110
|
-
};
|
|
2111
|
-
const de_AppInstanceBot = (output, context) => {
|
|
2112
|
-
return (0, smithy_client_1.take)(output, {
|
|
2113
|
-
AppInstanceBotArn: smithy_client_1.expectString,
|
|
2114
|
-
Configuration: smithy_client_1._json,
|
|
2115
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2116
|
-
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2117
|
-
Metadata: smithy_client_1.expectString,
|
|
2118
|
-
Name: smithy_client_1.expectString,
|
|
2119
|
-
});
|
|
2120
|
-
};
|
|
2121
|
-
const de_AppInstanceUser = (output, context) => {
|
|
2122
|
-
return (0, smithy_client_1.take)(output, {
|
|
2123
|
-
AppInstanceUserArn: smithy_client_1.expectString,
|
|
2124
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2125
|
-
ExpirationSettings: smithy_client_1._json,
|
|
2126
|
-
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2127
|
-
Metadata: smithy_client_1.expectString,
|
|
2128
|
-
Name: smithy_client_1.expectString,
|
|
2129
|
-
});
|
|
2130
|
-
};
|
|
2131
|
-
const de_AppInstanceUserEndpoint = (output, context) => {
|
|
2132
|
-
return (0, smithy_client_1.take)(output, {
|
|
2133
|
-
AllowMessages: smithy_client_1.expectString,
|
|
2134
|
-
AppInstanceUserArn: smithy_client_1.expectString,
|
|
2135
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2136
|
-
EndpointAttributes: smithy_client_1._json,
|
|
2137
|
-
EndpointId: smithy_client_1.expectString,
|
|
2138
|
-
EndpointState: smithy_client_1._json,
|
|
2139
|
-
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2140
|
-
Name: smithy_client_1.expectString,
|
|
2141
|
-
ResourceArn: smithy_client_1.expectString,
|
|
2142
|
-
Type: smithy_client_1.expectString,
|
|
2143
|
-
});
|
|
2144
|
-
};
|
|
2145
|
-
const deserializeMetadata = (output) => ({
|
|
2146
|
-
httpStatusCode: output.statusCode,
|
|
2147
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2148
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2149
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2150
|
-
});
|
|
2151
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2152
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2153
|
-
value !== null &&
|
|
2154
|
-
value !== "" &&
|
|
2155
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
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";
|
|
2166
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2167
|
-
if (encoded.length) {
|
|
2168
|
-
return JSON.parse(encoded);
|
|
2169
|
-
}
|
|
2170
|
-
return {};
|
|
2171
|
-
});
|
|
2172
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2173
|
-
const value = await parseBody(errorBody, context);
|
|
2174
|
-
value.message = value.message ?? value.Message;
|
|
2175
|
-
return value;
|
|
2176
|
-
};
|
|
2177
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2178
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2179
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2180
|
-
let cleanValue = rawValue;
|
|
2181
|
-
if (typeof cleanValue === "number") {
|
|
2182
|
-
cleanValue = cleanValue.toString();
|
|
2183
|
-
}
|
|
2184
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2185
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2186
|
-
}
|
|
2187
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2188
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2189
|
-
}
|
|
2190
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2191
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2192
|
-
}
|
|
2193
|
-
return cleanValue;
|
|
2194
|
-
};
|
|
2195
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2196
|
-
if (headerKey !== undefined) {
|
|
2197
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2198
|
-
}
|
|
2199
|
-
if (data.code !== undefined) {
|
|
2200
|
-
return sanitizeErrorCode(data.code);
|
|
2201
|
-
}
|
|
2202
|
-
if (data["__type"] !== undefined) {
|
|
2203
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2204
|
-
}
|
|
2205
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|