@aws-sdk/client-license-manager-user-subscriptions 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/AssociateUserCommand.js +2 -2
- package/dist-cjs/commands/DeregisterIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/DisassociateUserCommand.js +2 -2
- package/dist-cjs/commands/ListIdentityProvidersCommand.js +2 -2
- package/dist-cjs/commands/ListInstancesCommand.js +2 -2
- package/dist-cjs/commands/ListProductSubscriptionsCommand.js +2 -2
- package/dist-cjs/commands/ListUserAssociationsCommand.js +2 -2
- package/dist-cjs/commands/RegisterIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/StartProductSubscriptionCommand.js +2 -2
- package/dist-cjs/commands/StopProductSubscriptionCommand.js +2 -2
- package/dist-cjs/commands/UpdateIdentityProviderSettingsCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +209 -229
- package/dist-es/commands/AssociateUserCommand.js +3 -3
- package/dist-es/commands/DeregisterIdentityProviderCommand.js +3 -3
- package/dist-es/commands/DisassociateUserCommand.js +3 -3
- package/dist-es/commands/ListIdentityProvidersCommand.js +3 -3
- package/dist-es/commands/ListInstancesCommand.js +3 -3
- package/dist-es/commands/ListProductSubscriptionsCommand.js +3 -3
- package/dist-es/commands/ListUserAssociationsCommand.js +3 -3
- package/dist-es/commands/RegisterIdentityProviderCommand.js +3 -3
- package/dist-es/commands/StartProductSubscriptionCommand.js +3 -3
- package/dist-es/commands/StopProductSubscriptionCommand.js +3 -3
- package/dist-es/commands/UpdateIdentityProviderSettingsCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +186 -206
- package/dist-types/protocols/Aws_restJson1.d.ts +88 -22
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +22 -22
- package/package.json +29 -29
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateIdentityProviderSettingsCommand = exports.de_StopProductSubscriptionCommand = exports.de_StartProductSubscriptionCommand = exports.de_RegisterIdentityProviderCommand = exports.de_ListUserAssociationsCommand = exports.de_ListProductSubscriptionsCommand = exports.de_ListInstancesCommand = exports.de_ListIdentityProvidersCommand = exports.de_DisassociateUserCommand = exports.de_DeregisterIdentityProviderCommand = exports.de_AssociateUserCommand = exports.se_UpdateIdentityProviderSettingsCommand = exports.se_StopProductSubscriptionCommand = exports.se_StartProductSubscriptionCommand = exports.se_RegisterIdentityProviderCommand = exports.se_ListUserAssociationsCommand = exports.se_ListProductSubscriptionsCommand = exports.se_ListInstancesCommand = exports.se_ListIdentityProvidersCommand = exports.se_DisassociateUserCommand = exports.se_DeregisterIdentityProviderCommand = exports.se_AssociateUserCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const LicenseManagerUserSubscriptionsServiceException_1 = require("../models/LicenseManagerUserSubscriptionsServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_AssociateUserCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -14,9 +14,7 @@ const serializeAws_restJson1AssociateUserCommand = async (input, context) => {
|
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
16
|
...(input.Domain != null && { Domain: input.Domain }),
|
|
17
|
-
...(input.IdentityProvider != null && {
|
|
18
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
19
|
-
}),
|
|
17
|
+
...(input.IdentityProvider != null && { IdentityProvider: se_IdentityProvider(input.IdentityProvider, context) }),
|
|
20
18
|
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
21
19
|
...(input.Username != null && { Username: input.Username }),
|
|
22
20
|
});
|
|
@@ -30,8 +28,8 @@ const serializeAws_restJson1AssociateUserCommand = async (input, context) => {
|
|
|
30
28
|
body,
|
|
31
29
|
});
|
|
32
30
|
};
|
|
33
|
-
exports.
|
|
34
|
-
const
|
|
31
|
+
exports.se_AssociateUserCommand = se_AssociateUserCommand;
|
|
32
|
+
const se_DeregisterIdentityProviderCommand = async (input, context) => {
|
|
35
33
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
36
34
|
const headers = {
|
|
37
35
|
"content-type": "application/json",
|
|
@@ -40,9 +38,7 @@ const serializeAws_restJson1DeregisterIdentityProviderCommand = async (input, co
|
|
|
40
38
|
"/identity-provider/DeregisterIdentityProvider";
|
|
41
39
|
let body;
|
|
42
40
|
body = JSON.stringify({
|
|
43
|
-
...(input.IdentityProvider != null && {
|
|
44
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
45
|
-
}),
|
|
41
|
+
...(input.IdentityProvider != null && { IdentityProvider: se_IdentityProvider(input.IdentityProvider, context) }),
|
|
46
42
|
...(input.Product != null && { Product: input.Product }),
|
|
47
43
|
});
|
|
48
44
|
return new protocol_http_1.HttpRequest({
|
|
@@ -55,8 +51,8 @@ const serializeAws_restJson1DeregisterIdentityProviderCommand = async (input, co
|
|
|
55
51
|
body,
|
|
56
52
|
});
|
|
57
53
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
54
|
+
exports.se_DeregisterIdentityProviderCommand = se_DeregisterIdentityProviderCommand;
|
|
55
|
+
const se_DisassociateUserCommand = async (input, context) => {
|
|
60
56
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
61
57
|
const headers = {
|
|
62
58
|
"content-type": "application/json",
|
|
@@ -65,9 +61,7 @@ const serializeAws_restJson1DisassociateUserCommand = async (input, context) =>
|
|
|
65
61
|
let body;
|
|
66
62
|
body = JSON.stringify({
|
|
67
63
|
...(input.Domain != null && { Domain: input.Domain }),
|
|
68
|
-
...(input.IdentityProvider != null && {
|
|
69
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
70
|
-
}),
|
|
64
|
+
...(input.IdentityProvider != null && { IdentityProvider: se_IdentityProvider(input.IdentityProvider, context) }),
|
|
71
65
|
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
72
66
|
...(input.Username != null && { Username: input.Username }),
|
|
73
67
|
});
|
|
@@ -81,8 +75,8 @@ const serializeAws_restJson1DisassociateUserCommand = async (input, context) =>
|
|
|
81
75
|
body,
|
|
82
76
|
});
|
|
83
77
|
};
|
|
84
|
-
exports.
|
|
85
|
-
const
|
|
78
|
+
exports.se_DisassociateUserCommand = se_DisassociateUserCommand;
|
|
79
|
+
const se_ListIdentityProvidersCommand = async (input, context) => {
|
|
86
80
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
87
81
|
const headers = {
|
|
88
82
|
"content-type": "application/json",
|
|
@@ -103,8 +97,8 @@ const serializeAws_restJson1ListIdentityProvidersCommand = async (input, context
|
|
|
103
97
|
body,
|
|
104
98
|
});
|
|
105
99
|
};
|
|
106
|
-
exports.
|
|
107
|
-
const
|
|
100
|
+
exports.se_ListIdentityProvidersCommand = se_ListIdentityProvidersCommand;
|
|
101
|
+
const se_ListInstancesCommand = async (input, context) => {
|
|
108
102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
109
103
|
const headers = {
|
|
110
104
|
"content-type": "application/json",
|
|
@@ -112,7 +106,7 @@ const serializeAws_restJson1ListInstancesCommand = async (input, context) => {
|
|
|
112
106
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/ListInstances";
|
|
113
107
|
let body;
|
|
114
108
|
body = JSON.stringify({
|
|
115
|
-
...(input.Filters != null && { Filters:
|
|
109
|
+
...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
|
|
116
110
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
117
111
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
118
112
|
});
|
|
@@ -126,8 +120,8 @@ const serializeAws_restJson1ListInstancesCommand = async (input, context) => {
|
|
|
126
120
|
body,
|
|
127
121
|
});
|
|
128
122
|
};
|
|
129
|
-
exports.
|
|
130
|
-
const
|
|
123
|
+
exports.se_ListInstancesCommand = se_ListInstancesCommand;
|
|
124
|
+
const se_ListProductSubscriptionsCommand = async (input, context) => {
|
|
131
125
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
126
|
const headers = {
|
|
133
127
|
"content-type": "application/json",
|
|
@@ -135,10 +129,8 @@ const serializeAws_restJson1ListProductSubscriptionsCommand = async (input, cont
|
|
|
135
129
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListProductSubscriptions";
|
|
136
130
|
let body;
|
|
137
131
|
body = JSON.stringify({
|
|
138
|
-
...(input.Filters != null && { Filters:
|
|
139
|
-
...(input.IdentityProvider != null && {
|
|
140
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
141
|
-
}),
|
|
132
|
+
...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
|
|
133
|
+
...(input.IdentityProvider != null && { IdentityProvider: se_IdentityProvider(input.IdentityProvider, context) }),
|
|
142
134
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
143
135
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
144
136
|
...(input.Product != null && { Product: input.Product }),
|
|
@@ -153,8 +145,8 @@ const serializeAws_restJson1ListProductSubscriptionsCommand = async (input, cont
|
|
|
153
145
|
body,
|
|
154
146
|
});
|
|
155
147
|
};
|
|
156
|
-
exports.
|
|
157
|
-
const
|
|
148
|
+
exports.se_ListProductSubscriptionsCommand = se_ListProductSubscriptionsCommand;
|
|
149
|
+
const se_ListUserAssociationsCommand = async (input, context) => {
|
|
158
150
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
159
151
|
const headers = {
|
|
160
152
|
"content-type": "application/json",
|
|
@@ -162,10 +154,8 @@ const serializeAws_restJson1ListUserAssociationsCommand = async (input, context)
|
|
|
162
154
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListUserAssociations";
|
|
163
155
|
let body;
|
|
164
156
|
body = JSON.stringify({
|
|
165
|
-
...(input.Filters != null && { Filters:
|
|
166
|
-
...(input.IdentityProvider != null && {
|
|
167
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
168
|
-
}),
|
|
157
|
+
...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
|
|
158
|
+
...(input.IdentityProvider != null && { IdentityProvider: se_IdentityProvider(input.IdentityProvider, context) }),
|
|
169
159
|
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
170
160
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
171
161
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
@@ -180,8 +170,8 @@ const serializeAws_restJson1ListUserAssociationsCommand = async (input, context)
|
|
|
180
170
|
body,
|
|
181
171
|
});
|
|
182
172
|
};
|
|
183
|
-
exports.
|
|
184
|
-
const
|
|
173
|
+
exports.se_ListUserAssociationsCommand = se_ListUserAssociationsCommand;
|
|
174
|
+
const se_RegisterIdentityProviderCommand = async (input, context) => {
|
|
185
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
186
176
|
const headers = {
|
|
187
177
|
"content-type": "application/json",
|
|
@@ -190,11 +180,9 @@ const serializeAws_restJson1RegisterIdentityProviderCommand = async (input, cont
|
|
|
190
180
|
"/identity-provider/RegisterIdentityProvider";
|
|
191
181
|
let body;
|
|
192
182
|
body = JSON.stringify({
|
|
193
|
-
...(input.IdentityProvider != null && {
|
|
194
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
195
|
-
}),
|
|
183
|
+
...(input.IdentityProvider != null && { IdentityProvider: se_IdentityProvider(input.IdentityProvider, context) }),
|
|
196
184
|
...(input.Product != null && { Product: input.Product }),
|
|
197
|
-
...(input.Settings != null && { Settings:
|
|
185
|
+
...(input.Settings != null && { Settings: se_Settings(input.Settings, context) }),
|
|
198
186
|
});
|
|
199
187
|
return new protocol_http_1.HttpRequest({
|
|
200
188
|
protocol,
|
|
@@ -206,8 +194,8 @@ const serializeAws_restJson1RegisterIdentityProviderCommand = async (input, cont
|
|
|
206
194
|
body,
|
|
207
195
|
});
|
|
208
196
|
};
|
|
209
|
-
exports.
|
|
210
|
-
const
|
|
197
|
+
exports.se_RegisterIdentityProviderCommand = se_RegisterIdentityProviderCommand;
|
|
198
|
+
const se_StartProductSubscriptionCommand = async (input, context) => {
|
|
211
199
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
212
200
|
const headers = {
|
|
213
201
|
"content-type": "application/json",
|
|
@@ -216,9 +204,7 @@ const serializeAws_restJson1StartProductSubscriptionCommand = async (input, cont
|
|
|
216
204
|
let body;
|
|
217
205
|
body = JSON.stringify({
|
|
218
206
|
...(input.Domain != null && { Domain: input.Domain }),
|
|
219
|
-
...(input.IdentityProvider != null && {
|
|
220
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
221
|
-
}),
|
|
207
|
+
...(input.IdentityProvider != null && { IdentityProvider: se_IdentityProvider(input.IdentityProvider, context) }),
|
|
222
208
|
...(input.Product != null && { Product: input.Product }),
|
|
223
209
|
...(input.Username != null && { Username: input.Username }),
|
|
224
210
|
});
|
|
@@ -232,8 +218,8 @@ const serializeAws_restJson1StartProductSubscriptionCommand = async (input, cont
|
|
|
232
218
|
body,
|
|
233
219
|
});
|
|
234
220
|
};
|
|
235
|
-
exports.
|
|
236
|
-
const
|
|
221
|
+
exports.se_StartProductSubscriptionCommand = se_StartProductSubscriptionCommand;
|
|
222
|
+
const se_StopProductSubscriptionCommand = async (input, context) => {
|
|
237
223
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
238
224
|
const headers = {
|
|
239
225
|
"content-type": "application/json",
|
|
@@ -242,9 +228,7 @@ const serializeAws_restJson1StopProductSubscriptionCommand = async (input, conte
|
|
|
242
228
|
let body;
|
|
243
229
|
body = JSON.stringify({
|
|
244
230
|
...(input.Domain != null && { Domain: input.Domain }),
|
|
245
|
-
...(input.IdentityProvider != null && {
|
|
246
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
247
|
-
}),
|
|
231
|
+
...(input.IdentityProvider != null && { IdentityProvider: se_IdentityProvider(input.IdentityProvider, context) }),
|
|
248
232
|
...(input.Product != null && { Product: input.Product }),
|
|
249
233
|
...(input.Username != null && { Username: input.Username }),
|
|
250
234
|
});
|
|
@@ -258,8 +242,8 @@ const serializeAws_restJson1StopProductSubscriptionCommand = async (input, conte
|
|
|
258
242
|
body,
|
|
259
243
|
});
|
|
260
244
|
};
|
|
261
|
-
exports.
|
|
262
|
-
const
|
|
245
|
+
exports.se_StopProductSubscriptionCommand = se_StopProductSubscriptionCommand;
|
|
246
|
+
const se_UpdateIdentityProviderSettingsCommand = async (input, context) => {
|
|
263
247
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
264
248
|
const headers = {
|
|
265
249
|
"content-type": "application/json",
|
|
@@ -268,13 +252,9 @@ const serializeAws_restJson1UpdateIdentityProviderSettingsCommand = async (input
|
|
|
268
252
|
"/identity-provider/UpdateIdentityProviderSettings";
|
|
269
253
|
let body;
|
|
270
254
|
body = JSON.stringify({
|
|
271
|
-
...(input.IdentityProvider != null && {
|
|
272
|
-
IdentityProvider: serializeAws_restJson1IdentityProvider(input.IdentityProvider, context),
|
|
273
|
-
}),
|
|
255
|
+
...(input.IdentityProvider != null && { IdentityProvider: se_IdentityProvider(input.IdentityProvider, context) }),
|
|
274
256
|
...(input.Product != null && { Product: input.Product }),
|
|
275
|
-
...(input.UpdateSettings != null && {
|
|
276
|
-
UpdateSettings: serializeAws_restJson1UpdateSettings(input.UpdateSettings, context),
|
|
277
|
-
}),
|
|
257
|
+
...(input.UpdateSettings != null && { UpdateSettings: se_UpdateSettings(input.UpdateSettings, context) }),
|
|
278
258
|
});
|
|
279
259
|
return new protocol_http_1.HttpRequest({
|
|
280
260
|
protocol,
|
|
@@ -286,22 +266,22 @@ const serializeAws_restJson1UpdateIdentityProviderSettingsCommand = async (input
|
|
|
286
266
|
body,
|
|
287
267
|
});
|
|
288
268
|
};
|
|
289
|
-
exports.
|
|
290
|
-
const
|
|
269
|
+
exports.se_UpdateIdentityProviderSettingsCommand = se_UpdateIdentityProviderSettingsCommand;
|
|
270
|
+
const de_AssociateUserCommand = async (output, context) => {
|
|
291
271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
292
|
-
return
|
|
272
|
+
return de_AssociateUserCommandError(output, context);
|
|
293
273
|
}
|
|
294
274
|
const contents = map({
|
|
295
275
|
$metadata: deserializeMetadata(output),
|
|
296
276
|
});
|
|
297
277
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
298
278
|
if (data.InstanceUserSummary != null) {
|
|
299
|
-
contents.InstanceUserSummary =
|
|
279
|
+
contents.InstanceUserSummary = de_InstanceUserSummary(data.InstanceUserSummary, context);
|
|
300
280
|
}
|
|
301
281
|
return contents;
|
|
302
282
|
};
|
|
303
|
-
exports.
|
|
304
|
-
const
|
|
283
|
+
exports.de_AssociateUserCommand = de_AssociateUserCommand;
|
|
284
|
+
const de_AssociateUserCommandError = async (output, context) => {
|
|
305
285
|
const parsedOutput = {
|
|
306
286
|
...output,
|
|
307
287
|
body: await parseErrorBody(output.body, context),
|
|
@@ -310,25 +290,25 @@ const deserializeAws_restJson1AssociateUserCommandError = async (output, context
|
|
|
310
290
|
switch (errorCode) {
|
|
311
291
|
case "AccessDeniedException":
|
|
312
292
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
313
|
-
throw await
|
|
293
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
314
294
|
case "ConflictException":
|
|
315
295
|
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
316
|
-
throw await
|
|
296
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
317
297
|
case "InternalServerException":
|
|
318
298
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
319
|
-
throw await
|
|
299
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
320
300
|
case "ResourceNotFoundException":
|
|
321
301
|
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
322
|
-
throw await
|
|
302
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
323
303
|
case "ServiceQuotaExceededException":
|
|
324
304
|
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
325
|
-
throw await
|
|
305
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
326
306
|
case "ThrottlingException":
|
|
327
307
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
328
|
-
throw await
|
|
308
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
329
309
|
case "ValidationException":
|
|
330
310
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
331
|
-
throw await
|
|
311
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
332
312
|
default:
|
|
333
313
|
const parsedBody = parsedOutput.body;
|
|
334
314
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -339,21 +319,21 @@ const deserializeAws_restJson1AssociateUserCommandError = async (output, context
|
|
|
339
319
|
});
|
|
340
320
|
}
|
|
341
321
|
};
|
|
342
|
-
const
|
|
322
|
+
const de_DeregisterIdentityProviderCommand = async (output, context) => {
|
|
343
323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
344
|
-
return
|
|
324
|
+
return de_DeregisterIdentityProviderCommandError(output, context);
|
|
345
325
|
}
|
|
346
326
|
const contents = map({
|
|
347
327
|
$metadata: deserializeMetadata(output),
|
|
348
328
|
});
|
|
349
329
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
350
330
|
if (data.IdentityProviderSummary != null) {
|
|
351
|
-
contents.IdentityProviderSummary =
|
|
331
|
+
contents.IdentityProviderSummary = de_IdentityProviderSummary(data.IdentityProviderSummary, context);
|
|
352
332
|
}
|
|
353
333
|
return contents;
|
|
354
334
|
};
|
|
355
|
-
exports.
|
|
356
|
-
const
|
|
335
|
+
exports.de_DeregisterIdentityProviderCommand = de_DeregisterIdentityProviderCommand;
|
|
336
|
+
const de_DeregisterIdentityProviderCommandError = async (output, context) => {
|
|
357
337
|
const parsedOutput = {
|
|
358
338
|
...output,
|
|
359
339
|
body: await parseErrorBody(output.body, context),
|
|
@@ -362,25 +342,25 @@ const deserializeAws_restJson1DeregisterIdentityProviderCommandError = async (ou
|
|
|
362
342
|
switch (errorCode) {
|
|
363
343
|
case "AccessDeniedException":
|
|
364
344
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
365
|
-
throw await
|
|
345
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
366
346
|
case "ConflictException":
|
|
367
347
|
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
368
|
-
throw await
|
|
348
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
369
349
|
case "InternalServerException":
|
|
370
350
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
371
|
-
throw await
|
|
351
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
372
352
|
case "ResourceNotFoundException":
|
|
373
353
|
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
374
|
-
throw await
|
|
354
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
375
355
|
case "ServiceQuotaExceededException":
|
|
376
356
|
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
377
|
-
throw await
|
|
357
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
378
358
|
case "ThrottlingException":
|
|
379
359
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
380
|
-
throw await
|
|
360
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
381
361
|
case "ValidationException":
|
|
382
362
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
383
|
-
throw await
|
|
363
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
384
364
|
default:
|
|
385
365
|
const parsedBody = parsedOutput.body;
|
|
386
366
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -391,21 +371,21 @@ const deserializeAws_restJson1DeregisterIdentityProviderCommandError = async (ou
|
|
|
391
371
|
});
|
|
392
372
|
}
|
|
393
373
|
};
|
|
394
|
-
const
|
|
374
|
+
const de_DisassociateUserCommand = async (output, context) => {
|
|
395
375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
396
|
-
return
|
|
376
|
+
return de_DisassociateUserCommandError(output, context);
|
|
397
377
|
}
|
|
398
378
|
const contents = map({
|
|
399
379
|
$metadata: deserializeMetadata(output),
|
|
400
380
|
});
|
|
401
381
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
402
382
|
if (data.InstanceUserSummary != null) {
|
|
403
|
-
contents.InstanceUserSummary =
|
|
383
|
+
contents.InstanceUserSummary = de_InstanceUserSummary(data.InstanceUserSummary, context);
|
|
404
384
|
}
|
|
405
385
|
return contents;
|
|
406
386
|
};
|
|
407
|
-
exports.
|
|
408
|
-
const
|
|
387
|
+
exports.de_DisassociateUserCommand = de_DisassociateUserCommand;
|
|
388
|
+
const de_DisassociateUserCommandError = async (output, context) => {
|
|
409
389
|
const parsedOutput = {
|
|
410
390
|
...output,
|
|
411
391
|
body: await parseErrorBody(output.body, context),
|
|
@@ -414,25 +394,25 @@ const deserializeAws_restJson1DisassociateUserCommandError = async (output, cont
|
|
|
414
394
|
switch (errorCode) {
|
|
415
395
|
case "AccessDeniedException":
|
|
416
396
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
417
|
-
throw await
|
|
397
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
418
398
|
case "ConflictException":
|
|
419
399
|
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
420
|
-
throw await
|
|
400
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
421
401
|
case "InternalServerException":
|
|
422
402
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
423
|
-
throw await
|
|
403
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
424
404
|
case "ResourceNotFoundException":
|
|
425
405
|
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
426
|
-
throw await
|
|
406
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
427
407
|
case "ServiceQuotaExceededException":
|
|
428
408
|
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
429
|
-
throw await
|
|
409
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
430
410
|
case "ThrottlingException":
|
|
431
411
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
432
|
-
throw await
|
|
412
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
433
413
|
case "ValidationException":
|
|
434
414
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
435
|
-
throw await
|
|
415
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
436
416
|
default:
|
|
437
417
|
const parsedBody = parsedOutput.body;
|
|
438
418
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -443,24 +423,24 @@ const deserializeAws_restJson1DisassociateUserCommandError = async (output, cont
|
|
|
443
423
|
});
|
|
444
424
|
}
|
|
445
425
|
};
|
|
446
|
-
const
|
|
426
|
+
const de_ListIdentityProvidersCommand = async (output, context) => {
|
|
447
427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
448
|
-
return
|
|
428
|
+
return de_ListIdentityProvidersCommandError(output, context);
|
|
449
429
|
}
|
|
450
430
|
const contents = map({
|
|
451
431
|
$metadata: deserializeMetadata(output),
|
|
452
432
|
});
|
|
453
433
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
454
434
|
if (data.IdentityProviderSummaries != null) {
|
|
455
|
-
contents.IdentityProviderSummaries =
|
|
435
|
+
contents.IdentityProviderSummaries = de_IdentityProviderSummaryList(data.IdentityProviderSummaries, context);
|
|
456
436
|
}
|
|
457
437
|
if (data.NextToken != null) {
|
|
458
438
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
459
439
|
}
|
|
460
440
|
return contents;
|
|
461
441
|
};
|
|
462
|
-
exports.
|
|
463
|
-
const
|
|
442
|
+
exports.de_ListIdentityProvidersCommand = de_ListIdentityProvidersCommand;
|
|
443
|
+
const de_ListIdentityProvidersCommandError = async (output, context) => {
|
|
464
444
|
const parsedOutput = {
|
|
465
445
|
...output,
|
|
466
446
|
body: await parseErrorBody(output.body, context),
|
|
@@ -469,25 +449,25 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
469
449
|
switch (errorCode) {
|
|
470
450
|
case "AccessDeniedException":
|
|
471
451
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
472
|
-
throw await
|
|
452
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
473
453
|
case "ConflictException":
|
|
474
454
|
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
475
|
-
throw await
|
|
455
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
476
456
|
case "InternalServerException":
|
|
477
457
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
478
|
-
throw await
|
|
458
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
479
459
|
case "ResourceNotFoundException":
|
|
480
460
|
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
481
|
-
throw await
|
|
461
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
482
462
|
case "ServiceQuotaExceededException":
|
|
483
463
|
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
484
|
-
throw await
|
|
464
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
485
465
|
case "ThrottlingException":
|
|
486
466
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
487
|
-
throw await
|
|
467
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
488
468
|
case "ValidationException":
|
|
489
469
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
490
|
-
throw await
|
|
470
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
491
471
|
default:
|
|
492
472
|
const parsedBody = parsedOutput.body;
|
|
493
473
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -498,24 +478,24 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
498
478
|
});
|
|
499
479
|
}
|
|
500
480
|
};
|
|
501
|
-
const
|
|
481
|
+
const de_ListInstancesCommand = async (output, context) => {
|
|
502
482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
-
return
|
|
483
|
+
return de_ListInstancesCommandError(output, context);
|
|
504
484
|
}
|
|
505
485
|
const contents = map({
|
|
506
486
|
$metadata: deserializeMetadata(output),
|
|
507
487
|
});
|
|
508
488
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
509
489
|
if (data.InstanceSummaries != null) {
|
|
510
|
-
contents.InstanceSummaries =
|
|
490
|
+
contents.InstanceSummaries = de_InstanceSummaryList(data.InstanceSummaries, context);
|
|
511
491
|
}
|
|
512
492
|
if (data.NextToken != null) {
|
|
513
493
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
514
494
|
}
|
|
515
495
|
return contents;
|
|
516
496
|
};
|
|
517
|
-
exports.
|
|
518
|
-
const
|
|
497
|
+
exports.de_ListInstancesCommand = de_ListInstancesCommand;
|
|
498
|
+
const de_ListInstancesCommandError = async (output, context) => {
|
|
519
499
|
const parsedOutput = {
|
|
520
500
|
...output,
|
|
521
501
|
body: await parseErrorBody(output.body, context),
|
|
@@ -524,25 +504,25 @@ const deserializeAws_restJson1ListInstancesCommandError = async (output, context
|
|
|
524
504
|
switch (errorCode) {
|
|
525
505
|
case "AccessDeniedException":
|
|
526
506
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
527
|
-
throw await
|
|
507
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
528
508
|
case "ConflictException":
|
|
529
509
|
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
530
|
-
throw await
|
|
510
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
531
511
|
case "InternalServerException":
|
|
532
512
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
533
|
-
throw await
|
|
513
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
534
514
|
case "ResourceNotFoundException":
|
|
535
515
|
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
536
|
-
throw await
|
|
516
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
537
517
|
case "ServiceQuotaExceededException":
|
|
538
518
|
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
539
|
-
throw await
|
|
519
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
540
520
|
case "ThrottlingException":
|
|
541
521
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
542
|
-
throw await
|
|
522
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
543
523
|
case "ValidationException":
|
|
544
524
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
545
|
-
throw await
|
|
525
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
546
526
|
default:
|
|
547
527
|
const parsedBody = parsedOutput.body;
|
|
548
528
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -553,9 +533,9 @@ const deserializeAws_restJson1ListInstancesCommandError = async (output, context
|
|
|
553
533
|
});
|
|
554
534
|
}
|
|
555
535
|
};
|
|
556
|
-
const
|
|
536
|
+
const de_ListProductSubscriptionsCommand = async (output, context) => {
|
|
557
537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
558
|
-
return
|
|
538
|
+
return de_ListProductSubscriptionsCommandError(output, context);
|
|
559
539
|
}
|
|
560
540
|
const contents = map({
|
|
561
541
|
$metadata: deserializeMetadata(output),
|
|
@@ -565,12 +545,12 @@ const deserializeAws_restJson1ListProductSubscriptionsCommand = async (output, c
|
|
|
565
545
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
566
546
|
}
|
|
567
547
|
if (data.ProductUserSummaries != null) {
|
|
568
|
-
contents.ProductUserSummaries =
|
|
548
|
+
contents.ProductUserSummaries = de_ProductUserSummaryList(data.ProductUserSummaries, context);
|
|
569
549
|
}
|
|
570
550
|
return contents;
|
|
571
551
|
};
|
|
572
|
-
exports.
|
|
573
|
-
const
|
|
552
|
+
exports.de_ListProductSubscriptionsCommand = de_ListProductSubscriptionsCommand;
|
|
553
|
+
const de_ListProductSubscriptionsCommandError = async (output, context) => {
|
|
574
554
|
const parsedOutput = {
|
|
575
555
|
...output,
|
|
576
556
|
body: await parseErrorBody(output.body, context),
|
|
@@ -579,25 +559,25 @@ const deserializeAws_restJson1ListProductSubscriptionsCommandError = async (outp
|
|
|
579
559
|
switch (errorCode) {
|
|
580
560
|
case "AccessDeniedException":
|
|
581
561
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
582
|
-
throw await
|
|
562
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
583
563
|
case "ConflictException":
|
|
584
564
|
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
585
|
-
throw await
|
|
565
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
586
566
|
case "InternalServerException":
|
|
587
567
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
588
|
-
throw await
|
|
568
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
589
569
|
case "ResourceNotFoundException":
|
|
590
570
|
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
591
|
-
throw await
|
|
571
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
592
572
|
case "ServiceQuotaExceededException":
|
|
593
573
|
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
594
|
-
throw await
|
|
574
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
595
575
|
case "ThrottlingException":
|
|
596
576
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
597
|
-
throw await
|
|
577
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
598
578
|
case "ValidationException":
|
|
599
579
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
600
|
-
throw await
|
|
580
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
601
581
|
default:
|
|
602
582
|
const parsedBody = parsedOutput.body;
|
|
603
583
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -608,24 +588,24 @@ const deserializeAws_restJson1ListProductSubscriptionsCommandError = async (outp
|
|
|
608
588
|
});
|
|
609
589
|
}
|
|
610
590
|
};
|
|
611
|
-
const
|
|
591
|
+
const de_ListUserAssociationsCommand = async (output, context) => {
|
|
612
592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
613
|
-
return
|
|
593
|
+
return de_ListUserAssociationsCommandError(output, context);
|
|
614
594
|
}
|
|
615
595
|
const contents = map({
|
|
616
596
|
$metadata: deserializeMetadata(output),
|
|
617
597
|
});
|
|
618
598
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
619
599
|
if (data.InstanceUserSummaries != null) {
|
|
620
|
-
contents.InstanceUserSummaries =
|
|
600
|
+
contents.InstanceUserSummaries = de_InstanceUserSummaryList(data.InstanceUserSummaries, context);
|
|
621
601
|
}
|
|
622
602
|
if (data.NextToken != null) {
|
|
623
603
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
624
604
|
}
|
|
625
605
|
return contents;
|
|
626
606
|
};
|
|
627
|
-
exports.
|
|
628
|
-
const
|
|
607
|
+
exports.de_ListUserAssociationsCommand = de_ListUserAssociationsCommand;
|
|
608
|
+
const de_ListUserAssociationsCommandError = async (output, context) => {
|
|
629
609
|
const parsedOutput = {
|
|
630
610
|
...output,
|
|
631
611
|
body: await parseErrorBody(output.body, context),
|
|
@@ -634,25 +614,25 @@ const deserializeAws_restJson1ListUserAssociationsCommandError = async (output,
|
|
|
634
614
|
switch (errorCode) {
|
|
635
615
|
case "AccessDeniedException":
|
|
636
616
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
637
|
-
throw await
|
|
617
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
638
618
|
case "ConflictException":
|
|
639
619
|
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
640
|
-
throw await
|
|
620
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
641
621
|
case "InternalServerException":
|
|
642
622
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
643
|
-
throw await
|
|
623
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
644
624
|
case "ResourceNotFoundException":
|
|
645
625
|
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
646
|
-
throw await
|
|
626
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
647
627
|
case "ServiceQuotaExceededException":
|
|
648
628
|
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
649
|
-
throw await
|
|
629
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
650
630
|
case "ThrottlingException":
|
|
651
631
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
652
|
-
throw await
|
|
632
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
653
633
|
case "ValidationException":
|
|
654
634
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
655
|
-
throw await
|
|
635
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
656
636
|
default:
|
|
657
637
|
const parsedBody = parsedOutput.body;
|
|
658
638
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -663,21 +643,21 @@ const deserializeAws_restJson1ListUserAssociationsCommandError = async (output,
|
|
|
663
643
|
});
|
|
664
644
|
}
|
|
665
645
|
};
|
|
666
|
-
const
|
|
646
|
+
const de_RegisterIdentityProviderCommand = async (output, context) => {
|
|
667
647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
668
|
-
return
|
|
648
|
+
return de_RegisterIdentityProviderCommandError(output, context);
|
|
669
649
|
}
|
|
670
650
|
const contents = map({
|
|
671
651
|
$metadata: deserializeMetadata(output),
|
|
672
652
|
});
|
|
673
653
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
674
654
|
if (data.IdentityProviderSummary != null) {
|
|
675
|
-
contents.IdentityProviderSummary =
|
|
655
|
+
contents.IdentityProviderSummary = de_IdentityProviderSummary(data.IdentityProviderSummary, context);
|
|
676
656
|
}
|
|
677
657
|
return contents;
|
|
678
658
|
};
|
|
679
|
-
exports.
|
|
680
|
-
const
|
|
659
|
+
exports.de_RegisterIdentityProviderCommand = de_RegisterIdentityProviderCommand;
|
|
660
|
+
const de_RegisterIdentityProviderCommandError = async (output, context) => {
|
|
681
661
|
const parsedOutput = {
|
|
682
662
|
...output,
|
|
683
663
|
body: await parseErrorBody(output.body, context),
|
|
@@ -686,25 +666,25 @@ const deserializeAws_restJson1RegisterIdentityProviderCommandError = async (outp
|
|
|
686
666
|
switch (errorCode) {
|
|
687
667
|
case "AccessDeniedException":
|
|
688
668
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
689
|
-
throw await
|
|
669
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
690
670
|
case "ConflictException":
|
|
691
671
|
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
692
|
-
throw await
|
|
672
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
693
673
|
case "InternalServerException":
|
|
694
674
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
695
|
-
throw await
|
|
675
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
696
676
|
case "ResourceNotFoundException":
|
|
697
677
|
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
698
|
-
throw await
|
|
678
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
699
679
|
case "ServiceQuotaExceededException":
|
|
700
680
|
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
701
|
-
throw await
|
|
681
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
702
682
|
case "ThrottlingException":
|
|
703
683
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
704
|
-
throw await
|
|
684
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
705
685
|
case "ValidationException":
|
|
706
686
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
707
|
-
throw await
|
|
687
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
708
688
|
default:
|
|
709
689
|
const parsedBody = parsedOutput.body;
|
|
710
690
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -715,21 +695,21 @@ const deserializeAws_restJson1RegisterIdentityProviderCommandError = async (outp
|
|
|
715
695
|
});
|
|
716
696
|
}
|
|
717
697
|
};
|
|
718
|
-
const
|
|
698
|
+
const de_StartProductSubscriptionCommand = async (output, context) => {
|
|
719
699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
720
|
-
return
|
|
700
|
+
return de_StartProductSubscriptionCommandError(output, context);
|
|
721
701
|
}
|
|
722
702
|
const contents = map({
|
|
723
703
|
$metadata: deserializeMetadata(output),
|
|
724
704
|
});
|
|
725
705
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
726
706
|
if (data.ProductUserSummary != null) {
|
|
727
|
-
contents.ProductUserSummary =
|
|
707
|
+
contents.ProductUserSummary = de_ProductUserSummary(data.ProductUserSummary, context);
|
|
728
708
|
}
|
|
729
709
|
return contents;
|
|
730
710
|
};
|
|
731
|
-
exports.
|
|
732
|
-
const
|
|
711
|
+
exports.de_StartProductSubscriptionCommand = de_StartProductSubscriptionCommand;
|
|
712
|
+
const de_StartProductSubscriptionCommandError = async (output, context) => {
|
|
733
713
|
const parsedOutput = {
|
|
734
714
|
...output,
|
|
735
715
|
body: await parseErrorBody(output.body, context),
|
|
@@ -738,25 +718,25 @@ const deserializeAws_restJson1StartProductSubscriptionCommandError = async (outp
|
|
|
738
718
|
switch (errorCode) {
|
|
739
719
|
case "AccessDeniedException":
|
|
740
720
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
741
|
-
throw await
|
|
721
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
742
722
|
case "ConflictException":
|
|
743
723
|
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
744
|
-
throw await
|
|
724
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
745
725
|
case "InternalServerException":
|
|
746
726
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
747
|
-
throw await
|
|
727
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
748
728
|
case "ResourceNotFoundException":
|
|
749
729
|
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
750
|
-
throw await
|
|
730
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
751
731
|
case "ServiceQuotaExceededException":
|
|
752
732
|
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
753
|
-
throw await
|
|
733
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
754
734
|
case "ThrottlingException":
|
|
755
735
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
756
|
-
throw await
|
|
736
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
757
737
|
case "ValidationException":
|
|
758
738
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
759
|
-
throw await
|
|
739
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
760
740
|
default:
|
|
761
741
|
const parsedBody = parsedOutput.body;
|
|
762
742
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -767,21 +747,21 @@ const deserializeAws_restJson1StartProductSubscriptionCommandError = async (outp
|
|
|
767
747
|
});
|
|
768
748
|
}
|
|
769
749
|
};
|
|
770
|
-
const
|
|
750
|
+
const de_StopProductSubscriptionCommand = async (output, context) => {
|
|
771
751
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
|
-
return
|
|
752
|
+
return de_StopProductSubscriptionCommandError(output, context);
|
|
773
753
|
}
|
|
774
754
|
const contents = map({
|
|
775
755
|
$metadata: deserializeMetadata(output),
|
|
776
756
|
});
|
|
777
757
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
778
758
|
if (data.ProductUserSummary != null) {
|
|
779
|
-
contents.ProductUserSummary =
|
|
759
|
+
contents.ProductUserSummary = de_ProductUserSummary(data.ProductUserSummary, context);
|
|
780
760
|
}
|
|
781
761
|
return contents;
|
|
782
762
|
};
|
|
783
|
-
exports.
|
|
784
|
-
const
|
|
763
|
+
exports.de_StopProductSubscriptionCommand = de_StopProductSubscriptionCommand;
|
|
764
|
+
const de_StopProductSubscriptionCommandError = async (output, context) => {
|
|
785
765
|
const parsedOutput = {
|
|
786
766
|
...output,
|
|
787
767
|
body: await parseErrorBody(output.body, context),
|
|
@@ -790,25 +770,25 @@ const deserializeAws_restJson1StopProductSubscriptionCommandError = async (outpu
|
|
|
790
770
|
switch (errorCode) {
|
|
791
771
|
case "AccessDeniedException":
|
|
792
772
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
793
|
-
throw await
|
|
773
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
794
774
|
case "ConflictException":
|
|
795
775
|
case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
|
|
796
|
-
throw await
|
|
776
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
797
777
|
case "InternalServerException":
|
|
798
778
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
799
|
-
throw await
|
|
779
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
800
780
|
case "ResourceNotFoundException":
|
|
801
781
|
case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
|
|
802
|
-
throw await
|
|
782
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
803
783
|
case "ServiceQuotaExceededException":
|
|
804
784
|
case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
|
|
805
|
-
throw await
|
|
785
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
806
786
|
case "ThrottlingException":
|
|
807
787
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
808
|
-
throw await
|
|
788
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
809
789
|
case "ValidationException":
|
|
810
790
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
811
|
-
throw await
|
|
791
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
812
792
|
default:
|
|
813
793
|
const parsedBody = parsedOutput.body;
|
|
814
794
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -819,21 +799,21 @@ const deserializeAws_restJson1StopProductSubscriptionCommandError = async (outpu
|
|
|
819
799
|
});
|
|
820
800
|
}
|
|
821
801
|
};
|
|
822
|
-
const
|
|
802
|
+
const de_UpdateIdentityProviderSettingsCommand = async (output, context) => {
|
|
823
803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
|
-
return
|
|
804
|
+
return de_UpdateIdentityProviderSettingsCommandError(output, context);
|
|
825
805
|
}
|
|
826
806
|
const contents = map({
|
|
827
807
|
$metadata: deserializeMetadata(output),
|
|
828
808
|
});
|
|
829
809
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
830
810
|
if (data.IdentityProviderSummary != null) {
|
|
831
|
-
contents.IdentityProviderSummary =
|
|
811
|
+
contents.IdentityProviderSummary = de_IdentityProviderSummary(data.IdentityProviderSummary, context);
|
|
832
812
|
}
|
|
833
813
|
return contents;
|
|
834
814
|
};
|
|
835
|
-
exports.
|
|
836
|
-
const
|
|
815
|
+
exports.de_UpdateIdentityProviderSettingsCommand = de_UpdateIdentityProviderSettingsCommand;
|
|
816
|
+
const de_UpdateIdentityProviderSettingsCommandError = async (output, context) => {
|
|
837
817
|
const parsedOutput = {
|
|
838
818
|
...output,
|
|
839
819
|
body: await parseErrorBody(output.body, context),
|
|
@@ -842,16 +822,16 @@ const deserializeAws_restJson1UpdateIdentityProviderSettingsCommandError = async
|
|
|
842
822
|
switch (errorCode) {
|
|
843
823
|
case "AccessDeniedException":
|
|
844
824
|
case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
|
|
845
|
-
throw await
|
|
825
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
846
826
|
case "InternalServerException":
|
|
847
827
|
case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
|
|
848
|
-
throw await
|
|
828
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
849
829
|
case "ThrottlingException":
|
|
850
830
|
case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
|
|
851
|
-
throw await
|
|
831
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
852
832
|
case "ValidationException":
|
|
853
833
|
case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
|
|
854
|
-
throw await
|
|
834
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
855
835
|
default:
|
|
856
836
|
const parsedBody = parsedOutput.body;
|
|
857
837
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -863,7 +843,7 @@ const deserializeAws_restJson1UpdateIdentityProviderSettingsCommandError = async
|
|
|
863
843
|
}
|
|
864
844
|
};
|
|
865
845
|
const map = smithy_client_1.map;
|
|
866
|
-
const
|
|
846
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
867
847
|
const contents = map({});
|
|
868
848
|
const data = parsedOutput.body;
|
|
869
849
|
if (data.message != null) {
|
|
@@ -875,7 +855,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
875
855
|
});
|
|
876
856
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
877
857
|
};
|
|
878
|
-
const
|
|
858
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
879
859
|
const contents = map({});
|
|
880
860
|
const data = parsedOutput.body;
|
|
881
861
|
if (data.message != null) {
|
|
@@ -887,7 +867,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
887
867
|
});
|
|
888
868
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
889
869
|
};
|
|
890
|
-
const
|
|
870
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
891
871
|
const contents = map({});
|
|
892
872
|
const data = parsedOutput.body;
|
|
893
873
|
if (data.message != null) {
|
|
@@ -899,7 +879,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
899
879
|
});
|
|
900
880
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
901
881
|
};
|
|
902
|
-
const
|
|
882
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
903
883
|
const contents = map({});
|
|
904
884
|
const data = parsedOutput.body;
|
|
905
885
|
if (data.message != null) {
|
|
@@ -911,7 +891,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
911
891
|
});
|
|
912
892
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
913
893
|
};
|
|
914
|
-
const
|
|
894
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
915
895
|
const contents = map({});
|
|
916
896
|
const data = parsedOutput.body;
|
|
917
897
|
if (data.message != null) {
|
|
@@ -923,7 +903,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
923
903
|
});
|
|
924
904
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
925
905
|
};
|
|
926
|
-
const
|
|
906
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
927
907
|
const contents = map({});
|
|
928
908
|
const data = parsedOutput.body;
|
|
929
909
|
if (data.message != null) {
|
|
@@ -935,7 +915,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
935
915
|
});
|
|
936
916
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
937
917
|
};
|
|
938
|
-
const
|
|
918
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
939
919
|
const contents = map({});
|
|
940
920
|
const data = parsedOutput.body;
|
|
941
921
|
if (data.message != null) {
|
|
@@ -947,115 +927,115 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
947
927
|
});
|
|
948
928
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
949
929
|
};
|
|
950
|
-
const
|
|
930
|
+
const se_ActiveDirectoryIdentityProvider = (input, context) => {
|
|
951
931
|
return {
|
|
952
932
|
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
953
933
|
};
|
|
954
934
|
};
|
|
955
|
-
const
|
|
935
|
+
const se_Filter = (input, context) => {
|
|
956
936
|
return {
|
|
957
937
|
...(input.Attribute != null && { Attribute: input.Attribute }),
|
|
958
938
|
...(input.Operation != null && { Operation: input.Operation }),
|
|
959
939
|
...(input.Value != null && { Value: input.Value }),
|
|
960
940
|
};
|
|
961
941
|
};
|
|
962
|
-
const
|
|
942
|
+
const se_FilterList = (input, context) => {
|
|
963
943
|
return input
|
|
964
944
|
.filter((e) => e != null)
|
|
965
945
|
.map((entry) => {
|
|
966
|
-
return
|
|
946
|
+
return se_Filter(entry, context);
|
|
967
947
|
});
|
|
968
948
|
};
|
|
969
|
-
const
|
|
949
|
+
const se_IdentityProvider = (input, context) => {
|
|
970
950
|
return models_0_1.IdentityProvider.visit(input, {
|
|
971
951
|
ActiveDirectoryIdentityProvider: (value) => ({
|
|
972
|
-
ActiveDirectoryIdentityProvider:
|
|
952
|
+
ActiveDirectoryIdentityProvider: se_ActiveDirectoryIdentityProvider(value, context),
|
|
973
953
|
}),
|
|
974
954
|
_: (name, value) => ({ name: value }),
|
|
975
955
|
});
|
|
976
956
|
};
|
|
977
|
-
const
|
|
957
|
+
const se_Settings = (input, context) => {
|
|
978
958
|
return {
|
|
979
959
|
...(input.SecurityGroupId != null && { SecurityGroupId: input.SecurityGroupId }),
|
|
980
|
-
...(input.Subnets != null && { Subnets:
|
|
960
|
+
...(input.Subnets != null && { Subnets: se_Subnets(input.Subnets, context) }),
|
|
981
961
|
};
|
|
982
962
|
};
|
|
983
|
-
const
|
|
963
|
+
const se_Subnets = (input, context) => {
|
|
984
964
|
return input
|
|
985
965
|
.filter((e) => e != null)
|
|
986
966
|
.map((entry) => {
|
|
987
967
|
return entry;
|
|
988
968
|
});
|
|
989
969
|
};
|
|
990
|
-
const
|
|
970
|
+
const se_UpdateSettings = (input, context) => {
|
|
991
971
|
return {
|
|
992
|
-
...(input.AddSubnets != null && { AddSubnets:
|
|
993
|
-
...(input.RemoveSubnets != null && { RemoveSubnets:
|
|
972
|
+
...(input.AddSubnets != null && { AddSubnets: se_Subnets(input.AddSubnets, context) }),
|
|
973
|
+
...(input.RemoveSubnets != null && { RemoveSubnets: se_Subnets(input.RemoveSubnets, context) }),
|
|
994
974
|
...(input.SecurityGroupId != null && { SecurityGroupId: input.SecurityGroupId }),
|
|
995
975
|
};
|
|
996
976
|
};
|
|
997
|
-
const
|
|
977
|
+
const de_ActiveDirectoryIdentityProvider = (output, context) => {
|
|
998
978
|
return {
|
|
999
979
|
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
1000
980
|
};
|
|
1001
981
|
};
|
|
1002
|
-
const
|
|
982
|
+
const de_IdentityProvider = (output, context) => {
|
|
1003
983
|
if (output.ActiveDirectoryIdentityProvider != null) {
|
|
1004
984
|
return {
|
|
1005
|
-
ActiveDirectoryIdentityProvider:
|
|
985
|
+
ActiveDirectoryIdentityProvider: de_ActiveDirectoryIdentityProvider(output.ActiveDirectoryIdentityProvider, context),
|
|
1006
986
|
};
|
|
1007
987
|
}
|
|
1008
988
|
return { $unknown: Object.entries(output)[0] };
|
|
1009
989
|
};
|
|
1010
|
-
const
|
|
990
|
+
const de_IdentityProviderSummary = (output, context) => {
|
|
1011
991
|
return {
|
|
1012
992
|
FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage),
|
|
1013
993
|
IdentityProvider: output.IdentityProvider != null
|
|
1014
|
-
?
|
|
994
|
+
? de_IdentityProvider((0, smithy_client_1.expectUnion)(output.IdentityProvider), context)
|
|
1015
995
|
: undefined,
|
|
1016
996
|
Product: (0, smithy_client_1.expectString)(output.Product),
|
|
1017
|
-
Settings: output.Settings != null ?
|
|
997
|
+
Settings: output.Settings != null ? de_Settings(output.Settings, context) : undefined,
|
|
1018
998
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1019
999
|
};
|
|
1020
1000
|
};
|
|
1021
|
-
const
|
|
1001
|
+
const de_IdentityProviderSummaryList = (output, context) => {
|
|
1022
1002
|
const retVal = (output || [])
|
|
1023
1003
|
.filter((e) => e != null)
|
|
1024
1004
|
.map((entry) => {
|
|
1025
1005
|
if (entry === null) {
|
|
1026
1006
|
return null;
|
|
1027
1007
|
}
|
|
1028
|
-
return
|
|
1008
|
+
return de_IdentityProviderSummary(entry, context);
|
|
1029
1009
|
});
|
|
1030
1010
|
return retVal;
|
|
1031
1011
|
};
|
|
1032
|
-
const
|
|
1012
|
+
const de_InstanceSummary = (output, context) => {
|
|
1033
1013
|
return {
|
|
1034
1014
|
InstanceId: (0, smithy_client_1.expectString)(output.InstanceId),
|
|
1035
1015
|
LastStatusCheckDate: (0, smithy_client_1.expectString)(output.LastStatusCheckDate),
|
|
1036
|
-
Products: output.Products != null ?
|
|
1016
|
+
Products: output.Products != null ? de_StringList(output.Products, context) : undefined,
|
|
1037
1017
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1038
1018
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1039
1019
|
};
|
|
1040
1020
|
};
|
|
1041
|
-
const
|
|
1021
|
+
const de_InstanceSummaryList = (output, context) => {
|
|
1042
1022
|
const retVal = (output || [])
|
|
1043
1023
|
.filter((e) => e != null)
|
|
1044
1024
|
.map((entry) => {
|
|
1045
1025
|
if (entry === null) {
|
|
1046
1026
|
return null;
|
|
1047
1027
|
}
|
|
1048
|
-
return
|
|
1028
|
+
return de_InstanceSummary(entry, context);
|
|
1049
1029
|
});
|
|
1050
1030
|
return retVal;
|
|
1051
1031
|
};
|
|
1052
|
-
const
|
|
1032
|
+
const de_InstanceUserSummary = (output, context) => {
|
|
1053
1033
|
return {
|
|
1054
1034
|
AssociationDate: (0, smithy_client_1.expectString)(output.AssociationDate),
|
|
1055
1035
|
DisassociationDate: (0, smithy_client_1.expectString)(output.DisassociationDate),
|
|
1056
1036
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
1057
1037
|
IdentityProvider: output.IdentityProvider != null
|
|
1058
|
-
?
|
|
1038
|
+
? de_IdentityProvider((0, smithy_client_1.expectUnion)(output.IdentityProvider), context)
|
|
1059
1039
|
: undefined,
|
|
1060
1040
|
InstanceId: (0, smithy_client_1.expectString)(output.InstanceId),
|
|
1061
1041
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -1063,22 +1043,22 @@ const deserializeAws_restJson1InstanceUserSummary = (output, context) => {
|
|
|
1063
1043
|
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
1064
1044
|
};
|
|
1065
1045
|
};
|
|
1066
|
-
const
|
|
1046
|
+
const de_InstanceUserSummaryList = (output, context) => {
|
|
1067
1047
|
const retVal = (output || [])
|
|
1068
1048
|
.filter((e) => e != null)
|
|
1069
1049
|
.map((entry) => {
|
|
1070
1050
|
if (entry === null) {
|
|
1071
1051
|
return null;
|
|
1072
1052
|
}
|
|
1073
|
-
return
|
|
1053
|
+
return de_InstanceUserSummary(entry, context);
|
|
1074
1054
|
});
|
|
1075
1055
|
return retVal;
|
|
1076
1056
|
};
|
|
1077
|
-
const
|
|
1057
|
+
const de_ProductUserSummary = (output, context) => {
|
|
1078
1058
|
return {
|
|
1079
1059
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
1080
1060
|
IdentityProvider: output.IdentityProvider != null
|
|
1081
|
-
?
|
|
1061
|
+
? de_IdentityProvider((0, smithy_client_1.expectUnion)(output.IdentityProvider), context)
|
|
1082
1062
|
: undefined,
|
|
1083
1063
|
Product: (0, smithy_client_1.expectString)(output.Product),
|
|
1084
1064
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -1088,24 +1068,24 @@ const deserializeAws_restJson1ProductUserSummary = (output, context) => {
|
|
|
1088
1068
|
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
1089
1069
|
};
|
|
1090
1070
|
};
|
|
1091
|
-
const
|
|
1071
|
+
const de_ProductUserSummaryList = (output, context) => {
|
|
1092
1072
|
const retVal = (output || [])
|
|
1093
1073
|
.filter((e) => e != null)
|
|
1094
1074
|
.map((entry) => {
|
|
1095
1075
|
if (entry === null) {
|
|
1096
1076
|
return null;
|
|
1097
1077
|
}
|
|
1098
|
-
return
|
|
1078
|
+
return de_ProductUserSummary(entry, context);
|
|
1099
1079
|
});
|
|
1100
1080
|
return retVal;
|
|
1101
1081
|
};
|
|
1102
|
-
const
|
|
1082
|
+
const de_Settings = (output, context) => {
|
|
1103
1083
|
return {
|
|
1104
1084
|
SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
|
|
1105
|
-
Subnets: output.Subnets != null ?
|
|
1085
|
+
Subnets: output.Subnets != null ? de_Subnets(output.Subnets, context) : undefined,
|
|
1106
1086
|
};
|
|
1107
1087
|
};
|
|
1108
|
-
const
|
|
1088
|
+
const de_StringList = (output, context) => {
|
|
1109
1089
|
const retVal = (output || [])
|
|
1110
1090
|
.filter((e) => e != null)
|
|
1111
1091
|
.map((entry) => {
|
|
@@ -1116,7 +1096,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
1116
1096
|
});
|
|
1117
1097
|
return retVal;
|
|
1118
1098
|
};
|
|
1119
|
-
const
|
|
1099
|
+
const de_Subnets = (output, context) => {
|
|
1120
1100
|
const retVal = (output || [])
|
|
1121
1101
|
.filter((e) => e != null)
|
|
1122
1102
|
.map((entry) => {
|