@aws-sdk/client-chatbot 3.928.0 → 3.930.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/index.js +1477 -1944
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/ChatbotClient.js +2 -0
- package/dist-es/commands/AssociateToConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateChimeWebhookConfigurationCommand.js +3 -10
- package/dist-es/commands/CreateCustomActionCommand.js +3 -9
- package/dist-es/commands/CreateMicrosoftTeamsChannelConfigurationCommand.js +3 -10
- package/dist-es/commands/CreateSlackChannelConfigurationCommand.js +3 -10
- package/dist-es/commands/DeleteChimeWebhookConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteCustomActionCommand.js +3 -9
- package/dist-es/commands/DeleteMicrosoftTeamsChannelConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteMicrosoftTeamsConfiguredTeamCommand.js +3 -9
- package/dist-es/commands/DeleteMicrosoftTeamsUserIdentityCommand.js +3 -9
- package/dist-es/commands/DeleteSlackChannelConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteSlackUserIdentityCommand.js +3 -9
- package/dist-es/commands/DeleteSlackWorkspaceAuthorizationCommand.js +3 -9
- package/dist-es/commands/DescribeChimeWebhookConfigurationsCommand.js +3 -10
- package/dist-es/commands/DescribeSlackChannelConfigurationsCommand.js +3 -10
- package/dist-es/commands/DescribeSlackUserIdentitiesCommand.js +3 -9
- package/dist-es/commands/DescribeSlackWorkspacesCommand.js +3 -9
- package/dist-es/commands/DisassociateFromConfigurationCommand.js +3 -9
- package/dist-es/commands/GetAccountPreferencesCommand.js +3 -9
- package/dist-es/commands/GetCustomActionCommand.js +3 -9
- package/dist-es/commands/GetMicrosoftTeamsChannelConfigurationCommand.js +3 -10
- package/dist-es/commands/ListAssociationsCommand.js +3 -9
- package/dist-es/commands/ListCustomActionsCommand.js +3 -9
- package/dist-es/commands/ListMicrosoftTeamsChannelConfigurationsCommand.js +3 -10
- package/dist-es/commands/ListMicrosoftTeamsConfiguredTeamsCommand.js +3 -9
- package/dist-es/commands/ListMicrosoftTeamsUserIdentitiesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateAccountPreferencesCommand.js +3 -9
- package/dist-es/commands/UpdateChimeWebhookConfigurationCommand.js +3 -10
- package/dist-es/commands/UpdateCustomActionCommand.js +3 -9
- package/dist-es/commands/UpdateMicrosoftTeamsChannelConfigurationCommand.js +3 -10
- package/dist-es/commands/UpdateSlackChannelConfigurationCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -101
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1317 -0
- package/dist-types/ChatbotClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -76
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +173 -0
- package/dist-types/ts3.4/ChatbotClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -57
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +179 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -1492
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -308
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -413
|
@@ -1,1492 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { ChatbotServiceException as __BaseException } from "../models/ChatbotServiceException";
|
|
6
|
-
import { ConflictException, CreateChimeWebhookConfigurationException, CreateSlackChannelConfigurationException, CreateTeamsChannelConfigurationException, DeleteChimeWebhookConfigurationException, DeleteMicrosoftTeamsUserIdentityException, DeleteSlackChannelConfigurationException, DeleteSlackUserIdentityException, DeleteSlackWorkspaceAuthorizationFault, DeleteTeamsChannelConfigurationException, DeleteTeamsConfiguredTeamException, DescribeChimeWebhookConfigurationsException, DescribeSlackChannelConfigurationsException, DescribeSlackUserIdentitiesException, DescribeSlackWorkspacesException, GetAccountPreferencesException, GetTeamsChannelConfigurationException, InternalServiceError, InvalidParameterException, InvalidRequestException, LimitExceededException, ListMicrosoftTeamsConfiguredTeamsException, ListMicrosoftTeamsUserIdentitiesException, ListTeamsChannelConfigurationsException, ResourceNotFoundException, ServiceUnavailableException, TooManyTagsException, UnauthorizedException, UpdateAccountPreferencesException, UpdateChimeWebhookConfigurationException, UpdateSlackChannelConfigurationException, UpdateTeamsChannelConfigurationException, } from "../models/models_0";
|
|
7
|
-
export const se_AssociateToConfigurationCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/associate-to-configuration");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
ChatConfiguration: [],
|
|
16
|
-
Resource: [],
|
|
17
|
-
}));
|
|
18
|
-
b.m("POST").h(headers).b(body);
|
|
19
|
-
return b.build();
|
|
20
|
-
};
|
|
21
|
-
export const se_CreateChimeWebhookConfigurationCommand = async (input, context) => {
|
|
22
|
-
const b = rb(input, context);
|
|
23
|
-
const headers = {
|
|
24
|
-
"content-type": "application/json",
|
|
25
|
-
};
|
|
26
|
-
b.bp("/create-chime-webhook-configuration");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(take(input, {
|
|
29
|
-
ConfigurationName: [],
|
|
30
|
-
IamRoleArn: [],
|
|
31
|
-
LoggingLevel: [],
|
|
32
|
-
SnsTopicArns: (_) => _json(_),
|
|
33
|
-
Tags: (_) => _json(_),
|
|
34
|
-
WebhookDescription: [],
|
|
35
|
-
WebhookUrl: [],
|
|
36
|
-
}));
|
|
37
|
-
b.m("POST").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
export const se_CreateCustomActionCommand = async (input, context) => {
|
|
41
|
-
const b = rb(input, context);
|
|
42
|
-
const headers = {
|
|
43
|
-
"content-type": "application/json",
|
|
44
|
-
};
|
|
45
|
-
b.bp("/create-custom-action");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify(take(input, {
|
|
48
|
-
ActionName: [],
|
|
49
|
-
AliasName: [],
|
|
50
|
-
Attachments: (_) => _json(_),
|
|
51
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
52
|
-
Definition: (_) => _json(_),
|
|
53
|
-
Tags: (_) => _json(_),
|
|
54
|
-
}));
|
|
55
|
-
b.m("POST").h(headers).b(body);
|
|
56
|
-
return b.build();
|
|
57
|
-
};
|
|
58
|
-
export const se_CreateMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
59
|
-
const b = rb(input, context);
|
|
60
|
-
const headers = {
|
|
61
|
-
"content-type": "application/json",
|
|
62
|
-
};
|
|
63
|
-
b.bp("/create-ms-teams-channel-configuration");
|
|
64
|
-
let body;
|
|
65
|
-
body = JSON.stringify(take(input, {
|
|
66
|
-
ChannelId: [],
|
|
67
|
-
ChannelName: [],
|
|
68
|
-
ConfigurationName: [],
|
|
69
|
-
GuardrailPolicyArns: (_) => _json(_),
|
|
70
|
-
IamRoleArn: [],
|
|
71
|
-
LoggingLevel: [],
|
|
72
|
-
SnsTopicArns: (_) => _json(_),
|
|
73
|
-
Tags: (_) => _json(_),
|
|
74
|
-
TeamId: [],
|
|
75
|
-
TeamName: [],
|
|
76
|
-
TenantId: [],
|
|
77
|
-
UserAuthorizationRequired: [],
|
|
78
|
-
}));
|
|
79
|
-
b.m("POST").h(headers).b(body);
|
|
80
|
-
return b.build();
|
|
81
|
-
};
|
|
82
|
-
export const se_CreateSlackChannelConfigurationCommand = async (input, context) => {
|
|
83
|
-
const b = rb(input, context);
|
|
84
|
-
const headers = {
|
|
85
|
-
"content-type": "application/json",
|
|
86
|
-
};
|
|
87
|
-
b.bp("/create-slack-channel-configuration");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify(take(input, {
|
|
90
|
-
ConfigurationName: [],
|
|
91
|
-
GuardrailPolicyArns: (_) => _json(_),
|
|
92
|
-
IamRoleArn: [],
|
|
93
|
-
LoggingLevel: [],
|
|
94
|
-
SlackChannelId: [],
|
|
95
|
-
SlackChannelName: [],
|
|
96
|
-
SlackTeamId: [],
|
|
97
|
-
SnsTopicArns: (_) => _json(_),
|
|
98
|
-
Tags: (_) => _json(_),
|
|
99
|
-
UserAuthorizationRequired: [],
|
|
100
|
-
}));
|
|
101
|
-
b.m("POST").h(headers).b(body);
|
|
102
|
-
return b.build();
|
|
103
|
-
};
|
|
104
|
-
export const se_DeleteChimeWebhookConfigurationCommand = async (input, context) => {
|
|
105
|
-
const b = rb(input, context);
|
|
106
|
-
const headers = {
|
|
107
|
-
"content-type": "application/json",
|
|
108
|
-
};
|
|
109
|
-
b.bp("/delete-chime-webhook-configuration");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(take(input, {
|
|
112
|
-
ChatConfigurationArn: [],
|
|
113
|
-
}));
|
|
114
|
-
b.m("POST").h(headers).b(body);
|
|
115
|
-
return b.build();
|
|
116
|
-
};
|
|
117
|
-
export const se_DeleteCustomActionCommand = async (input, context) => {
|
|
118
|
-
const b = rb(input, context);
|
|
119
|
-
const headers = {
|
|
120
|
-
"content-type": "application/json",
|
|
121
|
-
};
|
|
122
|
-
b.bp("/delete-custom-action");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify(take(input, {
|
|
125
|
-
CustomActionArn: [],
|
|
126
|
-
}));
|
|
127
|
-
b.m("POST").h(headers).b(body);
|
|
128
|
-
return b.build();
|
|
129
|
-
};
|
|
130
|
-
export const se_DeleteMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
131
|
-
const b = rb(input, context);
|
|
132
|
-
const headers = {
|
|
133
|
-
"content-type": "application/json",
|
|
134
|
-
};
|
|
135
|
-
b.bp("/delete-ms-teams-channel-configuration");
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify(take(input, {
|
|
138
|
-
ChatConfigurationArn: [],
|
|
139
|
-
}));
|
|
140
|
-
b.m("POST").h(headers).b(body);
|
|
141
|
-
return b.build();
|
|
142
|
-
};
|
|
143
|
-
export const se_DeleteMicrosoftTeamsConfiguredTeamCommand = async (input, context) => {
|
|
144
|
-
const b = rb(input, context);
|
|
145
|
-
const headers = {
|
|
146
|
-
"content-type": "application/json",
|
|
147
|
-
};
|
|
148
|
-
b.bp("/delete-ms-teams-configured-teams");
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify(take(input, {
|
|
151
|
-
TeamId: [],
|
|
152
|
-
}));
|
|
153
|
-
b.m("POST").h(headers).b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
export const se_DeleteMicrosoftTeamsUserIdentityCommand = async (input, context) => {
|
|
157
|
-
const b = rb(input, context);
|
|
158
|
-
const headers = {
|
|
159
|
-
"content-type": "application/json",
|
|
160
|
-
};
|
|
161
|
-
b.bp("/delete-ms-teams-user-identity");
|
|
162
|
-
let body;
|
|
163
|
-
body = JSON.stringify(take(input, {
|
|
164
|
-
ChatConfigurationArn: [],
|
|
165
|
-
UserId: [],
|
|
166
|
-
}));
|
|
167
|
-
b.m("POST").h(headers).b(body);
|
|
168
|
-
return b.build();
|
|
169
|
-
};
|
|
170
|
-
export const se_DeleteSlackChannelConfigurationCommand = async (input, context) => {
|
|
171
|
-
const b = rb(input, context);
|
|
172
|
-
const headers = {
|
|
173
|
-
"content-type": "application/json",
|
|
174
|
-
};
|
|
175
|
-
b.bp("/delete-slack-channel-configuration");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(take(input, {
|
|
178
|
-
ChatConfigurationArn: [],
|
|
179
|
-
}));
|
|
180
|
-
b.m("POST").h(headers).b(body);
|
|
181
|
-
return b.build();
|
|
182
|
-
};
|
|
183
|
-
export const se_DeleteSlackUserIdentityCommand = async (input, context) => {
|
|
184
|
-
const b = rb(input, context);
|
|
185
|
-
const headers = {
|
|
186
|
-
"content-type": "application/json",
|
|
187
|
-
};
|
|
188
|
-
b.bp("/delete-slack-user-identity");
|
|
189
|
-
let body;
|
|
190
|
-
body = JSON.stringify(take(input, {
|
|
191
|
-
ChatConfigurationArn: [],
|
|
192
|
-
SlackTeamId: [],
|
|
193
|
-
SlackUserId: [],
|
|
194
|
-
}));
|
|
195
|
-
b.m("POST").h(headers).b(body);
|
|
196
|
-
return b.build();
|
|
197
|
-
};
|
|
198
|
-
export const se_DeleteSlackWorkspaceAuthorizationCommand = async (input, context) => {
|
|
199
|
-
const b = rb(input, context);
|
|
200
|
-
const headers = {
|
|
201
|
-
"content-type": "application/json",
|
|
202
|
-
};
|
|
203
|
-
b.bp("/delete-slack-workspace-authorization");
|
|
204
|
-
let body;
|
|
205
|
-
body = JSON.stringify(take(input, {
|
|
206
|
-
SlackTeamId: [],
|
|
207
|
-
}));
|
|
208
|
-
b.m("POST").h(headers).b(body);
|
|
209
|
-
return b.build();
|
|
210
|
-
};
|
|
211
|
-
export const se_DescribeChimeWebhookConfigurationsCommand = async (input, context) => {
|
|
212
|
-
const b = rb(input, context);
|
|
213
|
-
const headers = {
|
|
214
|
-
"content-type": "application/json",
|
|
215
|
-
};
|
|
216
|
-
b.bp("/describe-chime-webhook-configurations");
|
|
217
|
-
let body;
|
|
218
|
-
body = JSON.stringify(take(input, {
|
|
219
|
-
ChatConfigurationArn: [],
|
|
220
|
-
MaxResults: [],
|
|
221
|
-
NextToken: [],
|
|
222
|
-
}));
|
|
223
|
-
b.m("POST").h(headers).b(body);
|
|
224
|
-
return b.build();
|
|
225
|
-
};
|
|
226
|
-
export const se_DescribeSlackChannelConfigurationsCommand = async (input, context) => {
|
|
227
|
-
const b = rb(input, context);
|
|
228
|
-
const headers = {
|
|
229
|
-
"content-type": "application/json",
|
|
230
|
-
};
|
|
231
|
-
b.bp("/describe-slack-channel-configurations");
|
|
232
|
-
let body;
|
|
233
|
-
body = JSON.stringify(take(input, {
|
|
234
|
-
ChatConfigurationArn: [],
|
|
235
|
-
MaxResults: [],
|
|
236
|
-
NextToken: [],
|
|
237
|
-
}));
|
|
238
|
-
b.m("POST").h(headers).b(body);
|
|
239
|
-
return b.build();
|
|
240
|
-
};
|
|
241
|
-
export const se_DescribeSlackUserIdentitiesCommand = async (input, context) => {
|
|
242
|
-
const b = rb(input, context);
|
|
243
|
-
const headers = {
|
|
244
|
-
"content-type": "application/json",
|
|
245
|
-
};
|
|
246
|
-
b.bp("/describe-slack-user-identities");
|
|
247
|
-
let body;
|
|
248
|
-
body = JSON.stringify(take(input, {
|
|
249
|
-
ChatConfigurationArn: [],
|
|
250
|
-
MaxResults: [],
|
|
251
|
-
NextToken: [],
|
|
252
|
-
}));
|
|
253
|
-
b.m("POST").h(headers).b(body);
|
|
254
|
-
return b.build();
|
|
255
|
-
};
|
|
256
|
-
export const se_DescribeSlackWorkspacesCommand = async (input, context) => {
|
|
257
|
-
const b = rb(input, context);
|
|
258
|
-
const headers = {
|
|
259
|
-
"content-type": "application/json",
|
|
260
|
-
};
|
|
261
|
-
b.bp("/describe-slack-workspaces");
|
|
262
|
-
let body;
|
|
263
|
-
body = JSON.stringify(take(input, {
|
|
264
|
-
MaxResults: [],
|
|
265
|
-
NextToken: [],
|
|
266
|
-
}));
|
|
267
|
-
b.m("POST").h(headers).b(body);
|
|
268
|
-
return b.build();
|
|
269
|
-
};
|
|
270
|
-
export const se_DisassociateFromConfigurationCommand = async (input, context) => {
|
|
271
|
-
const b = rb(input, context);
|
|
272
|
-
const headers = {
|
|
273
|
-
"content-type": "application/json",
|
|
274
|
-
};
|
|
275
|
-
b.bp("/disassociate-from-configuration");
|
|
276
|
-
let body;
|
|
277
|
-
body = JSON.stringify(take(input, {
|
|
278
|
-
ChatConfiguration: [],
|
|
279
|
-
Resource: [],
|
|
280
|
-
}));
|
|
281
|
-
b.m("POST").h(headers).b(body);
|
|
282
|
-
return b.build();
|
|
283
|
-
};
|
|
284
|
-
export const se_GetAccountPreferencesCommand = async (input, context) => {
|
|
285
|
-
const b = rb(input, context);
|
|
286
|
-
const headers = {};
|
|
287
|
-
b.bp("/get-account-preferences");
|
|
288
|
-
let body;
|
|
289
|
-
b.m("POST").h(headers).b(body);
|
|
290
|
-
return b.build();
|
|
291
|
-
};
|
|
292
|
-
export const se_GetCustomActionCommand = async (input, context) => {
|
|
293
|
-
const b = rb(input, context);
|
|
294
|
-
const headers = {
|
|
295
|
-
"content-type": "application/json",
|
|
296
|
-
};
|
|
297
|
-
b.bp("/get-custom-action");
|
|
298
|
-
let body;
|
|
299
|
-
body = JSON.stringify(take(input, {
|
|
300
|
-
CustomActionArn: [],
|
|
301
|
-
}));
|
|
302
|
-
b.m("POST").h(headers).b(body);
|
|
303
|
-
return b.build();
|
|
304
|
-
};
|
|
305
|
-
export const se_GetMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
306
|
-
const b = rb(input, context);
|
|
307
|
-
const headers = {
|
|
308
|
-
"content-type": "application/json",
|
|
309
|
-
};
|
|
310
|
-
b.bp("/get-ms-teams-channel-configuration");
|
|
311
|
-
let body;
|
|
312
|
-
body = JSON.stringify(take(input, {
|
|
313
|
-
ChatConfigurationArn: [],
|
|
314
|
-
}));
|
|
315
|
-
b.m("POST").h(headers).b(body);
|
|
316
|
-
return b.build();
|
|
317
|
-
};
|
|
318
|
-
export const se_ListAssociationsCommand = async (input, context) => {
|
|
319
|
-
const b = rb(input, context);
|
|
320
|
-
const headers = {
|
|
321
|
-
"content-type": "application/json",
|
|
322
|
-
};
|
|
323
|
-
b.bp("/list-associations");
|
|
324
|
-
let body;
|
|
325
|
-
body = JSON.stringify(take(input, {
|
|
326
|
-
ChatConfiguration: [],
|
|
327
|
-
MaxResults: [],
|
|
328
|
-
NextToken: [],
|
|
329
|
-
}));
|
|
330
|
-
b.m("POST").h(headers).b(body);
|
|
331
|
-
return b.build();
|
|
332
|
-
};
|
|
333
|
-
export const se_ListCustomActionsCommand = async (input, context) => {
|
|
334
|
-
const b = rb(input, context);
|
|
335
|
-
const headers = {
|
|
336
|
-
"content-type": "application/json",
|
|
337
|
-
};
|
|
338
|
-
b.bp("/list-custom-actions");
|
|
339
|
-
let body;
|
|
340
|
-
body = JSON.stringify(take(input, {
|
|
341
|
-
MaxResults: [],
|
|
342
|
-
NextToken: [],
|
|
343
|
-
}));
|
|
344
|
-
b.m("POST").h(headers).b(body);
|
|
345
|
-
return b.build();
|
|
346
|
-
};
|
|
347
|
-
export const se_ListMicrosoftTeamsChannelConfigurationsCommand = async (input, context) => {
|
|
348
|
-
const b = rb(input, context);
|
|
349
|
-
const headers = {
|
|
350
|
-
"content-type": "application/json",
|
|
351
|
-
};
|
|
352
|
-
b.bp("/list-ms-teams-channel-configurations");
|
|
353
|
-
let body;
|
|
354
|
-
body = JSON.stringify(take(input, {
|
|
355
|
-
MaxResults: [],
|
|
356
|
-
NextToken: [],
|
|
357
|
-
TeamId: [],
|
|
358
|
-
}));
|
|
359
|
-
b.m("POST").h(headers).b(body);
|
|
360
|
-
return b.build();
|
|
361
|
-
};
|
|
362
|
-
export const se_ListMicrosoftTeamsConfiguredTeamsCommand = async (input, context) => {
|
|
363
|
-
const b = rb(input, context);
|
|
364
|
-
const headers = {
|
|
365
|
-
"content-type": "application/json",
|
|
366
|
-
};
|
|
367
|
-
b.bp("/list-ms-teams-configured-teams");
|
|
368
|
-
let body;
|
|
369
|
-
body = JSON.stringify(take(input, {
|
|
370
|
-
MaxResults: [],
|
|
371
|
-
NextToken: [],
|
|
372
|
-
}));
|
|
373
|
-
b.m("POST").h(headers).b(body);
|
|
374
|
-
return b.build();
|
|
375
|
-
};
|
|
376
|
-
export const se_ListMicrosoftTeamsUserIdentitiesCommand = async (input, context) => {
|
|
377
|
-
const b = rb(input, context);
|
|
378
|
-
const headers = {
|
|
379
|
-
"content-type": "application/json",
|
|
380
|
-
};
|
|
381
|
-
b.bp("/list-ms-teams-user-identities");
|
|
382
|
-
let body;
|
|
383
|
-
body = JSON.stringify(take(input, {
|
|
384
|
-
ChatConfigurationArn: [],
|
|
385
|
-
MaxResults: [],
|
|
386
|
-
NextToken: [],
|
|
387
|
-
}));
|
|
388
|
-
b.m("POST").h(headers).b(body);
|
|
389
|
-
return b.build();
|
|
390
|
-
};
|
|
391
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
392
|
-
const b = rb(input, context);
|
|
393
|
-
const headers = {
|
|
394
|
-
"content-type": "application/json",
|
|
395
|
-
};
|
|
396
|
-
b.bp("/list-tags-for-resource");
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify(take(input, {
|
|
399
|
-
ResourceARN: [],
|
|
400
|
-
}));
|
|
401
|
-
b.m("POST").h(headers).b(body);
|
|
402
|
-
return b.build();
|
|
403
|
-
};
|
|
404
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
405
|
-
const b = rb(input, context);
|
|
406
|
-
const headers = {
|
|
407
|
-
"content-type": "application/json",
|
|
408
|
-
};
|
|
409
|
-
b.bp("/tag-resource");
|
|
410
|
-
let body;
|
|
411
|
-
body = JSON.stringify(take(input, {
|
|
412
|
-
ResourceARN: [],
|
|
413
|
-
Tags: (_) => _json(_),
|
|
414
|
-
}));
|
|
415
|
-
b.m("POST").h(headers).b(body);
|
|
416
|
-
return b.build();
|
|
417
|
-
};
|
|
418
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
419
|
-
const b = rb(input, context);
|
|
420
|
-
const headers = {
|
|
421
|
-
"content-type": "application/json",
|
|
422
|
-
};
|
|
423
|
-
b.bp("/untag-resource");
|
|
424
|
-
let body;
|
|
425
|
-
body = JSON.stringify(take(input, {
|
|
426
|
-
ResourceARN: [],
|
|
427
|
-
TagKeys: (_) => _json(_),
|
|
428
|
-
}));
|
|
429
|
-
b.m("POST").h(headers).b(body);
|
|
430
|
-
return b.build();
|
|
431
|
-
};
|
|
432
|
-
export const se_UpdateAccountPreferencesCommand = async (input, context) => {
|
|
433
|
-
const b = rb(input, context);
|
|
434
|
-
const headers = {
|
|
435
|
-
"content-type": "application/json",
|
|
436
|
-
};
|
|
437
|
-
b.bp("/update-account-preferences");
|
|
438
|
-
let body;
|
|
439
|
-
body = JSON.stringify(take(input, {
|
|
440
|
-
TrainingDataCollectionEnabled: [],
|
|
441
|
-
UserAuthorizationRequired: [],
|
|
442
|
-
}));
|
|
443
|
-
b.m("POST").h(headers).b(body);
|
|
444
|
-
return b.build();
|
|
445
|
-
};
|
|
446
|
-
export const se_UpdateChimeWebhookConfigurationCommand = async (input, context) => {
|
|
447
|
-
const b = rb(input, context);
|
|
448
|
-
const headers = {
|
|
449
|
-
"content-type": "application/json",
|
|
450
|
-
};
|
|
451
|
-
b.bp("/update-chime-webhook-configuration");
|
|
452
|
-
let body;
|
|
453
|
-
body = JSON.stringify(take(input, {
|
|
454
|
-
ChatConfigurationArn: [],
|
|
455
|
-
IamRoleArn: [],
|
|
456
|
-
LoggingLevel: [],
|
|
457
|
-
SnsTopicArns: (_) => _json(_),
|
|
458
|
-
WebhookDescription: [],
|
|
459
|
-
WebhookUrl: [],
|
|
460
|
-
}));
|
|
461
|
-
b.m("POST").h(headers).b(body);
|
|
462
|
-
return b.build();
|
|
463
|
-
};
|
|
464
|
-
export const se_UpdateCustomActionCommand = async (input, context) => {
|
|
465
|
-
const b = rb(input, context);
|
|
466
|
-
const headers = {
|
|
467
|
-
"content-type": "application/json",
|
|
468
|
-
};
|
|
469
|
-
b.bp("/update-custom-action");
|
|
470
|
-
let body;
|
|
471
|
-
body = JSON.stringify(take(input, {
|
|
472
|
-
AliasName: [],
|
|
473
|
-
Attachments: (_) => _json(_),
|
|
474
|
-
CustomActionArn: [],
|
|
475
|
-
Definition: (_) => _json(_),
|
|
476
|
-
}));
|
|
477
|
-
b.m("POST").h(headers).b(body);
|
|
478
|
-
return b.build();
|
|
479
|
-
};
|
|
480
|
-
export const se_UpdateMicrosoftTeamsChannelConfigurationCommand = async (input, context) => {
|
|
481
|
-
const b = rb(input, context);
|
|
482
|
-
const headers = {
|
|
483
|
-
"content-type": "application/json",
|
|
484
|
-
};
|
|
485
|
-
b.bp("/update-ms-teams-channel-configuration");
|
|
486
|
-
let body;
|
|
487
|
-
body = JSON.stringify(take(input, {
|
|
488
|
-
ChannelId: [],
|
|
489
|
-
ChannelName: [],
|
|
490
|
-
ChatConfigurationArn: [],
|
|
491
|
-
GuardrailPolicyArns: (_) => _json(_),
|
|
492
|
-
IamRoleArn: [],
|
|
493
|
-
LoggingLevel: [],
|
|
494
|
-
SnsTopicArns: (_) => _json(_),
|
|
495
|
-
UserAuthorizationRequired: [],
|
|
496
|
-
}));
|
|
497
|
-
b.m("POST").h(headers).b(body);
|
|
498
|
-
return b.build();
|
|
499
|
-
};
|
|
500
|
-
export const se_UpdateSlackChannelConfigurationCommand = async (input, context) => {
|
|
501
|
-
const b = rb(input, context);
|
|
502
|
-
const headers = {
|
|
503
|
-
"content-type": "application/json",
|
|
504
|
-
};
|
|
505
|
-
b.bp("/update-slack-channel-configuration");
|
|
506
|
-
let body;
|
|
507
|
-
body = JSON.stringify(take(input, {
|
|
508
|
-
ChatConfigurationArn: [],
|
|
509
|
-
GuardrailPolicyArns: (_) => _json(_),
|
|
510
|
-
IamRoleArn: [],
|
|
511
|
-
LoggingLevel: [],
|
|
512
|
-
SlackChannelId: [],
|
|
513
|
-
SlackChannelName: [],
|
|
514
|
-
SnsTopicArns: (_) => _json(_),
|
|
515
|
-
UserAuthorizationRequired: [],
|
|
516
|
-
}));
|
|
517
|
-
b.m("POST").h(headers).b(body);
|
|
518
|
-
return b.build();
|
|
519
|
-
};
|
|
520
|
-
export const de_AssociateToConfigurationCommand = async (output, context) => {
|
|
521
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
522
|
-
return de_CommandError(output, context);
|
|
523
|
-
}
|
|
524
|
-
const contents = map({
|
|
525
|
-
$metadata: deserializeMetadata(output),
|
|
526
|
-
});
|
|
527
|
-
await collectBody(output.body, context);
|
|
528
|
-
return contents;
|
|
529
|
-
};
|
|
530
|
-
export const de_CreateChimeWebhookConfigurationCommand = async (output, context) => {
|
|
531
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
532
|
-
return de_CommandError(output, context);
|
|
533
|
-
}
|
|
534
|
-
const contents = map({
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
536
|
-
});
|
|
537
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
538
|
-
const doc = take(data, {
|
|
539
|
-
WebhookConfiguration: _json,
|
|
540
|
-
});
|
|
541
|
-
Object.assign(contents, doc);
|
|
542
|
-
return contents;
|
|
543
|
-
};
|
|
544
|
-
export const de_CreateCustomActionCommand = async (output, context) => {
|
|
545
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
546
|
-
return de_CommandError(output, context);
|
|
547
|
-
}
|
|
548
|
-
const contents = map({
|
|
549
|
-
$metadata: deserializeMetadata(output),
|
|
550
|
-
});
|
|
551
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
552
|
-
const doc = take(data, {
|
|
553
|
-
CustomActionArn: __expectString,
|
|
554
|
-
});
|
|
555
|
-
Object.assign(contents, doc);
|
|
556
|
-
return contents;
|
|
557
|
-
};
|
|
558
|
-
export const de_CreateMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
559
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
560
|
-
return de_CommandError(output, context);
|
|
561
|
-
}
|
|
562
|
-
const contents = map({
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
});
|
|
565
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
566
|
-
const doc = take(data, {
|
|
567
|
-
ChannelConfiguration: _json,
|
|
568
|
-
});
|
|
569
|
-
Object.assign(contents, doc);
|
|
570
|
-
return contents;
|
|
571
|
-
};
|
|
572
|
-
export const de_CreateSlackChannelConfigurationCommand = async (output, context) => {
|
|
573
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
574
|
-
return de_CommandError(output, context);
|
|
575
|
-
}
|
|
576
|
-
const contents = map({
|
|
577
|
-
$metadata: deserializeMetadata(output),
|
|
578
|
-
});
|
|
579
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
580
|
-
const doc = take(data, {
|
|
581
|
-
ChannelConfiguration: _json,
|
|
582
|
-
});
|
|
583
|
-
Object.assign(contents, doc);
|
|
584
|
-
return contents;
|
|
585
|
-
};
|
|
586
|
-
export const de_DeleteChimeWebhookConfigurationCommand = async (output, context) => {
|
|
587
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
588
|
-
return de_CommandError(output, context);
|
|
589
|
-
}
|
|
590
|
-
const contents = map({
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
});
|
|
593
|
-
await collectBody(output.body, context);
|
|
594
|
-
return contents;
|
|
595
|
-
};
|
|
596
|
-
export const de_DeleteCustomActionCommand = async (output, context) => {
|
|
597
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
598
|
-
return de_CommandError(output, context);
|
|
599
|
-
}
|
|
600
|
-
const contents = map({
|
|
601
|
-
$metadata: deserializeMetadata(output),
|
|
602
|
-
});
|
|
603
|
-
await collectBody(output.body, context);
|
|
604
|
-
return contents;
|
|
605
|
-
};
|
|
606
|
-
export const de_DeleteMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
607
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
608
|
-
return de_CommandError(output, context);
|
|
609
|
-
}
|
|
610
|
-
const contents = map({
|
|
611
|
-
$metadata: deserializeMetadata(output),
|
|
612
|
-
});
|
|
613
|
-
await collectBody(output.body, context);
|
|
614
|
-
return contents;
|
|
615
|
-
};
|
|
616
|
-
export const de_DeleteMicrosoftTeamsConfiguredTeamCommand = async (output, context) => {
|
|
617
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
618
|
-
return de_CommandError(output, context);
|
|
619
|
-
}
|
|
620
|
-
const contents = map({
|
|
621
|
-
$metadata: deserializeMetadata(output),
|
|
622
|
-
});
|
|
623
|
-
await collectBody(output.body, context);
|
|
624
|
-
return contents;
|
|
625
|
-
};
|
|
626
|
-
export const de_DeleteMicrosoftTeamsUserIdentityCommand = async (output, context) => {
|
|
627
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
628
|
-
return de_CommandError(output, context);
|
|
629
|
-
}
|
|
630
|
-
const contents = map({
|
|
631
|
-
$metadata: deserializeMetadata(output),
|
|
632
|
-
});
|
|
633
|
-
await collectBody(output.body, context);
|
|
634
|
-
return contents;
|
|
635
|
-
};
|
|
636
|
-
export const de_DeleteSlackChannelConfigurationCommand = async (output, context) => {
|
|
637
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
638
|
-
return de_CommandError(output, context);
|
|
639
|
-
}
|
|
640
|
-
const contents = map({
|
|
641
|
-
$metadata: deserializeMetadata(output),
|
|
642
|
-
});
|
|
643
|
-
await collectBody(output.body, context);
|
|
644
|
-
return contents;
|
|
645
|
-
};
|
|
646
|
-
export const de_DeleteSlackUserIdentityCommand = async (output, context) => {
|
|
647
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
648
|
-
return de_CommandError(output, context);
|
|
649
|
-
}
|
|
650
|
-
const contents = map({
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
});
|
|
653
|
-
await collectBody(output.body, context);
|
|
654
|
-
return contents;
|
|
655
|
-
};
|
|
656
|
-
export const de_DeleteSlackWorkspaceAuthorizationCommand = async (output, context) => {
|
|
657
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
658
|
-
return de_CommandError(output, context);
|
|
659
|
-
}
|
|
660
|
-
const contents = map({
|
|
661
|
-
$metadata: deserializeMetadata(output),
|
|
662
|
-
});
|
|
663
|
-
await collectBody(output.body, context);
|
|
664
|
-
return contents;
|
|
665
|
-
};
|
|
666
|
-
export const de_DescribeChimeWebhookConfigurationsCommand = async (output, context) => {
|
|
667
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
668
|
-
return de_CommandError(output, context);
|
|
669
|
-
}
|
|
670
|
-
const contents = map({
|
|
671
|
-
$metadata: deserializeMetadata(output),
|
|
672
|
-
});
|
|
673
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
674
|
-
const doc = take(data, {
|
|
675
|
-
NextToken: __expectString,
|
|
676
|
-
WebhookConfigurations: _json,
|
|
677
|
-
});
|
|
678
|
-
Object.assign(contents, doc);
|
|
679
|
-
return contents;
|
|
680
|
-
};
|
|
681
|
-
export const de_DescribeSlackChannelConfigurationsCommand = async (output, context) => {
|
|
682
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
683
|
-
return de_CommandError(output, context);
|
|
684
|
-
}
|
|
685
|
-
const contents = map({
|
|
686
|
-
$metadata: deserializeMetadata(output),
|
|
687
|
-
});
|
|
688
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
689
|
-
const doc = take(data, {
|
|
690
|
-
NextToken: __expectString,
|
|
691
|
-
SlackChannelConfigurations: _json,
|
|
692
|
-
});
|
|
693
|
-
Object.assign(contents, doc);
|
|
694
|
-
return contents;
|
|
695
|
-
};
|
|
696
|
-
export const de_DescribeSlackUserIdentitiesCommand = async (output, context) => {
|
|
697
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
698
|
-
return de_CommandError(output, context);
|
|
699
|
-
}
|
|
700
|
-
const contents = map({
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
});
|
|
703
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
704
|
-
const doc = take(data, {
|
|
705
|
-
NextToken: __expectString,
|
|
706
|
-
SlackUserIdentities: _json,
|
|
707
|
-
});
|
|
708
|
-
Object.assign(contents, doc);
|
|
709
|
-
return contents;
|
|
710
|
-
};
|
|
711
|
-
export const de_DescribeSlackWorkspacesCommand = async (output, context) => {
|
|
712
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
713
|
-
return de_CommandError(output, context);
|
|
714
|
-
}
|
|
715
|
-
const contents = map({
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
});
|
|
718
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
719
|
-
const doc = take(data, {
|
|
720
|
-
NextToken: __expectString,
|
|
721
|
-
SlackWorkspaces: _json,
|
|
722
|
-
});
|
|
723
|
-
Object.assign(contents, doc);
|
|
724
|
-
return contents;
|
|
725
|
-
};
|
|
726
|
-
export const de_DisassociateFromConfigurationCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
728
|
-
return de_CommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const contents = map({
|
|
731
|
-
$metadata: deserializeMetadata(output),
|
|
732
|
-
});
|
|
733
|
-
await collectBody(output.body, context);
|
|
734
|
-
return contents;
|
|
735
|
-
};
|
|
736
|
-
export const de_GetAccountPreferencesCommand = async (output, context) => {
|
|
737
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
|
-
return de_CommandError(output, context);
|
|
739
|
-
}
|
|
740
|
-
const contents = map({
|
|
741
|
-
$metadata: deserializeMetadata(output),
|
|
742
|
-
});
|
|
743
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
744
|
-
const doc = take(data, {
|
|
745
|
-
AccountPreferences: _json,
|
|
746
|
-
});
|
|
747
|
-
Object.assign(contents, doc);
|
|
748
|
-
return contents;
|
|
749
|
-
};
|
|
750
|
-
export const de_GetCustomActionCommand = async (output, context) => {
|
|
751
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
|
-
return de_CommandError(output, context);
|
|
753
|
-
}
|
|
754
|
-
const contents = map({
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
});
|
|
757
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
758
|
-
const doc = take(data, {
|
|
759
|
-
CustomAction: _json,
|
|
760
|
-
});
|
|
761
|
-
Object.assign(contents, doc);
|
|
762
|
-
return contents;
|
|
763
|
-
};
|
|
764
|
-
export const de_GetMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
765
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
-
return de_CommandError(output, context);
|
|
767
|
-
}
|
|
768
|
-
const contents = map({
|
|
769
|
-
$metadata: deserializeMetadata(output),
|
|
770
|
-
});
|
|
771
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
772
|
-
const doc = take(data, {
|
|
773
|
-
ChannelConfiguration: _json,
|
|
774
|
-
});
|
|
775
|
-
Object.assign(contents, doc);
|
|
776
|
-
return contents;
|
|
777
|
-
};
|
|
778
|
-
export const de_ListAssociationsCommand = async (output, context) => {
|
|
779
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
-
return de_CommandError(output, context);
|
|
781
|
-
}
|
|
782
|
-
const contents = map({
|
|
783
|
-
$metadata: deserializeMetadata(output),
|
|
784
|
-
});
|
|
785
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
786
|
-
const doc = take(data, {
|
|
787
|
-
Associations: _json,
|
|
788
|
-
NextToken: __expectString,
|
|
789
|
-
});
|
|
790
|
-
Object.assign(contents, doc);
|
|
791
|
-
return contents;
|
|
792
|
-
};
|
|
793
|
-
export const de_ListCustomActionsCommand = async (output, context) => {
|
|
794
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
|
-
return de_CommandError(output, context);
|
|
796
|
-
}
|
|
797
|
-
const contents = map({
|
|
798
|
-
$metadata: deserializeMetadata(output),
|
|
799
|
-
});
|
|
800
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
801
|
-
const doc = take(data, {
|
|
802
|
-
CustomActions: _json,
|
|
803
|
-
NextToken: __expectString,
|
|
804
|
-
});
|
|
805
|
-
Object.assign(contents, doc);
|
|
806
|
-
return contents;
|
|
807
|
-
};
|
|
808
|
-
export const de_ListMicrosoftTeamsChannelConfigurationsCommand = async (output, context) => {
|
|
809
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
810
|
-
return de_CommandError(output, context);
|
|
811
|
-
}
|
|
812
|
-
const contents = map({
|
|
813
|
-
$metadata: deserializeMetadata(output),
|
|
814
|
-
});
|
|
815
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
816
|
-
const doc = take(data, {
|
|
817
|
-
NextToken: __expectString,
|
|
818
|
-
TeamChannelConfigurations: _json,
|
|
819
|
-
});
|
|
820
|
-
Object.assign(contents, doc);
|
|
821
|
-
return contents;
|
|
822
|
-
};
|
|
823
|
-
export const de_ListMicrosoftTeamsConfiguredTeamsCommand = async (output, context) => {
|
|
824
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
825
|
-
return de_CommandError(output, context);
|
|
826
|
-
}
|
|
827
|
-
const contents = map({
|
|
828
|
-
$metadata: deserializeMetadata(output),
|
|
829
|
-
});
|
|
830
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
831
|
-
const doc = take(data, {
|
|
832
|
-
ConfiguredTeams: _json,
|
|
833
|
-
NextToken: __expectString,
|
|
834
|
-
});
|
|
835
|
-
Object.assign(contents, doc);
|
|
836
|
-
return contents;
|
|
837
|
-
};
|
|
838
|
-
export const de_ListMicrosoftTeamsUserIdentitiesCommand = async (output, context) => {
|
|
839
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
840
|
-
return de_CommandError(output, context);
|
|
841
|
-
}
|
|
842
|
-
const contents = map({
|
|
843
|
-
$metadata: deserializeMetadata(output),
|
|
844
|
-
});
|
|
845
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
846
|
-
const doc = take(data, {
|
|
847
|
-
NextToken: __expectString,
|
|
848
|
-
TeamsUserIdentities: _json,
|
|
849
|
-
});
|
|
850
|
-
Object.assign(contents, doc);
|
|
851
|
-
return contents;
|
|
852
|
-
};
|
|
853
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
854
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return de_CommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const contents = map({
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
});
|
|
860
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
861
|
-
const doc = take(data, {
|
|
862
|
-
Tags: _json,
|
|
863
|
-
});
|
|
864
|
-
Object.assign(contents, doc);
|
|
865
|
-
return contents;
|
|
866
|
-
};
|
|
867
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
868
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
869
|
-
return de_CommandError(output, context);
|
|
870
|
-
}
|
|
871
|
-
const contents = map({
|
|
872
|
-
$metadata: deserializeMetadata(output),
|
|
873
|
-
});
|
|
874
|
-
await collectBody(output.body, context);
|
|
875
|
-
return contents;
|
|
876
|
-
};
|
|
877
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
878
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
879
|
-
return de_CommandError(output, context);
|
|
880
|
-
}
|
|
881
|
-
const contents = map({
|
|
882
|
-
$metadata: deserializeMetadata(output),
|
|
883
|
-
});
|
|
884
|
-
await collectBody(output.body, context);
|
|
885
|
-
return contents;
|
|
886
|
-
};
|
|
887
|
-
export const de_UpdateAccountPreferencesCommand = async (output, context) => {
|
|
888
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
889
|
-
return de_CommandError(output, context);
|
|
890
|
-
}
|
|
891
|
-
const contents = map({
|
|
892
|
-
$metadata: deserializeMetadata(output),
|
|
893
|
-
});
|
|
894
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
895
|
-
const doc = take(data, {
|
|
896
|
-
AccountPreferences: _json,
|
|
897
|
-
});
|
|
898
|
-
Object.assign(contents, doc);
|
|
899
|
-
return contents;
|
|
900
|
-
};
|
|
901
|
-
export const de_UpdateChimeWebhookConfigurationCommand = async (output, context) => {
|
|
902
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
-
return de_CommandError(output, context);
|
|
904
|
-
}
|
|
905
|
-
const contents = map({
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
});
|
|
908
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
909
|
-
const doc = take(data, {
|
|
910
|
-
WebhookConfiguration: _json,
|
|
911
|
-
});
|
|
912
|
-
Object.assign(contents, doc);
|
|
913
|
-
return contents;
|
|
914
|
-
};
|
|
915
|
-
export const de_UpdateCustomActionCommand = async (output, context) => {
|
|
916
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
917
|
-
return de_CommandError(output, context);
|
|
918
|
-
}
|
|
919
|
-
const contents = map({
|
|
920
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
-
});
|
|
922
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
923
|
-
const doc = take(data, {
|
|
924
|
-
CustomActionArn: __expectString,
|
|
925
|
-
});
|
|
926
|
-
Object.assign(contents, doc);
|
|
927
|
-
return contents;
|
|
928
|
-
};
|
|
929
|
-
export const de_UpdateMicrosoftTeamsChannelConfigurationCommand = async (output, context) => {
|
|
930
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
|
-
return de_CommandError(output, context);
|
|
932
|
-
}
|
|
933
|
-
const contents = map({
|
|
934
|
-
$metadata: deserializeMetadata(output),
|
|
935
|
-
});
|
|
936
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
937
|
-
const doc = take(data, {
|
|
938
|
-
ChannelConfiguration: _json,
|
|
939
|
-
});
|
|
940
|
-
Object.assign(contents, doc);
|
|
941
|
-
return contents;
|
|
942
|
-
};
|
|
943
|
-
export const de_UpdateSlackChannelConfigurationCommand = async (output, context) => {
|
|
944
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
945
|
-
return de_CommandError(output, context);
|
|
946
|
-
}
|
|
947
|
-
const contents = map({
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
});
|
|
950
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
951
|
-
const doc = take(data, {
|
|
952
|
-
ChannelConfiguration: _json,
|
|
953
|
-
});
|
|
954
|
-
Object.assign(contents, doc);
|
|
955
|
-
return contents;
|
|
956
|
-
};
|
|
957
|
-
const de_CommandError = async (output, context) => {
|
|
958
|
-
const parsedOutput = {
|
|
959
|
-
...output,
|
|
960
|
-
body: await parseErrorBody(output.body, context),
|
|
961
|
-
};
|
|
962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
|
-
switch (errorCode) {
|
|
964
|
-
case "InternalServiceError":
|
|
965
|
-
case "com.amazonaws.chatbot#InternalServiceError":
|
|
966
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
967
|
-
case "InvalidRequestException":
|
|
968
|
-
case "com.amazonaws.chatbot#InvalidRequestException":
|
|
969
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
970
|
-
case "UnauthorizedException":
|
|
971
|
-
case "com.amazonaws.chatbot#UnauthorizedException":
|
|
972
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ConflictException":
|
|
974
|
-
case "com.amazonaws.chatbot#ConflictException":
|
|
975
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
976
|
-
case "CreateChimeWebhookConfigurationException":
|
|
977
|
-
case "com.amazonaws.chatbot#CreateChimeWebhookConfigurationException":
|
|
978
|
-
throw await de_CreateChimeWebhookConfigurationExceptionRes(parsedOutput, context);
|
|
979
|
-
case "InvalidParameterException":
|
|
980
|
-
case "com.amazonaws.chatbot#InvalidParameterException":
|
|
981
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
982
|
-
case "LimitExceededException":
|
|
983
|
-
case "com.amazonaws.chatbot#LimitExceededException":
|
|
984
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
985
|
-
case "CreateTeamsChannelConfigurationException":
|
|
986
|
-
case "com.amazonaws.chatbot#CreateTeamsChannelConfigurationException":
|
|
987
|
-
throw await de_CreateTeamsChannelConfigurationExceptionRes(parsedOutput, context);
|
|
988
|
-
case "CreateSlackChannelConfigurationException":
|
|
989
|
-
case "com.amazonaws.chatbot#CreateSlackChannelConfigurationException":
|
|
990
|
-
throw await de_CreateSlackChannelConfigurationExceptionRes(parsedOutput, context);
|
|
991
|
-
case "DeleteChimeWebhookConfigurationException":
|
|
992
|
-
case "com.amazonaws.chatbot#DeleteChimeWebhookConfigurationException":
|
|
993
|
-
throw await de_DeleteChimeWebhookConfigurationExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ResourceNotFoundException":
|
|
995
|
-
case "com.amazonaws.chatbot#ResourceNotFoundException":
|
|
996
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
997
|
-
case "DeleteTeamsChannelConfigurationException":
|
|
998
|
-
case "com.amazonaws.chatbot#DeleteTeamsChannelConfigurationException":
|
|
999
|
-
throw await de_DeleteTeamsChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "DeleteTeamsConfiguredTeamException":
|
|
1001
|
-
case "com.amazonaws.chatbot#DeleteTeamsConfiguredTeamException":
|
|
1002
|
-
throw await de_DeleteTeamsConfiguredTeamExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "DeleteMicrosoftTeamsUserIdentityException":
|
|
1004
|
-
case "com.amazonaws.chatbot#DeleteMicrosoftTeamsUserIdentityException":
|
|
1005
|
-
throw await de_DeleteMicrosoftTeamsUserIdentityExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "DeleteSlackChannelConfigurationException":
|
|
1007
|
-
case "com.amazonaws.chatbot#DeleteSlackChannelConfigurationException":
|
|
1008
|
-
throw await de_DeleteSlackChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "DeleteSlackUserIdentityException":
|
|
1010
|
-
case "com.amazonaws.chatbot#DeleteSlackUserIdentityException":
|
|
1011
|
-
throw await de_DeleteSlackUserIdentityExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "DeleteSlackWorkspaceAuthorizationFault":
|
|
1013
|
-
case "com.amazonaws.chatbot#DeleteSlackWorkspaceAuthorizationFault":
|
|
1014
|
-
throw await de_DeleteSlackWorkspaceAuthorizationFaultRes(parsedOutput, context);
|
|
1015
|
-
case "DescribeChimeWebhookConfigurationsException":
|
|
1016
|
-
case "com.amazonaws.chatbot#DescribeChimeWebhookConfigurationsException":
|
|
1017
|
-
throw await de_DescribeChimeWebhookConfigurationsExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "DescribeSlackChannelConfigurationsException":
|
|
1019
|
-
case "com.amazonaws.chatbot#DescribeSlackChannelConfigurationsException":
|
|
1020
|
-
throw await de_DescribeSlackChannelConfigurationsExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "DescribeSlackUserIdentitiesException":
|
|
1022
|
-
case "com.amazonaws.chatbot#DescribeSlackUserIdentitiesException":
|
|
1023
|
-
throw await de_DescribeSlackUserIdentitiesExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "DescribeSlackWorkspacesException":
|
|
1025
|
-
case "com.amazonaws.chatbot#DescribeSlackWorkspacesException":
|
|
1026
|
-
throw await de_DescribeSlackWorkspacesExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "GetAccountPreferencesException":
|
|
1028
|
-
case "com.amazonaws.chatbot#GetAccountPreferencesException":
|
|
1029
|
-
throw await de_GetAccountPreferencesExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "GetTeamsChannelConfigurationException":
|
|
1031
|
-
case "com.amazonaws.chatbot#GetTeamsChannelConfigurationException":
|
|
1032
|
-
throw await de_GetTeamsChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "ListTeamsChannelConfigurationsException":
|
|
1034
|
-
case "com.amazonaws.chatbot#ListTeamsChannelConfigurationsException":
|
|
1035
|
-
throw await de_ListTeamsChannelConfigurationsExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "ListMicrosoftTeamsConfiguredTeamsException":
|
|
1037
|
-
case "com.amazonaws.chatbot#ListMicrosoftTeamsConfiguredTeamsException":
|
|
1038
|
-
throw await de_ListMicrosoftTeamsConfiguredTeamsExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "ListMicrosoftTeamsUserIdentitiesException":
|
|
1040
|
-
case "com.amazonaws.chatbot#ListMicrosoftTeamsUserIdentitiesException":
|
|
1041
|
-
throw await de_ListMicrosoftTeamsUserIdentitiesExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "ServiceUnavailableException":
|
|
1043
|
-
case "com.amazonaws.chatbot#ServiceUnavailableException":
|
|
1044
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "TooManyTagsException":
|
|
1046
|
-
case "com.amazonaws.chatbot#TooManyTagsException":
|
|
1047
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "UpdateAccountPreferencesException":
|
|
1049
|
-
case "com.amazonaws.chatbot#UpdateAccountPreferencesException":
|
|
1050
|
-
throw await de_UpdateAccountPreferencesExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "UpdateChimeWebhookConfigurationException":
|
|
1052
|
-
case "com.amazonaws.chatbot#UpdateChimeWebhookConfigurationException":
|
|
1053
|
-
throw await de_UpdateChimeWebhookConfigurationExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "UpdateTeamsChannelConfigurationException":
|
|
1055
|
-
case "com.amazonaws.chatbot#UpdateTeamsChannelConfigurationException":
|
|
1056
|
-
throw await de_UpdateTeamsChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "UpdateSlackChannelConfigurationException":
|
|
1058
|
-
case "com.amazonaws.chatbot#UpdateSlackChannelConfigurationException":
|
|
1059
|
-
throw await de_UpdateSlackChannelConfigurationExceptionRes(parsedOutput, context);
|
|
1060
|
-
default:
|
|
1061
|
-
const parsedBody = parsedOutput.body;
|
|
1062
|
-
return throwDefaultError({
|
|
1063
|
-
output,
|
|
1064
|
-
parsedBody,
|
|
1065
|
-
errorCode,
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
};
|
|
1069
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1070
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1071
|
-
const contents = map({});
|
|
1072
|
-
const data = parsedOutput.body;
|
|
1073
|
-
const doc = take(data, {
|
|
1074
|
-
message: __expectString,
|
|
1075
|
-
});
|
|
1076
|
-
Object.assign(contents, doc);
|
|
1077
|
-
const exception = new ConflictException({
|
|
1078
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1079
|
-
...contents,
|
|
1080
|
-
});
|
|
1081
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1082
|
-
};
|
|
1083
|
-
const de_CreateChimeWebhookConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1084
|
-
const contents = map({});
|
|
1085
|
-
const data = parsedOutput.body;
|
|
1086
|
-
const doc = take(data, {
|
|
1087
|
-
Message: __expectString,
|
|
1088
|
-
});
|
|
1089
|
-
Object.assign(contents, doc);
|
|
1090
|
-
const exception = new CreateChimeWebhookConfigurationException({
|
|
1091
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1092
|
-
...contents,
|
|
1093
|
-
});
|
|
1094
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1095
|
-
};
|
|
1096
|
-
const de_CreateSlackChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1097
|
-
const contents = map({});
|
|
1098
|
-
const data = parsedOutput.body;
|
|
1099
|
-
const doc = take(data, {
|
|
1100
|
-
Message: __expectString,
|
|
1101
|
-
});
|
|
1102
|
-
Object.assign(contents, doc);
|
|
1103
|
-
const exception = new CreateSlackChannelConfigurationException({
|
|
1104
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1105
|
-
...contents,
|
|
1106
|
-
});
|
|
1107
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1108
|
-
};
|
|
1109
|
-
const de_CreateTeamsChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1110
|
-
const contents = map({});
|
|
1111
|
-
const data = parsedOutput.body;
|
|
1112
|
-
const doc = take(data, {
|
|
1113
|
-
Message: __expectString,
|
|
1114
|
-
});
|
|
1115
|
-
Object.assign(contents, doc);
|
|
1116
|
-
const exception = new CreateTeamsChannelConfigurationException({
|
|
1117
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1118
|
-
...contents,
|
|
1119
|
-
});
|
|
1120
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1121
|
-
};
|
|
1122
|
-
const de_DeleteChimeWebhookConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1123
|
-
const contents = map({});
|
|
1124
|
-
const data = parsedOutput.body;
|
|
1125
|
-
const doc = take(data, {
|
|
1126
|
-
Message: __expectString,
|
|
1127
|
-
});
|
|
1128
|
-
Object.assign(contents, doc);
|
|
1129
|
-
const exception = new DeleteChimeWebhookConfigurationException({
|
|
1130
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1131
|
-
...contents,
|
|
1132
|
-
});
|
|
1133
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1134
|
-
};
|
|
1135
|
-
const de_DeleteMicrosoftTeamsUserIdentityExceptionRes = async (parsedOutput, context) => {
|
|
1136
|
-
const contents = map({});
|
|
1137
|
-
const data = parsedOutput.body;
|
|
1138
|
-
const doc = take(data, {
|
|
1139
|
-
Message: __expectString,
|
|
1140
|
-
});
|
|
1141
|
-
Object.assign(contents, doc);
|
|
1142
|
-
const exception = new DeleteMicrosoftTeamsUserIdentityException({
|
|
1143
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1144
|
-
...contents,
|
|
1145
|
-
});
|
|
1146
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1147
|
-
};
|
|
1148
|
-
const de_DeleteSlackChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1149
|
-
const contents = map({});
|
|
1150
|
-
const data = parsedOutput.body;
|
|
1151
|
-
const doc = take(data, {
|
|
1152
|
-
Message: __expectString,
|
|
1153
|
-
});
|
|
1154
|
-
Object.assign(contents, doc);
|
|
1155
|
-
const exception = new DeleteSlackChannelConfigurationException({
|
|
1156
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1157
|
-
...contents,
|
|
1158
|
-
});
|
|
1159
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1160
|
-
};
|
|
1161
|
-
const de_DeleteSlackUserIdentityExceptionRes = async (parsedOutput, context) => {
|
|
1162
|
-
const contents = map({});
|
|
1163
|
-
const data = parsedOutput.body;
|
|
1164
|
-
const doc = take(data, {
|
|
1165
|
-
Message: __expectString,
|
|
1166
|
-
});
|
|
1167
|
-
Object.assign(contents, doc);
|
|
1168
|
-
const exception = new DeleteSlackUserIdentityException({
|
|
1169
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1170
|
-
...contents,
|
|
1171
|
-
});
|
|
1172
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1173
|
-
};
|
|
1174
|
-
const de_DeleteSlackWorkspaceAuthorizationFaultRes = async (parsedOutput, context) => {
|
|
1175
|
-
const contents = map({});
|
|
1176
|
-
const data = parsedOutput.body;
|
|
1177
|
-
const doc = take(data, {
|
|
1178
|
-
Message: __expectString,
|
|
1179
|
-
});
|
|
1180
|
-
Object.assign(contents, doc);
|
|
1181
|
-
const exception = new DeleteSlackWorkspaceAuthorizationFault({
|
|
1182
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1183
|
-
...contents,
|
|
1184
|
-
});
|
|
1185
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1186
|
-
};
|
|
1187
|
-
const de_DeleteTeamsChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1188
|
-
const contents = map({});
|
|
1189
|
-
const data = parsedOutput.body;
|
|
1190
|
-
const doc = take(data, {
|
|
1191
|
-
Message: __expectString,
|
|
1192
|
-
});
|
|
1193
|
-
Object.assign(contents, doc);
|
|
1194
|
-
const exception = new DeleteTeamsChannelConfigurationException({
|
|
1195
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1196
|
-
...contents,
|
|
1197
|
-
});
|
|
1198
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1199
|
-
};
|
|
1200
|
-
const de_DeleteTeamsConfiguredTeamExceptionRes = async (parsedOutput, context) => {
|
|
1201
|
-
const contents = map({});
|
|
1202
|
-
const data = parsedOutput.body;
|
|
1203
|
-
const doc = take(data, {
|
|
1204
|
-
Message: __expectString,
|
|
1205
|
-
});
|
|
1206
|
-
Object.assign(contents, doc);
|
|
1207
|
-
const exception = new DeleteTeamsConfiguredTeamException({
|
|
1208
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1209
|
-
...contents,
|
|
1210
|
-
});
|
|
1211
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1212
|
-
};
|
|
1213
|
-
const de_DescribeChimeWebhookConfigurationsExceptionRes = async (parsedOutput, context) => {
|
|
1214
|
-
const contents = map({});
|
|
1215
|
-
const data = parsedOutput.body;
|
|
1216
|
-
const doc = take(data, {
|
|
1217
|
-
Message: __expectString,
|
|
1218
|
-
});
|
|
1219
|
-
Object.assign(contents, doc);
|
|
1220
|
-
const exception = new DescribeChimeWebhookConfigurationsException({
|
|
1221
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1222
|
-
...contents,
|
|
1223
|
-
});
|
|
1224
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1225
|
-
};
|
|
1226
|
-
const de_DescribeSlackChannelConfigurationsExceptionRes = async (parsedOutput, context) => {
|
|
1227
|
-
const contents = map({});
|
|
1228
|
-
const data = parsedOutput.body;
|
|
1229
|
-
const doc = take(data, {
|
|
1230
|
-
Message: __expectString,
|
|
1231
|
-
});
|
|
1232
|
-
Object.assign(contents, doc);
|
|
1233
|
-
const exception = new DescribeSlackChannelConfigurationsException({
|
|
1234
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1235
|
-
...contents,
|
|
1236
|
-
});
|
|
1237
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1238
|
-
};
|
|
1239
|
-
const de_DescribeSlackUserIdentitiesExceptionRes = async (parsedOutput, context) => {
|
|
1240
|
-
const contents = map({});
|
|
1241
|
-
const data = parsedOutput.body;
|
|
1242
|
-
const doc = take(data, {
|
|
1243
|
-
Message: __expectString,
|
|
1244
|
-
});
|
|
1245
|
-
Object.assign(contents, doc);
|
|
1246
|
-
const exception = new DescribeSlackUserIdentitiesException({
|
|
1247
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1248
|
-
...contents,
|
|
1249
|
-
});
|
|
1250
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1251
|
-
};
|
|
1252
|
-
const de_DescribeSlackWorkspacesExceptionRes = async (parsedOutput, context) => {
|
|
1253
|
-
const contents = map({});
|
|
1254
|
-
const data = parsedOutput.body;
|
|
1255
|
-
const doc = take(data, {
|
|
1256
|
-
Message: __expectString,
|
|
1257
|
-
});
|
|
1258
|
-
Object.assign(contents, doc);
|
|
1259
|
-
const exception = new DescribeSlackWorkspacesException({
|
|
1260
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1261
|
-
...contents,
|
|
1262
|
-
});
|
|
1263
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1264
|
-
};
|
|
1265
|
-
const de_GetAccountPreferencesExceptionRes = async (parsedOutput, context) => {
|
|
1266
|
-
const contents = map({});
|
|
1267
|
-
const data = parsedOutput.body;
|
|
1268
|
-
const doc = take(data, {
|
|
1269
|
-
Message: __expectString,
|
|
1270
|
-
});
|
|
1271
|
-
Object.assign(contents, doc);
|
|
1272
|
-
const exception = new GetAccountPreferencesException({
|
|
1273
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1274
|
-
...contents,
|
|
1275
|
-
});
|
|
1276
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1277
|
-
};
|
|
1278
|
-
const de_GetTeamsChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1279
|
-
const contents = map({});
|
|
1280
|
-
const data = parsedOutput.body;
|
|
1281
|
-
const doc = take(data, {
|
|
1282
|
-
Message: __expectString,
|
|
1283
|
-
});
|
|
1284
|
-
Object.assign(contents, doc);
|
|
1285
|
-
const exception = new GetTeamsChannelConfigurationException({
|
|
1286
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1287
|
-
...contents,
|
|
1288
|
-
});
|
|
1289
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1290
|
-
};
|
|
1291
|
-
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
1292
|
-
const contents = map({});
|
|
1293
|
-
const data = parsedOutput.body;
|
|
1294
|
-
const doc = take(data, {
|
|
1295
|
-
Message: __expectString,
|
|
1296
|
-
});
|
|
1297
|
-
Object.assign(contents, doc);
|
|
1298
|
-
const exception = new InternalServiceError({
|
|
1299
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1300
|
-
...contents,
|
|
1301
|
-
});
|
|
1302
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1303
|
-
};
|
|
1304
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1305
|
-
const contents = map({});
|
|
1306
|
-
const data = parsedOutput.body;
|
|
1307
|
-
const doc = take(data, {
|
|
1308
|
-
message: __expectString,
|
|
1309
|
-
});
|
|
1310
|
-
Object.assign(contents, doc);
|
|
1311
|
-
const exception = new InvalidParameterException({
|
|
1312
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1313
|
-
...contents,
|
|
1314
|
-
});
|
|
1315
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1316
|
-
};
|
|
1317
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1318
|
-
const contents = map({});
|
|
1319
|
-
const data = parsedOutput.body;
|
|
1320
|
-
const doc = take(data, {
|
|
1321
|
-
message: __expectString,
|
|
1322
|
-
});
|
|
1323
|
-
Object.assign(contents, doc);
|
|
1324
|
-
const exception = new InvalidRequestException({
|
|
1325
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1326
|
-
...contents,
|
|
1327
|
-
});
|
|
1328
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1329
|
-
};
|
|
1330
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1331
|
-
const contents = map({});
|
|
1332
|
-
const data = parsedOutput.body;
|
|
1333
|
-
const doc = take(data, {
|
|
1334
|
-
message: __expectString,
|
|
1335
|
-
});
|
|
1336
|
-
Object.assign(contents, doc);
|
|
1337
|
-
const exception = new LimitExceededException({
|
|
1338
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1339
|
-
...contents,
|
|
1340
|
-
});
|
|
1341
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1342
|
-
};
|
|
1343
|
-
const de_ListMicrosoftTeamsConfiguredTeamsExceptionRes = async (parsedOutput, context) => {
|
|
1344
|
-
const contents = map({});
|
|
1345
|
-
const data = parsedOutput.body;
|
|
1346
|
-
const doc = take(data, {
|
|
1347
|
-
Message: __expectString,
|
|
1348
|
-
});
|
|
1349
|
-
Object.assign(contents, doc);
|
|
1350
|
-
const exception = new ListMicrosoftTeamsConfiguredTeamsException({
|
|
1351
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1352
|
-
...contents,
|
|
1353
|
-
});
|
|
1354
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1355
|
-
};
|
|
1356
|
-
const de_ListMicrosoftTeamsUserIdentitiesExceptionRes = async (parsedOutput, context) => {
|
|
1357
|
-
const contents = map({});
|
|
1358
|
-
const data = parsedOutput.body;
|
|
1359
|
-
const doc = take(data, {
|
|
1360
|
-
Message: __expectString,
|
|
1361
|
-
});
|
|
1362
|
-
Object.assign(contents, doc);
|
|
1363
|
-
const exception = new ListMicrosoftTeamsUserIdentitiesException({
|
|
1364
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1365
|
-
...contents,
|
|
1366
|
-
});
|
|
1367
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1368
|
-
};
|
|
1369
|
-
const de_ListTeamsChannelConfigurationsExceptionRes = async (parsedOutput, context) => {
|
|
1370
|
-
const contents = map({});
|
|
1371
|
-
const data = parsedOutput.body;
|
|
1372
|
-
const doc = take(data, {
|
|
1373
|
-
Message: __expectString,
|
|
1374
|
-
});
|
|
1375
|
-
Object.assign(contents, doc);
|
|
1376
|
-
const exception = new ListTeamsChannelConfigurationsException({
|
|
1377
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1378
|
-
...contents,
|
|
1379
|
-
});
|
|
1380
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1381
|
-
};
|
|
1382
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1383
|
-
const contents = map({});
|
|
1384
|
-
const data = parsedOutput.body;
|
|
1385
|
-
const doc = take(data, {
|
|
1386
|
-
Message: __expectString,
|
|
1387
|
-
});
|
|
1388
|
-
Object.assign(contents, doc);
|
|
1389
|
-
const exception = new ResourceNotFoundException({
|
|
1390
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1391
|
-
...contents,
|
|
1392
|
-
});
|
|
1393
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1394
|
-
};
|
|
1395
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1396
|
-
const contents = map({});
|
|
1397
|
-
const data = parsedOutput.body;
|
|
1398
|
-
const doc = take(data, {
|
|
1399
|
-
message: __expectString,
|
|
1400
|
-
});
|
|
1401
|
-
Object.assign(contents, doc);
|
|
1402
|
-
const exception = new ServiceUnavailableException({
|
|
1403
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1404
|
-
...contents,
|
|
1405
|
-
});
|
|
1406
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1407
|
-
};
|
|
1408
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1409
|
-
const contents = map({});
|
|
1410
|
-
const data = parsedOutput.body;
|
|
1411
|
-
const doc = take(data, {
|
|
1412
|
-
message: __expectString,
|
|
1413
|
-
});
|
|
1414
|
-
Object.assign(contents, doc);
|
|
1415
|
-
const exception = new TooManyTagsException({
|
|
1416
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1417
|
-
...contents,
|
|
1418
|
-
});
|
|
1419
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1420
|
-
};
|
|
1421
|
-
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1422
|
-
const contents = map({});
|
|
1423
|
-
const data = parsedOutput.body;
|
|
1424
|
-
const doc = take(data, {
|
|
1425
|
-
message: __expectString,
|
|
1426
|
-
});
|
|
1427
|
-
Object.assign(contents, doc);
|
|
1428
|
-
const exception = new UnauthorizedException({
|
|
1429
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1430
|
-
...contents,
|
|
1431
|
-
});
|
|
1432
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1433
|
-
};
|
|
1434
|
-
const de_UpdateAccountPreferencesExceptionRes = async (parsedOutput, context) => {
|
|
1435
|
-
const contents = map({});
|
|
1436
|
-
const data = parsedOutput.body;
|
|
1437
|
-
const doc = take(data, {
|
|
1438
|
-
Message: __expectString,
|
|
1439
|
-
});
|
|
1440
|
-
Object.assign(contents, doc);
|
|
1441
|
-
const exception = new UpdateAccountPreferencesException({
|
|
1442
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1443
|
-
...contents,
|
|
1444
|
-
});
|
|
1445
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1446
|
-
};
|
|
1447
|
-
const de_UpdateChimeWebhookConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1448
|
-
const contents = map({});
|
|
1449
|
-
const data = parsedOutput.body;
|
|
1450
|
-
const doc = take(data, {
|
|
1451
|
-
Message: __expectString,
|
|
1452
|
-
});
|
|
1453
|
-
Object.assign(contents, doc);
|
|
1454
|
-
const exception = new UpdateChimeWebhookConfigurationException({
|
|
1455
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1456
|
-
...contents,
|
|
1457
|
-
});
|
|
1458
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1459
|
-
};
|
|
1460
|
-
const de_UpdateSlackChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1461
|
-
const contents = map({});
|
|
1462
|
-
const data = parsedOutput.body;
|
|
1463
|
-
const doc = take(data, {
|
|
1464
|
-
Message: __expectString,
|
|
1465
|
-
});
|
|
1466
|
-
Object.assign(contents, doc);
|
|
1467
|
-
const exception = new UpdateSlackChannelConfigurationException({
|
|
1468
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1469
|
-
...contents,
|
|
1470
|
-
});
|
|
1471
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1472
|
-
};
|
|
1473
|
-
const de_UpdateTeamsChannelConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1474
|
-
const contents = map({});
|
|
1475
|
-
const data = parsedOutput.body;
|
|
1476
|
-
const doc = take(data, {
|
|
1477
|
-
Message: __expectString,
|
|
1478
|
-
});
|
|
1479
|
-
Object.assign(contents, doc);
|
|
1480
|
-
const exception = new UpdateTeamsChannelConfigurationException({
|
|
1481
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1482
|
-
...contents,
|
|
1483
|
-
});
|
|
1484
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1485
|
-
};
|
|
1486
|
-
const deserializeMetadata = (output) => ({
|
|
1487
|
-
httpStatusCode: output.statusCode,
|
|
1488
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1489
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1490
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1491
|
-
});
|
|
1492
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|