@aws-sdk/client-license-manager-user-subscriptions 3.185.0 → 3.188.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 +16 -0
- package/dist-es/LicenseManagerUserSubscriptions.js +42 -49
- package/dist-es/LicenseManagerUserSubscriptionsClient.js +22 -28
- package/dist-es/commands/AssociateUserCommand.js +21 -28
- package/dist-es/commands/DeregisterIdentityProviderCommand.js +21 -28
- package/dist-es/commands/DisassociateUserCommand.js +21 -28
- package/dist-es/commands/ListIdentityProvidersCommand.js +21 -28
- package/dist-es/commands/ListInstancesCommand.js +21 -28
- package/dist-es/commands/ListProductSubscriptionsCommand.js +21 -28
- package/dist-es/commands/ListUserAssociationsCommand.js +21 -28
- package/dist-es/commands/RegisterIdentityProviderCommand.js +21 -28
- package/dist-es/commands/StartProductSubscriptionCommand.js +21 -28
- package/dist-es/commands/StopProductSubscriptionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LicenseManagerUserSubscriptionsServiceException.js +5 -10
- package/dist-es/models/models_0.js +191 -123
- package/dist-es/pagination/ListIdentityProvidersPaginator.js +25 -68
- package/dist-es/pagination/ListInstancesPaginator.js +25 -68
- package/dist-es/pagination/ListProductSubscriptionsPaginator.js +25 -68
- package/dist-es/pagination/ListUserAssociationsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +884 -1202
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,1190 +1,890 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { LicenseManagerUserSubscriptionsServiceException as __BaseException } from "../models/LicenseManagerUserSubscriptionsServiceException";
|
|
5
4
|
import { AccessDeniedException, ConflictException, IdentityProvider, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
}
|
|
5
|
+
export const serializeAws_restJson1AssociateUserCommand = async (input, context) => {
|
|
6
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/json",
|
|
9
|
+
};
|
|
10
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/AssociateUser";
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify({
|
|
13
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
14
|
+
...(input.IdentityProvider != null && {
|
|
15
|
+
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
16
|
+
}),
|
|
17
|
+
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
18
|
+
...(input.Username != null && { Username: input.Username }),
|
|
30
19
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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 || "") +
|
|
43
|
-
"/identity-provider/DeregisterIdentityProvider";
|
|
44
|
-
body = JSON.stringify(__assign(__assign({}, (input.IdentityProvider != null && {
|
|
45
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
46
|
-
})), (input.Product != null && { Product: input.Product })));
|
|
47
|
-
return [2, new __HttpRequest({
|
|
48
|
-
protocol: protocol,
|
|
49
|
-
hostname: hostname,
|
|
50
|
-
port: port,
|
|
51
|
-
method: "POST",
|
|
52
|
-
headers: headers,
|
|
53
|
-
path: resolvedPath,
|
|
54
|
-
body: body,
|
|
55
|
-
})];
|
|
56
|
-
}
|
|
20
|
+
return new __HttpRequest({
|
|
21
|
+
protocol,
|
|
22
|
+
hostname,
|
|
23
|
+
port,
|
|
24
|
+
method: "POST",
|
|
25
|
+
headers,
|
|
26
|
+
path: resolvedPath,
|
|
27
|
+
body,
|
|
57
28
|
});
|
|
58
|
-
}
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
})), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.Username != null && { Username: input.Username })));
|
|
73
|
-
return [2, new __HttpRequest({
|
|
74
|
-
protocol: protocol,
|
|
75
|
-
hostname: hostname,
|
|
76
|
-
port: port,
|
|
77
|
-
method: "POST",
|
|
78
|
-
headers: headers,
|
|
79
|
-
path: resolvedPath,
|
|
80
|
-
body: body,
|
|
81
|
-
})];
|
|
82
|
-
}
|
|
29
|
+
};
|
|
30
|
+
export const serializeAws_restJson1DeregisterIdentityProviderCommand = async (input, context) => {
|
|
31
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
32
|
+
const headers = {
|
|
33
|
+
"content-type": "application/json",
|
|
34
|
+
};
|
|
35
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
36
|
+
"/identity-provider/DeregisterIdentityProvider";
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify({
|
|
39
|
+
...(input.IdentityProvider != null && {
|
|
40
|
+
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
41
|
+
}),
|
|
42
|
+
...(input.Product != null && { Product: input.Product }),
|
|
83
43
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
headers = {
|
|
93
|
-
"content-type": "application/json",
|
|
94
|
-
};
|
|
95
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identity-provider/ListIdentityProviders";
|
|
96
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
97
|
-
return [2, new __HttpRequest({
|
|
98
|
-
protocol: protocol,
|
|
99
|
-
hostname: hostname,
|
|
100
|
-
port: port,
|
|
101
|
-
method: "POST",
|
|
102
|
-
headers: headers,
|
|
103
|
-
path: resolvedPath,
|
|
104
|
-
body: body,
|
|
105
|
-
})];
|
|
106
|
-
}
|
|
44
|
+
return new __HttpRequest({
|
|
45
|
+
protocol,
|
|
46
|
+
hostname,
|
|
47
|
+
port,
|
|
48
|
+
method: "POST",
|
|
49
|
+
headers,
|
|
50
|
+
path: resolvedPath,
|
|
51
|
+
body,
|
|
107
52
|
});
|
|
108
|
-
}
|
|
109
|
-
export
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
hostname: hostname,
|
|
124
|
-
port: port,
|
|
125
|
-
method: "POST",
|
|
126
|
-
headers: headers,
|
|
127
|
-
path: resolvedPath,
|
|
128
|
-
body: body,
|
|
129
|
-
})];
|
|
130
|
-
}
|
|
53
|
+
};
|
|
54
|
+
export const serializeAws_restJson1DisassociateUserCommand = async (input, context) => {
|
|
55
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
56
|
+
const headers = {
|
|
57
|
+
"content-type": "application/json",
|
|
58
|
+
};
|
|
59
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/DisassociateUser";
|
|
60
|
+
let body;
|
|
61
|
+
body = JSON.stringify({
|
|
62
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
63
|
+
...(input.IdentityProvider != null && {
|
|
64
|
+
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
65
|
+
}),
|
|
66
|
+
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
67
|
+
...(input.Username != null && { Username: input.Username }),
|
|
131
68
|
});
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
headers = {
|
|
141
|
-
"content-type": "application/json",
|
|
142
|
-
};
|
|
143
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user/ListProductSubscriptions";
|
|
144
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) })), (input.IdentityProvider != null && {
|
|
145
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
146
|
-
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Product != null && { Product: input.Product })));
|
|
147
|
-
return [2, new __HttpRequest({
|
|
148
|
-
protocol: protocol,
|
|
149
|
-
hostname: hostname,
|
|
150
|
-
port: port,
|
|
151
|
-
method: "POST",
|
|
152
|
-
headers: headers,
|
|
153
|
-
path: resolvedPath,
|
|
154
|
-
body: body,
|
|
155
|
-
})];
|
|
156
|
-
}
|
|
69
|
+
return new __HttpRequest({
|
|
70
|
+
protocol,
|
|
71
|
+
hostname,
|
|
72
|
+
port,
|
|
73
|
+
method: "POST",
|
|
74
|
+
headers,
|
|
75
|
+
path: resolvedPath,
|
|
76
|
+
body,
|
|
157
77
|
});
|
|
158
|
-
}
|
|
159
|
-
export
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user/ListUserAssociations";
|
|
170
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) })), (input.IdentityProvider != null && {
|
|
171
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
172
|
-
})), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
173
|
-
return [2, new __HttpRequest({
|
|
174
|
-
protocol: protocol,
|
|
175
|
-
hostname: hostname,
|
|
176
|
-
port: port,
|
|
177
|
-
method: "POST",
|
|
178
|
-
headers: headers,
|
|
179
|
-
path: resolvedPath,
|
|
180
|
-
body: body,
|
|
181
|
-
})];
|
|
182
|
-
}
|
|
78
|
+
};
|
|
79
|
+
export const serializeAws_restJson1ListIdentityProvidersCommand = async (input, context) => {
|
|
80
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
81
|
+
const headers = {
|
|
82
|
+
"content-type": "application/json",
|
|
83
|
+
};
|
|
84
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identity-provider/ListIdentityProviders";
|
|
85
|
+
let body;
|
|
86
|
+
body = JSON.stringify({
|
|
87
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
88
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
183
89
|
});
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
headers = {
|
|
193
|
-
"content-type": "application/json",
|
|
194
|
-
};
|
|
195
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
196
|
-
"/identity-provider/RegisterIdentityProvider";
|
|
197
|
-
body = JSON.stringify(__assign(__assign({}, (input.IdentityProvider != null && {
|
|
198
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
199
|
-
})), (input.Product != null && { Product: input.Product })));
|
|
200
|
-
return [2, new __HttpRequest({
|
|
201
|
-
protocol: protocol,
|
|
202
|
-
hostname: hostname,
|
|
203
|
-
port: port,
|
|
204
|
-
method: "POST",
|
|
205
|
-
headers: headers,
|
|
206
|
-
path: resolvedPath,
|
|
207
|
-
body: body,
|
|
208
|
-
})];
|
|
209
|
-
}
|
|
90
|
+
return new __HttpRequest({
|
|
91
|
+
protocol,
|
|
92
|
+
hostname,
|
|
93
|
+
port,
|
|
94
|
+
method: "POST",
|
|
95
|
+
headers,
|
|
96
|
+
path: resolvedPath,
|
|
97
|
+
body,
|
|
210
98
|
});
|
|
211
|
-
}
|
|
212
|
-
export
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Domain != null && { Domain: input.Domain })), (input.IdentityProvider != null && {
|
|
224
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
225
|
-
})), (input.Product != null && { Product: input.Product })), (input.Username != null && { Username: input.Username })));
|
|
226
|
-
return [2, new __HttpRequest({
|
|
227
|
-
protocol: protocol,
|
|
228
|
-
hostname: hostname,
|
|
229
|
-
port: port,
|
|
230
|
-
method: "POST",
|
|
231
|
-
headers: headers,
|
|
232
|
-
path: resolvedPath,
|
|
233
|
-
body: body,
|
|
234
|
-
})];
|
|
235
|
-
}
|
|
99
|
+
};
|
|
100
|
+
export const serializeAws_restJson1ListInstancesCommand = async (input, context) => {
|
|
101
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
102
|
+
const headers = {
|
|
103
|
+
"content-type": "application/json",
|
|
104
|
+
};
|
|
105
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/ListInstances";
|
|
106
|
+
let body;
|
|
107
|
+
body = JSON.stringify({
|
|
108
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
109
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
110
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
236
111
|
});
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
headers = {
|
|
246
|
-
"content-type": "application/json",
|
|
247
|
-
};
|
|
248
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user/StopProductSubscription";
|
|
249
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Domain != null && { Domain: input.Domain })), (input.IdentityProvider != null && {
|
|
250
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
251
|
-
})), (input.Product != null && { Product: input.Product })), (input.Username != null && { Username: input.Username })));
|
|
252
|
-
return [2, new __HttpRequest({
|
|
253
|
-
protocol: protocol,
|
|
254
|
-
hostname: hostname,
|
|
255
|
-
port: port,
|
|
256
|
-
method: "POST",
|
|
257
|
-
headers: headers,
|
|
258
|
-
path: resolvedPath,
|
|
259
|
-
body: body,
|
|
260
|
-
})];
|
|
261
|
-
}
|
|
112
|
+
return new __HttpRequest({
|
|
113
|
+
protocol,
|
|
114
|
+
hostname,
|
|
115
|
+
port,
|
|
116
|
+
method: "POST",
|
|
117
|
+
headers,
|
|
118
|
+
path: resolvedPath,
|
|
119
|
+
body,
|
|
262
120
|
});
|
|
263
|
-
}
|
|
264
|
-
export
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
280
|
-
if (data.InstanceUserSummary != null) {
|
|
281
|
-
contents.InstanceUserSummary = deserializeAws_restJson1InstanceUserSummary(data.InstanceUserSummary, context);
|
|
282
|
-
}
|
|
283
|
-
return [2, contents];
|
|
284
|
-
}
|
|
121
|
+
};
|
|
122
|
+
export const serializeAws_restJson1ListProductSubscriptionsCommand = async (input, context) => {
|
|
123
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
|
+
const headers = {
|
|
125
|
+
"content-type": "application/json",
|
|
126
|
+
};
|
|
127
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListProductSubscriptions";
|
|
128
|
+
let body;
|
|
129
|
+
body = JSON.stringify({
|
|
130
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
131
|
+
...(input.IdentityProvider != null && {
|
|
132
|
+
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
133
|
+
}),
|
|
134
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
135
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
136
|
+
...(input.Product != null && { Product: input.Product }),
|
|
285
137
|
});
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
_c = {};
|
|
295
|
-
return [4, parseErrorBody(output.body, context)];
|
|
296
|
-
case 1:
|
|
297
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
298
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
299
|
-
_b = errorCode;
|
|
300
|
-
switch (_b) {
|
|
301
|
-
case "AccessDeniedException": return [3, 2];
|
|
302
|
-
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException": return [3, 2];
|
|
303
|
-
case "ConflictException": return [3, 4];
|
|
304
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException": return [3, 4];
|
|
305
|
-
case "InternalServerException": return [3, 6];
|
|
306
|
-
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException": return [3, 6];
|
|
307
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
308
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException": return [3, 8];
|
|
309
|
-
case "ServiceQuotaExceededException": return [3, 10];
|
|
310
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException": return [3, 10];
|
|
311
|
-
case "ThrottlingException": return [3, 12];
|
|
312
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException": return [3, 12];
|
|
313
|
-
case "ValidationException": return [3, 14];
|
|
314
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException": return [3, 14];
|
|
315
|
-
}
|
|
316
|
-
return [3, 16];
|
|
317
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
318
|
-
case 3: throw _d.sent();
|
|
319
|
-
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
320
|
-
case 5: throw _d.sent();
|
|
321
|
-
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
322
|
-
case 7: throw _d.sent();
|
|
323
|
-
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
324
|
-
case 9: throw _d.sent();
|
|
325
|
-
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
326
|
-
case 11: throw _d.sent();
|
|
327
|
-
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
328
|
-
case 13: throw _d.sent();
|
|
329
|
-
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
330
|
-
case 15: throw _d.sent();
|
|
331
|
-
case 16:
|
|
332
|
-
parsedBody = parsedOutput.body;
|
|
333
|
-
throwDefaultError({
|
|
334
|
-
output: output,
|
|
335
|
-
parsedBody: parsedBody,
|
|
336
|
-
exceptionCtor: __BaseException,
|
|
337
|
-
errorCode: errorCode,
|
|
338
|
-
});
|
|
339
|
-
_d.label = 17;
|
|
340
|
-
case 17: return [2];
|
|
341
|
-
}
|
|
138
|
+
return new __HttpRequest({
|
|
139
|
+
protocol,
|
|
140
|
+
hostname,
|
|
141
|
+
port,
|
|
142
|
+
method: "POST",
|
|
143
|
+
headers,
|
|
144
|
+
path: resolvedPath,
|
|
145
|
+
body,
|
|
342
146
|
});
|
|
343
|
-
}
|
|
344
|
-
export
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
360
|
-
if (data.IdentityProviderSummary != null) {
|
|
361
|
-
contents.IdentityProviderSummary = deserializeAws_restJson1IdentityProviderSummary(data.IdentityProviderSummary, context);
|
|
362
|
-
}
|
|
363
|
-
return [2, contents];
|
|
364
|
-
}
|
|
147
|
+
};
|
|
148
|
+
export const serializeAws_restJson1ListUserAssociationsCommand = async (input, context) => {
|
|
149
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
|
+
const headers = {
|
|
151
|
+
"content-type": "application/json",
|
|
152
|
+
};
|
|
153
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListUserAssociations";
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify({
|
|
156
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
157
|
+
...(input.IdentityProvider != null && {
|
|
158
|
+
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
159
|
+
}),
|
|
160
|
+
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
161
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
162
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
365
163
|
});
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
_c = {};
|
|
375
|
-
return [4, parseErrorBody(output.body, context)];
|
|
376
|
-
case 1:
|
|
377
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
378
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
379
|
-
_b = errorCode;
|
|
380
|
-
switch (_b) {
|
|
381
|
-
case "AccessDeniedException": return [3, 2];
|
|
382
|
-
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException": return [3, 2];
|
|
383
|
-
case "ConflictException": return [3, 4];
|
|
384
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException": return [3, 4];
|
|
385
|
-
case "InternalServerException": return [3, 6];
|
|
386
|
-
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException": return [3, 6];
|
|
387
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
388
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException": return [3, 8];
|
|
389
|
-
case "ServiceQuotaExceededException": return [3, 10];
|
|
390
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException": return [3, 10];
|
|
391
|
-
case "ThrottlingException": return [3, 12];
|
|
392
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException": return [3, 12];
|
|
393
|
-
case "ValidationException": return [3, 14];
|
|
394
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException": return [3, 14];
|
|
395
|
-
}
|
|
396
|
-
return [3, 16];
|
|
397
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
398
|
-
case 3: throw _d.sent();
|
|
399
|
-
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
400
|
-
case 5: throw _d.sent();
|
|
401
|
-
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
402
|
-
case 7: throw _d.sent();
|
|
403
|
-
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
404
|
-
case 9: throw _d.sent();
|
|
405
|
-
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
406
|
-
case 11: throw _d.sent();
|
|
407
|
-
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
408
|
-
case 13: throw _d.sent();
|
|
409
|
-
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
410
|
-
case 15: throw _d.sent();
|
|
411
|
-
case 16:
|
|
412
|
-
parsedBody = parsedOutput.body;
|
|
413
|
-
throwDefaultError({
|
|
414
|
-
output: output,
|
|
415
|
-
parsedBody: parsedBody,
|
|
416
|
-
exceptionCtor: __BaseException,
|
|
417
|
-
errorCode: errorCode,
|
|
418
|
-
});
|
|
419
|
-
_d.label = 17;
|
|
420
|
-
case 17: return [2];
|
|
421
|
-
}
|
|
164
|
+
return new __HttpRequest({
|
|
165
|
+
protocol,
|
|
166
|
+
hostname,
|
|
167
|
+
port,
|
|
168
|
+
method: "POST",
|
|
169
|
+
headers,
|
|
170
|
+
path: resolvedPath,
|
|
171
|
+
body,
|
|
422
172
|
});
|
|
423
|
-
}
|
|
424
|
-
export
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
return [4, parseBody(output.body, context)];
|
|
438
|
-
case 1:
|
|
439
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
440
|
-
if (data.InstanceUserSummary != null) {
|
|
441
|
-
contents.InstanceUserSummary = deserializeAws_restJson1InstanceUserSummary(data.InstanceUserSummary, context);
|
|
442
|
-
}
|
|
443
|
-
return [2, contents];
|
|
444
|
-
}
|
|
173
|
+
};
|
|
174
|
+
export const serializeAws_restJson1RegisterIdentityProviderCommand = async (input, context) => {
|
|
175
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
176
|
+
const headers = {
|
|
177
|
+
"content-type": "application/json",
|
|
178
|
+
};
|
|
179
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
180
|
+
"/identity-provider/RegisterIdentityProvider";
|
|
181
|
+
let body;
|
|
182
|
+
body = JSON.stringify({
|
|
183
|
+
...(input.IdentityProvider != null && {
|
|
184
|
+
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
185
|
+
}),
|
|
186
|
+
...(input.Product != null && { Product: input.Product }),
|
|
445
187
|
});
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
_c = {};
|
|
455
|
-
return [4, parseErrorBody(output.body, context)];
|
|
456
|
-
case 1:
|
|
457
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
458
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
459
|
-
_b = errorCode;
|
|
460
|
-
switch (_b) {
|
|
461
|
-
case "AccessDeniedException": return [3, 2];
|
|
462
|
-
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException": return [3, 2];
|
|
463
|
-
case "ConflictException": return [3, 4];
|
|
464
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException": return [3, 4];
|
|
465
|
-
case "InternalServerException": return [3, 6];
|
|
466
|
-
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException": return [3, 6];
|
|
467
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
468
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException": return [3, 8];
|
|
469
|
-
case "ServiceQuotaExceededException": return [3, 10];
|
|
470
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException": return [3, 10];
|
|
471
|
-
case "ThrottlingException": return [3, 12];
|
|
472
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException": return [3, 12];
|
|
473
|
-
case "ValidationException": return [3, 14];
|
|
474
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException": return [3, 14];
|
|
475
|
-
}
|
|
476
|
-
return [3, 16];
|
|
477
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
478
|
-
case 3: throw _d.sent();
|
|
479
|
-
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
480
|
-
case 5: throw _d.sent();
|
|
481
|
-
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
482
|
-
case 7: throw _d.sent();
|
|
483
|
-
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
484
|
-
case 9: throw _d.sent();
|
|
485
|
-
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
486
|
-
case 11: throw _d.sent();
|
|
487
|
-
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
488
|
-
case 13: throw _d.sent();
|
|
489
|
-
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
490
|
-
case 15: throw _d.sent();
|
|
491
|
-
case 16:
|
|
492
|
-
parsedBody = parsedOutput.body;
|
|
493
|
-
throwDefaultError({
|
|
494
|
-
output: output,
|
|
495
|
-
parsedBody: parsedBody,
|
|
496
|
-
exceptionCtor: __BaseException,
|
|
497
|
-
errorCode: errorCode,
|
|
498
|
-
});
|
|
499
|
-
_d.label = 17;
|
|
500
|
-
case 17: return [2];
|
|
501
|
-
}
|
|
188
|
+
return new __HttpRequest({
|
|
189
|
+
protocol,
|
|
190
|
+
hostname,
|
|
191
|
+
port,
|
|
192
|
+
method: "POST",
|
|
193
|
+
headers,
|
|
194
|
+
path: resolvedPath,
|
|
195
|
+
body,
|
|
502
196
|
});
|
|
503
|
-
}
|
|
504
|
-
export
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
case 1:
|
|
519
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
520
|
-
if (data.IdentityProviderSummaries != null) {
|
|
521
|
-
contents.IdentityProviderSummaries = deserializeAws_restJson1IdentityProviderSummaryList(data.IdentityProviderSummaries, context);
|
|
522
|
-
}
|
|
523
|
-
if (data.NextToken != null) {
|
|
524
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
525
|
-
}
|
|
526
|
-
return [2, contents];
|
|
527
|
-
}
|
|
197
|
+
};
|
|
198
|
+
export const serializeAws_restJson1StartProductSubscriptionCommand = async (input, context) => {
|
|
199
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
200
|
+
const headers = {
|
|
201
|
+
"content-type": "application/json",
|
|
202
|
+
};
|
|
203
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/StartProductSubscription";
|
|
204
|
+
let body;
|
|
205
|
+
body = JSON.stringify({
|
|
206
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
207
|
+
...(input.IdentityProvider != null && {
|
|
208
|
+
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
209
|
+
}),
|
|
210
|
+
...(input.Product != null && { Product: input.Product }),
|
|
211
|
+
...(input.Username != null && { Username: input.Username }),
|
|
528
212
|
});
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
_c = {};
|
|
538
|
-
return [4, parseErrorBody(output.body, context)];
|
|
539
|
-
case 1:
|
|
540
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
541
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
|
-
_b = errorCode;
|
|
543
|
-
switch (_b) {
|
|
544
|
-
case "AccessDeniedException": return [3, 2];
|
|
545
|
-
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException": return [3, 2];
|
|
546
|
-
case "ConflictException": return [3, 4];
|
|
547
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException": return [3, 4];
|
|
548
|
-
case "InternalServerException": return [3, 6];
|
|
549
|
-
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException": return [3, 6];
|
|
550
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
551
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException": return [3, 8];
|
|
552
|
-
case "ServiceQuotaExceededException": return [3, 10];
|
|
553
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException": return [3, 10];
|
|
554
|
-
case "ThrottlingException": return [3, 12];
|
|
555
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException": return [3, 12];
|
|
556
|
-
case "ValidationException": return [3, 14];
|
|
557
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException": return [3, 14];
|
|
558
|
-
}
|
|
559
|
-
return [3, 16];
|
|
560
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
561
|
-
case 3: throw _d.sent();
|
|
562
|
-
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
563
|
-
case 5: throw _d.sent();
|
|
564
|
-
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
565
|
-
case 7: throw _d.sent();
|
|
566
|
-
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
567
|
-
case 9: throw _d.sent();
|
|
568
|
-
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
569
|
-
case 11: throw _d.sent();
|
|
570
|
-
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
571
|
-
case 13: throw _d.sent();
|
|
572
|
-
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
573
|
-
case 15: throw _d.sent();
|
|
574
|
-
case 16:
|
|
575
|
-
parsedBody = parsedOutput.body;
|
|
576
|
-
throwDefaultError({
|
|
577
|
-
output: output,
|
|
578
|
-
parsedBody: parsedBody,
|
|
579
|
-
exceptionCtor: __BaseException,
|
|
580
|
-
errorCode: errorCode,
|
|
581
|
-
});
|
|
582
|
-
_d.label = 17;
|
|
583
|
-
case 17: return [2];
|
|
584
|
-
}
|
|
213
|
+
return new __HttpRequest({
|
|
214
|
+
protocol,
|
|
215
|
+
hostname,
|
|
216
|
+
port,
|
|
217
|
+
method: "POST",
|
|
218
|
+
headers,
|
|
219
|
+
path: resolvedPath,
|
|
220
|
+
body,
|
|
585
221
|
});
|
|
586
|
-
}
|
|
587
|
-
export
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
case 1:
|
|
602
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
603
|
-
if (data.InstanceSummaries != null) {
|
|
604
|
-
contents.InstanceSummaries = deserializeAws_restJson1InstanceSummaryList(data.InstanceSummaries, context);
|
|
605
|
-
}
|
|
606
|
-
if (data.NextToken != null) {
|
|
607
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
608
|
-
}
|
|
609
|
-
return [2, contents];
|
|
610
|
-
}
|
|
222
|
+
};
|
|
223
|
+
export const serializeAws_restJson1StopProductSubscriptionCommand = async (input, context) => {
|
|
224
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
225
|
+
const headers = {
|
|
226
|
+
"content-type": "application/json",
|
|
227
|
+
};
|
|
228
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/StopProductSubscription";
|
|
229
|
+
let body;
|
|
230
|
+
body = JSON.stringify({
|
|
231
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
232
|
+
...(input.IdentityProvider != null && {
|
|
233
|
+
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
234
|
+
}),
|
|
235
|
+
...(input.Product != null && { Product: input.Product }),
|
|
236
|
+
...(input.Username != null && { Username: input.Username }),
|
|
611
237
|
});
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
_c = {};
|
|
621
|
-
return [4, parseErrorBody(output.body, context)];
|
|
622
|
-
case 1:
|
|
623
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
624
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
|
-
_b = errorCode;
|
|
626
|
-
switch (_b) {
|
|
627
|
-
case "AccessDeniedException": return [3, 2];
|
|
628
|
-
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException": return [3, 2];
|
|
629
|
-
case "ConflictException": return [3, 4];
|
|
630
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException": return [3, 4];
|
|
631
|
-
case "InternalServerException": return [3, 6];
|
|
632
|
-
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException": return [3, 6];
|
|
633
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
634
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException": return [3, 8];
|
|
635
|
-
case "ServiceQuotaExceededException": return [3, 10];
|
|
636
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException": return [3, 10];
|
|
637
|
-
case "ThrottlingException": return [3, 12];
|
|
638
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException": return [3, 12];
|
|
639
|
-
case "ValidationException": return [3, 14];
|
|
640
|
-
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException": return [3, 14];
|
|
641
|
-
}
|
|
642
|
-
return [3, 16];
|
|
643
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
644
|
-
case 3: throw _d.sent();
|
|
645
|
-
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
646
|
-
case 5: throw _d.sent();
|
|
647
|
-
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
648
|
-
case 7: throw _d.sent();
|
|
649
|
-
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
650
|
-
case 9: throw _d.sent();
|
|
651
|
-
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
652
|
-
case 11: throw _d.sent();
|
|
653
|
-
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
654
|
-
case 13: throw _d.sent();
|
|
655
|
-
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
656
|
-
case 15: throw _d.sent();
|
|
657
|
-
case 16:
|
|
658
|
-
parsedBody = parsedOutput.body;
|
|
659
|
-
throwDefaultError({
|
|
660
|
-
output: output,
|
|
661
|
-
parsedBody: parsedBody,
|
|
662
|
-
exceptionCtor: __BaseException,
|
|
663
|
-
errorCode: errorCode,
|
|
664
|
-
});
|
|
665
|
-
_d.label = 17;
|
|
666
|
-
case 17: return [2];
|
|
667
|
-
}
|
|
238
|
+
return new __HttpRequest({
|
|
239
|
+
protocol,
|
|
240
|
+
hostname,
|
|
241
|
+
port,
|
|
242
|
+
method: "POST",
|
|
243
|
+
headers,
|
|
244
|
+
path: resolvedPath,
|
|
245
|
+
body,
|
|
668
246
|
});
|
|
669
|
-
}
|
|
670
|
-
export
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
return [2, deserializeAws_restJson1ListProductSubscriptionsCommandError(output, context)];
|
|
677
|
-
}
|
|
678
|
-
contents = map({
|
|
679
|
-
$metadata: deserializeMetadata(output),
|
|
680
|
-
});
|
|
681
|
-
_a = __expectNonNull;
|
|
682
|
-
_b = __expectObject;
|
|
683
|
-
return [4, parseBody(output.body, context)];
|
|
684
|
-
case 1:
|
|
685
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
686
|
-
if (data.NextToken != null) {
|
|
687
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
688
|
-
}
|
|
689
|
-
if (data.ProductUserSummaries != null) {
|
|
690
|
-
contents.ProductUserSummaries = deserializeAws_restJson1ProductUserSummaryList(data.ProductUserSummaries, context);
|
|
691
|
-
}
|
|
692
|
-
return [2, contents];
|
|
693
|
-
}
|
|
247
|
+
};
|
|
248
|
+
export const deserializeAws_restJson1AssociateUserCommand = async (output, context) => {
|
|
249
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
250
|
+
return deserializeAws_restJson1AssociateUserCommandError(output, context);
|
|
251
|
+
}
|
|
252
|
+
const contents = map({
|
|
253
|
+
$metadata: deserializeMetadata(output),
|
|
694
254
|
});
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
return
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
exceptionCtor: __BaseException,
|
|
746
|
-
errorCode: errorCode,
|
|
747
|
-
});
|
|
748
|
-
_d.label = 17;
|
|
749
|
-
case 17: return [2];
|
|
750
|
-
}
|
|
255
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
256
|
+
if (data.InstanceUserSummary != null) {
|
|
257
|
+
contents.InstanceUserSummary = deserializeAws_restJson1InstanceUserSummary(data.InstanceUserSummary, context);
|
|
258
|
+
}
|
|
259
|
+
return contents;
|
|
260
|
+
};
|
|
261
|
+
const deserializeAws_restJson1AssociateUserCommandError = async (output, context) => {
|
|
262
|
+
const parsedOutput = {
|
|
263
|
+
...output,
|
|
264
|
+
body: await parseErrorBody(output.body, context),
|
|
265
|
+
};
|
|
266
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
267
|
+
switch (errorCode) {
|
|
268
|
+
case "AccessDeniedException":
|
|
269
|
+
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
270
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
271
|
+
case "ConflictException":
|
|
272
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
273
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
274
|
+
case "InternalServerException":
|
|
275
|
+
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
276
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
277
|
+
case "ResourceNotFoundException":
|
|
278
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
279
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
280
|
+
case "ServiceQuotaExceededException":
|
|
281
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
282
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
283
|
+
case "ThrottlingException":
|
|
284
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
285
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
286
|
+
case "ValidationException":
|
|
287
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
288
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
289
|
+
default:
|
|
290
|
+
const parsedBody = parsedOutput.body;
|
|
291
|
+
throwDefaultError({
|
|
292
|
+
output,
|
|
293
|
+
parsedBody,
|
|
294
|
+
exceptionCtor: __BaseException,
|
|
295
|
+
errorCode,
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
export const deserializeAws_restJson1DeregisterIdentityProviderCommand = async (output, context) => {
|
|
300
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
301
|
+
return deserializeAws_restJson1DeregisterIdentityProviderCommandError(output, context);
|
|
302
|
+
}
|
|
303
|
+
const contents = map({
|
|
304
|
+
$metadata: deserializeMetadata(output),
|
|
751
305
|
});
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
306
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
307
|
+
if (data.IdentityProviderSummary != null) {
|
|
308
|
+
contents.IdentityProviderSummary = deserializeAws_restJson1IdentityProviderSummary(data.IdentityProviderSummary, context);
|
|
309
|
+
}
|
|
310
|
+
return contents;
|
|
311
|
+
};
|
|
312
|
+
const deserializeAws_restJson1DeregisterIdentityProviderCommandError = async (output, context) => {
|
|
313
|
+
const parsedOutput = {
|
|
314
|
+
...output,
|
|
315
|
+
body: await parseErrorBody(output.body, context),
|
|
316
|
+
};
|
|
317
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
318
|
+
switch (errorCode) {
|
|
319
|
+
case "AccessDeniedException":
|
|
320
|
+
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
321
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
322
|
+
case "ConflictException":
|
|
323
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
324
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
325
|
+
case "InternalServerException":
|
|
326
|
+
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
327
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
328
|
+
case "ResourceNotFoundException":
|
|
329
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
330
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
331
|
+
case "ServiceQuotaExceededException":
|
|
332
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
333
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
334
|
+
case "ThrottlingException":
|
|
335
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
336
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
337
|
+
case "ValidationException":
|
|
338
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
339
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
340
|
+
default:
|
|
341
|
+
const parsedBody = parsedOutput.body;
|
|
342
|
+
throwDefaultError({
|
|
343
|
+
output,
|
|
344
|
+
parsedBody,
|
|
345
|
+
exceptionCtor: __BaseException,
|
|
346
|
+
errorCode,
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
export const deserializeAws_restJson1DisassociateUserCommand = async (output, context) => {
|
|
351
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
352
|
+
return deserializeAws_restJson1DisassociateUserCommandError(output, context);
|
|
353
|
+
}
|
|
354
|
+
const contents = map({
|
|
355
|
+
$metadata: deserializeMetadata(output),
|
|
777
356
|
});
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
return
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
exceptionCtor: __BaseException,
|
|
829
|
-
errorCode: errorCode,
|
|
830
|
-
});
|
|
831
|
-
_d.label = 17;
|
|
832
|
-
case 17: return [2];
|
|
833
|
-
}
|
|
357
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
358
|
+
if (data.InstanceUserSummary != null) {
|
|
359
|
+
contents.InstanceUserSummary = deserializeAws_restJson1InstanceUserSummary(data.InstanceUserSummary, context);
|
|
360
|
+
}
|
|
361
|
+
return contents;
|
|
362
|
+
};
|
|
363
|
+
const deserializeAws_restJson1DisassociateUserCommandError = async (output, context) => {
|
|
364
|
+
const parsedOutput = {
|
|
365
|
+
...output,
|
|
366
|
+
body: await parseErrorBody(output.body, context),
|
|
367
|
+
};
|
|
368
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
369
|
+
switch (errorCode) {
|
|
370
|
+
case "AccessDeniedException":
|
|
371
|
+
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
372
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
373
|
+
case "ConflictException":
|
|
374
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
375
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
376
|
+
case "InternalServerException":
|
|
377
|
+
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
378
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
379
|
+
case "ResourceNotFoundException":
|
|
380
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
381
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
382
|
+
case "ServiceQuotaExceededException":
|
|
383
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
384
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
385
|
+
case "ThrottlingException":
|
|
386
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
387
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
388
|
+
case "ValidationException":
|
|
389
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
390
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
391
|
+
default:
|
|
392
|
+
const parsedBody = parsedOutput.body;
|
|
393
|
+
throwDefaultError({
|
|
394
|
+
output,
|
|
395
|
+
parsedBody,
|
|
396
|
+
exceptionCtor: __BaseException,
|
|
397
|
+
errorCode,
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
export const deserializeAws_restJson1ListIdentityProvidersCommand = async (output, context) => {
|
|
402
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
403
|
+
return deserializeAws_restJson1ListIdentityProvidersCommandError(output, context);
|
|
404
|
+
}
|
|
405
|
+
const contents = map({
|
|
406
|
+
$metadata: deserializeMetadata(output),
|
|
834
407
|
});
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
408
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
409
|
+
if (data.IdentityProviderSummaries != null) {
|
|
410
|
+
contents.IdentityProviderSummaries = deserializeAws_restJson1IdentityProviderSummaryList(data.IdentityProviderSummaries, context);
|
|
411
|
+
}
|
|
412
|
+
if (data.NextToken != null) {
|
|
413
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
414
|
+
}
|
|
415
|
+
return contents;
|
|
416
|
+
};
|
|
417
|
+
const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output, context) => {
|
|
418
|
+
const parsedOutput = {
|
|
419
|
+
...output,
|
|
420
|
+
body: await parseErrorBody(output.body, context),
|
|
421
|
+
};
|
|
422
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
423
|
+
switch (errorCode) {
|
|
424
|
+
case "AccessDeniedException":
|
|
425
|
+
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
426
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
427
|
+
case "ConflictException":
|
|
428
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
429
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
430
|
+
case "InternalServerException":
|
|
431
|
+
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
432
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
433
|
+
case "ResourceNotFoundException":
|
|
434
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
435
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
436
|
+
case "ServiceQuotaExceededException":
|
|
437
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
438
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
439
|
+
case "ThrottlingException":
|
|
440
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
441
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
442
|
+
case "ValidationException":
|
|
443
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
444
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
445
|
+
default:
|
|
446
|
+
const parsedBody = parsedOutput.body;
|
|
447
|
+
throwDefaultError({
|
|
448
|
+
output,
|
|
449
|
+
parsedBody,
|
|
450
|
+
exceptionCtor: __BaseException,
|
|
451
|
+
errorCode,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
export const deserializeAws_restJson1ListInstancesCommand = async (output, context) => {
|
|
456
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
457
|
+
return deserializeAws_restJson1ListInstancesCommandError(output, context);
|
|
458
|
+
}
|
|
459
|
+
const contents = map({
|
|
460
|
+
$metadata: deserializeMetadata(output),
|
|
857
461
|
});
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
_d.label = 17;
|
|
912
|
-
case 17: return [2];
|
|
913
|
-
}
|
|
462
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
463
|
+
if (data.InstanceSummaries != null) {
|
|
464
|
+
contents.InstanceSummaries = deserializeAws_restJson1InstanceSummaryList(data.InstanceSummaries, context);
|
|
465
|
+
}
|
|
466
|
+
if (data.NextToken != null) {
|
|
467
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
468
|
+
}
|
|
469
|
+
return contents;
|
|
470
|
+
};
|
|
471
|
+
const deserializeAws_restJson1ListInstancesCommandError = async (output, context) => {
|
|
472
|
+
const parsedOutput = {
|
|
473
|
+
...output,
|
|
474
|
+
body: await parseErrorBody(output.body, context),
|
|
475
|
+
};
|
|
476
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
477
|
+
switch (errorCode) {
|
|
478
|
+
case "AccessDeniedException":
|
|
479
|
+
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
480
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
481
|
+
case "ConflictException":
|
|
482
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
483
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
484
|
+
case "InternalServerException":
|
|
485
|
+
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
486
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
487
|
+
case "ResourceNotFoundException":
|
|
488
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
489
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
490
|
+
case "ServiceQuotaExceededException":
|
|
491
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
492
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
493
|
+
case "ThrottlingException":
|
|
494
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
495
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
496
|
+
case "ValidationException":
|
|
497
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
498
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
499
|
+
default:
|
|
500
|
+
const parsedBody = parsedOutput.body;
|
|
501
|
+
throwDefaultError({
|
|
502
|
+
output,
|
|
503
|
+
parsedBody,
|
|
504
|
+
exceptionCtor: __BaseException,
|
|
505
|
+
errorCode,
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
export const deserializeAws_restJson1ListProductSubscriptionsCommand = async (output, context) => {
|
|
510
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
511
|
+
return deserializeAws_restJson1ListProductSubscriptionsCommandError(output, context);
|
|
512
|
+
}
|
|
513
|
+
const contents = map({
|
|
514
|
+
$metadata: deserializeMetadata(output),
|
|
914
515
|
});
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
516
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
517
|
+
if (data.NextToken != null) {
|
|
518
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
519
|
+
}
|
|
520
|
+
if (data.ProductUserSummaries != null) {
|
|
521
|
+
contents.ProductUserSummaries = deserializeAws_restJson1ProductUserSummaryList(data.ProductUserSummaries, context);
|
|
522
|
+
}
|
|
523
|
+
return contents;
|
|
524
|
+
};
|
|
525
|
+
const deserializeAws_restJson1ListProductSubscriptionsCommandError = async (output, context) => {
|
|
526
|
+
const parsedOutput = {
|
|
527
|
+
...output,
|
|
528
|
+
body: await parseErrorBody(output.body, context),
|
|
529
|
+
};
|
|
530
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
531
|
+
switch (errorCode) {
|
|
532
|
+
case "AccessDeniedException":
|
|
533
|
+
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
534
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
535
|
+
case "ConflictException":
|
|
536
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
537
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
538
|
+
case "InternalServerException":
|
|
539
|
+
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
540
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
541
|
+
case "ResourceNotFoundException":
|
|
542
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
543
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
544
|
+
case "ServiceQuotaExceededException":
|
|
545
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
546
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
547
|
+
case "ThrottlingException":
|
|
548
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
549
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
550
|
+
case "ValidationException":
|
|
551
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
552
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
553
|
+
default:
|
|
554
|
+
const parsedBody = parsedOutput.body;
|
|
555
|
+
throwDefaultError({
|
|
556
|
+
output,
|
|
557
|
+
parsedBody,
|
|
558
|
+
exceptionCtor: __BaseException,
|
|
559
|
+
errorCode,
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
export const deserializeAws_restJson1ListUserAssociationsCommand = async (output, context) => {
|
|
564
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
565
|
+
return deserializeAws_restJson1ListUserAssociationsCommandError(output, context);
|
|
566
|
+
}
|
|
567
|
+
const contents = map({
|
|
568
|
+
$metadata: deserializeMetadata(output),
|
|
937
569
|
});
|
|
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
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
_d.label = 17;
|
|
992
|
-
case 17: return [2];
|
|
993
|
-
}
|
|
570
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
571
|
+
if (data.InstanceUserSummaries != null) {
|
|
572
|
+
contents.InstanceUserSummaries = deserializeAws_restJson1InstanceUserSummaryList(data.InstanceUserSummaries, context);
|
|
573
|
+
}
|
|
574
|
+
if (data.NextToken != null) {
|
|
575
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
576
|
+
}
|
|
577
|
+
return contents;
|
|
578
|
+
};
|
|
579
|
+
const deserializeAws_restJson1ListUserAssociationsCommandError = async (output, context) => {
|
|
580
|
+
const parsedOutput = {
|
|
581
|
+
...output,
|
|
582
|
+
body: await parseErrorBody(output.body, context),
|
|
583
|
+
};
|
|
584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
|
+
switch (errorCode) {
|
|
586
|
+
case "AccessDeniedException":
|
|
587
|
+
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
588
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
589
|
+
case "ConflictException":
|
|
590
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
591
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
592
|
+
case "InternalServerException":
|
|
593
|
+
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
594
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
595
|
+
case "ResourceNotFoundException":
|
|
596
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
597
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
598
|
+
case "ServiceQuotaExceededException":
|
|
599
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
600
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
601
|
+
case "ThrottlingException":
|
|
602
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
603
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
604
|
+
case "ValidationException":
|
|
605
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
606
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
607
|
+
default:
|
|
608
|
+
const parsedBody = parsedOutput.body;
|
|
609
|
+
throwDefaultError({
|
|
610
|
+
output,
|
|
611
|
+
parsedBody,
|
|
612
|
+
exceptionCtor: __BaseException,
|
|
613
|
+
errorCode,
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
export const deserializeAws_restJson1RegisterIdentityProviderCommand = async (output, context) => {
|
|
618
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
619
|
+
return deserializeAws_restJson1RegisterIdentityProviderCommandError(output, context);
|
|
620
|
+
}
|
|
621
|
+
const contents = map({
|
|
622
|
+
$metadata: deserializeMetadata(output),
|
|
994
623
|
});
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
624
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
625
|
+
if (data.IdentityProviderSummary != null) {
|
|
626
|
+
contents.IdentityProviderSummary = deserializeAws_restJson1IdentityProviderSummary(data.IdentityProviderSummary, context);
|
|
627
|
+
}
|
|
628
|
+
return contents;
|
|
629
|
+
};
|
|
630
|
+
const deserializeAws_restJson1RegisterIdentityProviderCommandError = async (output, context) => {
|
|
631
|
+
const parsedOutput = {
|
|
632
|
+
...output,
|
|
633
|
+
body: await parseErrorBody(output.body, context),
|
|
634
|
+
};
|
|
635
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
|
+
switch (errorCode) {
|
|
637
|
+
case "AccessDeniedException":
|
|
638
|
+
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
639
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
640
|
+
case "ConflictException":
|
|
641
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
642
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
643
|
+
case "InternalServerException":
|
|
644
|
+
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
645
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
646
|
+
case "ResourceNotFoundException":
|
|
647
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
648
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
649
|
+
case "ServiceQuotaExceededException":
|
|
650
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
651
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
652
|
+
case "ThrottlingException":
|
|
653
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
654
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
655
|
+
case "ValidationException":
|
|
656
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
657
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
658
|
+
default:
|
|
659
|
+
const parsedBody = parsedOutput.body;
|
|
660
|
+
throwDefaultError({
|
|
661
|
+
output,
|
|
662
|
+
parsedBody,
|
|
663
|
+
exceptionCtor: __BaseException,
|
|
664
|
+
errorCode,
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
export const deserializeAws_restJson1StartProductSubscriptionCommand = async (output, context) => {
|
|
669
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
670
|
+
return deserializeAws_restJson1StartProductSubscriptionCommandError(output, context);
|
|
671
|
+
}
|
|
672
|
+
const contents = map({
|
|
673
|
+
$metadata: deserializeMetadata(output),
|
|
1017
674
|
});
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
return
|
|
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
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
exceptionCtor: __BaseException,
|
|
1069
|
-
errorCode: errorCode,
|
|
1070
|
-
});
|
|
1071
|
-
_d.label = 17;
|
|
1072
|
-
case 17: return [2];
|
|
1073
|
-
}
|
|
675
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
676
|
+
if (data.ProductUserSummary != null) {
|
|
677
|
+
contents.ProductUserSummary = deserializeAws_restJson1ProductUserSummary(data.ProductUserSummary, context);
|
|
678
|
+
}
|
|
679
|
+
return contents;
|
|
680
|
+
};
|
|
681
|
+
const deserializeAws_restJson1StartProductSubscriptionCommandError = async (output, context) => {
|
|
682
|
+
const parsedOutput = {
|
|
683
|
+
...output,
|
|
684
|
+
body: await parseErrorBody(output.body, context),
|
|
685
|
+
};
|
|
686
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
|
+
switch (errorCode) {
|
|
688
|
+
case "AccessDeniedException":
|
|
689
|
+
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
690
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
691
|
+
case "ConflictException":
|
|
692
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
693
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
694
|
+
case "InternalServerException":
|
|
695
|
+
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
696
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
697
|
+
case "ResourceNotFoundException":
|
|
698
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
699
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
700
|
+
case "ServiceQuotaExceededException":
|
|
701
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
702
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
703
|
+
case "ThrottlingException":
|
|
704
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
705
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
706
|
+
case "ValidationException":
|
|
707
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
708
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
709
|
+
default:
|
|
710
|
+
const parsedBody = parsedOutput.body;
|
|
711
|
+
throwDefaultError({
|
|
712
|
+
output,
|
|
713
|
+
parsedBody,
|
|
714
|
+
exceptionCtor: __BaseException,
|
|
715
|
+
errorCode,
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
export const deserializeAws_restJson1StopProductSubscriptionCommand = async (output, context) => {
|
|
720
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
721
|
+
return deserializeAws_restJson1StopProductSubscriptionCommandError(output, context);
|
|
722
|
+
}
|
|
723
|
+
const contents = map({
|
|
724
|
+
$metadata: deserializeMetadata(output),
|
|
1074
725
|
});
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
return
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
726
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
727
|
+
if (data.ProductUserSummary != null) {
|
|
728
|
+
contents.ProductUserSummary = deserializeAws_restJson1ProductUserSummary(data.ProductUserSummary, context);
|
|
729
|
+
}
|
|
730
|
+
return contents;
|
|
731
|
+
};
|
|
732
|
+
const deserializeAws_restJson1StopProductSubscriptionCommandError = async (output, context) => {
|
|
733
|
+
const parsedOutput = {
|
|
734
|
+
...output,
|
|
735
|
+
body: await parseErrorBody(output.body, context),
|
|
736
|
+
};
|
|
737
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
738
|
+
switch (errorCode) {
|
|
739
|
+
case "AccessDeniedException":
|
|
740
|
+
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
741
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
742
|
+
case "ConflictException":
|
|
743
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
744
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
745
|
+
case "InternalServerException":
|
|
746
|
+
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
747
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
748
|
+
case "ResourceNotFoundException":
|
|
749
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
750
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
751
|
+
case "ServiceQuotaExceededException":
|
|
752
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
753
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
754
|
+
case "ThrottlingException":
|
|
755
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
756
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
757
|
+
case "ValidationException":
|
|
758
|
+
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
759
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
760
|
+
default:
|
|
761
|
+
const parsedBody = parsedOutput.body;
|
|
762
|
+
throwDefaultError({
|
|
763
|
+
output,
|
|
764
|
+
parsedBody,
|
|
765
|
+
exceptionCtor: __BaseException,
|
|
766
|
+
errorCode,
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
};
|
|
770
|
+
const map = __map;
|
|
771
|
+
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
772
|
+
const contents = map({});
|
|
773
|
+
const data = parsedOutput.body;
|
|
774
|
+
if (data.message != null) {
|
|
775
|
+
contents.message = __expectString(data.message);
|
|
776
|
+
}
|
|
777
|
+
const exception = new AccessDeniedException({
|
|
778
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
779
|
+
...contents,
|
|
1087
780
|
});
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
781
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
782
|
+
};
|
|
783
|
+
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
784
|
+
const contents = map({});
|
|
785
|
+
const data = parsedOutput.body;
|
|
786
|
+
if (data.message != null) {
|
|
787
|
+
contents.message = __expectString(data.message);
|
|
788
|
+
}
|
|
789
|
+
const exception = new ConflictException({
|
|
790
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
791
|
+
...contents,
|
|
1099
792
|
});
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
793
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
794
|
+
};
|
|
795
|
+
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
796
|
+
const contents = map({});
|
|
797
|
+
const data = parsedOutput.body;
|
|
798
|
+
if (data.message != null) {
|
|
799
|
+
contents.message = __expectString(data.message);
|
|
800
|
+
}
|
|
801
|
+
const exception = new InternalServerException({
|
|
802
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
803
|
+
...contents,
|
|
1111
804
|
});
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
805
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
806
|
+
};
|
|
807
|
+
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
808
|
+
const contents = map({});
|
|
809
|
+
const data = parsedOutput.body;
|
|
810
|
+
if (data.message != null) {
|
|
811
|
+
contents.message = __expectString(data.message);
|
|
812
|
+
}
|
|
813
|
+
const exception = new ResourceNotFoundException({
|
|
814
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
815
|
+
...contents,
|
|
1123
816
|
});
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
817
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
818
|
+
};
|
|
819
|
+
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
820
|
+
const contents = map({});
|
|
821
|
+
const data = parsedOutput.body;
|
|
822
|
+
if (data.message != null) {
|
|
823
|
+
contents.message = __expectString(data.message);
|
|
824
|
+
}
|
|
825
|
+
const exception = new ServiceQuotaExceededException({
|
|
826
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
827
|
+
...contents,
|
|
1135
828
|
});
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
829
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
830
|
+
};
|
|
831
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
832
|
+
const contents = map({});
|
|
833
|
+
const data = parsedOutput.body;
|
|
834
|
+
if (data.message != null) {
|
|
835
|
+
contents.message = __expectString(data.message);
|
|
836
|
+
}
|
|
837
|
+
const exception = new ThrottlingException({
|
|
838
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
839
|
+
...contents,
|
|
1147
840
|
});
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
841
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
842
|
+
};
|
|
843
|
+
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
844
|
+
const contents = map({});
|
|
845
|
+
const data = parsedOutput.body;
|
|
846
|
+
if (data.message != null) {
|
|
847
|
+
contents.message = __expectString(data.message);
|
|
848
|
+
}
|
|
849
|
+
const exception = new ValidationException({
|
|
850
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
851
|
+
...contents,
|
|
1159
852
|
});
|
|
1160
|
-
|
|
1161
|
-
var serializeAws_restJson1ActiveDirectoryIdentityProvider = function (input, context) {
|
|
1162
|
-
return __assign({}, (input.DirectoryId != null && { DirectoryId: input.DirectoryId }));
|
|
853
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1163
854
|
};
|
|
1164
|
-
|
|
1165
|
-
return
|
|
855
|
+
const serializeAws_restJson1ActiveDirectoryIdentityProvider = (input, context) => {
|
|
856
|
+
return {
|
|
857
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
const serializeAws_restJson1Filter = (input, context) => {
|
|
861
|
+
return {
|
|
862
|
+
...(input.Attribute != null && { Attribute: input.Attribute }),
|
|
863
|
+
...(input.Operation != null && { Operation: input.Operation }),
|
|
864
|
+
...(input.Value != null && { Value: input.Value }),
|
|
865
|
+
};
|
|
1166
866
|
};
|
|
1167
|
-
|
|
867
|
+
const serializeAws_restJson1FilterList = (input, context) => {
|
|
1168
868
|
return input
|
|
1169
|
-
.filter(
|
|
1170
|
-
.map(
|
|
869
|
+
.filter((e) => e != null)
|
|
870
|
+
.map((entry) => {
|
|
1171
871
|
return serializeAws_restJson1Filter(entry, context);
|
|
1172
872
|
});
|
|
1173
873
|
};
|
|
1174
|
-
|
|
874
|
+
const serializeAws_restJson1IdentityProvider = (input, context) => {
|
|
1175
875
|
return IdentityProvider.visit(input, {
|
|
1176
|
-
ActiveDirectoryIdentityProvider:
|
|
876
|
+
ActiveDirectoryIdentityProvider: (value) => ({
|
|
1177
877
|
ActiveDirectoryIdentityProvider: serializeAws_restJson1ActiveDirectoryIdentityProvider(value, context),
|
|
1178
|
-
})
|
|
1179
|
-
_:
|
|
878
|
+
}),
|
|
879
|
+
_: (name, value) => ({ name: value }),
|
|
1180
880
|
});
|
|
1181
881
|
};
|
|
1182
|
-
|
|
882
|
+
const deserializeAws_restJson1ActiveDirectoryIdentityProvider = (output, context) => {
|
|
1183
883
|
return {
|
|
1184
884
|
DirectoryId: __expectString(output.DirectoryId),
|
|
1185
885
|
};
|
|
1186
886
|
};
|
|
1187
|
-
|
|
887
|
+
const deserializeAws_restJson1IdentityProvider = (output, context) => {
|
|
1188
888
|
if (output.ActiveDirectoryIdentityProvider != null) {
|
|
1189
889
|
return {
|
|
1190
890
|
ActiveDirectoryIdentityProvider: deserializeAws_restJson1ActiveDirectoryIdentityProvider(output.ActiveDirectoryIdentityProvider, context),
|
|
@@ -1192,7 +892,7 @@ var deserializeAws_restJson1IdentityProvider = function (output, context) {
|
|
|
1192
892
|
}
|
|
1193
893
|
return { $unknown: Object.entries(output)[0] };
|
|
1194
894
|
};
|
|
1195
|
-
|
|
895
|
+
const deserializeAws_restJson1IdentityProviderSummary = (output, context) => {
|
|
1196
896
|
return {
|
|
1197
897
|
FailureMessage: __expectString(output.FailureMessage),
|
|
1198
898
|
IdentityProvider: output.IdentityProvider != null
|
|
@@ -1202,10 +902,10 @@ var deserializeAws_restJson1IdentityProviderSummary = function (output, context)
|
|
|
1202
902
|
Status: __expectString(output.Status),
|
|
1203
903
|
};
|
|
1204
904
|
};
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
.filter(
|
|
1208
|
-
.map(
|
|
905
|
+
const deserializeAws_restJson1IdentityProviderSummaryList = (output, context) => {
|
|
906
|
+
const retVal = (output || [])
|
|
907
|
+
.filter((e) => e != null)
|
|
908
|
+
.map((entry) => {
|
|
1209
909
|
if (entry === null) {
|
|
1210
910
|
return null;
|
|
1211
911
|
}
|
|
@@ -1213,7 +913,7 @@ var deserializeAws_restJson1IdentityProviderSummaryList = function (output, cont
|
|
|
1213
913
|
});
|
|
1214
914
|
return retVal;
|
|
1215
915
|
};
|
|
1216
|
-
|
|
916
|
+
const deserializeAws_restJson1InstanceSummary = (output, context) => {
|
|
1217
917
|
return {
|
|
1218
918
|
InstanceId: __expectString(output.InstanceId),
|
|
1219
919
|
LastStatusCheckDate: __expectString(output.LastStatusCheckDate),
|
|
@@ -1222,10 +922,10 @@ var deserializeAws_restJson1InstanceSummary = function (output, context) {
|
|
|
1222
922
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1223
923
|
};
|
|
1224
924
|
};
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
.filter(
|
|
1228
|
-
.map(
|
|
925
|
+
const deserializeAws_restJson1InstanceSummaryList = (output, context) => {
|
|
926
|
+
const retVal = (output || [])
|
|
927
|
+
.filter((e) => e != null)
|
|
928
|
+
.map((entry) => {
|
|
1229
929
|
if (entry === null) {
|
|
1230
930
|
return null;
|
|
1231
931
|
}
|
|
@@ -1233,7 +933,7 @@ var deserializeAws_restJson1InstanceSummaryList = function (output, context) {
|
|
|
1233
933
|
});
|
|
1234
934
|
return retVal;
|
|
1235
935
|
};
|
|
1236
|
-
|
|
936
|
+
const deserializeAws_restJson1InstanceUserSummary = (output, context) => {
|
|
1237
937
|
return {
|
|
1238
938
|
AssociationDate: __expectString(output.AssociationDate),
|
|
1239
939
|
DisassociationDate: __expectString(output.DisassociationDate),
|
|
@@ -1247,10 +947,10 @@ var deserializeAws_restJson1InstanceUserSummary = function (output, context) {
|
|
|
1247
947
|
Username: __expectString(output.Username),
|
|
1248
948
|
};
|
|
1249
949
|
};
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
.filter(
|
|
1253
|
-
.map(
|
|
950
|
+
const deserializeAws_restJson1InstanceUserSummaryList = (output, context) => {
|
|
951
|
+
const retVal = (output || [])
|
|
952
|
+
.filter((e) => e != null)
|
|
953
|
+
.map((entry) => {
|
|
1254
954
|
if (entry === null) {
|
|
1255
955
|
return null;
|
|
1256
956
|
}
|
|
@@ -1258,7 +958,7 @@ var deserializeAws_restJson1InstanceUserSummaryList = function (output, context)
|
|
|
1258
958
|
});
|
|
1259
959
|
return retVal;
|
|
1260
960
|
};
|
|
1261
|
-
|
|
961
|
+
const deserializeAws_restJson1ProductUserSummary = (output, context) => {
|
|
1262
962
|
return {
|
|
1263
963
|
Domain: __expectString(output.Domain),
|
|
1264
964
|
IdentityProvider: output.IdentityProvider != null
|
|
@@ -1272,10 +972,10 @@ var deserializeAws_restJson1ProductUserSummary = function (output, context) {
|
|
|
1272
972
|
Username: __expectString(output.Username),
|
|
1273
973
|
};
|
|
1274
974
|
};
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
.filter(
|
|
1278
|
-
.map(
|
|
975
|
+
const deserializeAws_restJson1ProductUserSummaryList = (output, context) => {
|
|
976
|
+
const retVal = (output || [])
|
|
977
|
+
.filter((e) => e != null)
|
|
978
|
+
.map((entry) => {
|
|
1279
979
|
if (entry === null) {
|
|
1280
980
|
return null;
|
|
1281
981
|
}
|
|
@@ -1283,10 +983,10 @@ var deserializeAws_restJson1ProductUserSummaryList = function (output, context)
|
|
|
1283
983
|
});
|
|
1284
984
|
return retVal;
|
|
1285
985
|
};
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
.filter(
|
|
1289
|
-
.map(
|
|
986
|
+
const deserializeAws_restJson1StringList = (output, context) => {
|
|
987
|
+
const retVal = (output || [])
|
|
988
|
+
.filter((e) => e != null)
|
|
989
|
+
.map((entry) => {
|
|
1290
990
|
if (entry === null) {
|
|
1291
991
|
return null;
|
|
1292
992
|
}
|
|
@@ -1294,57 +994,39 @@ var deserializeAws_restJson1StringList = function (output, context) {
|
|
|
1294
994
|
});
|
|
1295
995
|
return retVal;
|
|
1296
996
|
};
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
});
|
|
1305
|
-
};
|
|
1306
|
-
var collectBody = function (streamBody, context) {
|
|
1307
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
997
|
+
const deserializeMetadata = (output) => ({
|
|
998
|
+
httpStatusCode: output.statusCode,
|
|
999
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1000
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1001
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1002
|
+
});
|
|
1003
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
1308
1004
|
if (streamBody instanceof Uint8Array) {
|
|
1309
1005
|
return Promise.resolve(streamBody);
|
|
1310
1006
|
}
|
|
1311
1007
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1312
1008
|
};
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
});
|
|
1009
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1010
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1011
|
+
value !== null &&
|
|
1012
|
+
value !== "" &&
|
|
1013
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1014
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1015
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1016
|
+
if (encoded.length) {
|
|
1017
|
+
return JSON.parse(encoded);
|
|
1018
|
+
}
|
|
1019
|
+
return {};
|
|
1020
|
+
});
|
|
1021
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1022
|
+
const value = await parseBody(errorBody, context);
|
|
1023
|
+
value.message = value.message ?? value.Message;
|
|
1024
|
+
return value;
|
|
1330
1025
|
};
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
switch (_b.label) {
|
|
1336
|
-
case 0: return [4, parseBody(errorBody, context)];
|
|
1337
|
-
case 1:
|
|
1338
|
-
value = _b.sent();
|
|
1339
|
-
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1340
|
-
return [2, value];
|
|
1341
|
-
}
|
|
1342
|
-
});
|
|
1343
|
-
}); };
|
|
1344
|
-
var loadRestJsonErrorCode = function (output, data) {
|
|
1345
|
-
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1346
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
1347
|
-
var cleanValue = rawValue;
|
|
1026
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1027
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1028
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1029
|
+
let cleanValue = rawValue;
|
|
1348
1030
|
if (typeof cleanValue === "number") {
|
|
1349
1031
|
cleanValue = cleanValue.toString();
|
|
1350
1032
|
}
|
|
@@ -1359,7 +1041,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1359
1041
|
}
|
|
1360
1042
|
return cleanValue;
|
|
1361
1043
|
};
|
|
1362
|
-
|
|
1044
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1363
1045
|
if (headerKey !== undefined) {
|
|
1364
1046
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1365
1047
|
}
|