@aws-sdk/client-chime-sdk-identity 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/ChimeSDKIdentity.js +105 -98
- package/dist-es/ChimeSDKIdentityClient.js +28 -22
- package/dist-es/commands/CreateAppInstanceAdminCommand.js +28 -21
- package/dist-es/commands/CreateAppInstanceCommand.js +28 -21
- package/dist-es/commands/CreateAppInstanceUserCommand.js +28 -21
- package/dist-es/commands/DeleteAppInstanceAdminCommand.js +29 -22
- package/dist-es/commands/DeleteAppInstanceCommand.js +29 -22
- package/dist-es/commands/DeleteAppInstanceUserCommand.js +29 -22
- package/dist-es/commands/DeregisterAppInstanceUserEndpointCommand.js +29 -22
- package/dist-es/commands/DescribeAppInstanceAdminCommand.js +28 -21
- package/dist-es/commands/DescribeAppInstanceCommand.js +28 -21
- package/dist-es/commands/DescribeAppInstanceUserCommand.js +28 -21
- package/dist-es/commands/DescribeAppInstanceUserEndpointCommand.js +28 -21
- package/dist-es/commands/GetAppInstanceRetentionSettingsCommand.js +28 -21
- package/dist-es/commands/ListAppInstanceAdminsCommand.js +28 -21
- package/dist-es/commands/ListAppInstanceUserEndpointsCommand.js +28 -21
- package/dist-es/commands/ListAppInstanceUsersCommand.js +28 -21
- package/dist-es/commands/ListAppInstancesCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PutAppInstanceRetentionSettingsCommand.js +28 -21
- package/dist-es/commands/RegisterAppInstanceUserEndpointCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdateAppInstanceCommand.js +28 -21
- package/dist-es/commands/UpdateAppInstanceUserCommand.js +28 -21
- package/dist-es/commands/UpdateAppInstanceUserEndpointCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ChimeSDKIdentityServiceException.js +10 -5
- package/dist-es/models/models_0.js +170 -352
- package/dist-es/pagination/ListAppInstanceAdminsPaginator.js +68 -25
- package/dist-es/pagination/ListAppInstanceUserEndpointsPaginator.js +68 -25
- package/dist-es/pagination/ListAppInstanceUsersPaginator.js +68 -25
- package/dist-es/pagination/ListAppInstancesPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +2670 -1873
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,1888 +1,2667 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { ChimeSDKIdentityServiceException as __BaseException } from "../models/ChimeSDKIdentityServiceException";
|
|
5
6
|
import { BadRequestException, ConflictException, ForbiddenException, ResourceLimitExceededException, ServiceFailureException, ServiceUnavailableException, ThrottledClientException, UnauthorizedClientException, } from "../models/models_0";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
7
|
+
export var serializeAws_restJson1CreateAppInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
9
|
+
var _c;
|
|
10
|
+
return __generator(this, function (_d) {
|
|
11
|
+
switch (_d.label) {
|
|
12
|
+
case 0: return [4, context.endpoint()];
|
|
13
|
+
case 1:
|
|
14
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
15
|
+
headers = {
|
|
16
|
+
"content-type": "application/json",
|
|
17
|
+
};
|
|
18
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances";
|
|
19
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
20
|
+
return [2, new __HttpRequest({
|
|
21
|
+
protocol: protocol,
|
|
22
|
+
hostname: hostname,
|
|
23
|
+
port: port,
|
|
24
|
+
method: "POST",
|
|
25
|
+
headers: headers,
|
|
26
|
+
path: resolvedPath,
|
|
27
|
+
body: body,
|
|
28
|
+
})];
|
|
29
|
+
}
|
|
27
30
|
});
|
|
28
|
-
};
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
31
|
+
}); };
|
|
32
|
+
export var serializeAws_restJson1CreateAppInstanceAdminCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
33
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
34
|
+
return __generator(this, function (_c) {
|
|
35
|
+
switch (_c.label) {
|
|
36
|
+
case 0: return [4, context.endpoint()];
|
|
37
|
+
case 1:
|
|
38
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
39
|
+
headers = {
|
|
40
|
+
"content-type": "application/json",
|
|
41
|
+
};
|
|
42
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances/{AppInstanceArn}/admins";
|
|
43
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
44
|
+
body = JSON.stringify(__assign({}, (input.AppInstanceAdminArn != null && { AppInstanceAdminArn: input.AppInstanceAdminArn })));
|
|
45
|
+
return [2, new __HttpRequest({
|
|
46
|
+
protocol: protocol,
|
|
47
|
+
hostname: hostname,
|
|
48
|
+
port: port,
|
|
49
|
+
method: "POST",
|
|
50
|
+
headers: headers,
|
|
51
|
+
path: resolvedPath,
|
|
52
|
+
body: body,
|
|
53
|
+
})];
|
|
54
|
+
}
|
|
48
55
|
});
|
|
49
|
-
};
|
|
50
|
-
export
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
56
|
+
}); };
|
|
57
|
+
export var serializeAws_restJson1CreateAppInstanceUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
59
|
+
var _c;
|
|
60
|
+
return __generator(this, function (_d) {
|
|
61
|
+
switch (_d.label) {
|
|
62
|
+
case 0: return [4, context.endpoint()];
|
|
63
|
+
case 1:
|
|
64
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
65
|
+
headers = {
|
|
66
|
+
"content-type": "application/json",
|
|
67
|
+
};
|
|
68
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users";
|
|
69
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), (input.AppInstanceUserId != null && { AppInstanceUserId: input.AppInstanceUserId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
70
|
+
return [2, new __HttpRequest({
|
|
71
|
+
protocol: protocol,
|
|
72
|
+
hostname: hostname,
|
|
73
|
+
port: port,
|
|
74
|
+
method: "POST",
|
|
75
|
+
headers: headers,
|
|
76
|
+
path: resolvedPath,
|
|
77
|
+
body: body,
|
|
78
|
+
})];
|
|
79
|
+
}
|
|
73
80
|
});
|
|
74
|
-
};
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
}); };
|
|
82
|
+
export var serializeAws_restJson1DeleteAppInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
83
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
84
|
+
return __generator(this, function (_c) {
|
|
85
|
+
switch (_c.label) {
|
|
86
|
+
case 0: return [4, context.endpoint()];
|
|
87
|
+
case 1:
|
|
88
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
89
|
+
headers = {};
|
|
90
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances/{AppInstanceArn}";
|
|
91
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
92
|
+
return [2, new __HttpRequest({
|
|
93
|
+
protocol: protocol,
|
|
94
|
+
hostname: hostname,
|
|
95
|
+
port: port,
|
|
96
|
+
method: "DELETE",
|
|
97
|
+
headers: headers,
|
|
98
|
+
path: resolvedPath,
|
|
99
|
+
body: body,
|
|
100
|
+
})];
|
|
101
|
+
}
|
|
89
102
|
});
|
|
90
|
-
};
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
}); };
|
|
104
|
+
export var serializeAws_restJson1DeleteAppInstanceAdminCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
105
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
106
|
+
return __generator(this, function (_c) {
|
|
107
|
+
switch (_c.label) {
|
|
108
|
+
case 0: return [4, context.endpoint()];
|
|
109
|
+
case 1:
|
|
110
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
111
|
+
headers = {};
|
|
112
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
113
|
+
"/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}";
|
|
114
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceAdminArn", function () { return input.AppInstanceAdminArn; }, "{AppInstanceAdminArn}", false);
|
|
115
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
116
|
+
return [2, new __HttpRequest({
|
|
117
|
+
protocol: protocol,
|
|
118
|
+
hostname: hostname,
|
|
119
|
+
port: port,
|
|
120
|
+
method: "DELETE",
|
|
121
|
+
headers: headers,
|
|
122
|
+
path: resolvedPath,
|
|
123
|
+
body: body,
|
|
124
|
+
})];
|
|
125
|
+
}
|
|
107
126
|
});
|
|
108
|
-
};
|
|
109
|
-
export
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
127
|
+
}); };
|
|
128
|
+
export var serializeAws_restJson1DeleteAppInstanceUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
129
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
130
|
+
return __generator(this, function (_c) {
|
|
131
|
+
switch (_c.label) {
|
|
132
|
+
case 0: return [4, context.endpoint()];
|
|
133
|
+
case 1:
|
|
134
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
135
|
+
headers = {};
|
|
136
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users/{AppInstanceUserArn}";
|
|
137
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
138
|
+
return [2, new __HttpRequest({
|
|
139
|
+
protocol: protocol,
|
|
140
|
+
hostname: hostname,
|
|
141
|
+
port: port,
|
|
142
|
+
method: "DELETE",
|
|
143
|
+
headers: headers,
|
|
144
|
+
path: resolvedPath,
|
|
145
|
+
body: body,
|
|
146
|
+
})];
|
|
147
|
+
}
|
|
123
148
|
});
|
|
124
|
-
};
|
|
125
|
-
export
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
149
|
+
}); };
|
|
150
|
+
export var serializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
152
|
+
return __generator(this, function (_c) {
|
|
153
|
+
switch (_c.label) {
|
|
154
|
+
case 0: return [4, context.endpoint()];
|
|
155
|
+
case 1:
|
|
156
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
157
|
+
headers = {};
|
|
158
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
159
|
+
"/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}";
|
|
160
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
161
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", function () { return input.EndpointId; }, "{EndpointId}", false);
|
|
162
|
+
return [2, new __HttpRequest({
|
|
163
|
+
protocol: protocol,
|
|
164
|
+
hostname: hostname,
|
|
165
|
+
port: port,
|
|
166
|
+
method: "DELETE",
|
|
167
|
+
headers: headers,
|
|
168
|
+
path: resolvedPath,
|
|
169
|
+
body: body,
|
|
170
|
+
})];
|
|
171
|
+
}
|
|
141
172
|
});
|
|
142
|
-
};
|
|
143
|
-
export
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
173
|
+
}); };
|
|
174
|
+
export var serializeAws_restJson1DescribeAppInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
175
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
176
|
+
return __generator(this, function (_c) {
|
|
177
|
+
switch (_c.label) {
|
|
178
|
+
case 0: return [4, context.endpoint()];
|
|
179
|
+
case 1:
|
|
180
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
181
|
+
headers = {};
|
|
182
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances/{AppInstanceArn}";
|
|
183
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
184
|
+
return [2, new __HttpRequest({
|
|
185
|
+
protocol: protocol,
|
|
186
|
+
hostname: hostname,
|
|
187
|
+
port: port,
|
|
188
|
+
method: "GET",
|
|
189
|
+
headers: headers,
|
|
190
|
+
path: resolvedPath,
|
|
191
|
+
body: body,
|
|
192
|
+
})];
|
|
193
|
+
}
|
|
157
194
|
});
|
|
158
|
-
};
|
|
159
|
-
export
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
195
|
+
}); };
|
|
196
|
+
export var serializeAws_restJson1DescribeAppInstanceAdminCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
197
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
198
|
+
return __generator(this, function (_c) {
|
|
199
|
+
switch (_c.label) {
|
|
200
|
+
case 0: return [4, context.endpoint()];
|
|
201
|
+
case 1:
|
|
202
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
203
|
+
headers = {};
|
|
204
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
205
|
+
"/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}";
|
|
206
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceAdminArn", function () { return input.AppInstanceAdminArn; }, "{AppInstanceAdminArn}", false);
|
|
207
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
208
|
+
return [2, new __HttpRequest({
|
|
209
|
+
protocol: protocol,
|
|
210
|
+
hostname: hostname,
|
|
211
|
+
port: port,
|
|
212
|
+
method: "GET",
|
|
213
|
+
headers: headers,
|
|
214
|
+
path: resolvedPath,
|
|
215
|
+
body: body,
|
|
216
|
+
})];
|
|
217
|
+
}
|
|
175
218
|
});
|
|
176
|
-
};
|
|
177
|
-
export
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
219
|
+
}); };
|
|
220
|
+
export var serializeAws_restJson1DescribeAppInstanceUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
221
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
222
|
+
return __generator(this, function (_c) {
|
|
223
|
+
switch (_c.label) {
|
|
224
|
+
case 0: return [4, context.endpoint()];
|
|
225
|
+
case 1:
|
|
226
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
227
|
+
headers = {};
|
|
228
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users/{AppInstanceUserArn}";
|
|
229
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
230
|
+
return [2, new __HttpRequest({
|
|
231
|
+
protocol: protocol,
|
|
232
|
+
hostname: hostname,
|
|
233
|
+
port: port,
|
|
234
|
+
method: "GET",
|
|
235
|
+
headers: headers,
|
|
236
|
+
path: resolvedPath,
|
|
237
|
+
body: body,
|
|
238
|
+
})];
|
|
239
|
+
}
|
|
191
240
|
});
|
|
192
|
-
};
|
|
193
|
-
export
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
241
|
+
}); };
|
|
242
|
+
export var serializeAws_restJson1DescribeAppInstanceUserEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
243
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
244
|
+
return __generator(this, function (_c) {
|
|
245
|
+
switch (_c.label) {
|
|
246
|
+
case 0: return [4, context.endpoint()];
|
|
247
|
+
case 1:
|
|
248
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
249
|
+
headers = {};
|
|
250
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
251
|
+
"/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}";
|
|
252
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
253
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", function () { return input.EndpointId; }, "{EndpointId}", false);
|
|
254
|
+
return [2, new __HttpRequest({
|
|
255
|
+
protocol: protocol,
|
|
256
|
+
hostname: hostname,
|
|
257
|
+
port: port,
|
|
258
|
+
method: "GET",
|
|
259
|
+
headers: headers,
|
|
260
|
+
path: resolvedPath,
|
|
261
|
+
body: body,
|
|
262
|
+
})];
|
|
263
|
+
}
|
|
209
264
|
});
|
|
210
|
-
};
|
|
211
|
-
export
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
265
|
+
}); };
|
|
266
|
+
export var serializeAws_restJson1GetAppInstanceRetentionSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
267
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
268
|
+
return __generator(this, function (_c) {
|
|
269
|
+
switch (_c.label) {
|
|
270
|
+
case 0: return [4, context.endpoint()];
|
|
271
|
+
case 1:
|
|
272
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
273
|
+
headers = {};
|
|
274
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
275
|
+
"/app-instances/{AppInstanceArn}/retention-settings";
|
|
276
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
277
|
+
return [2, new __HttpRequest({
|
|
278
|
+
protocol: protocol,
|
|
279
|
+
hostname: hostname,
|
|
280
|
+
port: port,
|
|
281
|
+
method: "GET",
|
|
282
|
+
headers: headers,
|
|
283
|
+
path: resolvedPath,
|
|
284
|
+
body: body,
|
|
285
|
+
})];
|
|
286
|
+
}
|
|
226
287
|
});
|
|
227
|
-
};
|
|
228
|
-
export
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
288
|
+
}); };
|
|
289
|
+
export var serializeAws_restJson1ListAppInstanceAdminsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
290
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
291
|
+
return __generator(this, function (_c) {
|
|
292
|
+
switch (_c.label) {
|
|
293
|
+
case 0: return [4, context.endpoint()];
|
|
294
|
+
case 1:
|
|
295
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
296
|
+
headers = {};
|
|
297
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances/{AppInstanceArn}/admins";
|
|
298
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
299
|
+
query = map({
|
|
300
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
301
|
+
"next-token": [, input.NextToken],
|
|
302
|
+
});
|
|
303
|
+
return [2, new __HttpRequest({
|
|
304
|
+
protocol: protocol,
|
|
305
|
+
hostname: hostname,
|
|
306
|
+
port: port,
|
|
307
|
+
method: "GET",
|
|
308
|
+
headers: headers,
|
|
309
|
+
path: resolvedPath,
|
|
310
|
+
query: query,
|
|
311
|
+
body: body,
|
|
312
|
+
})];
|
|
313
|
+
}
|
|
247
314
|
});
|
|
248
|
-
};
|
|
249
|
-
export
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
315
|
+
}); };
|
|
316
|
+
export var serializeAws_restJson1ListAppInstancesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
317
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
318
|
+
return __generator(this, function (_c) {
|
|
319
|
+
switch (_c.label) {
|
|
320
|
+
case 0: return [4, context.endpoint()];
|
|
321
|
+
case 1:
|
|
322
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
323
|
+
headers = {};
|
|
324
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances";
|
|
325
|
+
query = map({
|
|
326
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
327
|
+
"next-token": [, input.NextToken],
|
|
328
|
+
});
|
|
329
|
+
return [2, new __HttpRequest({
|
|
330
|
+
protocol: protocol,
|
|
331
|
+
hostname: hostname,
|
|
332
|
+
port: port,
|
|
333
|
+
method: "GET",
|
|
334
|
+
headers: headers,
|
|
335
|
+
path: resolvedPath,
|
|
336
|
+
query: query,
|
|
337
|
+
body: body,
|
|
338
|
+
})];
|
|
339
|
+
}
|
|
267
340
|
});
|
|
268
|
-
};
|
|
269
|
-
export
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
341
|
+
}); };
|
|
342
|
+
export var serializeAws_restJson1ListAppInstanceUserEndpointsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
343
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
344
|
+
return __generator(this, function (_c) {
|
|
345
|
+
switch (_c.label) {
|
|
346
|
+
case 0: return [4, context.endpoint()];
|
|
347
|
+
case 1:
|
|
348
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
349
|
+
headers = {};
|
|
350
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
351
|
+
"/app-instance-users/{AppInstanceUserArn}/endpoints";
|
|
352
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
353
|
+
query = map({
|
|
354
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
355
|
+
"next-token": [, input.NextToken],
|
|
356
|
+
});
|
|
357
|
+
return [2, new __HttpRequest({
|
|
358
|
+
protocol: protocol,
|
|
359
|
+
hostname: hostname,
|
|
360
|
+
port: port,
|
|
361
|
+
method: "GET",
|
|
362
|
+
headers: headers,
|
|
363
|
+
path: resolvedPath,
|
|
364
|
+
query: query,
|
|
365
|
+
body: body,
|
|
366
|
+
})];
|
|
367
|
+
}
|
|
289
368
|
});
|
|
290
|
-
};
|
|
291
|
-
export
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
369
|
+
}); };
|
|
370
|
+
export var serializeAws_restJson1ListAppInstanceUsersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
371
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
372
|
+
return __generator(this, function (_c) {
|
|
373
|
+
switch (_c.label) {
|
|
374
|
+
case 0: return [4, context.endpoint()];
|
|
375
|
+
case 1:
|
|
376
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
377
|
+
headers = {};
|
|
378
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users";
|
|
379
|
+
query = map({
|
|
380
|
+
"app-instance-arn": [, input.AppInstanceArn],
|
|
381
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
382
|
+
"next-token": [, input.NextToken],
|
|
383
|
+
});
|
|
384
|
+
return [2, new __HttpRequest({
|
|
385
|
+
protocol: protocol,
|
|
386
|
+
hostname: hostname,
|
|
387
|
+
port: port,
|
|
388
|
+
method: "GET",
|
|
389
|
+
headers: headers,
|
|
390
|
+
path: resolvedPath,
|
|
391
|
+
query: query,
|
|
392
|
+
body: body,
|
|
393
|
+
})];
|
|
394
|
+
}
|
|
310
395
|
});
|
|
311
|
-
};
|
|
312
|
-
export
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
396
|
+
}); };
|
|
397
|
+
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
398
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
399
|
+
return __generator(this, function (_c) {
|
|
400
|
+
switch (_c.label) {
|
|
401
|
+
case 0: return [4, context.endpoint()];
|
|
402
|
+
case 1:
|
|
403
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
404
|
+
headers = {};
|
|
405
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
406
|
+
query = map({
|
|
407
|
+
arn: [, input.ResourceARN],
|
|
408
|
+
});
|
|
409
|
+
return [2, new __HttpRequest({
|
|
410
|
+
protocol: protocol,
|
|
411
|
+
hostname: hostname,
|
|
412
|
+
port: port,
|
|
413
|
+
method: "GET",
|
|
414
|
+
headers: headers,
|
|
415
|
+
path: resolvedPath,
|
|
416
|
+
query: query,
|
|
417
|
+
body: body,
|
|
418
|
+
})];
|
|
419
|
+
}
|
|
329
420
|
});
|
|
330
|
-
};
|
|
331
|
-
export
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
421
|
+
}); };
|
|
422
|
+
export var serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
423
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
424
|
+
return __generator(this, function (_c) {
|
|
425
|
+
switch (_c.label) {
|
|
426
|
+
case 0: return [4, context.endpoint()];
|
|
427
|
+
case 1:
|
|
428
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
429
|
+
headers = {
|
|
430
|
+
"content-type": "application/json",
|
|
431
|
+
};
|
|
432
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
433
|
+
"/app-instances/{AppInstanceArn}/retention-settings";
|
|
434
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
435
|
+
body = JSON.stringify(__assign({}, (input.AppInstanceRetentionSettings != null && {
|
|
436
|
+
AppInstanceRetentionSettings: serializeAws_restJson1AppInstanceRetentionSettings(input.AppInstanceRetentionSettings, context),
|
|
437
|
+
})));
|
|
438
|
+
return [2, new __HttpRequest({
|
|
439
|
+
protocol: protocol,
|
|
440
|
+
hostname: hostname,
|
|
441
|
+
port: port,
|
|
442
|
+
method: "PUT",
|
|
443
|
+
headers: headers,
|
|
444
|
+
path: resolvedPath,
|
|
445
|
+
body: body,
|
|
446
|
+
})];
|
|
447
|
+
}
|
|
353
448
|
});
|
|
354
|
-
};
|
|
355
|
-
export
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
449
|
+
}); };
|
|
450
|
+
export var serializeAws_restJson1RegisterAppInstanceUserEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
451
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
452
|
+
var _c;
|
|
453
|
+
return __generator(this, function (_d) {
|
|
454
|
+
switch (_d.label) {
|
|
455
|
+
case 0: return [4, context.endpoint()];
|
|
456
|
+
case 1:
|
|
457
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
458
|
+
headers = {
|
|
459
|
+
"content-type": "application/json",
|
|
460
|
+
};
|
|
461
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
462
|
+
"/app-instance-users/{AppInstanceUserArn}/endpoints";
|
|
463
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
464
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowMessages != null && { AllowMessages: input.AllowMessages })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.EndpointAttributes != null && {
|
|
465
|
+
EndpointAttributes: serializeAws_restJson1EndpointAttributes(input.EndpointAttributes, context),
|
|
466
|
+
})), (input.Name != null && { Name: input.Name })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Type != null && { Type: input.Type })));
|
|
467
|
+
return [2, new __HttpRequest({
|
|
468
|
+
protocol: protocol,
|
|
469
|
+
hostname: hostname,
|
|
470
|
+
port: port,
|
|
471
|
+
method: "POST",
|
|
472
|
+
headers: headers,
|
|
473
|
+
path: resolvedPath,
|
|
474
|
+
body: body,
|
|
475
|
+
})];
|
|
476
|
+
}
|
|
382
477
|
});
|
|
383
|
-
};
|
|
384
|
-
export
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
478
|
+
}); };
|
|
479
|
+
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
480
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
481
|
+
return __generator(this, function (_c) {
|
|
482
|
+
switch (_c.label) {
|
|
483
|
+
case 0: return [4, context.endpoint()];
|
|
484
|
+
case 1:
|
|
485
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
486
|
+
headers = {
|
|
487
|
+
"content-type": "application/json",
|
|
488
|
+
};
|
|
489
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
490
|
+
query = map({
|
|
491
|
+
operation: [, "tag-resource"],
|
|
492
|
+
});
|
|
493
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
494
|
+
return [2, new __HttpRequest({
|
|
495
|
+
protocol: protocol,
|
|
496
|
+
hostname: hostname,
|
|
497
|
+
port: port,
|
|
498
|
+
method: "POST",
|
|
499
|
+
headers: headers,
|
|
500
|
+
path: resolvedPath,
|
|
501
|
+
query: query,
|
|
502
|
+
body: body,
|
|
503
|
+
})];
|
|
504
|
+
}
|
|
407
505
|
});
|
|
408
|
-
};
|
|
409
|
-
export
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
506
|
+
}); };
|
|
507
|
+
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
508
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
509
|
+
return __generator(this, function (_c) {
|
|
510
|
+
switch (_c.label) {
|
|
511
|
+
case 0: return [4, context.endpoint()];
|
|
512
|
+
case 1:
|
|
513
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
514
|
+
headers = {
|
|
515
|
+
"content-type": "application/json",
|
|
516
|
+
};
|
|
517
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
518
|
+
query = map({
|
|
519
|
+
operation: [, "untag-resource"],
|
|
520
|
+
});
|
|
521
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
522
|
+
return [2, new __HttpRequest({
|
|
523
|
+
protocol: protocol,
|
|
524
|
+
hostname: hostname,
|
|
525
|
+
port: port,
|
|
526
|
+
method: "POST",
|
|
527
|
+
headers: headers,
|
|
528
|
+
path: resolvedPath,
|
|
529
|
+
query: query,
|
|
530
|
+
body: body,
|
|
531
|
+
})];
|
|
532
|
+
}
|
|
432
533
|
});
|
|
433
|
-
};
|
|
434
|
-
export
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
534
|
+
}); };
|
|
535
|
+
export var serializeAws_restJson1UpdateAppInstanceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
536
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
537
|
+
return __generator(this, function (_c) {
|
|
538
|
+
switch (_c.label) {
|
|
539
|
+
case 0: return [4, context.endpoint()];
|
|
540
|
+
case 1:
|
|
541
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
542
|
+
headers = {
|
|
543
|
+
"content-type": "application/json",
|
|
544
|
+
};
|
|
545
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances/{AppInstanceArn}";
|
|
546
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", function () { return input.AppInstanceArn; }, "{AppInstanceArn}", false);
|
|
547
|
+
body = JSON.stringify(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })));
|
|
548
|
+
return [2, new __HttpRequest({
|
|
549
|
+
protocol: protocol,
|
|
550
|
+
hostname: hostname,
|
|
551
|
+
port: port,
|
|
552
|
+
method: "PUT",
|
|
553
|
+
headers: headers,
|
|
554
|
+
path: resolvedPath,
|
|
555
|
+
body: body,
|
|
556
|
+
})];
|
|
557
|
+
}
|
|
454
558
|
});
|
|
455
|
-
};
|
|
456
|
-
export
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
559
|
+
}); };
|
|
560
|
+
export var serializeAws_restJson1UpdateAppInstanceUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
561
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
562
|
+
return __generator(this, function (_c) {
|
|
563
|
+
switch (_c.label) {
|
|
564
|
+
case 0: return [4, context.endpoint()];
|
|
565
|
+
case 1:
|
|
566
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
567
|
+
headers = {
|
|
568
|
+
"content-type": "application/json",
|
|
569
|
+
};
|
|
570
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users/{AppInstanceUserArn}";
|
|
571
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
572
|
+
body = JSON.stringify(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })));
|
|
573
|
+
return [2, new __HttpRequest({
|
|
574
|
+
protocol: protocol,
|
|
575
|
+
hostname: hostname,
|
|
576
|
+
port: port,
|
|
577
|
+
method: "PUT",
|
|
578
|
+
headers: headers,
|
|
579
|
+
path: resolvedPath,
|
|
580
|
+
body: body,
|
|
581
|
+
})];
|
|
582
|
+
}
|
|
476
583
|
});
|
|
477
|
-
};
|
|
478
|
-
export
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
584
|
+
}); };
|
|
585
|
+
export var serializeAws_restJson1UpdateAppInstanceUserEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
586
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
587
|
+
return __generator(this, function (_c) {
|
|
588
|
+
switch (_c.label) {
|
|
589
|
+
case 0: return [4, context.endpoint()];
|
|
590
|
+
case 1:
|
|
591
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
592
|
+
headers = {
|
|
593
|
+
"content-type": "application/json",
|
|
594
|
+
};
|
|
595
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
596
|
+
"/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}";
|
|
597
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceUserArn", function () { return input.AppInstanceUserArn; }, "{AppInstanceUserArn}", false);
|
|
598
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", function () { return input.EndpointId; }, "{EndpointId}", false);
|
|
599
|
+
body = JSON.stringify(__assign(__assign({}, (input.AllowMessages != null && { AllowMessages: input.AllowMessages })), (input.Name != null && { Name: input.Name })));
|
|
600
|
+
return [2, new __HttpRequest({
|
|
601
|
+
protocol: protocol,
|
|
602
|
+
hostname: hostname,
|
|
603
|
+
port: port,
|
|
604
|
+
method: "PUT",
|
|
605
|
+
headers: headers,
|
|
606
|
+
path: resolvedPath,
|
|
607
|
+
body: body,
|
|
608
|
+
})];
|
|
609
|
+
}
|
|
500
610
|
});
|
|
501
|
-
};
|
|
502
|
-
export
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
611
|
+
}); };
|
|
612
|
+
export var deserializeAws_restJson1CreateAppInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
613
|
+
var contents, data, _a, _b;
|
|
614
|
+
return __generator(this, function (_c) {
|
|
615
|
+
switch (_c.label) {
|
|
616
|
+
case 0:
|
|
617
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
618
|
+
return [2, deserializeAws_restJson1CreateAppInstanceCommandError(output, context)];
|
|
619
|
+
}
|
|
620
|
+
contents = map({
|
|
621
|
+
$metadata: deserializeMetadata(output),
|
|
622
|
+
});
|
|
623
|
+
_a = __expectNonNull;
|
|
624
|
+
_b = __expectObject;
|
|
625
|
+
return [4, parseBody(output.body, context)];
|
|
626
|
+
case 1:
|
|
627
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
628
|
+
if (data.AppInstanceArn != null) {
|
|
629
|
+
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
630
|
+
}
|
|
631
|
+
return [2, contents];
|
|
632
|
+
}
|
|
508
633
|
});
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
return
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
throw
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
634
|
+
}); };
|
|
635
|
+
var deserializeAws_restJson1CreateAppInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
636
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
637
|
+
var _c;
|
|
638
|
+
return __generator(this, function (_d) {
|
|
639
|
+
switch (_d.label) {
|
|
640
|
+
case 0:
|
|
641
|
+
_a = [__assign({}, output)];
|
|
642
|
+
_c = {};
|
|
643
|
+
return [4, parseErrorBody(output.body, context)];
|
|
644
|
+
case 1:
|
|
645
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
646
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
647
|
+
_b = errorCode;
|
|
648
|
+
switch (_b) {
|
|
649
|
+
case "BadRequestException": return [3, 2];
|
|
650
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
651
|
+
case "ConflictException": return [3, 4];
|
|
652
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
653
|
+
case "ForbiddenException": return [3, 6];
|
|
654
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
655
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
656
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
657
|
+
case "ServiceFailureException": return [3, 10];
|
|
658
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
659
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
660
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
661
|
+
case "ThrottledClientException": return [3, 14];
|
|
662
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
663
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
664
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
665
|
+
}
|
|
666
|
+
return [3, 18];
|
|
667
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
668
|
+
case 3: throw _d.sent();
|
|
669
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
670
|
+
case 5: throw _d.sent();
|
|
671
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
672
|
+
case 7: throw _d.sent();
|
|
673
|
+
case 8: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
674
|
+
case 9: throw _d.sent();
|
|
675
|
+
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
676
|
+
case 11: throw _d.sent();
|
|
677
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
678
|
+
case 13: throw _d.sent();
|
|
679
|
+
case 14: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
680
|
+
case 15: throw _d.sent();
|
|
681
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
682
|
+
case 17: throw _d.sent();
|
|
683
|
+
case 18:
|
|
684
|
+
parsedBody = parsedOutput.body;
|
|
685
|
+
throwDefaultError({
|
|
686
|
+
output: output,
|
|
687
|
+
parsedBody: parsedBody,
|
|
688
|
+
exceptionCtor: __BaseException,
|
|
689
|
+
errorCode: errorCode,
|
|
690
|
+
});
|
|
691
|
+
_d.label = 19;
|
|
692
|
+
case 19: return [2];
|
|
693
|
+
}
|
|
562
694
|
});
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
case "ResourceLimitExceededException":
|
|
589
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
590
|
-
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
591
|
-
case "ServiceFailureException":
|
|
592
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
593
|
-
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
594
|
-
case "ServiceUnavailableException":
|
|
595
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
596
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
597
|
-
case "ThrottledClientException":
|
|
598
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
599
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
600
|
-
case "UnauthorizedClientException":
|
|
601
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
602
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
603
|
-
default:
|
|
604
|
-
const parsedBody = parsedOutput.body;
|
|
605
|
-
throwDefaultError({
|
|
606
|
-
output,
|
|
607
|
-
parsedBody,
|
|
608
|
-
exceptionCtor: __BaseException,
|
|
609
|
-
errorCode,
|
|
610
|
-
});
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
|
-
export const deserializeAws_restJson1CreateAppInstanceUserCommand = async (output, context) => {
|
|
614
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
615
|
-
return deserializeAws_restJson1CreateAppInstanceUserCommandError(output, context);
|
|
616
|
-
}
|
|
617
|
-
const contents = map({
|
|
618
|
-
$metadata: deserializeMetadata(output),
|
|
695
|
+
}); };
|
|
696
|
+
export var deserializeAws_restJson1CreateAppInstanceAdminCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
697
|
+
var contents, data, _a, _b;
|
|
698
|
+
return __generator(this, function (_c) {
|
|
699
|
+
switch (_c.label) {
|
|
700
|
+
case 0:
|
|
701
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
702
|
+
return [2, deserializeAws_restJson1CreateAppInstanceAdminCommandError(output, context)];
|
|
703
|
+
}
|
|
704
|
+
contents = map({
|
|
705
|
+
$metadata: deserializeMetadata(output),
|
|
706
|
+
});
|
|
707
|
+
_a = __expectNonNull;
|
|
708
|
+
_b = __expectObject;
|
|
709
|
+
return [4, parseBody(output.body, context)];
|
|
710
|
+
case 1:
|
|
711
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
712
|
+
if (data.AppInstanceAdmin != null) {
|
|
713
|
+
contents.AppInstanceAdmin = deserializeAws_restJson1Identity(data.AppInstanceAdmin, context);
|
|
714
|
+
}
|
|
715
|
+
if (data.AppInstanceArn != null) {
|
|
716
|
+
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
717
|
+
}
|
|
718
|
+
return [2, contents];
|
|
719
|
+
}
|
|
619
720
|
});
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
return
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
throw
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
721
|
+
}); };
|
|
722
|
+
var deserializeAws_restJson1CreateAppInstanceAdminCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
723
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
724
|
+
var _c;
|
|
725
|
+
return __generator(this, function (_d) {
|
|
726
|
+
switch (_d.label) {
|
|
727
|
+
case 0:
|
|
728
|
+
_a = [__assign({}, output)];
|
|
729
|
+
_c = {};
|
|
730
|
+
return [4, parseErrorBody(output.body, context)];
|
|
731
|
+
case 1:
|
|
732
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
733
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
734
|
+
_b = errorCode;
|
|
735
|
+
switch (_b) {
|
|
736
|
+
case "BadRequestException": return [3, 2];
|
|
737
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
738
|
+
case "ConflictException": return [3, 4];
|
|
739
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
740
|
+
case "ForbiddenException": return [3, 6];
|
|
741
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
742
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
743
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
744
|
+
case "ServiceFailureException": return [3, 10];
|
|
745
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
746
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
747
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
748
|
+
case "ThrottledClientException": return [3, 14];
|
|
749
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
750
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
751
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
752
|
+
}
|
|
753
|
+
return [3, 18];
|
|
754
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
755
|
+
case 3: throw _d.sent();
|
|
756
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
757
|
+
case 5: throw _d.sent();
|
|
758
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
759
|
+
case 7: throw _d.sent();
|
|
760
|
+
case 8: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
761
|
+
case 9: throw _d.sent();
|
|
762
|
+
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
763
|
+
case 11: throw _d.sent();
|
|
764
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
765
|
+
case 13: throw _d.sent();
|
|
766
|
+
case 14: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
767
|
+
case 15: throw _d.sent();
|
|
768
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
769
|
+
case 17: throw _d.sent();
|
|
770
|
+
case 18:
|
|
771
|
+
parsedBody = parsedOutput.body;
|
|
772
|
+
throwDefaultError({
|
|
773
|
+
output: output,
|
|
774
|
+
parsedBody: parsedBody,
|
|
775
|
+
exceptionCtor: __BaseException,
|
|
776
|
+
errorCode: errorCode,
|
|
777
|
+
});
|
|
778
|
+
_d.label = 19;
|
|
779
|
+
case 19: return [2];
|
|
780
|
+
}
|
|
673
781
|
});
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
case "ServiceUnavailableException":
|
|
697
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
698
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
699
|
-
case "ThrottledClientException":
|
|
700
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
701
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
702
|
-
case "UnauthorizedClientException":
|
|
703
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
704
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
705
|
-
default:
|
|
706
|
-
const parsedBody = parsedOutput.body;
|
|
707
|
-
throwDefaultError({
|
|
708
|
-
output,
|
|
709
|
-
parsedBody,
|
|
710
|
-
exceptionCtor: __BaseException,
|
|
711
|
-
errorCode,
|
|
712
|
-
});
|
|
713
|
-
}
|
|
714
|
-
};
|
|
715
|
-
export const deserializeAws_restJson1DeleteAppInstanceAdminCommand = async (output, context) => {
|
|
716
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
717
|
-
return deserializeAws_restJson1DeleteAppInstanceAdminCommandError(output, context);
|
|
718
|
-
}
|
|
719
|
-
const contents = map({
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
782
|
+
}); };
|
|
783
|
+
export var deserializeAws_restJson1CreateAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
784
|
+
var contents, data, _a, _b;
|
|
785
|
+
return __generator(this, function (_c) {
|
|
786
|
+
switch (_c.label) {
|
|
787
|
+
case 0:
|
|
788
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
789
|
+
return [2, deserializeAws_restJson1CreateAppInstanceUserCommandError(output, context)];
|
|
790
|
+
}
|
|
791
|
+
contents = map({
|
|
792
|
+
$metadata: deserializeMetadata(output),
|
|
793
|
+
});
|
|
794
|
+
_a = __expectNonNull;
|
|
795
|
+
_b = __expectObject;
|
|
796
|
+
return [4, parseBody(output.body, context)];
|
|
797
|
+
case 1:
|
|
798
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
799
|
+
if (data.AppInstanceUserArn != null) {
|
|
800
|
+
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
801
|
+
}
|
|
802
|
+
return [2, contents];
|
|
803
|
+
}
|
|
721
804
|
});
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
805
|
+
}); };
|
|
806
|
+
var deserializeAws_restJson1CreateAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
807
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
808
|
+
var _c;
|
|
809
|
+
return __generator(this, function (_d) {
|
|
810
|
+
switch (_d.label) {
|
|
811
|
+
case 0:
|
|
812
|
+
_a = [__assign({}, output)];
|
|
813
|
+
_c = {};
|
|
814
|
+
return [4, parseErrorBody(output.body, context)];
|
|
815
|
+
case 1:
|
|
816
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
817
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
818
|
+
_b = errorCode;
|
|
819
|
+
switch (_b) {
|
|
820
|
+
case "BadRequestException": return [3, 2];
|
|
821
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
822
|
+
case "ConflictException": return [3, 4];
|
|
823
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
824
|
+
case "ForbiddenException": return [3, 6];
|
|
825
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
826
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
827
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
828
|
+
case "ServiceFailureException": return [3, 10];
|
|
829
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
830
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
831
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
832
|
+
case "ThrottledClientException": return [3, 14];
|
|
833
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
834
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
835
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
836
|
+
}
|
|
837
|
+
return [3, 18];
|
|
838
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
839
|
+
case 3: throw _d.sent();
|
|
840
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
841
|
+
case 5: throw _d.sent();
|
|
842
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
843
|
+
case 7: throw _d.sent();
|
|
844
|
+
case 8: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
845
|
+
case 9: throw _d.sent();
|
|
846
|
+
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
847
|
+
case 11: throw _d.sent();
|
|
848
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
849
|
+
case 13: throw _d.sent();
|
|
850
|
+
case 14: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
851
|
+
case 15: throw _d.sent();
|
|
852
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
853
|
+
case 17: throw _d.sent();
|
|
854
|
+
case 18:
|
|
855
|
+
parsedBody = parsedOutput.body;
|
|
856
|
+
throwDefaultError({
|
|
857
|
+
output: output,
|
|
858
|
+
parsedBody: parsedBody,
|
|
859
|
+
exceptionCtor: __BaseException,
|
|
860
|
+
errorCode: errorCode,
|
|
861
|
+
});
|
|
862
|
+
_d.label = 19;
|
|
863
|
+
case 19: return [2];
|
|
864
|
+
}
|
|
772
865
|
});
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
791
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
792
|
-
case "ResourceLimitExceededException":
|
|
793
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
794
|
-
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
795
|
-
case "ServiceFailureException":
|
|
796
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
797
|
-
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
798
|
-
case "ServiceUnavailableException":
|
|
799
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
800
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
801
|
-
case "ThrottledClientException":
|
|
802
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
803
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
804
|
-
case "UnauthorizedClientException":
|
|
805
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
806
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
807
|
-
default:
|
|
808
|
-
const parsedBody = parsedOutput.body;
|
|
809
|
-
throwDefaultError({
|
|
810
|
-
output,
|
|
811
|
-
parsedBody,
|
|
812
|
-
exceptionCtor: __BaseException,
|
|
813
|
-
errorCode,
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
};
|
|
817
|
-
export const deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
818
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
819
|
-
return deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError(output, context);
|
|
820
|
-
}
|
|
821
|
-
const contents = map({
|
|
822
|
-
$metadata: deserializeMetadata(output),
|
|
866
|
+
}); };
|
|
867
|
+
export var deserializeAws_restJson1DeleteAppInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
868
|
+
var contents;
|
|
869
|
+
return __generator(this, function (_a) {
|
|
870
|
+
switch (_a.label) {
|
|
871
|
+
case 0:
|
|
872
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
873
|
+
return [2, deserializeAws_restJson1DeleteAppInstanceCommandError(output, context)];
|
|
874
|
+
}
|
|
875
|
+
contents = map({
|
|
876
|
+
$metadata: deserializeMetadata(output),
|
|
877
|
+
});
|
|
878
|
+
return [4, collectBody(output.body, context)];
|
|
879
|
+
case 1:
|
|
880
|
+
_a.sent();
|
|
881
|
+
return [2, contents];
|
|
882
|
+
}
|
|
823
883
|
});
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
884
|
+
}); };
|
|
885
|
+
var deserializeAws_restJson1DeleteAppInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
886
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
887
|
+
var _c;
|
|
888
|
+
return __generator(this, function (_d) {
|
|
889
|
+
switch (_d.label) {
|
|
890
|
+
case 0:
|
|
891
|
+
_a = [__assign({}, output)];
|
|
892
|
+
_c = {};
|
|
893
|
+
return [4, parseErrorBody(output.body, context)];
|
|
894
|
+
case 1:
|
|
895
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
896
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
_b = errorCode;
|
|
898
|
+
switch (_b) {
|
|
899
|
+
case "BadRequestException": return [3, 2];
|
|
900
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
901
|
+
case "ForbiddenException": return [3, 4];
|
|
902
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
903
|
+
case "ResourceLimitExceededException": return [3, 6];
|
|
904
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 6];
|
|
905
|
+
case "ServiceFailureException": return [3, 8];
|
|
906
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 8];
|
|
907
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
908
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 10];
|
|
909
|
+
case "ThrottledClientException": return [3, 12];
|
|
910
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 12];
|
|
911
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
912
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 14];
|
|
913
|
+
}
|
|
914
|
+
return [3, 16];
|
|
915
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
916
|
+
case 3: throw _d.sent();
|
|
917
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
918
|
+
case 5: throw _d.sent();
|
|
919
|
+
case 6: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
920
|
+
case 7: throw _d.sent();
|
|
921
|
+
case 8: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
922
|
+
case 9: throw _d.sent();
|
|
923
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
924
|
+
case 11: throw _d.sent();
|
|
925
|
+
case 12: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
926
|
+
case 13: throw _d.sent();
|
|
927
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
928
|
+
case 15: throw _d.sent();
|
|
929
|
+
case 16:
|
|
930
|
+
parsedBody = parsedOutput.body;
|
|
931
|
+
throwDefaultError({
|
|
932
|
+
output: output,
|
|
933
|
+
parsedBody: parsedBody,
|
|
934
|
+
exceptionCtor: __BaseException,
|
|
935
|
+
errorCode: errorCode,
|
|
936
|
+
});
|
|
937
|
+
_d.label = 17;
|
|
938
|
+
case 17: return [2];
|
|
939
|
+
}
|
|
868
940
|
});
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
887
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
888
|
-
case "ServiceFailureException":
|
|
889
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
890
|
-
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
891
|
-
case "ServiceUnavailableException":
|
|
892
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
893
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
894
|
-
case "ThrottledClientException":
|
|
895
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
896
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
897
|
-
case "UnauthorizedClientException":
|
|
898
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
899
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
900
|
-
default:
|
|
901
|
-
const parsedBody = parsedOutput.body;
|
|
902
|
-
throwDefaultError({
|
|
903
|
-
output,
|
|
904
|
-
parsedBody,
|
|
905
|
-
exceptionCtor: __BaseException,
|
|
906
|
-
errorCode,
|
|
907
|
-
});
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
export const deserializeAws_restJson1DescribeAppInstanceAdminCommand = async (output, context) => {
|
|
911
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
912
|
-
return deserializeAws_restJson1DescribeAppInstanceAdminCommandError(output, context);
|
|
913
|
-
}
|
|
914
|
-
const contents = map({
|
|
915
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
+
}); };
|
|
942
|
+
export var deserializeAws_restJson1DeleteAppInstanceAdminCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
943
|
+
var contents;
|
|
944
|
+
return __generator(this, function (_a) {
|
|
945
|
+
switch (_a.label) {
|
|
946
|
+
case 0:
|
|
947
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
948
|
+
return [2, deserializeAws_restJson1DeleteAppInstanceAdminCommandError(output, context)];
|
|
949
|
+
}
|
|
950
|
+
contents = map({
|
|
951
|
+
$metadata: deserializeMetadata(output),
|
|
952
|
+
});
|
|
953
|
+
return [4, collectBody(output.body, context)];
|
|
954
|
+
case 1:
|
|
955
|
+
_a.sent();
|
|
956
|
+
return [2, contents];
|
|
957
|
+
}
|
|
916
958
|
});
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
return
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
959
|
+
}); };
|
|
960
|
+
var deserializeAws_restJson1DeleteAppInstanceAdminCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
961
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
962
|
+
var _c;
|
|
963
|
+
return __generator(this, function (_d) {
|
|
964
|
+
switch (_d.label) {
|
|
965
|
+
case 0:
|
|
966
|
+
_a = [__assign({}, output)];
|
|
967
|
+
_c = {};
|
|
968
|
+
return [4, parseErrorBody(output.body, context)];
|
|
969
|
+
case 1:
|
|
970
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
971
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
972
|
+
_b = errorCode;
|
|
973
|
+
switch (_b) {
|
|
974
|
+
case "BadRequestException": return [3, 2];
|
|
975
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
976
|
+
case "ConflictException": return [3, 4];
|
|
977
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
978
|
+
case "ForbiddenException": return [3, 6];
|
|
979
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
980
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
981
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
982
|
+
case "ServiceFailureException": return [3, 10];
|
|
983
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
984
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
985
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
986
|
+
case "ThrottledClientException": return [3, 14];
|
|
987
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
988
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
989
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
990
|
+
}
|
|
991
|
+
return [3, 18];
|
|
992
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
993
|
+
case 3: throw _d.sent();
|
|
994
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
995
|
+
case 5: throw _d.sent();
|
|
996
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
997
|
+
case 7: throw _d.sent();
|
|
998
|
+
case 8: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
999
|
+
case 9: throw _d.sent();
|
|
1000
|
+
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1001
|
+
case 11: throw _d.sent();
|
|
1002
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1003
|
+
case 13: throw _d.sent();
|
|
1004
|
+
case 14: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1005
|
+
case 15: throw _d.sent();
|
|
1006
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1007
|
+
case 17: throw _d.sent();
|
|
1008
|
+
case 18:
|
|
1009
|
+
parsedBody = parsedOutput.body;
|
|
1010
|
+
throwDefaultError({
|
|
1011
|
+
output: output,
|
|
1012
|
+
parsedBody: parsedBody,
|
|
1013
|
+
exceptionCtor: __BaseException,
|
|
1014
|
+
errorCode: errorCode,
|
|
1015
|
+
});
|
|
1016
|
+
_d.label = 19;
|
|
1017
|
+
case 19: return [2];
|
|
1018
|
+
}
|
|
964
1019
|
});
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
983
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
984
|
-
case "ServiceFailureException":
|
|
985
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
986
|
-
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
987
|
-
case "ServiceUnavailableException":
|
|
988
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
989
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
990
|
-
case "ThrottledClientException":
|
|
991
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
992
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
993
|
-
case "UnauthorizedClientException":
|
|
994
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
995
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
996
|
-
default:
|
|
997
|
-
const parsedBody = parsedOutput.body;
|
|
998
|
-
throwDefaultError({
|
|
999
|
-
output,
|
|
1000
|
-
parsedBody,
|
|
1001
|
-
exceptionCtor: __BaseException,
|
|
1002
|
-
errorCode,
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
};
|
|
1006
|
-
export const deserializeAws_restJson1DescribeAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1007
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1008
|
-
return deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError(output, context);
|
|
1009
|
-
}
|
|
1010
|
-
const contents = map({
|
|
1011
|
-
$metadata: deserializeMetadata(output),
|
|
1020
|
+
}); };
|
|
1021
|
+
export var deserializeAws_restJson1DeleteAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1022
|
+
var contents;
|
|
1023
|
+
return __generator(this, function (_a) {
|
|
1024
|
+
switch (_a.label) {
|
|
1025
|
+
case 0:
|
|
1026
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1027
|
+
return [2, deserializeAws_restJson1DeleteAppInstanceUserCommandError(output, context)];
|
|
1028
|
+
}
|
|
1029
|
+
contents = map({
|
|
1030
|
+
$metadata: deserializeMetadata(output),
|
|
1031
|
+
});
|
|
1032
|
+
return [4, collectBody(output.body, context)];
|
|
1033
|
+
case 1:
|
|
1034
|
+
_a.sent();
|
|
1035
|
+
return [2, contents];
|
|
1036
|
+
}
|
|
1012
1037
|
});
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
return
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1038
|
+
}); };
|
|
1039
|
+
var deserializeAws_restJson1DeleteAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1040
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1041
|
+
var _c;
|
|
1042
|
+
return __generator(this, function (_d) {
|
|
1043
|
+
switch (_d.label) {
|
|
1044
|
+
case 0:
|
|
1045
|
+
_a = [__assign({}, output)];
|
|
1046
|
+
_c = {};
|
|
1047
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1048
|
+
case 1:
|
|
1049
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1050
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
+
_b = errorCode;
|
|
1052
|
+
switch (_b) {
|
|
1053
|
+
case "BadRequestException": return [3, 2];
|
|
1054
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1055
|
+
case "ConflictException": return [3, 4];
|
|
1056
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
1057
|
+
case "ForbiddenException": return [3, 6];
|
|
1058
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
1059
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
1060
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
1061
|
+
case "ServiceFailureException": return [3, 10];
|
|
1062
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
1063
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1064
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
1065
|
+
case "ThrottledClientException": return [3, 14];
|
|
1066
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
1067
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
1068
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
1069
|
+
}
|
|
1070
|
+
return [3, 18];
|
|
1071
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1072
|
+
case 3: throw _d.sent();
|
|
1073
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1074
|
+
case 5: throw _d.sent();
|
|
1075
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1076
|
+
case 7: throw _d.sent();
|
|
1077
|
+
case 8: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1078
|
+
case 9: throw _d.sent();
|
|
1079
|
+
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1080
|
+
case 11: throw _d.sent();
|
|
1081
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1082
|
+
case 13: throw _d.sent();
|
|
1083
|
+
case 14: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1084
|
+
case 15: throw _d.sent();
|
|
1085
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1086
|
+
case 17: throw _d.sent();
|
|
1087
|
+
case 18:
|
|
1088
|
+
parsedBody = parsedOutput.body;
|
|
1089
|
+
throwDefaultError({
|
|
1090
|
+
output: output,
|
|
1091
|
+
parsedBody: parsedBody,
|
|
1092
|
+
exceptionCtor: __BaseException,
|
|
1093
|
+
errorCode: errorCode,
|
|
1094
|
+
});
|
|
1095
|
+
_d.label = 19;
|
|
1096
|
+
case 19: return [2];
|
|
1097
|
+
}
|
|
1060
1098
|
});
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1079
|
-
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1080
|
-
case "ForbiddenException":
|
|
1081
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1082
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1083
|
-
case "ServiceFailureException":
|
|
1084
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1085
|
-
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1086
|
-
case "ServiceUnavailableException":
|
|
1087
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1088
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1089
|
-
case "ThrottledClientException":
|
|
1090
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1091
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1092
|
-
case "UnauthorizedClientException":
|
|
1093
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1094
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1095
|
-
default:
|
|
1096
|
-
const parsedBody = parsedOutput.body;
|
|
1097
|
-
throwDefaultError({
|
|
1098
|
-
output,
|
|
1099
|
-
parsedBody,
|
|
1100
|
-
exceptionCtor: __BaseException,
|
|
1101
|
-
errorCode,
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
|
-
export const deserializeAws_restJson1ListAppInstanceAdminsCommand = async (output, context) => {
|
|
1106
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1107
|
-
return deserializeAws_restJson1ListAppInstanceAdminsCommandError(output, context);
|
|
1108
|
-
}
|
|
1109
|
-
const contents = map({
|
|
1110
|
-
$metadata: deserializeMetadata(output),
|
|
1099
|
+
}); };
|
|
1100
|
+
export var deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1101
|
+
var contents;
|
|
1102
|
+
return __generator(this, function (_a) {
|
|
1103
|
+
switch (_a.label) {
|
|
1104
|
+
case 0:
|
|
1105
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1106
|
+
return [2, deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError(output, context)];
|
|
1107
|
+
}
|
|
1108
|
+
contents = map({
|
|
1109
|
+
$metadata: deserializeMetadata(output),
|
|
1110
|
+
});
|
|
1111
|
+
return [4, collectBody(output.body, context)];
|
|
1112
|
+
case 1:
|
|
1113
|
+
_a.sent();
|
|
1114
|
+
return [2, contents];
|
|
1115
|
+
}
|
|
1111
1116
|
});
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
throw
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
throw
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
return deserializeAws_restJson1ListAppInstancesCommandError(output, context);
|
|
1165
|
-
}
|
|
1166
|
-
const contents = map({
|
|
1167
|
-
$metadata: deserializeMetadata(output),
|
|
1117
|
+
}); };
|
|
1118
|
+
var deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1119
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1120
|
+
var _c;
|
|
1121
|
+
return __generator(this, function (_d) {
|
|
1122
|
+
switch (_d.label) {
|
|
1123
|
+
case 0:
|
|
1124
|
+
_a = [__assign({}, output)];
|
|
1125
|
+
_c = {};
|
|
1126
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1127
|
+
case 1:
|
|
1128
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1129
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
|
+
_b = errorCode;
|
|
1131
|
+
switch (_b) {
|
|
1132
|
+
case "BadRequestException": return [3, 2];
|
|
1133
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1134
|
+
case "ForbiddenException": return [3, 4];
|
|
1135
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1136
|
+
case "ServiceFailureException": return [3, 6];
|
|
1137
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1138
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1139
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1140
|
+
case "ThrottledClientException": return [3, 10];
|
|
1141
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1142
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1143
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1144
|
+
}
|
|
1145
|
+
return [3, 14];
|
|
1146
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1147
|
+
case 3: throw _d.sent();
|
|
1148
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1149
|
+
case 5: throw _d.sent();
|
|
1150
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1151
|
+
case 7: throw _d.sent();
|
|
1152
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1153
|
+
case 9: throw _d.sent();
|
|
1154
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1155
|
+
case 11: throw _d.sent();
|
|
1156
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1157
|
+
case 13: throw _d.sent();
|
|
1158
|
+
case 14:
|
|
1159
|
+
parsedBody = parsedOutput.body;
|
|
1160
|
+
throwDefaultError({
|
|
1161
|
+
output: output,
|
|
1162
|
+
parsedBody: parsedBody,
|
|
1163
|
+
exceptionCtor: __BaseException,
|
|
1164
|
+
errorCode: errorCode,
|
|
1165
|
+
});
|
|
1166
|
+
_d.label = 15;
|
|
1167
|
+
case 15: return [2];
|
|
1168
|
+
}
|
|
1168
1169
|
});
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
case "ServiceFailureException":
|
|
1192
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1193
|
-
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1194
|
-
case "ServiceUnavailableException":
|
|
1195
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1196
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1197
|
-
case "ThrottledClientException":
|
|
1198
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1199
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1200
|
-
case "UnauthorizedClientException":
|
|
1201
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1202
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1203
|
-
default:
|
|
1204
|
-
const parsedBody = parsedOutput.body;
|
|
1205
|
-
throwDefaultError({
|
|
1206
|
-
output,
|
|
1207
|
-
parsedBody,
|
|
1208
|
-
exceptionCtor: __BaseException,
|
|
1209
|
-
errorCode,
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
};
|
|
1213
|
-
export const deserializeAws_restJson1ListAppInstanceUserEndpointsCommand = async (output, context) => {
|
|
1214
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1215
|
-
return deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError(output, context);
|
|
1216
|
-
}
|
|
1217
|
-
const contents = map({
|
|
1218
|
-
$metadata: deserializeMetadata(output),
|
|
1170
|
+
}); };
|
|
1171
|
+
export var deserializeAws_restJson1DescribeAppInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1172
|
+
var contents, data, _a, _b;
|
|
1173
|
+
return __generator(this, function (_c) {
|
|
1174
|
+
switch (_c.label) {
|
|
1175
|
+
case 0:
|
|
1176
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1177
|
+
return [2, deserializeAws_restJson1DescribeAppInstanceCommandError(output, context)];
|
|
1178
|
+
}
|
|
1179
|
+
contents = map({
|
|
1180
|
+
$metadata: deserializeMetadata(output),
|
|
1181
|
+
});
|
|
1182
|
+
_a = __expectNonNull;
|
|
1183
|
+
_b = __expectObject;
|
|
1184
|
+
return [4, parseBody(output.body, context)];
|
|
1185
|
+
case 1:
|
|
1186
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1187
|
+
if (data.AppInstance != null) {
|
|
1188
|
+
contents.AppInstance = deserializeAws_restJson1AppInstance(data.AppInstance, context);
|
|
1189
|
+
}
|
|
1190
|
+
return [2, contents];
|
|
1191
|
+
}
|
|
1219
1192
|
});
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
};
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
throw
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1193
|
+
}); };
|
|
1194
|
+
var deserializeAws_restJson1DescribeAppInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1195
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1196
|
+
var _c;
|
|
1197
|
+
return __generator(this, function (_d) {
|
|
1198
|
+
switch (_d.label) {
|
|
1199
|
+
case 0:
|
|
1200
|
+
_a = [__assign({}, output)];
|
|
1201
|
+
_c = {};
|
|
1202
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1203
|
+
case 1:
|
|
1204
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1205
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
+
_b = errorCode;
|
|
1207
|
+
switch (_b) {
|
|
1208
|
+
case "BadRequestException": return [3, 2];
|
|
1209
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1210
|
+
case "ForbiddenException": return [3, 4];
|
|
1211
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1212
|
+
case "ServiceFailureException": return [3, 6];
|
|
1213
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1214
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1215
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1216
|
+
case "ThrottledClientException": return [3, 10];
|
|
1217
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1218
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1219
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1220
|
+
}
|
|
1221
|
+
return [3, 14];
|
|
1222
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1223
|
+
case 3: throw _d.sent();
|
|
1224
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1225
|
+
case 5: throw _d.sent();
|
|
1226
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1227
|
+
case 7: throw _d.sent();
|
|
1228
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1229
|
+
case 9: throw _d.sent();
|
|
1230
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1231
|
+
case 11: throw _d.sent();
|
|
1232
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1233
|
+
case 13: throw _d.sent();
|
|
1234
|
+
case 14:
|
|
1235
|
+
parsedBody = parsedOutput.body;
|
|
1236
|
+
throwDefaultError({
|
|
1237
|
+
output: output,
|
|
1238
|
+
parsedBody: parsedBody,
|
|
1239
|
+
exceptionCtor: __BaseException,
|
|
1240
|
+
errorCode: errorCode,
|
|
1241
|
+
});
|
|
1242
|
+
_d.label = 15;
|
|
1243
|
+
case 15: return [2];
|
|
1244
|
+
}
|
|
1270
1245
|
});
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
};
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
case "ForbiddenException":
|
|
1294
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1295
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1296
|
-
case "ServiceFailureException":
|
|
1297
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1298
|
-
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1299
|
-
case "ServiceUnavailableException":
|
|
1300
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1301
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1302
|
-
case "ThrottledClientException":
|
|
1303
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1304
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1305
|
-
case "UnauthorizedClientException":
|
|
1306
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1307
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1308
|
-
default:
|
|
1309
|
-
const parsedBody = parsedOutput.body;
|
|
1310
|
-
throwDefaultError({
|
|
1311
|
-
output,
|
|
1312
|
-
parsedBody,
|
|
1313
|
-
exceptionCtor: __BaseException,
|
|
1314
|
-
errorCode,
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
};
|
|
1318
|
-
export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1319
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1320
|
-
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
1321
|
-
}
|
|
1322
|
-
const contents = map({
|
|
1323
|
-
$metadata: deserializeMetadata(output),
|
|
1246
|
+
}); };
|
|
1247
|
+
export var deserializeAws_restJson1DescribeAppInstanceAdminCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1248
|
+
var contents, data, _a, _b;
|
|
1249
|
+
return __generator(this, function (_c) {
|
|
1250
|
+
switch (_c.label) {
|
|
1251
|
+
case 0:
|
|
1252
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1253
|
+
return [2, deserializeAws_restJson1DescribeAppInstanceAdminCommandError(output, context)];
|
|
1254
|
+
}
|
|
1255
|
+
contents = map({
|
|
1256
|
+
$metadata: deserializeMetadata(output),
|
|
1257
|
+
});
|
|
1258
|
+
_a = __expectNonNull;
|
|
1259
|
+
_b = __expectObject;
|
|
1260
|
+
return [4, parseBody(output.body, context)];
|
|
1261
|
+
case 1:
|
|
1262
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1263
|
+
if (data.AppInstanceAdmin != null) {
|
|
1264
|
+
contents.AppInstanceAdmin = deserializeAws_restJson1AppInstanceAdmin(data.AppInstanceAdmin, context);
|
|
1265
|
+
}
|
|
1266
|
+
return [2, contents];
|
|
1267
|
+
}
|
|
1324
1268
|
});
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
return
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
throw
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1269
|
+
}); };
|
|
1270
|
+
var deserializeAws_restJson1DescribeAppInstanceAdminCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1271
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1272
|
+
var _c;
|
|
1273
|
+
return __generator(this, function (_d) {
|
|
1274
|
+
switch (_d.label) {
|
|
1275
|
+
case 0:
|
|
1276
|
+
_a = [__assign({}, output)];
|
|
1277
|
+
_c = {};
|
|
1278
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1279
|
+
case 1:
|
|
1280
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1281
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
|
+
_b = errorCode;
|
|
1283
|
+
switch (_b) {
|
|
1284
|
+
case "BadRequestException": return [3, 2];
|
|
1285
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1286
|
+
case "ForbiddenException": return [3, 4];
|
|
1287
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1288
|
+
case "ServiceFailureException": return [3, 6];
|
|
1289
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1290
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1291
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1292
|
+
case "ThrottledClientException": return [3, 10];
|
|
1293
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1294
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1295
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1296
|
+
}
|
|
1297
|
+
return [3, 14];
|
|
1298
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1299
|
+
case 3: throw _d.sent();
|
|
1300
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1301
|
+
case 5: throw _d.sent();
|
|
1302
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1303
|
+
case 7: throw _d.sent();
|
|
1304
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1305
|
+
case 9: throw _d.sent();
|
|
1306
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1307
|
+
case 11: throw _d.sent();
|
|
1308
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1309
|
+
case 13: throw _d.sent();
|
|
1310
|
+
case 14:
|
|
1311
|
+
parsedBody = parsedOutput.body;
|
|
1312
|
+
throwDefaultError({
|
|
1313
|
+
output: output,
|
|
1314
|
+
parsedBody: parsedBody,
|
|
1315
|
+
exceptionCtor: __BaseException,
|
|
1316
|
+
errorCode: errorCode,
|
|
1317
|
+
});
|
|
1318
|
+
_d.label = 15;
|
|
1319
|
+
case 15: return [2];
|
|
1320
|
+
}
|
|
1372
1321
|
});
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
case "ServiceFailureException":
|
|
1396
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1397
|
-
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
1398
|
-
case "ServiceUnavailableException":
|
|
1399
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1400
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1401
|
-
case "ThrottledClientException":
|
|
1402
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1403
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1404
|
-
case "UnauthorizedClientException":
|
|
1405
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1406
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1407
|
-
default:
|
|
1408
|
-
const parsedBody = parsedOutput.body;
|
|
1409
|
-
throwDefaultError({
|
|
1410
|
-
output,
|
|
1411
|
-
parsedBody,
|
|
1412
|
-
exceptionCtor: __BaseException,
|
|
1413
|
-
errorCode,
|
|
1414
|
-
});
|
|
1415
|
-
}
|
|
1416
|
-
};
|
|
1417
|
-
export const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1418
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1419
|
-
return deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError(output, context);
|
|
1420
|
-
}
|
|
1421
|
-
const contents = map({
|
|
1422
|
-
$metadata: deserializeMetadata(output),
|
|
1322
|
+
}); };
|
|
1323
|
+
export var deserializeAws_restJson1DescribeAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1324
|
+
var contents, data, _a, _b;
|
|
1325
|
+
return __generator(this, function (_c) {
|
|
1326
|
+
switch (_c.label) {
|
|
1327
|
+
case 0:
|
|
1328
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1329
|
+
return [2, deserializeAws_restJson1DescribeAppInstanceUserCommandError(output, context)];
|
|
1330
|
+
}
|
|
1331
|
+
contents = map({
|
|
1332
|
+
$metadata: deserializeMetadata(output),
|
|
1333
|
+
});
|
|
1334
|
+
_a = __expectNonNull;
|
|
1335
|
+
_b = __expectObject;
|
|
1336
|
+
return [4, parseBody(output.body, context)];
|
|
1337
|
+
case 1:
|
|
1338
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1339
|
+
if (data.AppInstanceUser != null) {
|
|
1340
|
+
contents.AppInstanceUser = deserializeAws_restJson1AppInstanceUser(data.AppInstanceUser, context);
|
|
1341
|
+
}
|
|
1342
|
+
return [2, contents];
|
|
1343
|
+
}
|
|
1423
1344
|
});
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
};
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
throw
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
throw
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
1477
|
-
}
|
|
1478
|
-
const contents = map({
|
|
1479
|
-
$metadata: deserializeMetadata(output),
|
|
1345
|
+
}); };
|
|
1346
|
+
var deserializeAws_restJson1DescribeAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1347
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1348
|
+
var _c;
|
|
1349
|
+
return __generator(this, function (_d) {
|
|
1350
|
+
switch (_d.label) {
|
|
1351
|
+
case 0:
|
|
1352
|
+
_a = [__assign({}, output)];
|
|
1353
|
+
_c = {};
|
|
1354
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1355
|
+
case 1:
|
|
1356
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1357
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
|
+
_b = errorCode;
|
|
1359
|
+
switch (_b) {
|
|
1360
|
+
case "BadRequestException": return [3, 2];
|
|
1361
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1362
|
+
case "ForbiddenException": return [3, 4];
|
|
1363
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1364
|
+
case "ServiceFailureException": return [3, 6];
|
|
1365
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1366
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1367
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1368
|
+
case "ThrottledClientException": return [3, 10];
|
|
1369
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1370
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1371
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1372
|
+
}
|
|
1373
|
+
return [3, 14];
|
|
1374
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1375
|
+
case 3: throw _d.sent();
|
|
1376
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1377
|
+
case 5: throw _d.sent();
|
|
1378
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1379
|
+
case 7: throw _d.sent();
|
|
1380
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1381
|
+
case 9: throw _d.sent();
|
|
1382
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1383
|
+
case 11: throw _d.sent();
|
|
1384
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1385
|
+
case 13: throw _d.sent();
|
|
1386
|
+
case 14:
|
|
1387
|
+
parsedBody = parsedOutput.body;
|
|
1388
|
+
throwDefaultError({
|
|
1389
|
+
output: output,
|
|
1390
|
+
parsedBody: parsedBody,
|
|
1391
|
+
exceptionCtor: __BaseException,
|
|
1392
|
+
errorCode: errorCode,
|
|
1393
|
+
});
|
|
1394
|
+
_d.label = 15;
|
|
1395
|
+
case 15: return [2];
|
|
1396
|
+
}
|
|
1480
1397
|
});
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
case "ServiceUnavailableException":
|
|
1504
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1505
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1506
|
-
case "ThrottledClientException":
|
|
1507
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1508
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1509
|
-
case "UnauthorizedClientException":
|
|
1510
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1511
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1512
|
-
default:
|
|
1513
|
-
const parsedBody = parsedOutput.body;
|
|
1514
|
-
throwDefaultError({
|
|
1515
|
-
output,
|
|
1516
|
-
parsedBody,
|
|
1517
|
-
exceptionCtor: __BaseException,
|
|
1518
|
-
errorCode,
|
|
1519
|
-
});
|
|
1520
|
-
}
|
|
1521
|
-
};
|
|
1522
|
-
export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1523
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1524
|
-
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
1525
|
-
}
|
|
1526
|
-
const contents = map({
|
|
1527
|
-
$metadata: deserializeMetadata(output),
|
|
1398
|
+
}); };
|
|
1399
|
+
export var deserializeAws_restJson1DescribeAppInstanceUserEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1400
|
+
var contents, data, _a, _b;
|
|
1401
|
+
return __generator(this, function (_c) {
|
|
1402
|
+
switch (_c.label) {
|
|
1403
|
+
case 0:
|
|
1404
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1405
|
+
return [2, deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError(output, context)];
|
|
1406
|
+
}
|
|
1407
|
+
contents = map({
|
|
1408
|
+
$metadata: deserializeMetadata(output),
|
|
1409
|
+
});
|
|
1410
|
+
_a = __expectNonNull;
|
|
1411
|
+
_b = __expectObject;
|
|
1412
|
+
return [4, parseBody(output.body, context)];
|
|
1413
|
+
case 1:
|
|
1414
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1415
|
+
if (data.AppInstanceUserEndpoint != null) {
|
|
1416
|
+
contents.AppInstanceUserEndpoint = deserializeAws_restJson1AppInstanceUserEndpoint(data.AppInstanceUserEndpoint, context);
|
|
1417
|
+
}
|
|
1418
|
+
return [2, contents];
|
|
1419
|
+
}
|
|
1528
1420
|
});
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1421
|
+
}); };
|
|
1422
|
+
var deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1423
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1424
|
+
var _c;
|
|
1425
|
+
return __generator(this, function (_d) {
|
|
1426
|
+
switch (_d.label) {
|
|
1427
|
+
case 0:
|
|
1428
|
+
_a = [__assign({}, output)];
|
|
1429
|
+
_c = {};
|
|
1430
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1431
|
+
case 1:
|
|
1432
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1433
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
+
_b = errorCode;
|
|
1435
|
+
switch (_b) {
|
|
1436
|
+
case "BadRequestException": return [3, 2];
|
|
1437
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1438
|
+
case "ForbiddenException": return [3, 4];
|
|
1439
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1440
|
+
case "ServiceFailureException": return [3, 6];
|
|
1441
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1442
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1443
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1444
|
+
case "ThrottledClientException": return [3, 10];
|
|
1445
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1446
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1447
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1448
|
+
}
|
|
1449
|
+
return [3, 14];
|
|
1450
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1451
|
+
case 3: throw _d.sent();
|
|
1452
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1453
|
+
case 5: throw _d.sent();
|
|
1454
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1455
|
+
case 7: throw _d.sent();
|
|
1456
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1457
|
+
case 9: throw _d.sent();
|
|
1458
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1459
|
+
case 11: throw _d.sent();
|
|
1460
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1461
|
+
case 13: throw _d.sent();
|
|
1462
|
+
case 14:
|
|
1463
|
+
parsedBody = parsedOutput.body;
|
|
1464
|
+
throwDefaultError({
|
|
1465
|
+
output: output,
|
|
1466
|
+
parsedBody: parsedBody,
|
|
1467
|
+
exceptionCtor: __BaseException,
|
|
1468
|
+
errorCode: errorCode,
|
|
1469
|
+
});
|
|
1470
|
+
_d.label = 15;
|
|
1471
|
+
case 15: return [2];
|
|
1472
|
+
}
|
|
1573
1473
|
});
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
case "ServiceUnavailableException":
|
|
1600
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1601
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1602
|
-
case "ThrottledClientException":
|
|
1603
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1604
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1605
|
-
case "UnauthorizedClientException":
|
|
1606
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1607
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1608
|
-
default:
|
|
1609
|
-
const parsedBody = parsedOutput.body;
|
|
1610
|
-
throwDefaultError({
|
|
1611
|
-
output,
|
|
1612
|
-
parsedBody,
|
|
1613
|
-
exceptionCtor: __BaseException,
|
|
1614
|
-
errorCode,
|
|
1615
|
-
});
|
|
1616
|
-
}
|
|
1617
|
-
};
|
|
1618
|
-
export const deserializeAws_restJson1UpdateAppInstanceUserCommand = async (output, context) => {
|
|
1619
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1620
|
-
return deserializeAws_restJson1UpdateAppInstanceUserCommandError(output, context);
|
|
1621
|
-
}
|
|
1622
|
-
const contents = map({
|
|
1623
|
-
$metadata: deserializeMetadata(output),
|
|
1474
|
+
}); };
|
|
1475
|
+
export var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1476
|
+
var contents, data, _a, _b;
|
|
1477
|
+
return __generator(this, function (_c) {
|
|
1478
|
+
switch (_c.label) {
|
|
1479
|
+
case 0:
|
|
1480
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
|
+
return [2, deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError(output, context)];
|
|
1482
|
+
}
|
|
1483
|
+
contents = map({
|
|
1484
|
+
$metadata: deserializeMetadata(output),
|
|
1485
|
+
});
|
|
1486
|
+
_a = __expectNonNull;
|
|
1487
|
+
_b = __expectObject;
|
|
1488
|
+
return [4, parseBody(output.body, context)];
|
|
1489
|
+
case 1:
|
|
1490
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1491
|
+
if (data.AppInstanceRetentionSettings != null) {
|
|
1492
|
+
contents.AppInstanceRetentionSettings = deserializeAws_restJson1AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
|
|
1493
|
+
}
|
|
1494
|
+
if (data.InitiateDeletionTimestamp != null) {
|
|
1495
|
+
contents.InitiateDeletionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.InitiateDeletionTimestamp)));
|
|
1496
|
+
}
|
|
1497
|
+
return [2, contents];
|
|
1498
|
+
}
|
|
1624
1499
|
});
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
return
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
throw
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
throw
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
$metadata: deserializeMetadata(output),
|
|
1500
|
+
}); };
|
|
1501
|
+
var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1502
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1503
|
+
var _c;
|
|
1504
|
+
return __generator(this, function (_d) {
|
|
1505
|
+
switch (_d.label) {
|
|
1506
|
+
case 0:
|
|
1507
|
+
_a = [__assign({}, output)];
|
|
1508
|
+
_c = {};
|
|
1509
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1510
|
+
case 1:
|
|
1511
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1512
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
|
+
_b = errorCode;
|
|
1514
|
+
switch (_b) {
|
|
1515
|
+
case "BadRequestException": return [3, 2];
|
|
1516
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1517
|
+
case "ForbiddenException": return [3, 4];
|
|
1518
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1519
|
+
case "ServiceFailureException": return [3, 6];
|
|
1520
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1521
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1522
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1523
|
+
case "ThrottledClientException": return [3, 10];
|
|
1524
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1525
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1526
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1527
|
+
}
|
|
1528
|
+
return [3, 14];
|
|
1529
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1530
|
+
case 3: throw _d.sent();
|
|
1531
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1532
|
+
case 5: throw _d.sent();
|
|
1533
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1534
|
+
case 7: throw _d.sent();
|
|
1535
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1536
|
+
case 9: throw _d.sent();
|
|
1537
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1538
|
+
case 11: throw _d.sent();
|
|
1539
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1540
|
+
case 13: throw _d.sent();
|
|
1541
|
+
case 14:
|
|
1542
|
+
parsedBody = parsedOutput.body;
|
|
1543
|
+
throwDefaultError({
|
|
1544
|
+
output: output,
|
|
1545
|
+
parsedBody: parsedBody,
|
|
1546
|
+
exceptionCtor: __BaseException,
|
|
1547
|
+
errorCode: errorCode,
|
|
1548
|
+
});
|
|
1549
|
+
_d.label = 15;
|
|
1550
|
+
case 15: return [2];
|
|
1551
|
+
}
|
|
1678
1552
|
});
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
case "ServiceUnavailableException":
|
|
1708
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1709
|
-
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1710
|
-
case "ThrottledClientException":
|
|
1711
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1712
|
-
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
1713
|
-
case "UnauthorizedClientException":
|
|
1714
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1715
|
-
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1716
|
-
default:
|
|
1717
|
-
const parsedBody = parsedOutput.body;
|
|
1718
|
-
throwDefaultError({
|
|
1719
|
-
output,
|
|
1720
|
-
parsedBody,
|
|
1721
|
-
exceptionCtor: __BaseException,
|
|
1722
|
-
errorCode,
|
|
1723
|
-
});
|
|
1724
|
-
}
|
|
1725
|
-
};
|
|
1726
|
-
const map = __map;
|
|
1727
|
-
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1728
|
-
const contents = map({});
|
|
1729
|
-
const data = parsedOutput.body;
|
|
1730
|
-
if (data.Code != null) {
|
|
1731
|
-
contents.Code = __expectString(data.Code);
|
|
1732
|
-
}
|
|
1733
|
-
if (data.Message != null) {
|
|
1734
|
-
contents.Message = __expectString(data.Message);
|
|
1735
|
-
}
|
|
1736
|
-
const exception = new BadRequestException({
|
|
1737
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1738
|
-
...contents,
|
|
1553
|
+
}); };
|
|
1554
|
+
export var deserializeAws_restJson1ListAppInstanceAdminsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1555
|
+
var contents, data, _a, _b;
|
|
1556
|
+
return __generator(this, function (_c) {
|
|
1557
|
+
switch (_c.label) {
|
|
1558
|
+
case 0:
|
|
1559
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1560
|
+
return [2, deserializeAws_restJson1ListAppInstanceAdminsCommandError(output, context)];
|
|
1561
|
+
}
|
|
1562
|
+
contents = map({
|
|
1563
|
+
$metadata: deserializeMetadata(output),
|
|
1564
|
+
});
|
|
1565
|
+
_a = __expectNonNull;
|
|
1566
|
+
_b = __expectObject;
|
|
1567
|
+
return [4, parseBody(output.body, context)];
|
|
1568
|
+
case 1:
|
|
1569
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1570
|
+
if (data.AppInstanceAdmins != null) {
|
|
1571
|
+
contents.AppInstanceAdmins = deserializeAws_restJson1AppInstanceAdminList(data.AppInstanceAdmins, context);
|
|
1572
|
+
}
|
|
1573
|
+
if (data.AppInstanceArn != null) {
|
|
1574
|
+
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
1575
|
+
}
|
|
1576
|
+
if (data.NextToken != null) {
|
|
1577
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1578
|
+
}
|
|
1579
|
+
return [2, contents];
|
|
1580
|
+
}
|
|
1739
1581
|
});
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1582
|
+
}); };
|
|
1583
|
+
var deserializeAws_restJson1ListAppInstanceAdminsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1584
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1585
|
+
var _c;
|
|
1586
|
+
return __generator(this, function (_d) {
|
|
1587
|
+
switch (_d.label) {
|
|
1588
|
+
case 0:
|
|
1589
|
+
_a = [__assign({}, output)];
|
|
1590
|
+
_c = {};
|
|
1591
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1592
|
+
case 1:
|
|
1593
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1594
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
|
+
_b = errorCode;
|
|
1596
|
+
switch (_b) {
|
|
1597
|
+
case "BadRequestException": return [3, 2];
|
|
1598
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1599
|
+
case "ForbiddenException": return [3, 4];
|
|
1600
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1601
|
+
case "ResourceLimitExceededException": return [3, 6];
|
|
1602
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 6];
|
|
1603
|
+
case "ServiceFailureException": return [3, 8];
|
|
1604
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 8];
|
|
1605
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1606
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 10];
|
|
1607
|
+
case "ThrottledClientException": return [3, 12];
|
|
1608
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 12];
|
|
1609
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
1610
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 14];
|
|
1611
|
+
}
|
|
1612
|
+
return [3, 16];
|
|
1613
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1614
|
+
case 3: throw _d.sent();
|
|
1615
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1616
|
+
case 5: throw _d.sent();
|
|
1617
|
+
case 6: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1618
|
+
case 7: throw _d.sent();
|
|
1619
|
+
case 8: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1620
|
+
case 9: throw _d.sent();
|
|
1621
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1622
|
+
case 11: throw _d.sent();
|
|
1623
|
+
case 12: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1624
|
+
case 13: throw _d.sent();
|
|
1625
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1626
|
+
case 15: throw _d.sent();
|
|
1627
|
+
case 16:
|
|
1628
|
+
parsedBody = parsedOutput.body;
|
|
1629
|
+
throwDefaultError({
|
|
1630
|
+
output: output,
|
|
1631
|
+
parsedBody: parsedBody,
|
|
1632
|
+
exceptionCtor: __BaseException,
|
|
1633
|
+
errorCode: errorCode,
|
|
1634
|
+
});
|
|
1635
|
+
_d.label = 17;
|
|
1636
|
+
case 17: return [2];
|
|
1637
|
+
}
|
|
1754
1638
|
});
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1639
|
+
}); };
|
|
1640
|
+
export var deserializeAws_restJson1ListAppInstancesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1641
|
+
var contents, data, _a, _b;
|
|
1642
|
+
return __generator(this, function (_c) {
|
|
1643
|
+
switch (_c.label) {
|
|
1644
|
+
case 0:
|
|
1645
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1646
|
+
return [2, deserializeAws_restJson1ListAppInstancesCommandError(output, context)];
|
|
1647
|
+
}
|
|
1648
|
+
contents = map({
|
|
1649
|
+
$metadata: deserializeMetadata(output),
|
|
1650
|
+
});
|
|
1651
|
+
_a = __expectNonNull;
|
|
1652
|
+
_b = __expectObject;
|
|
1653
|
+
return [4, parseBody(output.body, context)];
|
|
1654
|
+
case 1:
|
|
1655
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1656
|
+
if (data.AppInstances != null) {
|
|
1657
|
+
contents.AppInstances = deserializeAws_restJson1AppInstanceList(data.AppInstances, context);
|
|
1658
|
+
}
|
|
1659
|
+
if (data.NextToken != null) {
|
|
1660
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1661
|
+
}
|
|
1662
|
+
return [2, contents];
|
|
1663
|
+
}
|
|
1769
1664
|
});
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1665
|
+
}); };
|
|
1666
|
+
var deserializeAws_restJson1ListAppInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1667
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1668
|
+
var _c;
|
|
1669
|
+
return __generator(this, function (_d) {
|
|
1670
|
+
switch (_d.label) {
|
|
1671
|
+
case 0:
|
|
1672
|
+
_a = [__assign({}, output)];
|
|
1673
|
+
_c = {};
|
|
1674
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1675
|
+
case 1:
|
|
1676
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1677
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
|
+
_b = errorCode;
|
|
1679
|
+
switch (_b) {
|
|
1680
|
+
case "BadRequestException": return [3, 2];
|
|
1681
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1682
|
+
case "ForbiddenException": return [3, 4];
|
|
1683
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1684
|
+
case "ServiceFailureException": return [3, 6];
|
|
1685
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1686
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1687
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1688
|
+
case "ThrottledClientException": return [3, 10];
|
|
1689
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1690
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1691
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1692
|
+
}
|
|
1693
|
+
return [3, 14];
|
|
1694
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1695
|
+
case 3: throw _d.sent();
|
|
1696
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1697
|
+
case 5: throw _d.sent();
|
|
1698
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1699
|
+
case 7: throw _d.sent();
|
|
1700
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1701
|
+
case 9: throw _d.sent();
|
|
1702
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1703
|
+
case 11: throw _d.sent();
|
|
1704
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1705
|
+
case 13: throw _d.sent();
|
|
1706
|
+
case 14:
|
|
1707
|
+
parsedBody = parsedOutput.body;
|
|
1708
|
+
throwDefaultError({
|
|
1709
|
+
output: output,
|
|
1710
|
+
parsedBody: parsedBody,
|
|
1711
|
+
exceptionCtor: __BaseException,
|
|
1712
|
+
errorCode: errorCode,
|
|
1713
|
+
});
|
|
1714
|
+
_d.label = 15;
|
|
1715
|
+
case 15: return [2];
|
|
1716
|
+
}
|
|
1784
1717
|
});
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1718
|
+
}); };
|
|
1719
|
+
export var deserializeAws_restJson1ListAppInstanceUserEndpointsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1720
|
+
var contents, data, _a, _b;
|
|
1721
|
+
return __generator(this, function (_c) {
|
|
1722
|
+
switch (_c.label) {
|
|
1723
|
+
case 0:
|
|
1724
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1725
|
+
return [2, deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError(output, context)];
|
|
1726
|
+
}
|
|
1727
|
+
contents = map({
|
|
1728
|
+
$metadata: deserializeMetadata(output),
|
|
1729
|
+
});
|
|
1730
|
+
_a = __expectNonNull;
|
|
1731
|
+
_b = __expectObject;
|
|
1732
|
+
return [4, parseBody(output.body, context)];
|
|
1733
|
+
case 1:
|
|
1734
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1735
|
+
if (data.AppInstanceUserEndpoints != null) {
|
|
1736
|
+
contents.AppInstanceUserEndpoints = deserializeAws_restJson1AppInstanceUserEndpointSummaryList(data.AppInstanceUserEndpoints, context);
|
|
1737
|
+
}
|
|
1738
|
+
if (data.NextToken != null) {
|
|
1739
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1740
|
+
}
|
|
1741
|
+
return [2, contents];
|
|
1742
|
+
}
|
|
1799
1743
|
});
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1744
|
+
}); };
|
|
1745
|
+
var deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1746
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1747
|
+
var _c;
|
|
1748
|
+
return __generator(this, function (_d) {
|
|
1749
|
+
switch (_d.label) {
|
|
1750
|
+
case 0:
|
|
1751
|
+
_a = [__assign({}, output)];
|
|
1752
|
+
_c = {};
|
|
1753
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1754
|
+
case 1:
|
|
1755
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1756
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
|
+
_b = errorCode;
|
|
1758
|
+
switch (_b) {
|
|
1759
|
+
case "BadRequestException": return [3, 2];
|
|
1760
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1761
|
+
case "ForbiddenException": return [3, 4];
|
|
1762
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1763
|
+
case "ServiceFailureException": return [3, 6];
|
|
1764
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1765
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1766
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1767
|
+
case "ThrottledClientException": return [3, 10];
|
|
1768
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1769
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1770
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1771
|
+
}
|
|
1772
|
+
return [3, 14];
|
|
1773
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1774
|
+
case 3: throw _d.sent();
|
|
1775
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1776
|
+
case 5: throw _d.sent();
|
|
1777
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1778
|
+
case 7: throw _d.sent();
|
|
1779
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1780
|
+
case 9: throw _d.sent();
|
|
1781
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1782
|
+
case 11: throw _d.sent();
|
|
1783
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1784
|
+
case 13: throw _d.sent();
|
|
1785
|
+
case 14:
|
|
1786
|
+
parsedBody = parsedOutput.body;
|
|
1787
|
+
throwDefaultError({
|
|
1788
|
+
output: output,
|
|
1789
|
+
parsedBody: parsedBody,
|
|
1790
|
+
exceptionCtor: __BaseException,
|
|
1791
|
+
errorCode: errorCode,
|
|
1792
|
+
});
|
|
1793
|
+
_d.label = 15;
|
|
1794
|
+
case 15: return [2];
|
|
1795
|
+
}
|
|
1814
1796
|
});
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1797
|
+
}); };
|
|
1798
|
+
export var deserializeAws_restJson1ListAppInstanceUsersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1799
|
+
var contents, data, _a, _b;
|
|
1800
|
+
return __generator(this, function (_c) {
|
|
1801
|
+
switch (_c.label) {
|
|
1802
|
+
case 0:
|
|
1803
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1804
|
+
return [2, deserializeAws_restJson1ListAppInstanceUsersCommandError(output, context)];
|
|
1805
|
+
}
|
|
1806
|
+
contents = map({
|
|
1807
|
+
$metadata: deserializeMetadata(output),
|
|
1808
|
+
});
|
|
1809
|
+
_a = __expectNonNull;
|
|
1810
|
+
_b = __expectObject;
|
|
1811
|
+
return [4, parseBody(output.body, context)];
|
|
1812
|
+
case 1:
|
|
1813
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1814
|
+
if (data.AppInstanceArn != null) {
|
|
1815
|
+
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
1816
|
+
}
|
|
1817
|
+
if (data.AppInstanceUsers != null) {
|
|
1818
|
+
contents.AppInstanceUsers = deserializeAws_restJson1AppInstanceUserList(data.AppInstanceUsers, context);
|
|
1819
|
+
}
|
|
1820
|
+
if (data.NextToken != null) {
|
|
1821
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1822
|
+
}
|
|
1823
|
+
return [2, contents];
|
|
1824
|
+
}
|
|
1829
1825
|
});
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1826
|
+
}); };
|
|
1827
|
+
var deserializeAws_restJson1ListAppInstanceUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1828
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1829
|
+
var _c;
|
|
1830
|
+
return __generator(this, function (_d) {
|
|
1831
|
+
switch (_d.label) {
|
|
1832
|
+
case 0:
|
|
1833
|
+
_a = [__assign({}, output)];
|
|
1834
|
+
_c = {};
|
|
1835
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1836
|
+
case 1:
|
|
1837
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1838
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
|
+
_b = errorCode;
|
|
1840
|
+
switch (_b) {
|
|
1841
|
+
case "BadRequestException": return [3, 2];
|
|
1842
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1843
|
+
case "ForbiddenException": return [3, 4];
|
|
1844
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1845
|
+
case "ServiceFailureException": return [3, 6];
|
|
1846
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1847
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1848
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1849
|
+
case "ThrottledClientException": return [3, 10];
|
|
1850
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1851
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1852
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1853
|
+
}
|
|
1854
|
+
return [3, 14];
|
|
1855
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1856
|
+
case 3: throw _d.sent();
|
|
1857
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1858
|
+
case 5: throw _d.sent();
|
|
1859
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1860
|
+
case 7: throw _d.sent();
|
|
1861
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1862
|
+
case 9: throw _d.sent();
|
|
1863
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1864
|
+
case 11: throw _d.sent();
|
|
1865
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1866
|
+
case 13: throw _d.sent();
|
|
1867
|
+
case 14:
|
|
1868
|
+
parsedBody = parsedOutput.body;
|
|
1869
|
+
throwDefaultError({
|
|
1870
|
+
output: output,
|
|
1871
|
+
parsedBody: parsedBody,
|
|
1872
|
+
exceptionCtor: __BaseException,
|
|
1873
|
+
errorCode: errorCode,
|
|
1874
|
+
});
|
|
1875
|
+
_d.label = 15;
|
|
1876
|
+
case 15: return [2];
|
|
1877
|
+
}
|
|
1844
1878
|
});
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
return {
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1879
|
+
}); };
|
|
1880
|
+
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1881
|
+
var contents, data, _a, _b;
|
|
1882
|
+
return __generator(this, function (_c) {
|
|
1883
|
+
switch (_c.label) {
|
|
1884
|
+
case 0:
|
|
1885
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1886
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1887
|
+
}
|
|
1888
|
+
contents = map({
|
|
1889
|
+
$metadata: deserializeMetadata(output),
|
|
1890
|
+
});
|
|
1891
|
+
_a = __expectNonNull;
|
|
1892
|
+
_b = __expectObject;
|
|
1893
|
+
return [4, parseBody(output.body, context)];
|
|
1894
|
+
case 1:
|
|
1895
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1896
|
+
if (data.Tags != null) {
|
|
1897
|
+
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
1898
|
+
}
|
|
1899
|
+
return [2, contents];
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1902
|
+
}); };
|
|
1903
|
+
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1904
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1905
|
+
var _c;
|
|
1906
|
+
return __generator(this, function (_d) {
|
|
1907
|
+
switch (_d.label) {
|
|
1908
|
+
case 0:
|
|
1909
|
+
_a = [__assign({}, output)];
|
|
1910
|
+
_c = {};
|
|
1911
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1912
|
+
case 1:
|
|
1913
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1914
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
|
+
_b = errorCode;
|
|
1916
|
+
switch (_b) {
|
|
1917
|
+
case "BadRequestException": return [3, 2];
|
|
1918
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1919
|
+
case "ForbiddenException": return [3, 4];
|
|
1920
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1921
|
+
case "ServiceFailureException": return [3, 6];
|
|
1922
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1923
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1924
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1925
|
+
case "ThrottledClientException": return [3, 10];
|
|
1926
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1927
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1928
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1929
|
+
}
|
|
1930
|
+
return [3, 14];
|
|
1931
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1932
|
+
case 3: throw _d.sent();
|
|
1933
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1934
|
+
case 5: throw _d.sent();
|
|
1935
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1936
|
+
case 7: throw _d.sent();
|
|
1937
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1938
|
+
case 9: throw _d.sent();
|
|
1939
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1940
|
+
case 11: throw _d.sent();
|
|
1941
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1942
|
+
case 13: throw _d.sent();
|
|
1943
|
+
case 14:
|
|
1944
|
+
parsedBody = parsedOutput.body;
|
|
1945
|
+
throwDefaultError({
|
|
1946
|
+
output: output,
|
|
1947
|
+
parsedBody: parsedBody,
|
|
1948
|
+
exceptionCtor: __BaseException,
|
|
1949
|
+
errorCode: errorCode,
|
|
1950
|
+
});
|
|
1951
|
+
_d.label = 15;
|
|
1952
|
+
case 15: return [2];
|
|
1953
|
+
}
|
|
1954
|
+
});
|
|
1955
|
+
}); };
|
|
1956
|
+
export var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1957
|
+
var contents, data, _a, _b;
|
|
1958
|
+
return __generator(this, function (_c) {
|
|
1959
|
+
switch (_c.label) {
|
|
1960
|
+
case 0:
|
|
1961
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1962
|
+
return [2, deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError(output, context)];
|
|
1963
|
+
}
|
|
1964
|
+
contents = map({
|
|
1965
|
+
$metadata: deserializeMetadata(output),
|
|
1966
|
+
});
|
|
1967
|
+
_a = __expectNonNull;
|
|
1968
|
+
_b = __expectObject;
|
|
1969
|
+
return [4, parseBody(output.body, context)];
|
|
1970
|
+
case 1:
|
|
1971
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1972
|
+
if (data.AppInstanceRetentionSettings != null) {
|
|
1973
|
+
contents.AppInstanceRetentionSettings = deserializeAws_restJson1AppInstanceRetentionSettings(data.AppInstanceRetentionSettings, context);
|
|
1974
|
+
}
|
|
1975
|
+
if (data.InitiateDeletionTimestamp != null) {
|
|
1976
|
+
contents.InitiateDeletionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.InitiateDeletionTimestamp)));
|
|
1977
|
+
}
|
|
1978
|
+
return [2, contents];
|
|
1979
|
+
}
|
|
1980
|
+
});
|
|
1981
|
+
}); };
|
|
1982
|
+
var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1983
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1984
|
+
var _c;
|
|
1985
|
+
return __generator(this, function (_d) {
|
|
1986
|
+
switch (_d.label) {
|
|
1987
|
+
case 0:
|
|
1988
|
+
_a = [__assign({}, output)];
|
|
1989
|
+
_c = {};
|
|
1990
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1991
|
+
case 1:
|
|
1992
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1993
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
|
+
_b = errorCode;
|
|
1995
|
+
switch (_b) {
|
|
1996
|
+
case "BadRequestException": return [3, 2];
|
|
1997
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1998
|
+
case "ForbiddenException": return [3, 4];
|
|
1999
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
2000
|
+
case "ServiceFailureException": return [3, 6];
|
|
2001
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
2002
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2003
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
2004
|
+
case "ThrottledClientException": return [3, 10];
|
|
2005
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
2006
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
2007
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
2008
|
+
}
|
|
2009
|
+
return [3, 14];
|
|
2010
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2011
|
+
case 3: throw _d.sent();
|
|
2012
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2013
|
+
case 5: throw _d.sent();
|
|
2014
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2015
|
+
case 7: throw _d.sent();
|
|
2016
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2017
|
+
case 9: throw _d.sent();
|
|
2018
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2019
|
+
case 11: throw _d.sent();
|
|
2020
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2021
|
+
case 13: throw _d.sent();
|
|
2022
|
+
case 14:
|
|
2023
|
+
parsedBody = parsedOutput.body;
|
|
2024
|
+
throwDefaultError({
|
|
2025
|
+
output: output,
|
|
2026
|
+
parsedBody: parsedBody,
|
|
2027
|
+
exceptionCtor: __BaseException,
|
|
2028
|
+
errorCode: errorCode,
|
|
2029
|
+
});
|
|
2030
|
+
_d.label = 15;
|
|
2031
|
+
case 15: return [2];
|
|
2032
|
+
}
|
|
2033
|
+
});
|
|
2034
|
+
}); };
|
|
2035
|
+
export var deserializeAws_restJson1RegisterAppInstanceUserEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2036
|
+
var contents, data, _a, _b;
|
|
2037
|
+
return __generator(this, function (_c) {
|
|
2038
|
+
switch (_c.label) {
|
|
2039
|
+
case 0:
|
|
2040
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2041
|
+
return [2, deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError(output, context)];
|
|
2042
|
+
}
|
|
2043
|
+
contents = map({
|
|
2044
|
+
$metadata: deserializeMetadata(output),
|
|
2045
|
+
});
|
|
2046
|
+
_a = __expectNonNull;
|
|
2047
|
+
_b = __expectObject;
|
|
2048
|
+
return [4, parseBody(output.body, context)];
|
|
2049
|
+
case 1:
|
|
2050
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2051
|
+
if (data.AppInstanceUserArn != null) {
|
|
2052
|
+
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
2053
|
+
}
|
|
2054
|
+
if (data.EndpointId != null) {
|
|
2055
|
+
contents.EndpointId = __expectString(data.EndpointId);
|
|
2056
|
+
}
|
|
2057
|
+
return [2, contents];
|
|
2058
|
+
}
|
|
2059
|
+
});
|
|
2060
|
+
}); };
|
|
2061
|
+
var deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2062
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2063
|
+
var _c;
|
|
2064
|
+
return __generator(this, function (_d) {
|
|
2065
|
+
switch (_d.label) {
|
|
2066
|
+
case 0:
|
|
2067
|
+
_a = [__assign({}, output)];
|
|
2068
|
+
_c = {};
|
|
2069
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2070
|
+
case 1:
|
|
2071
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2072
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2073
|
+
_b = errorCode;
|
|
2074
|
+
switch (_b) {
|
|
2075
|
+
case "BadRequestException": return [3, 2];
|
|
2076
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
2077
|
+
case "ConflictException": return [3, 4];
|
|
2078
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
2079
|
+
case "ForbiddenException": return [3, 6];
|
|
2080
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
2081
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
2082
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
2083
|
+
case "ServiceFailureException": return [3, 10];
|
|
2084
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
2085
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
2086
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
2087
|
+
case "ThrottledClientException": return [3, 14];
|
|
2088
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
2089
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
2090
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
2091
|
+
}
|
|
2092
|
+
return [3, 18];
|
|
2093
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2094
|
+
case 3: throw _d.sent();
|
|
2095
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2096
|
+
case 5: throw _d.sent();
|
|
2097
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2098
|
+
case 7: throw _d.sent();
|
|
2099
|
+
case 8: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2100
|
+
case 9: throw _d.sent();
|
|
2101
|
+
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2102
|
+
case 11: throw _d.sent();
|
|
2103
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2104
|
+
case 13: throw _d.sent();
|
|
2105
|
+
case 14: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2106
|
+
case 15: throw _d.sent();
|
|
2107
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2108
|
+
case 17: throw _d.sent();
|
|
2109
|
+
case 18:
|
|
2110
|
+
parsedBody = parsedOutput.body;
|
|
2111
|
+
throwDefaultError({
|
|
2112
|
+
output: output,
|
|
2113
|
+
parsedBody: parsedBody,
|
|
2114
|
+
exceptionCtor: __BaseException,
|
|
2115
|
+
errorCode: errorCode,
|
|
2116
|
+
});
|
|
2117
|
+
_d.label = 19;
|
|
2118
|
+
case 19: return [2];
|
|
2119
|
+
}
|
|
2120
|
+
});
|
|
2121
|
+
}); };
|
|
2122
|
+
export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2123
|
+
var contents;
|
|
2124
|
+
return __generator(this, function (_a) {
|
|
2125
|
+
switch (_a.label) {
|
|
2126
|
+
case 0:
|
|
2127
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2128
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2129
|
+
}
|
|
2130
|
+
contents = map({
|
|
2131
|
+
$metadata: deserializeMetadata(output),
|
|
2132
|
+
});
|
|
2133
|
+
return [4, collectBody(output.body, context)];
|
|
2134
|
+
case 1:
|
|
2135
|
+
_a.sent();
|
|
2136
|
+
return [2, contents];
|
|
2137
|
+
}
|
|
2138
|
+
});
|
|
2139
|
+
}); };
|
|
2140
|
+
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2141
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2142
|
+
var _c;
|
|
2143
|
+
return __generator(this, function (_d) {
|
|
2144
|
+
switch (_d.label) {
|
|
2145
|
+
case 0:
|
|
2146
|
+
_a = [__assign({}, output)];
|
|
2147
|
+
_c = {};
|
|
2148
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2149
|
+
case 1:
|
|
2150
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2151
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2152
|
+
_b = errorCode;
|
|
2153
|
+
switch (_b) {
|
|
2154
|
+
case "BadRequestException": return [3, 2];
|
|
2155
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
2156
|
+
case "ForbiddenException": return [3, 4];
|
|
2157
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
2158
|
+
case "ResourceLimitExceededException": return [3, 6];
|
|
2159
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 6];
|
|
2160
|
+
case "ServiceFailureException": return [3, 8];
|
|
2161
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 8];
|
|
2162
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2163
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 10];
|
|
2164
|
+
case "ThrottledClientException": return [3, 12];
|
|
2165
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 12];
|
|
2166
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
2167
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 14];
|
|
2168
|
+
}
|
|
2169
|
+
return [3, 16];
|
|
2170
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2171
|
+
case 3: throw _d.sent();
|
|
2172
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2173
|
+
case 5: throw _d.sent();
|
|
2174
|
+
case 6: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2175
|
+
case 7: throw _d.sent();
|
|
2176
|
+
case 8: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2177
|
+
case 9: throw _d.sent();
|
|
2178
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2179
|
+
case 11: throw _d.sent();
|
|
2180
|
+
case 12: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2181
|
+
case 13: throw _d.sent();
|
|
2182
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2183
|
+
case 15: throw _d.sent();
|
|
2184
|
+
case 16:
|
|
2185
|
+
parsedBody = parsedOutput.body;
|
|
2186
|
+
throwDefaultError({
|
|
2187
|
+
output: output,
|
|
2188
|
+
parsedBody: parsedBody,
|
|
2189
|
+
exceptionCtor: __BaseException,
|
|
2190
|
+
errorCode: errorCode,
|
|
2191
|
+
});
|
|
2192
|
+
_d.label = 17;
|
|
2193
|
+
case 17: return [2];
|
|
2194
|
+
}
|
|
2195
|
+
});
|
|
2196
|
+
}); };
|
|
2197
|
+
export var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2198
|
+
var contents;
|
|
2199
|
+
return __generator(this, function (_a) {
|
|
2200
|
+
switch (_a.label) {
|
|
2201
|
+
case 0:
|
|
2202
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2203
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2204
|
+
}
|
|
2205
|
+
contents = map({
|
|
2206
|
+
$metadata: deserializeMetadata(output),
|
|
2207
|
+
});
|
|
2208
|
+
return [4, collectBody(output.body, context)];
|
|
2209
|
+
case 1:
|
|
2210
|
+
_a.sent();
|
|
2211
|
+
return [2, contents];
|
|
2212
|
+
}
|
|
2213
|
+
});
|
|
2214
|
+
}); };
|
|
2215
|
+
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2216
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2217
|
+
var _c;
|
|
2218
|
+
return __generator(this, function (_d) {
|
|
2219
|
+
switch (_d.label) {
|
|
2220
|
+
case 0:
|
|
2221
|
+
_a = [__assign({}, output)];
|
|
2222
|
+
_c = {};
|
|
2223
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2224
|
+
case 1:
|
|
2225
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2226
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2227
|
+
_b = errorCode;
|
|
2228
|
+
switch (_b) {
|
|
2229
|
+
case "BadRequestException": return [3, 2];
|
|
2230
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
2231
|
+
case "ForbiddenException": return [3, 4];
|
|
2232
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
2233
|
+
case "ServiceFailureException": return [3, 6];
|
|
2234
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
2235
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2236
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
2237
|
+
case "ThrottledClientException": return [3, 10];
|
|
2238
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
2239
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
2240
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
2241
|
+
}
|
|
2242
|
+
return [3, 14];
|
|
2243
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2244
|
+
case 3: throw _d.sent();
|
|
2245
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2246
|
+
case 5: throw _d.sent();
|
|
2247
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2248
|
+
case 7: throw _d.sent();
|
|
2249
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2250
|
+
case 9: throw _d.sent();
|
|
2251
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2252
|
+
case 11: throw _d.sent();
|
|
2253
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2254
|
+
case 13: throw _d.sent();
|
|
2255
|
+
case 14:
|
|
2256
|
+
parsedBody = parsedOutput.body;
|
|
2257
|
+
throwDefaultError({
|
|
2258
|
+
output: output,
|
|
2259
|
+
parsedBody: parsedBody,
|
|
2260
|
+
exceptionCtor: __BaseException,
|
|
2261
|
+
errorCode: errorCode,
|
|
2262
|
+
});
|
|
2263
|
+
_d.label = 15;
|
|
2264
|
+
case 15: return [2];
|
|
2265
|
+
}
|
|
2266
|
+
});
|
|
2267
|
+
}); };
|
|
2268
|
+
export var deserializeAws_restJson1UpdateAppInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2269
|
+
var contents, data, _a, _b;
|
|
2270
|
+
return __generator(this, function (_c) {
|
|
2271
|
+
switch (_c.label) {
|
|
2272
|
+
case 0:
|
|
2273
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2274
|
+
return [2, deserializeAws_restJson1UpdateAppInstanceCommandError(output, context)];
|
|
2275
|
+
}
|
|
2276
|
+
contents = map({
|
|
2277
|
+
$metadata: deserializeMetadata(output),
|
|
2278
|
+
});
|
|
2279
|
+
_a = __expectNonNull;
|
|
2280
|
+
_b = __expectObject;
|
|
2281
|
+
return [4, parseBody(output.body, context)];
|
|
2282
|
+
case 1:
|
|
2283
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2284
|
+
if (data.AppInstanceArn != null) {
|
|
2285
|
+
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
2286
|
+
}
|
|
2287
|
+
return [2, contents];
|
|
2288
|
+
}
|
|
2289
|
+
});
|
|
2290
|
+
}); };
|
|
2291
|
+
var deserializeAws_restJson1UpdateAppInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2292
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2293
|
+
var _c;
|
|
2294
|
+
return __generator(this, function (_d) {
|
|
2295
|
+
switch (_d.label) {
|
|
2296
|
+
case 0:
|
|
2297
|
+
_a = [__assign({}, output)];
|
|
2298
|
+
_c = {};
|
|
2299
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2300
|
+
case 1:
|
|
2301
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2302
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2303
|
+
_b = errorCode;
|
|
2304
|
+
switch (_b) {
|
|
2305
|
+
case "BadRequestException": return [3, 2];
|
|
2306
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
2307
|
+
case "ConflictException": return [3, 4];
|
|
2308
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
2309
|
+
case "ForbiddenException": return [3, 6];
|
|
2310
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
2311
|
+
case "ServiceFailureException": return [3, 8];
|
|
2312
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 8];
|
|
2313
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2314
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 10];
|
|
2315
|
+
case "ThrottledClientException": return [3, 12];
|
|
2316
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 12];
|
|
2317
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
2318
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 14];
|
|
2319
|
+
}
|
|
2320
|
+
return [3, 16];
|
|
2321
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2322
|
+
case 3: throw _d.sent();
|
|
2323
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2324
|
+
case 5: throw _d.sent();
|
|
2325
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2326
|
+
case 7: throw _d.sent();
|
|
2327
|
+
case 8: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2328
|
+
case 9: throw _d.sent();
|
|
2329
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2330
|
+
case 11: throw _d.sent();
|
|
2331
|
+
case 12: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2332
|
+
case 13: throw _d.sent();
|
|
2333
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2334
|
+
case 15: throw _d.sent();
|
|
2335
|
+
case 16:
|
|
2336
|
+
parsedBody = parsedOutput.body;
|
|
2337
|
+
throwDefaultError({
|
|
2338
|
+
output: output,
|
|
2339
|
+
parsedBody: parsedBody,
|
|
2340
|
+
exceptionCtor: __BaseException,
|
|
2341
|
+
errorCode: errorCode,
|
|
2342
|
+
});
|
|
2343
|
+
_d.label = 17;
|
|
2344
|
+
case 17: return [2];
|
|
2345
|
+
}
|
|
2346
|
+
});
|
|
2347
|
+
}); };
|
|
2348
|
+
export var deserializeAws_restJson1UpdateAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2349
|
+
var contents, data, _a, _b;
|
|
2350
|
+
return __generator(this, function (_c) {
|
|
2351
|
+
switch (_c.label) {
|
|
2352
|
+
case 0:
|
|
2353
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2354
|
+
return [2, deserializeAws_restJson1UpdateAppInstanceUserCommandError(output, context)];
|
|
2355
|
+
}
|
|
2356
|
+
contents = map({
|
|
2357
|
+
$metadata: deserializeMetadata(output),
|
|
2358
|
+
});
|
|
2359
|
+
_a = __expectNonNull;
|
|
2360
|
+
_b = __expectObject;
|
|
2361
|
+
return [4, parseBody(output.body, context)];
|
|
2362
|
+
case 1:
|
|
2363
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2364
|
+
if (data.AppInstanceUserArn != null) {
|
|
2365
|
+
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
2366
|
+
}
|
|
2367
|
+
return [2, contents];
|
|
2368
|
+
}
|
|
2369
|
+
});
|
|
2370
|
+
}); };
|
|
2371
|
+
var deserializeAws_restJson1UpdateAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2372
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2373
|
+
var _c;
|
|
2374
|
+
return __generator(this, function (_d) {
|
|
2375
|
+
switch (_d.label) {
|
|
2376
|
+
case 0:
|
|
2377
|
+
_a = [__assign({}, output)];
|
|
2378
|
+
_c = {};
|
|
2379
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2380
|
+
case 1:
|
|
2381
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2382
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
|
+
_b = errorCode;
|
|
2384
|
+
switch (_b) {
|
|
2385
|
+
case "BadRequestException": return [3, 2];
|
|
2386
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
2387
|
+
case "ConflictException": return [3, 4];
|
|
2388
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
2389
|
+
case "ForbiddenException": return [3, 6];
|
|
2390
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
2391
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
2392
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
2393
|
+
case "ServiceFailureException": return [3, 10];
|
|
2394
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
2395
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
2396
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
2397
|
+
case "ThrottledClientException": return [3, 14];
|
|
2398
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
2399
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
2400
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
2401
|
+
}
|
|
2402
|
+
return [3, 18];
|
|
2403
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2404
|
+
case 3: throw _d.sent();
|
|
2405
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2406
|
+
case 5: throw _d.sent();
|
|
2407
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2408
|
+
case 7: throw _d.sent();
|
|
2409
|
+
case 8: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2410
|
+
case 9: throw _d.sent();
|
|
2411
|
+
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2412
|
+
case 11: throw _d.sent();
|
|
2413
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2414
|
+
case 13: throw _d.sent();
|
|
2415
|
+
case 14: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2416
|
+
case 15: throw _d.sent();
|
|
2417
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2418
|
+
case 17: throw _d.sent();
|
|
2419
|
+
case 18:
|
|
2420
|
+
parsedBody = parsedOutput.body;
|
|
2421
|
+
throwDefaultError({
|
|
2422
|
+
output: output,
|
|
2423
|
+
parsedBody: parsedBody,
|
|
2424
|
+
exceptionCtor: __BaseException,
|
|
2425
|
+
errorCode: errorCode,
|
|
2426
|
+
});
|
|
2427
|
+
_d.label = 19;
|
|
2428
|
+
case 19: return [2];
|
|
2429
|
+
}
|
|
2430
|
+
});
|
|
2431
|
+
}); };
|
|
2432
|
+
export var deserializeAws_restJson1UpdateAppInstanceUserEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2433
|
+
var contents, data, _a, _b;
|
|
2434
|
+
return __generator(this, function (_c) {
|
|
2435
|
+
switch (_c.label) {
|
|
2436
|
+
case 0:
|
|
2437
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2438
|
+
return [2, deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError(output, context)];
|
|
2439
|
+
}
|
|
2440
|
+
contents = map({
|
|
2441
|
+
$metadata: deserializeMetadata(output),
|
|
2442
|
+
});
|
|
2443
|
+
_a = __expectNonNull;
|
|
2444
|
+
_b = __expectObject;
|
|
2445
|
+
return [4, parseBody(output.body, context)];
|
|
2446
|
+
case 1:
|
|
2447
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2448
|
+
if (data.AppInstanceUserArn != null) {
|
|
2449
|
+
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
2450
|
+
}
|
|
2451
|
+
if (data.EndpointId != null) {
|
|
2452
|
+
contents.EndpointId = __expectString(data.EndpointId);
|
|
2453
|
+
}
|
|
2454
|
+
return [2, contents];
|
|
2455
|
+
}
|
|
2456
|
+
});
|
|
2457
|
+
}); };
|
|
2458
|
+
var deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2459
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2460
|
+
var _c;
|
|
2461
|
+
return __generator(this, function (_d) {
|
|
2462
|
+
switch (_d.label) {
|
|
2463
|
+
case 0:
|
|
2464
|
+
_a = [__assign({}, output)];
|
|
2465
|
+
_c = {};
|
|
2466
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2467
|
+
case 1:
|
|
2468
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2469
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
|
+
_b = errorCode;
|
|
2471
|
+
switch (_b) {
|
|
2472
|
+
case "BadRequestException": return [3, 2];
|
|
2473
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
2474
|
+
case "ConflictException": return [3, 4];
|
|
2475
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
2476
|
+
case "ForbiddenException": return [3, 6];
|
|
2477
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
2478
|
+
case "ServiceFailureException": return [3, 8];
|
|
2479
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 8];
|
|
2480
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2481
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 10];
|
|
2482
|
+
case "ThrottledClientException": return [3, 12];
|
|
2483
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 12];
|
|
2484
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
2485
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 14];
|
|
2486
|
+
}
|
|
2487
|
+
return [3, 16];
|
|
2488
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2489
|
+
case 3: throw _d.sent();
|
|
2490
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2491
|
+
case 5: throw _d.sent();
|
|
2492
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2493
|
+
case 7: throw _d.sent();
|
|
2494
|
+
case 8: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2495
|
+
case 9: throw _d.sent();
|
|
2496
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2497
|
+
case 11: throw _d.sent();
|
|
2498
|
+
case 12: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2499
|
+
case 13: throw _d.sent();
|
|
2500
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2501
|
+
case 15: throw _d.sent();
|
|
2502
|
+
case 16:
|
|
2503
|
+
parsedBody = parsedOutput.body;
|
|
2504
|
+
throwDefaultError({
|
|
2505
|
+
output: output,
|
|
2506
|
+
parsedBody: parsedBody,
|
|
2507
|
+
exceptionCtor: __BaseException,
|
|
2508
|
+
errorCode: errorCode,
|
|
2509
|
+
});
|
|
2510
|
+
_d.label = 17;
|
|
2511
|
+
case 17: return [2];
|
|
2512
|
+
}
|
|
2513
|
+
});
|
|
2514
|
+
}); };
|
|
2515
|
+
var map = __map;
|
|
2516
|
+
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2517
|
+
var contents, data, exception;
|
|
2518
|
+
return __generator(this, function (_a) {
|
|
2519
|
+
contents = map({});
|
|
2520
|
+
data = parsedOutput.body;
|
|
2521
|
+
if (data.Code != null) {
|
|
2522
|
+
contents.Code = __expectString(data.Code);
|
|
2523
|
+
}
|
|
2524
|
+
if (data.Message != null) {
|
|
2525
|
+
contents.Message = __expectString(data.Message);
|
|
2526
|
+
}
|
|
2527
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2528
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2529
|
+
});
|
|
2530
|
+
}); };
|
|
2531
|
+
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2532
|
+
var contents, data, exception;
|
|
2533
|
+
return __generator(this, function (_a) {
|
|
2534
|
+
contents = map({});
|
|
2535
|
+
data = parsedOutput.body;
|
|
2536
|
+
if (data.Code != null) {
|
|
2537
|
+
contents.Code = __expectString(data.Code);
|
|
2538
|
+
}
|
|
2539
|
+
if (data.Message != null) {
|
|
2540
|
+
contents.Message = __expectString(data.Message);
|
|
2541
|
+
}
|
|
2542
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2543
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2544
|
+
});
|
|
2545
|
+
}); };
|
|
2546
|
+
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2547
|
+
var contents, data, exception;
|
|
2548
|
+
return __generator(this, function (_a) {
|
|
2549
|
+
contents = map({});
|
|
2550
|
+
data = parsedOutput.body;
|
|
2551
|
+
if (data.Code != null) {
|
|
2552
|
+
contents.Code = __expectString(data.Code);
|
|
2553
|
+
}
|
|
2554
|
+
if (data.Message != null) {
|
|
2555
|
+
contents.Message = __expectString(data.Message);
|
|
2556
|
+
}
|
|
2557
|
+
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2558
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2559
|
+
});
|
|
2560
|
+
}); };
|
|
2561
|
+
var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2562
|
+
var contents, data, exception;
|
|
2563
|
+
return __generator(this, function (_a) {
|
|
2564
|
+
contents = map({});
|
|
2565
|
+
data = parsedOutput.body;
|
|
2566
|
+
if (data.Code != null) {
|
|
2567
|
+
contents.Code = __expectString(data.Code);
|
|
2568
|
+
}
|
|
2569
|
+
if (data.Message != null) {
|
|
2570
|
+
contents.Message = __expectString(data.Message);
|
|
2571
|
+
}
|
|
2572
|
+
exception = new ResourceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2573
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2574
|
+
});
|
|
2575
|
+
}); };
|
|
2576
|
+
var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2577
|
+
var contents, data, exception;
|
|
2578
|
+
return __generator(this, function (_a) {
|
|
2579
|
+
contents = map({});
|
|
2580
|
+
data = parsedOutput.body;
|
|
2581
|
+
if (data.Code != null) {
|
|
2582
|
+
contents.Code = __expectString(data.Code);
|
|
2583
|
+
}
|
|
2584
|
+
if (data.Message != null) {
|
|
2585
|
+
contents.Message = __expectString(data.Message);
|
|
2586
|
+
}
|
|
2587
|
+
exception = new ServiceFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2588
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2589
|
+
});
|
|
2590
|
+
}); };
|
|
2591
|
+
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2592
|
+
var contents, data, exception;
|
|
2593
|
+
return __generator(this, function (_a) {
|
|
2594
|
+
contents = map({});
|
|
2595
|
+
data = parsedOutput.body;
|
|
2596
|
+
if (data.Code != null) {
|
|
2597
|
+
contents.Code = __expectString(data.Code);
|
|
2598
|
+
}
|
|
2599
|
+
if (data.Message != null) {
|
|
2600
|
+
contents.Message = __expectString(data.Message);
|
|
2601
|
+
}
|
|
2602
|
+
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2603
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2604
|
+
});
|
|
2605
|
+
}); };
|
|
2606
|
+
var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2607
|
+
var contents, data, exception;
|
|
2608
|
+
return __generator(this, function (_a) {
|
|
2609
|
+
contents = map({});
|
|
2610
|
+
data = parsedOutput.body;
|
|
2611
|
+
if (data.Code != null) {
|
|
2612
|
+
contents.Code = __expectString(data.Code);
|
|
2613
|
+
}
|
|
2614
|
+
if (data.Message != null) {
|
|
2615
|
+
contents.Message = __expectString(data.Message);
|
|
2616
|
+
}
|
|
2617
|
+
exception = new ThrottledClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2618
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2619
|
+
});
|
|
2620
|
+
}); };
|
|
2621
|
+
var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2622
|
+
var contents, data, exception;
|
|
2623
|
+
return __generator(this, function (_a) {
|
|
2624
|
+
contents = map({});
|
|
2625
|
+
data = parsedOutput.body;
|
|
2626
|
+
if (data.Code != null) {
|
|
2627
|
+
contents.Code = __expectString(data.Code);
|
|
2628
|
+
}
|
|
2629
|
+
if (data.Message != null) {
|
|
2630
|
+
contents.Message = __expectString(data.Message);
|
|
2631
|
+
}
|
|
2632
|
+
exception = new UnauthorizedClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2633
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2634
|
+
});
|
|
2635
|
+
}); };
|
|
2636
|
+
var serializeAws_restJson1AppInstanceRetentionSettings = function (input, context) {
|
|
2637
|
+
return __assign({}, (input.ChannelRetentionSettings != null && {
|
|
2638
|
+
ChannelRetentionSettings: serializeAws_restJson1ChannelRetentionSettings(input.ChannelRetentionSettings, context),
|
|
2639
|
+
}));
|
|
1853
2640
|
};
|
|
1854
|
-
|
|
1855
|
-
return {
|
|
1856
|
-
...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
|
|
1857
|
-
};
|
|
2641
|
+
var serializeAws_restJson1ChannelRetentionSettings = function (input, context) {
|
|
2642
|
+
return __assign({}, (input.RetentionDays != null && { RetentionDays: input.RetentionDays }));
|
|
1858
2643
|
};
|
|
1859
|
-
|
|
1860
|
-
return {
|
|
1861
|
-
...(input.DeviceToken != null && { DeviceToken: input.DeviceToken }),
|
|
1862
|
-
...(input.VoipDeviceToken != null && { VoipDeviceToken: input.VoipDeviceToken }),
|
|
1863
|
-
};
|
|
2644
|
+
var serializeAws_restJson1EndpointAttributes = function (input, context) {
|
|
2645
|
+
return __assign(__assign({}, (input.DeviceToken != null && { DeviceToken: input.DeviceToken })), (input.VoipDeviceToken != null && { VoipDeviceToken: input.VoipDeviceToken }));
|
|
1864
2646
|
};
|
|
1865
|
-
|
|
1866
|
-
return {
|
|
1867
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1868
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1869
|
-
};
|
|
2647
|
+
var serializeAws_restJson1Tag = function (input, context) {
|
|
2648
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
1870
2649
|
};
|
|
1871
|
-
|
|
2650
|
+
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
1872
2651
|
return input
|
|
1873
|
-
.filter((e)
|
|
1874
|
-
.map((entry)
|
|
2652
|
+
.filter(function (e) { return e != null; })
|
|
2653
|
+
.map(function (entry) {
|
|
1875
2654
|
return entry;
|
|
1876
2655
|
});
|
|
1877
2656
|
};
|
|
1878
|
-
|
|
2657
|
+
var serializeAws_restJson1TagList = function (input, context) {
|
|
1879
2658
|
return input
|
|
1880
|
-
.filter((e)
|
|
1881
|
-
.map((entry)
|
|
2659
|
+
.filter(function (e) { return e != null; })
|
|
2660
|
+
.map(function (entry) {
|
|
1882
2661
|
return serializeAws_restJson1Tag(entry, context);
|
|
1883
2662
|
});
|
|
1884
2663
|
};
|
|
1885
|
-
|
|
2664
|
+
var deserializeAws_restJson1AppInstance = function (output, context) {
|
|
1886
2665
|
return {
|
|
1887
2666
|
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
1888
2667
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
@@ -1895,7 +2674,7 @@ const deserializeAws_restJson1AppInstance = (output, context) => {
|
|
|
1895
2674
|
Name: __expectString(output.Name),
|
|
1896
2675
|
};
|
|
1897
2676
|
};
|
|
1898
|
-
|
|
2677
|
+
var deserializeAws_restJson1AppInstanceAdmin = function (output, context) {
|
|
1899
2678
|
return {
|
|
1900
2679
|
Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
|
|
1901
2680
|
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
@@ -1904,10 +2683,10 @@ const deserializeAws_restJson1AppInstanceAdmin = (output, context) => {
|
|
|
1904
2683
|
: undefined,
|
|
1905
2684
|
};
|
|
1906
2685
|
};
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
.filter((e)
|
|
1910
|
-
.map((entry)
|
|
2686
|
+
var deserializeAws_restJson1AppInstanceAdminList = function (output, context) {
|
|
2687
|
+
var retVal = (output || [])
|
|
2688
|
+
.filter(function (e) { return e != null; })
|
|
2689
|
+
.map(function (entry) {
|
|
1911
2690
|
if (entry === null) {
|
|
1912
2691
|
return null;
|
|
1913
2692
|
}
|
|
@@ -1915,15 +2694,15 @@ const deserializeAws_restJson1AppInstanceAdminList = (output, context) => {
|
|
|
1915
2694
|
});
|
|
1916
2695
|
return retVal;
|
|
1917
2696
|
};
|
|
1918
|
-
|
|
2697
|
+
var deserializeAws_restJson1AppInstanceAdminSummary = function (output, context) {
|
|
1919
2698
|
return {
|
|
1920
2699
|
Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
|
|
1921
2700
|
};
|
|
1922
2701
|
};
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
.filter((e)
|
|
1926
|
-
.map((entry)
|
|
2702
|
+
var deserializeAws_restJson1AppInstanceList = function (output, context) {
|
|
2703
|
+
var retVal = (output || [])
|
|
2704
|
+
.filter(function (e) { return e != null; })
|
|
2705
|
+
.map(function (entry) {
|
|
1927
2706
|
if (entry === null) {
|
|
1928
2707
|
return null;
|
|
1929
2708
|
}
|
|
@@ -1931,21 +2710,21 @@ const deserializeAws_restJson1AppInstanceList = (output, context) => {
|
|
|
1931
2710
|
});
|
|
1932
2711
|
return retVal;
|
|
1933
2712
|
};
|
|
1934
|
-
|
|
2713
|
+
var deserializeAws_restJson1AppInstanceRetentionSettings = function (output, context) {
|
|
1935
2714
|
return {
|
|
1936
2715
|
ChannelRetentionSettings: output.ChannelRetentionSettings != null
|
|
1937
2716
|
? deserializeAws_restJson1ChannelRetentionSettings(output.ChannelRetentionSettings, context)
|
|
1938
2717
|
: undefined,
|
|
1939
2718
|
};
|
|
1940
2719
|
};
|
|
1941
|
-
|
|
2720
|
+
var deserializeAws_restJson1AppInstanceSummary = function (output, context) {
|
|
1942
2721
|
return {
|
|
1943
2722
|
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
1944
2723
|
Metadata: __expectString(output.Metadata),
|
|
1945
2724
|
Name: __expectString(output.Name),
|
|
1946
2725
|
};
|
|
1947
2726
|
};
|
|
1948
|
-
|
|
2727
|
+
var deserializeAws_restJson1AppInstanceUser = function (output, context) {
|
|
1949
2728
|
return {
|
|
1950
2729
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
1951
2730
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
@@ -1958,7 +2737,7 @@ const deserializeAws_restJson1AppInstanceUser = (output, context) => {
|
|
|
1958
2737
|
Name: __expectString(output.Name),
|
|
1959
2738
|
};
|
|
1960
2739
|
};
|
|
1961
|
-
|
|
2740
|
+
var deserializeAws_restJson1AppInstanceUserEndpoint = function (output, context) {
|
|
1962
2741
|
return {
|
|
1963
2742
|
AllowMessages: __expectString(output.AllowMessages),
|
|
1964
2743
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
@@ -1978,7 +2757,7 @@ const deserializeAws_restJson1AppInstanceUserEndpoint = (output, context) => {
|
|
|
1978
2757
|
Type: __expectString(output.Type),
|
|
1979
2758
|
};
|
|
1980
2759
|
};
|
|
1981
|
-
|
|
2760
|
+
var deserializeAws_restJson1AppInstanceUserEndpointSummary = function (output, context) {
|
|
1982
2761
|
return {
|
|
1983
2762
|
AllowMessages: __expectString(output.AllowMessages),
|
|
1984
2763
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
@@ -1988,10 +2767,10 @@ const deserializeAws_restJson1AppInstanceUserEndpointSummary = (output, context)
|
|
|
1988
2767
|
Type: __expectString(output.Type),
|
|
1989
2768
|
};
|
|
1990
2769
|
};
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
.filter((e)
|
|
1994
|
-
.map((entry)
|
|
2770
|
+
var deserializeAws_restJson1AppInstanceUserEndpointSummaryList = function (output, context) {
|
|
2771
|
+
var retVal = (output || [])
|
|
2772
|
+
.filter(function (e) { return e != null; })
|
|
2773
|
+
.map(function (entry) {
|
|
1995
2774
|
if (entry === null) {
|
|
1996
2775
|
return null;
|
|
1997
2776
|
}
|
|
@@ -1999,10 +2778,10 @@ const deserializeAws_restJson1AppInstanceUserEndpointSummaryList = (output, cont
|
|
|
1999
2778
|
});
|
|
2000
2779
|
return retVal;
|
|
2001
2780
|
};
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
.filter((e)
|
|
2005
|
-
.map((entry)
|
|
2781
|
+
var deserializeAws_restJson1AppInstanceUserList = function (output, context) {
|
|
2782
|
+
var retVal = (output || [])
|
|
2783
|
+
.filter(function (e) { return e != null; })
|
|
2784
|
+
.map(function (entry) {
|
|
2006
2785
|
if (entry === null) {
|
|
2007
2786
|
return null;
|
|
2008
2787
|
}
|
|
@@ -2010,46 +2789,46 @@ const deserializeAws_restJson1AppInstanceUserList = (output, context) => {
|
|
|
2010
2789
|
});
|
|
2011
2790
|
return retVal;
|
|
2012
2791
|
};
|
|
2013
|
-
|
|
2792
|
+
var deserializeAws_restJson1AppInstanceUserSummary = function (output, context) {
|
|
2014
2793
|
return {
|
|
2015
2794
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
2016
2795
|
Metadata: __expectString(output.Metadata),
|
|
2017
2796
|
Name: __expectString(output.Name),
|
|
2018
2797
|
};
|
|
2019
2798
|
};
|
|
2020
|
-
|
|
2799
|
+
var deserializeAws_restJson1ChannelRetentionSettings = function (output, context) {
|
|
2021
2800
|
return {
|
|
2022
2801
|
RetentionDays: __expectInt32(output.RetentionDays),
|
|
2023
2802
|
};
|
|
2024
2803
|
};
|
|
2025
|
-
|
|
2804
|
+
var deserializeAws_restJson1EndpointAttributes = function (output, context) {
|
|
2026
2805
|
return {
|
|
2027
2806
|
DeviceToken: __expectString(output.DeviceToken),
|
|
2028
2807
|
VoipDeviceToken: __expectString(output.VoipDeviceToken),
|
|
2029
2808
|
};
|
|
2030
2809
|
};
|
|
2031
|
-
|
|
2810
|
+
var deserializeAws_restJson1EndpointState = function (output, context) {
|
|
2032
2811
|
return {
|
|
2033
2812
|
Status: __expectString(output.Status),
|
|
2034
2813
|
StatusReason: __expectString(output.StatusReason),
|
|
2035
2814
|
};
|
|
2036
2815
|
};
|
|
2037
|
-
|
|
2816
|
+
var deserializeAws_restJson1Identity = function (output, context) {
|
|
2038
2817
|
return {
|
|
2039
2818
|
Arn: __expectString(output.Arn),
|
|
2040
2819
|
Name: __expectString(output.Name),
|
|
2041
2820
|
};
|
|
2042
2821
|
};
|
|
2043
|
-
|
|
2822
|
+
var deserializeAws_restJson1Tag = function (output, context) {
|
|
2044
2823
|
return {
|
|
2045
2824
|
Key: __expectString(output.Key),
|
|
2046
2825
|
Value: __expectString(output.Value),
|
|
2047
2826
|
};
|
|
2048
2827
|
};
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
.filter((e)
|
|
2052
|
-
.map((entry)
|
|
2828
|
+
var deserializeAws_restJson1TagList = function (output, context) {
|
|
2829
|
+
var retVal = (output || [])
|
|
2830
|
+
.filter(function (e) { return e != null; })
|
|
2831
|
+
.map(function (entry) {
|
|
2053
2832
|
if (entry === null) {
|
|
2054
2833
|
return null;
|
|
2055
2834
|
}
|
|
@@ -2057,39 +2836,57 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
2057
2836
|
});
|
|
2058
2837
|
return retVal;
|
|
2059
2838
|
};
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2839
|
+
var deserializeMetadata = function (output) {
|
|
2840
|
+
var _a, _b;
|
|
2841
|
+
return ({
|
|
2842
|
+
httpStatusCode: output.statusCode,
|
|
2843
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2844
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2845
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2846
|
+
});
|
|
2847
|
+
};
|
|
2848
|
+
var collectBody = function (streamBody, context) {
|
|
2849
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2067
2850
|
if (streamBody instanceof Uint8Array) {
|
|
2068
2851
|
return Promise.resolve(streamBody);
|
|
2069
2852
|
}
|
|
2070
2853
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2071
2854
|
};
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
}
|
|
2082
|
-
return {};
|
|
2083
|
-
});
|
|
2084
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2085
|
-
const value = await parseBody(errorBody, context);
|
|
2086
|
-
value.message = value.message ?? value.Message;
|
|
2087
|
-
return value;
|
|
2855
|
+
var collectBodyString = function (streamBody, context) {
|
|
2856
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2857
|
+
};
|
|
2858
|
+
var isSerializableHeaderValue = function (value) {
|
|
2859
|
+
return value !== undefined &&
|
|
2860
|
+
value !== null &&
|
|
2861
|
+
value !== "" &&
|
|
2862
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2863
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2088
2864
|
};
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2865
|
+
var parseBody = function (streamBody, context) {
|
|
2866
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2867
|
+
if (encoded.length) {
|
|
2868
|
+
return JSON.parse(encoded);
|
|
2869
|
+
}
|
|
2870
|
+
return {};
|
|
2871
|
+
});
|
|
2872
|
+
};
|
|
2873
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2874
|
+
var value;
|
|
2875
|
+
var _a;
|
|
2876
|
+
return __generator(this, function (_b) {
|
|
2877
|
+
switch (_b.label) {
|
|
2878
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2879
|
+
case 1:
|
|
2880
|
+
value = _b.sent();
|
|
2881
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2882
|
+
return [2, value];
|
|
2883
|
+
}
|
|
2884
|
+
});
|
|
2885
|
+
}); };
|
|
2886
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2887
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2888
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2889
|
+
var cleanValue = rawValue;
|
|
2093
2890
|
if (typeof cleanValue === "number") {
|
|
2094
2891
|
cleanValue = cleanValue.toString();
|
|
2095
2892
|
}
|
|
@@ -2104,7 +2901,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2104
2901
|
}
|
|
2105
2902
|
return cleanValue;
|
|
2106
2903
|
};
|
|
2107
|
-
|
|
2904
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2108
2905
|
if (headerKey !== undefined) {
|
|
2109
2906
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2110
2907
|
}
|