@aws-sdk/client-customer-profiles 3.306.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/AddProfileKeyCommand.js +2 -2
- package/dist-cjs/commands/CreateDomainCommand.js +2 -2
- package/dist-cjs/commands/CreateIntegrationWorkflowCommand.js +2 -2
- package/dist-cjs/commands/CreateProfileCommand.js +2 -2
- package/dist-cjs/commands/DeleteDomainCommand.js +2 -2
- package/dist-cjs/commands/DeleteIntegrationCommand.js +2 -2
- package/dist-cjs/commands/DeleteProfileCommand.js +2 -2
- package/dist-cjs/commands/DeleteProfileKeyCommand.js +2 -2
- package/dist-cjs/commands/DeleteProfileObjectCommand.js +2 -2
- package/dist-cjs/commands/DeleteProfileObjectTypeCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkflowCommand.js +2 -2
- package/dist-cjs/commands/GetAutoMergingPreviewCommand.js +2 -2
- package/dist-cjs/commands/GetDomainCommand.js +2 -2
- package/dist-cjs/commands/GetIdentityResolutionJobCommand.js +2 -2
- package/dist-cjs/commands/GetIntegrationCommand.js +2 -2
- package/dist-cjs/commands/GetMatchesCommand.js +2 -2
- package/dist-cjs/commands/GetProfileObjectTypeCommand.js +2 -2
- package/dist-cjs/commands/GetProfileObjectTypeTemplateCommand.js +2 -2
- package/dist-cjs/commands/GetWorkflowCommand.js +2 -2
- package/dist-cjs/commands/GetWorkflowStepsCommand.js +2 -2
- package/dist-cjs/commands/ListAccountIntegrationsCommand.js +2 -2
- package/dist-cjs/commands/ListDomainsCommand.js +2 -2
- package/dist-cjs/commands/ListIdentityResolutionJobsCommand.js +2 -2
- package/dist-cjs/commands/ListIntegrationsCommand.js +2 -2
- package/dist-cjs/commands/ListProfileObjectTypeTemplatesCommand.js +2 -2
- package/dist-cjs/commands/ListProfileObjectTypesCommand.js +2 -2
- package/dist-cjs/commands/ListProfileObjectsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListWorkflowsCommand.js +2 -2
- package/dist-cjs/commands/MergeProfilesCommand.js +2 -2
- package/dist-cjs/commands/PutIntegrationCommand.js +2 -2
- package/dist-cjs/commands/PutProfileObjectCommand.js +2 -2
- package/dist-cjs/commands/PutProfileObjectTypeCommand.js +2 -2
- package/dist-cjs/commands/SearchProfilesCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDomainCommand.js +2 -2
- package/dist-cjs/commands/UpdateProfileCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +669 -723
- package/dist-es/commands/AddProfileKeyCommand.js +3 -3
- package/dist-es/commands/CreateDomainCommand.js +3 -3
- package/dist-es/commands/CreateIntegrationWorkflowCommand.js +3 -3
- package/dist-es/commands/CreateProfileCommand.js +3 -3
- package/dist-es/commands/DeleteDomainCommand.js +3 -3
- package/dist-es/commands/DeleteIntegrationCommand.js +3 -3
- package/dist-es/commands/DeleteProfileCommand.js +3 -3
- package/dist-es/commands/DeleteProfileKeyCommand.js +3 -3
- package/dist-es/commands/DeleteProfileObjectCommand.js +3 -3
- package/dist-es/commands/DeleteProfileObjectTypeCommand.js +3 -3
- package/dist-es/commands/DeleteWorkflowCommand.js +3 -3
- package/dist-es/commands/GetAutoMergingPreviewCommand.js +3 -3
- package/dist-es/commands/GetDomainCommand.js +3 -3
- package/dist-es/commands/GetIdentityResolutionJobCommand.js +3 -3
- package/dist-es/commands/GetIntegrationCommand.js +3 -3
- package/dist-es/commands/GetMatchesCommand.js +3 -3
- package/dist-es/commands/GetProfileObjectTypeCommand.js +3 -3
- package/dist-es/commands/GetProfileObjectTypeTemplateCommand.js +3 -3
- package/dist-es/commands/GetWorkflowCommand.js +3 -3
- package/dist-es/commands/GetWorkflowStepsCommand.js +3 -3
- package/dist-es/commands/ListAccountIntegrationsCommand.js +3 -3
- package/dist-es/commands/ListDomainsCommand.js +3 -3
- package/dist-es/commands/ListIdentityResolutionJobsCommand.js +3 -3
- package/dist-es/commands/ListIntegrationsCommand.js +3 -3
- package/dist-es/commands/ListProfileObjectTypeTemplatesCommand.js +3 -3
- package/dist-es/commands/ListProfileObjectTypesCommand.js +3 -3
- package/dist-es/commands/ListProfileObjectsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListWorkflowsCommand.js +3 -3
- package/dist-es/commands/MergeProfilesCommand.js +3 -3
- package/dist-es/commands/PutIntegrationCommand.js +3 -3
- package/dist-es/commands/PutProfileObjectCommand.js +3 -3
- package/dist-es/commands/PutProfileObjectTypeCommand.js +3 -3
- package/dist-es/commands/SearchProfilesCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDomainCommand.js +3 -3
- package/dist-es/commands/UpdateProfileCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +591 -645
- package/dist-types/protocols/Aws_restJson1.d.ts +304 -76
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +76 -76
- package/package.json +6 -6
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CustomerProfilesServiceException as __BaseException } from "../models/CustomerProfilesServiceException";
|
|
4
4
|
import { AccessDeniedException, BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_AddProfileKeyCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -13,7 +13,7 @@ export const serializeAws_restJson1AddProfileKeyCommand = async (input, context)
|
|
|
13
13
|
body = JSON.stringify({
|
|
14
14
|
...(input.KeyName != null && { KeyName: input.KeyName }),
|
|
15
15
|
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
16
|
-
...(input.Values != null && { Values:
|
|
16
|
+
...(input.Values != null && { Values: se_requestValueList(input.Values, context) }),
|
|
17
17
|
});
|
|
18
18
|
return new __HttpRequest({
|
|
19
19
|
protocol,
|
|
@@ -25,7 +25,7 @@ export const serializeAws_restJson1AddProfileKeyCommand = async (input, context)
|
|
|
25
25
|
body,
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
export const
|
|
28
|
+
export const se_CreateDomainCommand = async (input, context) => {
|
|
29
29
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/json",
|
|
@@ -37,8 +37,8 @@ export const serializeAws_restJson1CreateDomainCommand = async (input, context)
|
|
|
37
37
|
...(input.DeadLetterQueueUrl != null && { DeadLetterQueueUrl: input.DeadLetterQueueUrl }),
|
|
38
38
|
...(input.DefaultEncryptionKey != null && { DefaultEncryptionKey: input.DefaultEncryptionKey }),
|
|
39
39
|
...(input.DefaultExpirationDays != null && { DefaultExpirationDays: input.DefaultExpirationDays }),
|
|
40
|
-
...(input.Matching != null && { Matching:
|
|
41
|
-
...(input.Tags != null && { Tags:
|
|
40
|
+
...(input.Matching != null && { Matching: se_MatchingRequest(input.Matching, context) }),
|
|
41
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
42
42
|
});
|
|
43
43
|
return new __HttpRequest({
|
|
44
44
|
protocol,
|
|
@@ -50,7 +50,7 @@ export const serializeAws_restJson1CreateDomainCommand = async (input, context)
|
|
|
50
50
|
body,
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
-
export const
|
|
53
|
+
export const se_CreateIntegrationWorkflowCommand = async (input, context) => {
|
|
54
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
55
55
|
const headers = {
|
|
56
56
|
"content-type": "application/json",
|
|
@@ -61,11 +61,11 @@ export const serializeAws_restJson1CreateIntegrationWorkflowCommand = async (inp
|
|
|
61
61
|
let body;
|
|
62
62
|
body = JSON.stringify({
|
|
63
63
|
...(input.IntegrationConfig != null && {
|
|
64
|
-
IntegrationConfig:
|
|
64
|
+
IntegrationConfig: se_IntegrationConfig(input.IntegrationConfig, context),
|
|
65
65
|
}),
|
|
66
66
|
...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
|
|
67
67
|
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
68
|
-
...(input.Tags != null && { Tags:
|
|
68
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
69
69
|
...(input.WorkflowType != null && { WorkflowType: input.WorkflowType }),
|
|
70
70
|
});
|
|
71
71
|
return new __HttpRequest({
|
|
@@ -78,7 +78,7 @@ export const serializeAws_restJson1CreateIntegrationWorkflowCommand = async (inp
|
|
|
78
78
|
body,
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
-
export const
|
|
81
|
+
export const se_CreateProfileCommand = async (input, context) => {
|
|
82
82
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
83
83
|
const headers = {
|
|
84
84
|
"content-type": "application/json",
|
|
@@ -89,11 +89,9 @@ export const serializeAws_restJson1CreateProfileCommand = async (input, context)
|
|
|
89
89
|
body = JSON.stringify({
|
|
90
90
|
...(input.AccountNumber != null && { AccountNumber: input.AccountNumber }),
|
|
91
91
|
...(input.AdditionalInformation != null && { AdditionalInformation: input.AdditionalInformation }),
|
|
92
|
-
...(input.Address != null && { Address:
|
|
93
|
-
...(input.Attributes != null && { Attributes:
|
|
94
|
-
...(input.BillingAddress != null && {
|
|
95
|
-
BillingAddress: serializeAws_restJson1Address(input.BillingAddress, context),
|
|
96
|
-
}),
|
|
92
|
+
...(input.Address != null && { Address: se_Address(input.Address, context) }),
|
|
93
|
+
...(input.Attributes != null && { Attributes: se_Attributes(input.Attributes, context) }),
|
|
94
|
+
...(input.BillingAddress != null && { BillingAddress: se_Address(input.BillingAddress, context) }),
|
|
97
95
|
...(input.BirthDate != null && { BirthDate: input.BirthDate }),
|
|
98
96
|
...(input.BusinessEmailAddress != null && { BusinessEmailAddress: input.BusinessEmailAddress }),
|
|
99
97
|
...(input.BusinessName != null && { BusinessName: input.BusinessName }),
|
|
@@ -104,18 +102,14 @@ export const serializeAws_restJson1CreateProfileCommand = async (input, context)
|
|
|
104
102
|
...(input.GenderString != null && { GenderString: input.GenderString }),
|
|
105
103
|
...(input.HomePhoneNumber != null && { HomePhoneNumber: input.HomePhoneNumber }),
|
|
106
104
|
...(input.LastName != null && { LastName: input.LastName }),
|
|
107
|
-
...(input.MailingAddress != null && {
|
|
108
|
-
MailingAddress: serializeAws_restJson1Address(input.MailingAddress, context),
|
|
109
|
-
}),
|
|
105
|
+
...(input.MailingAddress != null && { MailingAddress: se_Address(input.MailingAddress, context) }),
|
|
110
106
|
...(input.MiddleName != null && { MiddleName: input.MiddleName }),
|
|
111
107
|
...(input.MobilePhoneNumber != null && { MobilePhoneNumber: input.MobilePhoneNumber }),
|
|
112
108
|
...(input.PartyType != null && { PartyType: input.PartyType }),
|
|
113
109
|
...(input.PartyTypeString != null && { PartyTypeString: input.PartyTypeString }),
|
|
114
110
|
...(input.PersonalEmailAddress != null && { PersonalEmailAddress: input.PersonalEmailAddress }),
|
|
115
111
|
...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
|
|
116
|
-
...(input.ShippingAddress != null && {
|
|
117
|
-
ShippingAddress: serializeAws_restJson1Address(input.ShippingAddress, context),
|
|
118
|
-
}),
|
|
112
|
+
...(input.ShippingAddress != null && { ShippingAddress: se_Address(input.ShippingAddress, context) }),
|
|
119
113
|
});
|
|
120
114
|
return new __HttpRequest({
|
|
121
115
|
protocol,
|
|
@@ -127,7 +121,7 @@ export const serializeAws_restJson1CreateProfileCommand = async (input, context)
|
|
|
127
121
|
body,
|
|
128
122
|
});
|
|
129
123
|
};
|
|
130
|
-
export const
|
|
124
|
+
export const se_DeleteDomainCommand = async (input, context) => {
|
|
131
125
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
126
|
const headers = {};
|
|
133
127
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}";
|
|
@@ -143,7 +137,7 @@ export const serializeAws_restJson1DeleteDomainCommand = async (input, context)
|
|
|
143
137
|
body,
|
|
144
138
|
});
|
|
145
139
|
};
|
|
146
|
-
export const
|
|
140
|
+
export const se_DeleteIntegrationCommand = async (input, context) => {
|
|
147
141
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
148
142
|
const headers = {
|
|
149
143
|
"content-type": "application/json",
|
|
@@ -164,7 +158,7 @@ export const serializeAws_restJson1DeleteIntegrationCommand = async (input, cont
|
|
|
164
158
|
body,
|
|
165
159
|
});
|
|
166
160
|
};
|
|
167
|
-
export const
|
|
161
|
+
export const se_DeleteProfileCommand = async (input, context) => {
|
|
168
162
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
169
163
|
const headers = {
|
|
170
164
|
"content-type": "application/json",
|
|
@@ -185,7 +179,7 @@ export const serializeAws_restJson1DeleteProfileCommand = async (input, context)
|
|
|
185
179
|
body,
|
|
186
180
|
});
|
|
187
181
|
};
|
|
188
|
-
export const
|
|
182
|
+
export const se_DeleteProfileKeyCommand = async (input, context) => {
|
|
189
183
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
190
184
|
const headers = {
|
|
191
185
|
"content-type": "application/json",
|
|
@@ -197,7 +191,7 @@ export const serializeAws_restJson1DeleteProfileKeyCommand = async (input, conte
|
|
|
197
191
|
body = JSON.stringify({
|
|
198
192
|
...(input.KeyName != null && { KeyName: input.KeyName }),
|
|
199
193
|
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
200
|
-
...(input.Values != null && { Values:
|
|
194
|
+
...(input.Values != null && { Values: se_requestValueList(input.Values, context) }),
|
|
201
195
|
});
|
|
202
196
|
return new __HttpRequest({
|
|
203
197
|
protocol,
|
|
@@ -209,7 +203,7 @@ export const serializeAws_restJson1DeleteProfileKeyCommand = async (input, conte
|
|
|
209
203
|
body,
|
|
210
204
|
});
|
|
211
205
|
};
|
|
212
|
-
export const
|
|
206
|
+
export const se_DeleteProfileObjectCommand = async (input, context) => {
|
|
213
207
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
208
|
const headers = {
|
|
215
209
|
"content-type": "application/json",
|
|
@@ -233,7 +227,7 @@ export const serializeAws_restJson1DeleteProfileObjectCommand = async (input, co
|
|
|
233
227
|
body,
|
|
234
228
|
});
|
|
235
229
|
};
|
|
236
|
-
export const
|
|
230
|
+
export const se_DeleteProfileObjectTypeCommand = async (input, context) => {
|
|
237
231
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
238
232
|
const headers = {};
|
|
239
233
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -251,7 +245,7 @@ export const serializeAws_restJson1DeleteProfileObjectTypeCommand = async (input
|
|
|
251
245
|
body,
|
|
252
246
|
});
|
|
253
247
|
};
|
|
254
|
-
export const
|
|
248
|
+
export const se_DeleteWorkflowCommand = async (input, context) => {
|
|
255
249
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
256
250
|
const headers = {};
|
|
257
251
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -269,7 +263,7 @@ export const serializeAws_restJson1DeleteWorkflowCommand = async (input, context
|
|
|
269
263
|
body,
|
|
270
264
|
});
|
|
271
265
|
};
|
|
272
|
-
export const
|
|
266
|
+
export const se_GetAutoMergingPreviewCommand = async (input, context) => {
|
|
273
267
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
274
268
|
const headers = {
|
|
275
269
|
"content-type": "application/json",
|
|
@@ -280,11 +274,9 @@ export const serializeAws_restJson1GetAutoMergingPreviewCommand = async (input,
|
|
|
280
274
|
let body;
|
|
281
275
|
body = JSON.stringify({
|
|
282
276
|
...(input.ConflictResolution != null && {
|
|
283
|
-
ConflictResolution:
|
|
284
|
-
}),
|
|
285
|
-
...(input.Consolidation != null && {
|
|
286
|
-
Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
|
|
277
|
+
ConflictResolution: se_ConflictResolution(input.ConflictResolution, context),
|
|
287
278
|
}),
|
|
279
|
+
...(input.Consolidation != null && { Consolidation: se_Consolidation(input.Consolidation, context) }),
|
|
288
280
|
...(input.MinAllowedConfidenceScoreForMerging != null && {
|
|
289
281
|
MinAllowedConfidenceScoreForMerging: __serializeFloat(input.MinAllowedConfidenceScoreForMerging),
|
|
290
282
|
}),
|
|
@@ -299,7 +291,7 @@ export const serializeAws_restJson1GetAutoMergingPreviewCommand = async (input,
|
|
|
299
291
|
body,
|
|
300
292
|
});
|
|
301
293
|
};
|
|
302
|
-
export const
|
|
294
|
+
export const se_GetDomainCommand = async (input, context) => {
|
|
303
295
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
304
296
|
const headers = {};
|
|
305
297
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}";
|
|
@@ -315,7 +307,7 @@ export const serializeAws_restJson1GetDomainCommand = async (input, context) =>
|
|
|
315
307
|
body,
|
|
316
308
|
});
|
|
317
309
|
};
|
|
318
|
-
export const
|
|
310
|
+
export const se_GetIdentityResolutionJobCommand = async (input, context) => {
|
|
319
311
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
320
312
|
const headers = {};
|
|
321
313
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -333,7 +325,7 @@ export const serializeAws_restJson1GetIdentityResolutionJobCommand = async (inpu
|
|
|
333
325
|
body,
|
|
334
326
|
});
|
|
335
327
|
};
|
|
336
|
-
export const
|
|
328
|
+
export const se_GetIntegrationCommand = async (input, context) => {
|
|
337
329
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
338
330
|
const headers = {
|
|
339
331
|
"content-type": "application/json",
|
|
@@ -354,7 +346,7 @@ export const serializeAws_restJson1GetIntegrationCommand = async (input, context
|
|
|
354
346
|
body,
|
|
355
347
|
});
|
|
356
348
|
};
|
|
357
|
-
export const
|
|
349
|
+
export const se_GetMatchesCommand = async (input, context) => {
|
|
358
350
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
359
351
|
const headers = {};
|
|
360
352
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/matches";
|
|
@@ -375,7 +367,7 @@ export const serializeAws_restJson1GetMatchesCommand = async (input, context) =>
|
|
|
375
367
|
body,
|
|
376
368
|
});
|
|
377
369
|
};
|
|
378
|
-
export const
|
|
370
|
+
export const se_GetProfileObjectTypeCommand = async (input, context) => {
|
|
379
371
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
380
372
|
const headers = {};
|
|
381
373
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -393,7 +385,7 @@ export const serializeAws_restJson1GetProfileObjectTypeCommand = async (input, c
|
|
|
393
385
|
body,
|
|
394
386
|
});
|
|
395
387
|
};
|
|
396
|
-
export const
|
|
388
|
+
export const se_GetProfileObjectTypeTemplateCommand = async (input, context) => {
|
|
397
389
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
398
390
|
const headers = {};
|
|
399
391
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{TemplateId}";
|
|
@@ -409,7 +401,7 @@ export const serializeAws_restJson1GetProfileObjectTypeTemplateCommand = async (
|
|
|
409
401
|
body,
|
|
410
402
|
});
|
|
411
403
|
};
|
|
412
|
-
export const
|
|
404
|
+
export const se_GetWorkflowCommand = async (input, context) => {
|
|
413
405
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
414
406
|
const headers = {};
|
|
415
407
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -427,7 +419,7 @@ export const serializeAws_restJson1GetWorkflowCommand = async (input, context) =
|
|
|
427
419
|
body,
|
|
428
420
|
});
|
|
429
421
|
};
|
|
430
|
-
export const
|
|
422
|
+
export const se_GetWorkflowStepsCommand = async (input, context) => {
|
|
431
423
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
432
424
|
const headers = {};
|
|
433
425
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -450,7 +442,7 @@ export const serializeAws_restJson1GetWorkflowStepsCommand = async (input, conte
|
|
|
450
442
|
body,
|
|
451
443
|
});
|
|
452
444
|
};
|
|
453
|
-
export const
|
|
445
|
+
export const se_ListAccountIntegrationsCommand = async (input, context) => {
|
|
454
446
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
455
447
|
const headers = {
|
|
456
448
|
"content-type": "application/json",
|
|
@@ -476,7 +468,7 @@ export const serializeAws_restJson1ListAccountIntegrationsCommand = async (input
|
|
|
476
468
|
body,
|
|
477
469
|
});
|
|
478
470
|
};
|
|
479
|
-
export const
|
|
471
|
+
export const se_ListDomainsCommand = async (input, context) => {
|
|
480
472
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
481
473
|
const headers = {};
|
|
482
474
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains";
|
|
@@ -496,7 +488,7 @@ export const serializeAws_restJson1ListDomainsCommand = async (input, context) =
|
|
|
496
488
|
body,
|
|
497
489
|
});
|
|
498
490
|
};
|
|
499
|
-
export const
|
|
491
|
+
export const se_ListIdentityResolutionJobsCommand = async (input, context) => {
|
|
500
492
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
501
493
|
const headers = {};
|
|
502
494
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -518,7 +510,7 @@ export const serializeAws_restJson1ListIdentityResolutionJobsCommand = async (in
|
|
|
518
510
|
body,
|
|
519
511
|
});
|
|
520
512
|
};
|
|
521
|
-
export const
|
|
513
|
+
export const se_ListIntegrationsCommand = async (input, context) => {
|
|
522
514
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
523
515
|
const headers = {};
|
|
524
516
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/integrations";
|
|
@@ -540,7 +532,7 @@ export const serializeAws_restJson1ListIntegrationsCommand = async (input, conte
|
|
|
540
532
|
body,
|
|
541
533
|
});
|
|
542
534
|
};
|
|
543
|
-
export const
|
|
535
|
+
export const se_ListProfileObjectsCommand = async (input, context) => {
|
|
544
536
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
545
537
|
const headers = {
|
|
546
538
|
"content-type": "application/json",
|
|
@@ -553,9 +545,7 @@ export const serializeAws_restJson1ListProfileObjectsCommand = async (input, con
|
|
|
553
545
|
});
|
|
554
546
|
let body;
|
|
555
547
|
body = JSON.stringify({
|
|
556
|
-
...(input.ObjectFilter != null && {
|
|
557
|
-
ObjectFilter: serializeAws_restJson1ObjectFilter(input.ObjectFilter, context),
|
|
558
|
-
}),
|
|
548
|
+
...(input.ObjectFilter != null && { ObjectFilter: se_ObjectFilter(input.ObjectFilter, context) }),
|
|
559
549
|
...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
|
|
560
550
|
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
561
551
|
});
|
|
@@ -570,7 +560,7 @@ export const serializeAws_restJson1ListProfileObjectsCommand = async (input, con
|
|
|
570
560
|
body,
|
|
571
561
|
});
|
|
572
562
|
};
|
|
573
|
-
export const
|
|
563
|
+
export const se_ListProfileObjectTypesCommand = async (input, context) => {
|
|
574
564
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
575
565
|
const headers = {};
|
|
576
566
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/object-types";
|
|
@@ -591,7 +581,7 @@ export const serializeAws_restJson1ListProfileObjectTypesCommand = async (input,
|
|
|
591
581
|
body,
|
|
592
582
|
});
|
|
593
583
|
};
|
|
594
|
-
export const
|
|
584
|
+
export const se_ListProfileObjectTypeTemplatesCommand = async (input, context) => {
|
|
595
585
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
596
586
|
const headers = {};
|
|
597
587
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates";
|
|
@@ -611,7 +601,7 @@ export const serializeAws_restJson1ListProfileObjectTypeTemplatesCommand = async
|
|
|
611
601
|
body,
|
|
612
602
|
});
|
|
613
603
|
};
|
|
614
|
-
export const
|
|
604
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
615
605
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
616
606
|
const headers = {};
|
|
617
607
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -627,7 +617,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
627
617
|
body,
|
|
628
618
|
});
|
|
629
619
|
};
|
|
630
|
-
export const
|
|
620
|
+
export const se_ListWorkflowsCommand = async (input, context) => {
|
|
631
621
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
632
622
|
const headers = {
|
|
633
623
|
"content-type": "application/json",
|
|
@@ -656,7 +646,7 @@ export const serializeAws_restJson1ListWorkflowsCommand = async (input, context)
|
|
|
656
646
|
body,
|
|
657
647
|
});
|
|
658
648
|
};
|
|
659
|
-
export const
|
|
649
|
+
export const se_MergeProfilesCommand = async (input, context) => {
|
|
660
650
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
661
651
|
const headers = {
|
|
662
652
|
"content-type": "application/json",
|
|
@@ -667,11 +657,11 @@ export const serializeAws_restJson1MergeProfilesCommand = async (input, context)
|
|
|
667
657
|
let body;
|
|
668
658
|
body = JSON.stringify({
|
|
669
659
|
...(input.FieldSourceProfileIds != null && {
|
|
670
|
-
FieldSourceProfileIds:
|
|
660
|
+
FieldSourceProfileIds: se_FieldSourceProfileIds(input.FieldSourceProfileIds, context),
|
|
671
661
|
}),
|
|
672
662
|
...(input.MainProfileId != null && { MainProfileId: input.MainProfileId }),
|
|
673
663
|
...(input.ProfileIdsToBeMerged != null && {
|
|
674
|
-
ProfileIdsToBeMerged:
|
|
664
|
+
ProfileIdsToBeMerged: se_ProfileIdToBeMergedList(input.ProfileIdsToBeMerged, context),
|
|
675
665
|
}),
|
|
676
666
|
});
|
|
677
667
|
return new __HttpRequest({
|
|
@@ -684,7 +674,7 @@ export const serializeAws_restJson1MergeProfilesCommand = async (input, context)
|
|
|
684
674
|
body,
|
|
685
675
|
});
|
|
686
676
|
};
|
|
687
|
-
export const
|
|
677
|
+
export const se_PutIntegrationCommand = async (input, context) => {
|
|
688
678
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
689
679
|
const headers = {
|
|
690
680
|
"content-type": "application/json",
|
|
@@ -693,14 +683,10 @@ export const serializeAws_restJson1PutIntegrationCommand = async (input, context
|
|
|
693
683
|
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
694
684
|
let body;
|
|
695
685
|
body = JSON.stringify({
|
|
696
|
-
...(input.FlowDefinition != null && {
|
|
697
|
-
FlowDefinition: serializeAws_restJson1FlowDefinition(input.FlowDefinition, context),
|
|
698
|
-
}),
|
|
686
|
+
...(input.FlowDefinition != null && { FlowDefinition: se_FlowDefinition(input.FlowDefinition, context) }),
|
|
699
687
|
...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
|
|
700
|
-
...(input.ObjectTypeNames != null && {
|
|
701
|
-
|
|
702
|
-
}),
|
|
703
|
-
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
688
|
+
...(input.ObjectTypeNames != null && { ObjectTypeNames: se_ObjectTypeNames(input.ObjectTypeNames, context) }),
|
|
689
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
704
690
|
...(input.Uri != null && { Uri: input.Uri }),
|
|
705
691
|
});
|
|
706
692
|
return new __HttpRequest({
|
|
@@ -713,7 +699,7 @@ export const serializeAws_restJson1PutIntegrationCommand = async (input, context
|
|
|
713
699
|
body,
|
|
714
700
|
});
|
|
715
701
|
};
|
|
716
|
-
export const
|
|
702
|
+
export const se_PutProfileObjectCommand = async (input, context) => {
|
|
717
703
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
718
704
|
const headers = {
|
|
719
705
|
"content-type": "application/json",
|
|
@@ -735,7 +721,7 @@ export const serializeAws_restJson1PutProfileObjectCommand = async (input, conte
|
|
|
735
721
|
body,
|
|
736
722
|
});
|
|
737
723
|
};
|
|
738
|
-
export const
|
|
724
|
+
export const se_PutProfileObjectTypeCommand = async (input, context) => {
|
|
739
725
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
740
726
|
const headers = {
|
|
741
727
|
"content-type": "application/json",
|
|
@@ -750,12 +736,12 @@ export const serializeAws_restJson1PutProfileObjectTypeCommand = async (input, c
|
|
|
750
736
|
...(input.Description != null && { Description: input.Description }),
|
|
751
737
|
...(input.EncryptionKey != null && { EncryptionKey: input.EncryptionKey }),
|
|
752
738
|
...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
|
|
753
|
-
...(input.Fields != null && { Fields:
|
|
754
|
-
...(input.Keys != null && { Keys:
|
|
739
|
+
...(input.Fields != null && { Fields: se_FieldMap(input.Fields, context) }),
|
|
740
|
+
...(input.Keys != null && { Keys: se_KeyMap(input.Keys, context) }),
|
|
755
741
|
...(input.SourceLastUpdatedTimestampFormat != null && {
|
|
756
742
|
SourceLastUpdatedTimestampFormat: input.SourceLastUpdatedTimestampFormat,
|
|
757
743
|
}),
|
|
758
|
-
...(input.Tags != null && { Tags:
|
|
744
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
759
745
|
...(input.TemplateId != null && { TemplateId: input.TemplateId }),
|
|
760
746
|
});
|
|
761
747
|
return new __HttpRequest({
|
|
@@ -768,7 +754,7 @@ export const serializeAws_restJson1PutProfileObjectTypeCommand = async (input, c
|
|
|
768
754
|
body,
|
|
769
755
|
});
|
|
770
756
|
};
|
|
771
|
-
export const
|
|
757
|
+
export const se_SearchProfilesCommand = async (input, context) => {
|
|
772
758
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
773
759
|
const headers = {
|
|
774
760
|
"content-type": "application/json",
|
|
@@ -782,11 +768,11 @@ export const serializeAws_restJson1SearchProfilesCommand = async (input, context
|
|
|
782
768
|
let body;
|
|
783
769
|
body = JSON.stringify({
|
|
784
770
|
...(input.AdditionalSearchKeys != null && {
|
|
785
|
-
AdditionalSearchKeys:
|
|
771
|
+
AdditionalSearchKeys: se_additionalSearchKeysList(input.AdditionalSearchKeys, context),
|
|
786
772
|
}),
|
|
787
773
|
...(input.KeyName != null && { KeyName: input.KeyName }),
|
|
788
774
|
...(input.LogicalOperator != null && { LogicalOperator: input.LogicalOperator }),
|
|
789
|
-
...(input.Values != null && { Values:
|
|
775
|
+
...(input.Values != null && { Values: se_requestValueList(input.Values, context) }),
|
|
790
776
|
});
|
|
791
777
|
return new __HttpRequest({
|
|
792
778
|
protocol,
|
|
@@ -799,7 +785,7 @@ export const serializeAws_restJson1SearchProfilesCommand = async (input, context
|
|
|
799
785
|
body,
|
|
800
786
|
});
|
|
801
787
|
};
|
|
802
|
-
export const
|
|
788
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
803
789
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
804
790
|
const headers = {
|
|
805
791
|
"content-type": "application/json",
|
|
@@ -808,7 +794,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
808
794
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
809
795
|
let body;
|
|
810
796
|
body = JSON.stringify({
|
|
811
|
-
...(input.tags != null && { tags:
|
|
797
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
812
798
|
});
|
|
813
799
|
return new __HttpRequest({
|
|
814
800
|
protocol,
|
|
@@ -820,7 +806,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
820
806
|
body,
|
|
821
807
|
});
|
|
822
808
|
};
|
|
823
|
-
export const
|
|
809
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
824
810
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
825
811
|
const headers = {};
|
|
826
812
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -843,7 +829,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
843
829
|
body,
|
|
844
830
|
});
|
|
845
831
|
};
|
|
846
|
-
export const
|
|
832
|
+
export const se_UpdateDomainCommand = async (input, context) => {
|
|
847
833
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
848
834
|
const headers = {
|
|
849
835
|
"content-type": "application/json",
|
|
@@ -855,8 +841,8 @@ export const serializeAws_restJson1UpdateDomainCommand = async (input, context)
|
|
|
855
841
|
...(input.DeadLetterQueueUrl != null && { DeadLetterQueueUrl: input.DeadLetterQueueUrl }),
|
|
856
842
|
...(input.DefaultEncryptionKey != null && { DefaultEncryptionKey: input.DefaultEncryptionKey }),
|
|
857
843
|
...(input.DefaultExpirationDays != null && { DefaultExpirationDays: input.DefaultExpirationDays }),
|
|
858
|
-
...(input.Matching != null && { Matching:
|
|
859
|
-
...(input.Tags != null && { Tags:
|
|
844
|
+
...(input.Matching != null && { Matching: se_MatchingRequest(input.Matching, context) }),
|
|
845
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
860
846
|
});
|
|
861
847
|
return new __HttpRequest({
|
|
862
848
|
protocol,
|
|
@@ -868,7 +854,7 @@ export const serializeAws_restJson1UpdateDomainCommand = async (input, context)
|
|
|
868
854
|
body,
|
|
869
855
|
});
|
|
870
856
|
};
|
|
871
|
-
export const
|
|
857
|
+
export const se_UpdateProfileCommand = async (input, context) => {
|
|
872
858
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
873
859
|
const headers = {
|
|
874
860
|
"content-type": "application/json",
|
|
@@ -879,11 +865,9 @@ export const serializeAws_restJson1UpdateProfileCommand = async (input, context)
|
|
|
879
865
|
body = JSON.stringify({
|
|
880
866
|
...(input.AccountNumber != null && { AccountNumber: input.AccountNumber }),
|
|
881
867
|
...(input.AdditionalInformation != null && { AdditionalInformation: input.AdditionalInformation }),
|
|
882
|
-
...(input.Address != null && { Address:
|
|
883
|
-
...(input.Attributes != null && { Attributes:
|
|
884
|
-
...(input.BillingAddress != null && {
|
|
885
|
-
BillingAddress: serializeAws_restJson1UpdateAddress(input.BillingAddress, context),
|
|
886
|
-
}),
|
|
868
|
+
...(input.Address != null && { Address: se_UpdateAddress(input.Address, context) }),
|
|
869
|
+
...(input.Attributes != null && { Attributes: se_UpdateAttributes(input.Attributes, context) }),
|
|
870
|
+
...(input.BillingAddress != null && { BillingAddress: se_UpdateAddress(input.BillingAddress, context) }),
|
|
887
871
|
...(input.BirthDate != null && { BirthDate: input.BirthDate }),
|
|
888
872
|
...(input.BusinessEmailAddress != null && { BusinessEmailAddress: input.BusinessEmailAddress }),
|
|
889
873
|
...(input.BusinessName != null && { BusinessName: input.BusinessName }),
|
|
@@ -894,9 +878,7 @@ export const serializeAws_restJson1UpdateProfileCommand = async (input, context)
|
|
|
894
878
|
...(input.GenderString != null && { GenderString: input.GenderString }),
|
|
895
879
|
...(input.HomePhoneNumber != null && { HomePhoneNumber: input.HomePhoneNumber }),
|
|
896
880
|
...(input.LastName != null && { LastName: input.LastName }),
|
|
897
|
-
...(input.MailingAddress != null && {
|
|
898
|
-
MailingAddress: serializeAws_restJson1UpdateAddress(input.MailingAddress, context),
|
|
899
|
-
}),
|
|
881
|
+
...(input.MailingAddress != null && { MailingAddress: se_UpdateAddress(input.MailingAddress, context) }),
|
|
900
882
|
...(input.MiddleName != null && { MiddleName: input.MiddleName }),
|
|
901
883
|
...(input.MobilePhoneNumber != null && { MobilePhoneNumber: input.MobilePhoneNumber }),
|
|
902
884
|
...(input.PartyType != null && { PartyType: input.PartyType }),
|
|
@@ -904,9 +886,7 @@ export const serializeAws_restJson1UpdateProfileCommand = async (input, context)
|
|
|
904
886
|
...(input.PersonalEmailAddress != null && { PersonalEmailAddress: input.PersonalEmailAddress }),
|
|
905
887
|
...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
|
|
906
888
|
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
907
|
-
...(input.ShippingAddress != null && {
|
|
908
|
-
ShippingAddress: serializeAws_restJson1UpdateAddress(input.ShippingAddress, context),
|
|
909
|
-
}),
|
|
889
|
+
...(input.ShippingAddress != null && { ShippingAddress: se_UpdateAddress(input.ShippingAddress, context) }),
|
|
910
890
|
});
|
|
911
891
|
return new __HttpRequest({
|
|
912
892
|
protocol,
|
|
@@ -918,9 +898,9 @@ export const serializeAws_restJson1UpdateProfileCommand = async (input, context)
|
|
|
918
898
|
body,
|
|
919
899
|
});
|
|
920
900
|
};
|
|
921
|
-
export const
|
|
901
|
+
export const de_AddProfileKeyCommand = async (output, context) => {
|
|
922
902
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
923
|
-
return
|
|
903
|
+
return de_AddProfileKeyCommandError(output, context);
|
|
924
904
|
}
|
|
925
905
|
const contents = map({
|
|
926
906
|
$metadata: deserializeMetadata(output),
|
|
@@ -930,11 +910,11 @@ export const deserializeAws_restJson1AddProfileKeyCommand = async (output, conte
|
|
|
930
910
|
contents.KeyName = __expectString(data.KeyName);
|
|
931
911
|
}
|
|
932
912
|
if (data.Values != null) {
|
|
933
|
-
contents.Values =
|
|
913
|
+
contents.Values = de_requestValueList(data.Values, context);
|
|
934
914
|
}
|
|
935
915
|
return contents;
|
|
936
916
|
};
|
|
937
|
-
const
|
|
917
|
+
const de_AddProfileKeyCommandError = async (output, context) => {
|
|
938
918
|
const parsedOutput = {
|
|
939
919
|
...output,
|
|
940
920
|
body: await parseErrorBody(output.body, context),
|
|
@@ -943,19 +923,19 @@ const deserializeAws_restJson1AddProfileKeyCommandError = async (output, context
|
|
|
943
923
|
switch (errorCode) {
|
|
944
924
|
case "AccessDeniedException":
|
|
945
925
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
946
|
-
throw await
|
|
926
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
947
927
|
case "BadRequestException":
|
|
948
928
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
949
|
-
throw await
|
|
929
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
950
930
|
case "InternalServerException":
|
|
951
931
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
952
|
-
throw await
|
|
932
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
953
933
|
case "ResourceNotFoundException":
|
|
954
934
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
955
|
-
throw await
|
|
935
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
956
936
|
case "ThrottlingException":
|
|
957
937
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
958
|
-
throw await
|
|
938
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
959
939
|
default:
|
|
960
940
|
const parsedBody = parsedOutput.body;
|
|
961
941
|
throwDefaultError({
|
|
@@ -966,9 +946,9 @@ const deserializeAws_restJson1AddProfileKeyCommandError = async (output, context
|
|
|
966
946
|
});
|
|
967
947
|
}
|
|
968
948
|
};
|
|
969
|
-
export const
|
|
949
|
+
export const de_CreateDomainCommand = async (output, context) => {
|
|
970
950
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
971
|
-
return
|
|
951
|
+
return de_CreateDomainCommandError(output, context);
|
|
972
952
|
}
|
|
973
953
|
const contents = map({
|
|
974
954
|
$metadata: deserializeMetadata(output),
|
|
@@ -993,14 +973,14 @@ export const deserializeAws_restJson1CreateDomainCommand = async (output, contex
|
|
|
993
973
|
contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
|
|
994
974
|
}
|
|
995
975
|
if (data.Matching != null) {
|
|
996
|
-
contents.Matching =
|
|
976
|
+
contents.Matching = de_MatchingResponse(data.Matching, context);
|
|
997
977
|
}
|
|
998
978
|
if (data.Tags != null) {
|
|
999
|
-
contents.Tags =
|
|
979
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1000
980
|
}
|
|
1001
981
|
return contents;
|
|
1002
982
|
};
|
|
1003
|
-
const
|
|
983
|
+
const de_CreateDomainCommandError = async (output, context) => {
|
|
1004
984
|
const parsedOutput = {
|
|
1005
985
|
...output,
|
|
1006
986
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1009,19 +989,19 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1009
989
|
switch (errorCode) {
|
|
1010
990
|
case "AccessDeniedException":
|
|
1011
991
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1012
|
-
throw await
|
|
992
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
993
|
case "BadRequestException":
|
|
1014
994
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1015
|
-
throw await
|
|
995
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1016
996
|
case "InternalServerException":
|
|
1017
997
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1018
|
-
throw await
|
|
998
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
999
|
case "ResourceNotFoundException":
|
|
1020
1000
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1021
|
-
throw await
|
|
1001
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
1002
|
case "ThrottlingException":
|
|
1023
1003
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1024
|
-
throw await
|
|
1004
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1025
1005
|
default:
|
|
1026
1006
|
const parsedBody = parsedOutput.body;
|
|
1027
1007
|
throwDefaultError({
|
|
@@ -1032,9 +1012,9 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1032
1012
|
});
|
|
1033
1013
|
}
|
|
1034
1014
|
};
|
|
1035
|
-
export const
|
|
1015
|
+
export const de_CreateIntegrationWorkflowCommand = async (output, context) => {
|
|
1036
1016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
|
-
return
|
|
1017
|
+
return de_CreateIntegrationWorkflowCommandError(output, context);
|
|
1038
1018
|
}
|
|
1039
1019
|
const contents = map({
|
|
1040
1020
|
$metadata: deserializeMetadata(output),
|
|
@@ -1048,7 +1028,7 @@ export const deserializeAws_restJson1CreateIntegrationWorkflowCommand = async (o
|
|
|
1048
1028
|
}
|
|
1049
1029
|
return contents;
|
|
1050
1030
|
};
|
|
1051
|
-
const
|
|
1031
|
+
const de_CreateIntegrationWorkflowCommandError = async (output, context) => {
|
|
1052
1032
|
const parsedOutput = {
|
|
1053
1033
|
...output,
|
|
1054
1034
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1057,19 +1037,19 @@ const deserializeAws_restJson1CreateIntegrationWorkflowCommandError = async (out
|
|
|
1057
1037
|
switch (errorCode) {
|
|
1058
1038
|
case "AccessDeniedException":
|
|
1059
1039
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1060
|
-
throw await
|
|
1040
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1061
1041
|
case "BadRequestException":
|
|
1062
1042
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1063
|
-
throw await
|
|
1043
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1064
1044
|
case "InternalServerException":
|
|
1065
1045
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1066
|
-
throw await
|
|
1046
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1067
1047
|
case "ResourceNotFoundException":
|
|
1068
1048
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1069
|
-
throw await
|
|
1049
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1070
1050
|
case "ThrottlingException":
|
|
1071
1051
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1072
|
-
throw await
|
|
1052
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1073
1053
|
default:
|
|
1074
1054
|
const parsedBody = parsedOutput.body;
|
|
1075
1055
|
throwDefaultError({
|
|
@@ -1080,9 +1060,9 @@ const deserializeAws_restJson1CreateIntegrationWorkflowCommandError = async (out
|
|
|
1080
1060
|
});
|
|
1081
1061
|
}
|
|
1082
1062
|
};
|
|
1083
|
-
export const
|
|
1063
|
+
export const de_CreateProfileCommand = async (output, context) => {
|
|
1084
1064
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1085
|
-
return
|
|
1065
|
+
return de_CreateProfileCommandError(output, context);
|
|
1086
1066
|
}
|
|
1087
1067
|
const contents = map({
|
|
1088
1068
|
$metadata: deserializeMetadata(output),
|
|
@@ -1093,7 +1073,7 @@ export const deserializeAws_restJson1CreateProfileCommand = async (output, conte
|
|
|
1093
1073
|
}
|
|
1094
1074
|
return contents;
|
|
1095
1075
|
};
|
|
1096
|
-
const
|
|
1076
|
+
const de_CreateProfileCommandError = async (output, context) => {
|
|
1097
1077
|
const parsedOutput = {
|
|
1098
1078
|
...output,
|
|
1099
1079
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1102,19 +1082,19 @@ const deserializeAws_restJson1CreateProfileCommandError = async (output, context
|
|
|
1102
1082
|
switch (errorCode) {
|
|
1103
1083
|
case "AccessDeniedException":
|
|
1104
1084
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1105
|
-
throw await
|
|
1085
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1106
1086
|
case "BadRequestException":
|
|
1107
1087
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1108
|
-
throw await
|
|
1088
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1109
1089
|
case "InternalServerException":
|
|
1110
1090
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1111
|
-
throw await
|
|
1091
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1112
1092
|
case "ResourceNotFoundException":
|
|
1113
1093
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1114
|
-
throw await
|
|
1094
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1115
1095
|
case "ThrottlingException":
|
|
1116
1096
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1117
|
-
throw await
|
|
1097
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1118
1098
|
default:
|
|
1119
1099
|
const parsedBody = parsedOutput.body;
|
|
1120
1100
|
throwDefaultError({
|
|
@@ -1125,9 +1105,9 @@ const deserializeAws_restJson1CreateProfileCommandError = async (output, context
|
|
|
1125
1105
|
});
|
|
1126
1106
|
}
|
|
1127
1107
|
};
|
|
1128
|
-
export const
|
|
1108
|
+
export const de_DeleteDomainCommand = async (output, context) => {
|
|
1129
1109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1130
|
-
return
|
|
1110
|
+
return de_DeleteDomainCommandError(output, context);
|
|
1131
1111
|
}
|
|
1132
1112
|
const contents = map({
|
|
1133
1113
|
$metadata: deserializeMetadata(output),
|
|
@@ -1138,7 +1118,7 @@ export const deserializeAws_restJson1DeleteDomainCommand = async (output, contex
|
|
|
1138
1118
|
}
|
|
1139
1119
|
return contents;
|
|
1140
1120
|
};
|
|
1141
|
-
const
|
|
1121
|
+
const de_DeleteDomainCommandError = async (output, context) => {
|
|
1142
1122
|
const parsedOutput = {
|
|
1143
1123
|
...output,
|
|
1144
1124
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1147,19 +1127,19 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1147
1127
|
switch (errorCode) {
|
|
1148
1128
|
case "AccessDeniedException":
|
|
1149
1129
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1150
|
-
throw await
|
|
1130
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1151
1131
|
case "BadRequestException":
|
|
1152
1132
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1153
|
-
throw await
|
|
1133
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1154
1134
|
case "InternalServerException":
|
|
1155
1135
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1156
|
-
throw await
|
|
1136
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1157
1137
|
case "ResourceNotFoundException":
|
|
1158
1138
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1159
|
-
throw await
|
|
1139
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1160
1140
|
case "ThrottlingException":
|
|
1161
1141
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1162
|
-
throw await
|
|
1142
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1163
1143
|
default:
|
|
1164
1144
|
const parsedBody = parsedOutput.body;
|
|
1165
1145
|
throwDefaultError({
|
|
@@ -1170,9 +1150,9 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1170
1150
|
});
|
|
1171
1151
|
}
|
|
1172
1152
|
};
|
|
1173
|
-
export const
|
|
1153
|
+
export const de_DeleteIntegrationCommand = async (output, context) => {
|
|
1174
1154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1175
|
-
return
|
|
1155
|
+
return de_DeleteIntegrationCommandError(output, context);
|
|
1176
1156
|
}
|
|
1177
1157
|
const contents = map({
|
|
1178
1158
|
$metadata: deserializeMetadata(output),
|
|
@@ -1183,7 +1163,7 @@ export const deserializeAws_restJson1DeleteIntegrationCommand = async (output, c
|
|
|
1183
1163
|
}
|
|
1184
1164
|
return contents;
|
|
1185
1165
|
};
|
|
1186
|
-
const
|
|
1166
|
+
const de_DeleteIntegrationCommandError = async (output, context) => {
|
|
1187
1167
|
const parsedOutput = {
|
|
1188
1168
|
...output,
|
|
1189
1169
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1192,19 +1172,19 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
|
|
|
1192
1172
|
switch (errorCode) {
|
|
1193
1173
|
case "AccessDeniedException":
|
|
1194
1174
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1195
|
-
throw await
|
|
1175
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1196
1176
|
case "BadRequestException":
|
|
1197
1177
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1198
|
-
throw await
|
|
1178
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1199
1179
|
case "InternalServerException":
|
|
1200
1180
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1201
|
-
throw await
|
|
1181
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1202
1182
|
case "ResourceNotFoundException":
|
|
1203
1183
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1204
|
-
throw await
|
|
1184
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1205
1185
|
case "ThrottlingException":
|
|
1206
1186
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1207
|
-
throw await
|
|
1187
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1208
1188
|
default:
|
|
1209
1189
|
const parsedBody = parsedOutput.body;
|
|
1210
1190
|
throwDefaultError({
|
|
@@ -1215,9 +1195,9 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
|
|
|
1215
1195
|
});
|
|
1216
1196
|
}
|
|
1217
1197
|
};
|
|
1218
|
-
export const
|
|
1198
|
+
export const de_DeleteProfileCommand = async (output, context) => {
|
|
1219
1199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1220
|
-
return
|
|
1200
|
+
return de_DeleteProfileCommandError(output, context);
|
|
1221
1201
|
}
|
|
1222
1202
|
const contents = map({
|
|
1223
1203
|
$metadata: deserializeMetadata(output),
|
|
@@ -1228,7 +1208,7 @@ export const deserializeAws_restJson1DeleteProfileCommand = async (output, conte
|
|
|
1228
1208
|
}
|
|
1229
1209
|
return contents;
|
|
1230
1210
|
};
|
|
1231
|
-
const
|
|
1211
|
+
const de_DeleteProfileCommandError = async (output, context) => {
|
|
1232
1212
|
const parsedOutput = {
|
|
1233
1213
|
...output,
|
|
1234
1214
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1237,19 +1217,19 @@ const deserializeAws_restJson1DeleteProfileCommandError = async (output, context
|
|
|
1237
1217
|
switch (errorCode) {
|
|
1238
1218
|
case "AccessDeniedException":
|
|
1239
1219
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1240
|
-
throw await
|
|
1220
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1241
1221
|
case "BadRequestException":
|
|
1242
1222
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1243
|
-
throw await
|
|
1223
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1244
1224
|
case "InternalServerException":
|
|
1245
1225
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1246
|
-
throw await
|
|
1226
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1247
1227
|
case "ResourceNotFoundException":
|
|
1248
1228
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1249
|
-
throw await
|
|
1229
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
1230
|
case "ThrottlingException":
|
|
1251
1231
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1252
|
-
throw await
|
|
1232
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1253
1233
|
default:
|
|
1254
1234
|
const parsedBody = parsedOutput.body;
|
|
1255
1235
|
throwDefaultError({
|
|
@@ -1260,9 +1240,9 @@ const deserializeAws_restJson1DeleteProfileCommandError = async (output, context
|
|
|
1260
1240
|
});
|
|
1261
1241
|
}
|
|
1262
1242
|
};
|
|
1263
|
-
export const
|
|
1243
|
+
export const de_DeleteProfileKeyCommand = async (output, context) => {
|
|
1264
1244
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
-
return
|
|
1245
|
+
return de_DeleteProfileKeyCommandError(output, context);
|
|
1266
1246
|
}
|
|
1267
1247
|
const contents = map({
|
|
1268
1248
|
$metadata: deserializeMetadata(output),
|
|
@@ -1273,7 +1253,7 @@ export const deserializeAws_restJson1DeleteProfileKeyCommand = async (output, co
|
|
|
1273
1253
|
}
|
|
1274
1254
|
return contents;
|
|
1275
1255
|
};
|
|
1276
|
-
const
|
|
1256
|
+
const de_DeleteProfileKeyCommandError = async (output, context) => {
|
|
1277
1257
|
const parsedOutput = {
|
|
1278
1258
|
...output,
|
|
1279
1259
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1282,19 +1262,19 @@ const deserializeAws_restJson1DeleteProfileKeyCommandError = async (output, cont
|
|
|
1282
1262
|
switch (errorCode) {
|
|
1283
1263
|
case "AccessDeniedException":
|
|
1284
1264
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1285
|
-
throw await
|
|
1265
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1286
1266
|
case "BadRequestException":
|
|
1287
1267
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1288
|
-
throw await
|
|
1268
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1289
1269
|
case "InternalServerException":
|
|
1290
1270
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1291
|
-
throw await
|
|
1271
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1292
1272
|
case "ResourceNotFoundException":
|
|
1293
1273
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1294
|
-
throw await
|
|
1274
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1295
1275
|
case "ThrottlingException":
|
|
1296
1276
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1297
|
-
throw await
|
|
1277
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1298
1278
|
default:
|
|
1299
1279
|
const parsedBody = parsedOutput.body;
|
|
1300
1280
|
throwDefaultError({
|
|
@@ -1305,9 +1285,9 @@ const deserializeAws_restJson1DeleteProfileKeyCommandError = async (output, cont
|
|
|
1305
1285
|
});
|
|
1306
1286
|
}
|
|
1307
1287
|
};
|
|
1308
|
-
export const
|
|
1288
|
+
export const de_DeleteProfileObjectCommand = async (output, context) => {
|
|
1309
1289
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
|
-
return
|
|
1290
|
+
return de_DeleteProfileObjectCommandError(output, context);
|
|
1311
1291
|
}
|
|
1312
1292
|
const contents = map({
|
|
1313
1293
|
$metadata: deserializeMetadata(output),
|
|
@@ -1318,7 +1298,7 @@ export const deserializeAws_restJson1DeleteProfileObjectCommand = async (output,
|
|
|
1318
1298
|
}
|
|
1319
1299
|
return contents;
|
|
1320
1300
|
};
|
|
1321
|
-
const
|
|
1301
|
+
const de_DeleteProfileObjectCommandError = async (output, context) => {
|
|
1322
1302
|
const parsedOutput = {
|
|
1323
1303
|
...output,
|
|
1324
1304
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1327,19 +1307,19 @@ const deserializeAws_restJson1DeleteProfileObjectCommandError = async (output, c
|
|
|
1327
1307
|
switch (errorCode) {
|
|
1328
1308
|
case "AccessDeniedException":
|
|
1329
1309
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1330
|
-
throw await
|
|
1310
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1331
1311
|
case "BadRequestException":
|
|
1332
1312
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1333
|
-
throw await
|
|
1313
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1334
1314
|
case "InternalServerException":
|
|
1335
1315
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1336
|
-
throw await
|
|
1316
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1337
1317
|
case "ResourceNotFoundException":
|
|
1338
1318
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1339
|
-
throw await
|
|
1319
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1340
1320
|
case "ThrottlingException":
|
|
1341
1321
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1342
|
-
throw await
|
|
1322
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1343
1323
|
default:
|
|
1344
1324
|
const parsedBody = parsedOutput.body;
|
|
1345
1325
|
throwDefaultError({
|
|
@@ -1350,9 +1330,9 @@ const deserializeAws_restJson1DeleteProfileObjectCommandError = async (output, c
|
|
|
1350
1330
|
});
|
|
1351
1331
|
}
|
|
1352
1332
|
};
|
|
1353
|
-
export const
|
|
1333
|
+
export const de_DeleteProfileObjectTypeCommand = async (output, context) => {
|
|
1354
1334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1355
|
-
return
|
|
1335
|
+
return de_DeleteProfileObjectTypeCommandError(output, context);
|
|
1356
1336
|
}
|
|
1357
1337
|
const contents = map({
|
|
1358
1338
|
$metadata: deserializeMetadata(output),
|
|
@@ -1363,7 +1343,7 @@ export const deserializeAws_restJson1DeleteProfileObjectTypeCommand = async (out
|
|
|
1363
1343
|
}
|
|
1364
1344
|
return contents;
|
|
1365
1345
|
};
|
|
1366
|
-
const
|
|
1346
|
+
const de_DeleteProfileObjectTypeCommandError = async (output, context) => {
|
|
1367
1347
|
const parsedOutput = {
|
|
1368
1348
|
...output,
|
|
1369
1349
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1372,19 +1352,19 @@ const deserializeAws_restJson1DeleteProfileObjectTypeCommandError = async (outpu
|
|
|
1372
1352
|
switch (errorCode) {
|
|
1373
1353
|
case "AccessDeniedException":
|
|
1374
1354
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1375
|
-
throw await
|
|
1355
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1376
1356
|
case "BadRequestException":
|
|
1377
1357
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1378
|
-
throw await
|
|
1358
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1379
1359
|
case "InternalServerException":
|
|
1380
1360
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1381
|
-
throw await
|
|
1361
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1382
1362
|
case "ResourceNotFoundException":
|
|
1383
1363
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1384
|
-
throw await
|
|
1364
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1385
1365
|
case "ThrottlingException":
|
|
1386
1366
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1387
|
-
throw await
|
|
1367
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1388
1368
|
default:
|
|
1389
1369
|
const parsedBody = parsedOutput.body;
|
|
1390
1370
|
throwDefaultError({
|
|
@@ -1395,9 +1375,9 @@ const deserializeAws_restJson1DeleteProfileObjectTypeCommandError = async (outpu
|
|
|
1395
1375
|
});
|
|
1396
1376
|
}
|
|
1397
1377
|
};
|
|
1398
|
-
export const
|
|
1378
|
+
export const de_DeleteWorkflowCommand = async (output, context) => {
|
|
1399
1379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
1380
|
+
return de_DeleteWorkflowCommandError(output, context);
|
|
1401
1381
|
}
|
|
1402
1382
|
const contents = map({
|
|
1403
1383
|
$metadata: deserializeMetadata(output),
|
|
@@ -1405,7 +1385,7 @@ export const deserializeAws_restJson1DeleteWorkflowCommand = async (output, cont
|
|
|
1405
1385
|
await collectBody(output.body, context);
|
|
1406
1386
|
return contents;
|
|
1407
1387
|
};
|
|
1408
|
-
const
|
|
1388
|
+
const de_DeleteWorkflowCommandError = async (output, context) => {
|
|
1409
1389
|
const parsedOutput = {
|
|
1410
1390
|
...output,
|
|
1411
1391
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1414,19 +1394,19 @@ const deserializeAws_restJson1DeleteWorkflowCommandError = async (output, contex
|
|
|
1414
1394
|
switch (errorCode) {
|
|
1415
1395
|
case "AccessDeniedException":
|
|
1416
1396
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1417
|
-
throw await
|
|
1397
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1418
1398
|
case "BadRequestException":
|
|
1419
1399
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1420
|
-
throw await
|
|
1400
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1421
1401
|
case "InternalServerException":
|
|
1422
1402
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1423
|
-
throw await
|
|
1403
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1424
1404
|
case "ResourceNotFoundException":
|
|
1425
1405
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1426
|
-
throw await
|
|
1406
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1427
1407
|
case "ThrottlingException":
|
|
1428
1408
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1429
|
-
throw await
|
|
1409
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1430
1410
|
default:
|
|
1431
1411
|
const parsedBody = parsedOutput.body;
|
|
1432
1412
|
throwDefaultError({
|
|
@@ -1437,9 +1417,9 @@ const deserializeAws_restJson1DeleteWorkflowCommandError = async (output, contex
|
|
|
1437
1417
|
});
|
|
1438
1418
|
}
|
|
1439
1419
|
};
|
|
1440
|
-
export const
|
|
1420
|
+
export const de_GetAutoMergingPreviewCommand = async (output, context) => {
|
|
1441
1421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1442
|
-
return
|
|
1422
|
+
return de_GetAutoMergingPreviewCommandError(output, context);
|
|
1443
1423
|
}
|
|
1444
1424
|
const contents = map({
|
|
1445
1425
|
$metadata: deserializeMetadata(output),
|
|
@@ -1459,7 +1439,7 @@ export const deserializeAws_restJson1GetAutoMergingPreviewCommand = async (outpu
|
|
|
1459
1439
|
}
|
|
1460
1440
|
return contents;
|
|
1461
1441
|
};
|
|
1462
|
-
const
|
|
1442
|
+
const de_GetAutoMergingPreviewCommandError = async (output, context) => {
|
|
1463
1443
|
const parsedOutput = {
|
|
1464
1444
|
...output,
|
|
1465
1445
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1468,19 +1448,19 @@ const deserializeAws_restJson1GetAutoMergingPreviewCommandError = async (output,
|
|
|
1468
1448
|
switch (errorCode) {
|
|
1469
1449
|
case "AccessDeniedException":
|
|
1470
1450
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1471
|
-
throw await
|
|
1451
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1472
1452
|
case "BadRequestException":
|
|
1473
1453
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1474
|
-
throw await
|
|
1454
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1475
1455
|
case "InternalServerException":
|
|
1476
1456
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1477
|
-
throw await
|
|
1457
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1478
1458
|
case "ResourceNotFoundException":
|
|
1479
1459
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1480
|
-
throw await
|
|
1460
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1481
1461
|
case "ThrottlingException":
|
|
1482
1462
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1483
|
-
throw await
|
|
1463
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1484
1464
|
default:
|
|
1485
1465
|
const parsedBody = parsedOutput.body;
|
|
1486
1466
|
throwDefaultError({
|
|
@@ -1491,9 +1471,9 @@ const deserializeAws_restJson1GetAutoMergingPreviewCommandError = async (output,
|
|
|
1491
1471
|
});
|
|
1492
1472
|
}
|
|
1493
1473
|
};
|
|
1494
|
-
export const
|
|
1474
|
+
export const de_GetDomainCommand = async (output, context) => {
|
|
1495
1475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1496
|
-
return
|
|
1476
|
+
return de_GetDomainCommandError(output, context);
|
|
1497
1477
|
}
|
|
1498
1478
|
const contents = map({
|
|
1499
1479
|
$metadata: deserializeMetadata(output),
|
|
@@ -1518,17 +1498,17 @@ export const deserializeAws_restJson1GetDomainCommand = async (output, context)
|
|
|
1518
1498
|
contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
|
|
1519
1499
|
}
|
|
1520
1500
|
if (data.Matching != null) {
|
|
1521
|
-
contents.Matching =
|
|
1501
|
+
contents.Matching = de_MatchingResponse(data.Matching, context);
|
|
1522
1502
|
}
|
|
1523
1503
|
if (data.Stats != null) {
|
|
1524
|
-
contents.Stats =
|
|
1504
|
+
contents.Stats = de_DomainStats(data.Stats, context);
|
|
1525
1505
|
}
|
|
1526
1506
|
if (data.Tags != null) {
|
|
1527
|
-
contents.Tags =
|
|
1507
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1528
1508
|
}
|
|
1529
1509
|
return contents;
|
|
1530
1510
|
};
|
|
1531
|
-
const
|
|
1511
|
+
const de_GetDomainCommandError = async (output, context) => {
|
|
1532
1512
|
const parsedOutput = {
|
|
1533
1513
|
...output,
|
|
1534
1514
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1537,19 +1517,19 @@ const deserializeAws_restJson1GetDomainCommandError = async (output, context) =>
|
|
|
1537
1517
|
switch (errorCode) {
|
|
1538
1518
|
case "AccessDeniedException":
|
|
1539
1519
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1540
|
-
throw await
|
|
1520
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1541
1521
|
case "BadRequestException":
|
|
1542
1522
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1543
|
-
throw await
|
|
1523
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1544
1524
|
case "InternalServerException":
|
|
1545
1525
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1546
|
-
throw await
|
|
1526
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1547
1527
|
case "ResourceNotFoundException":
|
|
1548
1528
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1549
|
-
throw await
|
|
1529
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1550
1530
|
case "ThrottlingException":
|
|
1551
1531
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1552
|
-
throw await
|
|
1532
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1553
1533
|
default:
|
|
1554
1534
|
const parsedBody = parsedOutput.body;
|
|
1555
1535
|
throwDefaultError({
|
|
@@ -1560,22 +1540,22 @@ const deserializeAws_restJson1GetDomainCommandError = async (output, context) =>
|
|
|
1560
1540
|
});
|
|
1561
1541
|
}
|
|
1562
1542
|
};
|
|
1563
|
-
export const
|
|
1543
|
+
export const de_GetIdentityResolutionJobCommand = async (output, context) => {
|
|
1564
1544
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1565
|
-
return
|
|
1545
|
+
return de_GetIdentityResolutionJobCommandError(output, context);
|
|
1566
1546
|
}
|
|
1567
1547
|
const contents = map({
|
|
1568
1548
|
$metadata: deserializeMetadata(output),
|
|
1569
1549
|
});
|
|
1570
1550
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1571
1551
|
if (data.AutoMerging != null) {
|
|
1572
|
-
contents.AutoMerging =
|
|
1552
|
+
contents.AutoMerging = de_AutoMerging(data.AutoMerging, context);
|
|
1573
1553
|
}
|
|
1574
1554
|
if (data.DomainName != null) {
|
|
1575
1555
|
contents.DomainName = __expectString(data.DomainName);
|
|
1576
1556
|
}
|
|
1577
1557
|
if (data.ExportingLocation != null) {
|
|
1578
|
-
contents.ExportingLocation =
|
|
1558
|
+
contents.ExportingLocation = de_ExportingLocation(data.ExportingLocation, context);
|
|
1579
1559
|
}
|
|
1580
1560
|
if (data.JobEndTime != null) {
|
|
1581
1561
|
contents.JobEndTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.JobEndTime)));
|
|
@@ -1590,7 +1570,7 @@ export const deserializeAws_restJson1GetIdentityResolutionJobCommand = async (ou
|
|
|
1590
1570
|
contents.JobStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.JobStartTime)));
|
|
1591
1571
|
}
|
|
1592
1572
|
if (data.JobStats != null) {
|
|
1593
|
-
contents.JobStats =
|
|
1573
|
+
contents.JobStats = de_JobStats(data.JobStats, context);
|
|
1594
1574
|
}
|
|
1595
1575
|
if (data.LastUpdatedAt != null) {
|
|
1596
1576
|
contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
|
|
@@ -1603,7 +1583,7 @@ export const deserializeAws_restJson1GetIdentityResolutionJobCommand = async (ou
|
|
|
1603
1583
|
}
|
|
1604
1584
|
return contents;
|
|
1605
1585
|
};
|
|
1606
|
-
const
|
|
1586
|
+
const de_GetIdentityResolutionJobCommandError = async (output, context) => {
|
|
1607
1587
|
const parsedOutput = {
|
|
1608
1588
|
...output,
|
|
1609
1589
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1612,19 +1592,19 @@ const deserializeAws_restJson1GetIdentityResolutionJobCommandError = async (outp
|
|
|
1612
1592
|
switch (errorCode) {
|
|
1613
1593
|
case "AccessDeniedException":
|
|
1614
1594
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1615
|
-
throw await
|
|
1595
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1616
1596
|
case "BadRequestException":
|
|
1617
1597
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1618
|
-
throw await
|
|
1598
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1619
1599
|
case "InternalServerException":
|
|
1620
1600
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1621
|
-
throw await
|
|
1601
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1622
1602
|
case "ResourceNotFoundException":
|
|
1623
1603
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1624
|
-
throw await
|
|
1604
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1625
1605
|
case "ThrottlingException":
|
|
1626
1606
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1627
|
-
throw await
|
|
1607
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1628
1608
|
default:
|
|
1629
1609
|
const parsedBody = parsedOutput.body;
|
|
1630
1610
|
throwDefaultError({
|
|
@@ -1635,9 +1615,9 @@ const deserializeAws_restJson1GetIdentityResolutionJobCommandError = async (outp
|
|
|
1635
1615
|
});
|
|
1636
1616
|
}
|
|
1637
1617
|
};
|
|
1638
|
-
export const
|
|
1618
|
+
export const de_GetIntegrationCommand = async (output, context) => {
|
|
1639
1619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1640
|
-
return
|
|
1620
|
+
return de_GetIntegrationCommandError(output, context);
|
|
1641
1621
|
}
|
|
1642
1622
|
const contents = map({
|
|
1643
1623
|
$metadata: deserializeMetadata(output),
|
|
@@ -1659,10 +1639,10 @@ export const deserializeAws_restJson1GetIntegrationCommand = async (output, cont
|
|
|
1659
1639
|
contents.ObjectTypeName = __expectString(data.ObjectTypeName);
|
|
1660
1640
|
}
|
|
1661
1641
|
if (data.ObjectTypeNames != null) {
|
|
1662
|
-
contents.ObjectTypeNames =
|
|
1642
|
+
contents.ObjectTypeNames = de_ObjectTypeNames(data.ObjectTypeNames, context);
|
|
1663
1643
|
}
|
|
1664
1644
|
if (data.Tags != null) {
|
|
1665
|
-
contents.Tags =
|
|
1645
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1666
1646
|
}
|
|
1667
1647
|
if (data.Uri != null) {
|
|
1668
1648
|
contents.Uri = __expectString(data.Uri);
|
|
@@ -1672,7 +1652,7 @@ export const deserializeAws_restJson1GetIntegrationCommand = async (output, cont
|
|
|
1672
1652
|
}
|
|
1673
1653
|
return contents;
|
|
1674
1654
|
};
|
|
1675
|
-
const
|
|
1655
|
+
const de_GetIntegrationCommandError = async (output, context) => {
|
|
1676
1656
|
const parsedOutput = {
|
|
1677
1657
|
...output,
|
|
1678
1658
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1681,19 +1661,19 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
|
|
|
1681
1661
|
switch (errorCode) {
|
|
1682
1662
|
case "AccessDeniedException":
|
|
1683
1663
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1684
|
-
throw await
|
|
1664
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1685
1665
|
case "BadRequestException":
|
|
1686
1666
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1687
|
-
throw await
|
|
1667
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1688
1668
|
case "InternalServerException":
|
|
1689
1669
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1690
|
-
throw await
|
|
1670
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1691
1671
|
case "ResourceNotFoundException":
|
|
1692
1672
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1693
|
-
throw await
|
|
1673
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1694
1674
|
case "ThrottlingException":
|
|
1695
1675
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1696
|
-
throw await
|
|
1676
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1697
1677
|
default:
|
|
1698
1678
|
const parsedBody = parsedOutput.body;
|
|
1699
1679
|
throwDefaultError({
|
|
@@ -1704,9 +1684,9 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
|
|
|
1704
1684
|
});
|
|
1705
1685
|
}
|
|
1706
1686
|
};
|
|
1707
|
-
export const
|
|
1687
|
+
export const de_GetMatchesCommand = async (output, context) => {
|
|
1708
1688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1709
|
-
return
|
|
1689
|
+
return de_GetMatchesCommandError(output, context);
|
|
1710
1690
|
}
|
|
1711
1691
|
const contents = map({
|
|
1712
1692
|
$metadata: deserializeMetadata(output),
|
|
@@ -1716,7 +1696,7 @@ export const deserializeAws_restJson1GetMatchesCommand = async (output, context)
|
|
|
1716
1696
|
contents.MatchGenerationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.MatchGenerationDate)));
|
|
1717
1697
|
}
|
|
1718
1698
|
if (data.Matches != null) {
|
|
1719
|
-
contents.Matches =
|
|
1699
|
+
contents.Matches = de_MatchesList(data.Matches, context);
|
|
1720
1700
|
}
|
|
1721
1701
|
if (data.NextToken != null) {
|
|
1722
1702
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -1726,7 +1706,7 @@ export const deserializeAws_restJson1GetMatchesCommand = async (output, context)
|
|
|
1726
1706
|
}
|
|
1727
1707
|
return contents;
|
|
1728
1708
|
};
|
|
1729
|
-
const
|
|
1709
|
+
const de_GetMatchesCommandError = async (output, context) => {
|
|
1730
1710
|
const parsedOutput = {
|
|
1731
1711
|
...output,
|
|
1732
1712
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1735,19 +1715,19 @@ const deserializeAws_restJson1GetMatchesCommandError = async (output, context) =
|
|
|
1735
1715
|
switch (errorCode) {
|
|
1736
1716
|
case "AccessDeniedException":
|
|
1737
1717
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1738
|
-
throw await
|
|
1718
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1739
1719
|
case "BadRequestException":
|
|
1740
1720
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1741
|
-
throw await
|
|
1721
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1742
1722
|
case "InternalServerException":
|
|
1743
1723
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1744
|
-
throw await
|
|
1724
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1745
1725
|
case "ResourceNotFoundException":
|
|
1746
1726
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1747
|
-
throw await
|
|
1727
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1748
1728
|
case "ThrottlingException":
|
|
1749
1729
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1750
|
-
throw await
|
|
1730
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1751
1731
|
default:
|
|
1752
1732
|
const parsedBody = parsedOutput.body;
|
|
1753
1733
|
throwDefaultError({
|
|
@@ -1758,9 +1738,9 @@ const deserializeAws_restJson1GetMatchesCommandError = async (output, context) =
|
|
|
1758
1738
|
});
|
|
1759
1739
|
}
|
|
1760
1740
|
};
|
|
1761
|
-
export const
|
|
1741
|
+
export const de_GetProfileObjectTypeCommand = async (output, context) => {
|
|
1762
1742
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1763
|
-
return
|
|
1743
|
+
return de_GetProfileObjectTypeCommandError(output, context);
|
|
1764
1744
|
}
|
|
1765
1745
|
const contents = map({
|
|
1766
1746
|
$metadata: deserializeMetadata(output),
|
|
@@ -1782,10 +1762,10 @@ export const deserializeAws_restJson1GetProfileObjectTypeCommand = async (output
|
|
|
1782
1762
|
contents.ExpirationDays = __expectInt32(data.ExpirationDays);
|
|
1783
1763
|
}
|
|
1784
1764
|
if (data.Fields != null) {
|
|
1785
|
-
contents.Fields =
|
|
1765
|
+
contents.Fields = de_FieldMap(data.Fields, context);
|
|
1786
1766
|
}
|
|
1787
1767
|
if (data.Keys != null) {
|
|
1788
|
-
contents.Keys =
|
|
1768
|
+
contents.Keys = de_KeyMap(data.Keys, context);
|
|
1789
1769
|
}
|
|
1790
1770
|
if (data.LastUpdatedAt != null) {
|
|
1791
1771
|
contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
|
|
@@ -1797,14 +1777,14 @@ export const deserializeAws_restJson1GetProfileObjectTypeCommand = async (output
|
|
|
1797
1777
|
contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
|
|
1798
1778
|
}
|
|
1799
1779
|
if (data.Tags != null) {
|
|
1800
|
-
contents.Tags =
|
|
1780
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1801
1781
|
}
|
|
1802
1782
|
if (data.TemplateId != null) {
|
|
1803
1783
|
contents.TemplateId = __expectString(data.TemplateId);
|
|
1804
1784
|
}
|
|
1805
1785
|
return contents;
|
|
1806
1786
|
};
|
|
1807
|
-
const
|
|
1787
|
+
const de_GetProfileObjectTypeCommandError = async (output, context) => {
|
|
1808
1788
|
const parsedOutput = {
|
|
1809
1789
|
...output,
|
|
1810
1790
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1813,19 +1793,19 @@ const deserializeAws_restJson1GetProfileObjectTypeCommandError = async (output,
|
|
|
1813
1793
|
switch (errorCode) {
|
|
1814
1794
|
case "AccessDeniedException":
|
|
1815
1795
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1816
|
-
throw await
|
|
1796
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1817
1797
|
case "BadRequestException":
|
|
1818
1798
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1819
|
-
throw await
|
|
1799
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1820
1800
|
case "InternalServerException":
|
|
1821
1801
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1822
|
-
throw await
|
|
1802
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1823
1803
|
case "ResourceNotFoundException":
|
|
1824
1804
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1825
|
-
throw await
|
|
1805
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1826
1806
|
case "ThrottlingException":
|
|
1827
1807
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1828
|
-
throw await
|
|
1808
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1829
1809
|
default:
|
|
1830
1810
|
const parsedBody = parsedOutput.body;
|
|
1831
1811
|
throwDefaultError({
|
|
@@ -1836,9 +1816,9 @@ const deserializeAws_restJson1GetProfileObjectTypeCommandError = async (output,
|
|
|
1836
1816
|
});
|
|
1837
1817
|
}
|
|
1838
1818
|
};
|
|
1839
|
-
export const
|
|
1819
|
+
export const de_GetProfileObjectTypeTemplateCommand = async (output, context) => {
|
|
1840
1820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1841
|
-
return
|
|
1821
|
+
return de_GetProfileObjectTypeTemplateCommandError(output, context);
|
|
1842
1822
|
}
|
|
1843
1823
|
const contents = map({
|
|
1844
1824
|
$metadata: deserializeMetadata(output),
|
|
@@ -1848,10 +1828,10 @@ export const deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = async
|
|
|
1848
1828
|
contents.AllowProfileCreation = __expectBoolean(data.AllowProfileCreation);
|
|
1849
1829
|
}
|
|
1850
1830
|
if (data.Fields != null) {
|
|
1851
|
-
contents.Fields =
|
|
1831
|
+
contents.Fields = de_FieldMap(data.Fields, context);
|
|
1852
1832
|
}
|
|
1853
1833
|
if (data.Keys != null) {
|
|
1854
|
-
contents.Keys =
|
|
1834
|
+
contents.Keys = de_KeyMap(data.Keys, context);
|
|
1855
1835
|
}
|
|
1856
1836
|
if (data.SourceLastUpdatedTimestampFormat != null) {
|
|
1857
1837
|
contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
|
|
@@ -1867,7 +1847,7 @@ export const deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = async
|
|
|
1867
1847
|
}
|
|
1868
1848
|
return contents;
|
|
1869
1849
|
};
|
|
1870
|
-
const
|
|
1850
|
+
const de_GetProfileObjectTypeTemplateCommandError = async (output, context) => {
|
|
1871
1851
|
const parsedOutput = {
|
|
1872
1852
|
...output,
|
|
1873
1853
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1876,19 +1856,19 @@ const deserializeAws_restJson1GetProfileObjectTypeTemplateCommandError = async (
|
|
|
1876
1856
|
switch (errorCode) {
|
|
1877
1857
|
case "AccessDeniedException":
|
|
1878
1858
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1879
|
-
throw await
|
|
1859
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1880
1860
|
case "BadRequestException":
|
|
1881
1861
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1882
|
-
throw await
|
|
1862
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1883
1863
|
case "InternalServerException":
|
|
1884
1864
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1885
|
-
throw await
|
|
1865
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1886
1866
|
case "ResourceNotFoundException":
|
|
1887
1867
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1888
|
-
throw await
|
|
1868
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1889
1869
|
case "ThrottlingException":
|
|
1890
1870
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1891
|
-
throw await
|
|
1871
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1892
1872
|
default:
|
|
1893
1873
|
const parsedBody = parsedOutput.body;
|
|
1894
1874
|
throwDefaultError({
|
|
@@ -1899,16 +1879,16 @@ const deserializeAws_restJson1GetProfileObjectTypeTemplateCommandError = async (
|
|
|
1899
1879
|
});
|
|
1900
1880
|
}
|
|
1901
1881
|
};
|
|
1902
|
-
export const
|
|
1882
|
+
export const de_GetWorkflowCommand = async (output, context) => {
|
|
1903
1883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1904
|
-
return
|
|
1884
|
+
return de_GetWorkflowCommandError(output, context);
|
|
1905
1885
|
}
|
|
1906
1886
|
const contents = map({
|
|
1907
1887
|
$metadata: deserializeMetadata(output),
|
|
1908
1888
|
});
|
|
1909
1889
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1910
1890
|
if (data.Attributes != null) {
|
|
1911
|
-
contents.Attributes =
|
|
1891
|
+
contents.Attributes = de_WorkflowAttributes(data.Attributes, context);
|
|
1912
1892
|
}
|
|
1913
1893
|
if (data.ErrorDescription != null) {
|
|
1914
1894
|
contents.ErrorDescription = __expectString(data.ErrorDescription);
|
|
@@ -1917,7 +1897,7 @@ export const deserializeAws_restJson1GetWorkflowCommand = async (output, context
|
|
|
1917
1897
|
contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
|
|
1918
1898
|
}
|
|
1919
1899
|
if (data.Metrics != null) {
|
|
1920
|
-
contents.Metrics =
|
|
1900
|
+
contents.Metrics = de_WorkflowMetrics(data.Metrics, context);
|
|
1921
1901
|
}
|
|
1922
1902
|
if (data.StartDate != null) {
|
|
1923
1903
|
contents.StartDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.StartDate)));
|
|
@@ -1933,7 +1913,7 @@ export const deserializeAws_restJson1GetWorkflowCommand = async (output, context
|
|
|
1933
1913
|
}
|
|
1934
1914
|
return contents;
|
|
1935
1915
|
};
|
|
1936
|
-
const
|
|
1916
|
+
const de_GetWorkflowCommandError = async (output, context) => {
|
|
1937
1917
|
const parsedOutput = {
|
|
1938
1918
|
...output,
|
|
1939
1919
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1942,19 +1922,19 @@ const deserializeAws_restJson1GetWorkflowCommandError = async (output, context)
|
|
|
1942
1922
|
switch (errorCode) {
|
|
1943
1923
|
case "AccessDeniedException":
|
|
1944
1924
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1945
|
-
throw await
|
|
1925
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1946
1926
|
case "BadRequestException":
|
|
1947
1927
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1948
|
-
throw await
|
|
1928
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1949
1929
|
case "InternalServerException":
|
|
1950
1930
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1951
|
-
throw await
|
|
1931
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1952
1932
|
case "ResourceNotFoundException":
|
|
1953
1933
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1954
|
-
throw await
|
|
1934
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1955
1935
|
case "ThrottlingException":
|
|
1956
1936
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1957
|
-
throw await
|
|
1937
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1958
1938
|
default:
|
|
1959
1939
|
const parsedBody = parsedOutput.body;
|
|
1960
1940
|
throwDefaultError({
|
|
@@ -1965,16 +1945,16 @@ const deserializeAws_restJson1GetWorkflowCommandError = async (output, context)
|
|
|
1965
1945
|
});
|
|
1966
1946
|
}
|
|
1967
1947
|
};
|
|
1968
|
-
export const
|
|
1948
|
+
export const de_GetWorkflowStepsCommand = async (output, context) => {
|
|
1969
1949
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1970
|
-
return
|
|
1950
|
+
return de_GetWorkflowStepsCommandError(output, context);
|
|
1971
1951
|
}
|
|
1972
1952
|
const contents = map({
|
|
1973
1953
|
$metadata: deserializeMetadata(output),
|
|
1974
1954
|
});
|
|
1975
1955
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1976
1956
|
if (data.Items != null) {
|
|
1977
|
-
contents.Items =
|
|
1957
|
+
contents.Items = de_WorkflowStepsList(data.Items, context);
|
|
1978
1958
|
}
|
|
1979
1959
|
if (data.NextToken != null) {
|
|
1980
1960
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -1987,7 +1967,7 @@ export const deserializeAws_restJson1GetWorkflowStepsCommand = async (output, co
|
|
|
1987
1967
|
}
|
|
1988
1968
|
return contents;
|
|
1989
1969
|
};
|
|
1990
|
-
const
|
|
1970
|
+
const de_GetWorkflowStepsCommandError = async (output, context) => {
|
|
1991
1971
|
const parsedOutput = {
|
|
1992
1972
|
...output,
|
|
1993
1973
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1996,19 +1976,19 @@ const deserializeAws_restJson1GetWorkflowStepsCommandError = async (output, cont
|
|
|
1996
1976
|
switch (errorCode) {
|
|
1997
1977
|
case "AccessDeniedException":
|
|
1998
1978
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1999
|
-
throw await
|
|
1979
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2000
1980
|
case "BadRequestException":
|
|
2001
1981
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2002
|
-
throw await
|
|
1982
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2003
1983
|
case "InternalServerException":
|
|
2004
1984
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2005
|
-
throw await
|
|
1985
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2006
1986
|
case "ResourceNotFoundException":
|
|
2007
1987
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2008
|
-
throw await
|
|
1988
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2009
1989
|
case "ThrottlingException":
|
|
2010
1990
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2011
|
-
throw await
|
|
1991
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2012
1992
|
default:
|
|
2013
1993
|
const parsedBody = parsedOutput.body;
|
|
2014
1994
|
throwDefaultError({
|
|
@@ -2019,23 +1999,23 @@ const deserializeAws_restJson1GetWorkflowStepsCommandError = async (output, cont
|
|
|
2019
1999
|
});
|
|
2020
2000
|
}
|
|
2021
2001
|
};
|
|
2022
|
-
export const
|
|
2002
|
+
export const de_ListAccountIntegrationsCommand = async (output, context) => {
|
|
2023
2003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2024
|
-
return
|
|
2004
|
+
return de_ListAccountIntegrationsCommandError(output, context);
|
|
2025
2005
|
}
|
|
2026
2006
|
const contents = map({
|
|
2027
2007
|
$metadata: deserializeMetadata(output),
|
|
2028
2008
|
});
|
|
2029
2009
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2030
2010
|
if (data.Items != null) {
|
|
2031
|
-
contents.Items =
|
|
2011
|
+
contents.Items = de_IntegrationList(data.Items, context);
|
|
2032
2012
|
}
|
|
2033
2013
|
if (data.NextToken != null) {
|
|
2034
2014
|
contents.NextToken = __expectString(data.NextToken);
|
|
2035
2015
|
}
|
|
2036
2016
|
return contents;
|
|
2037
2017
|
};
|
|
2038
|
-
const
|
|
2018
|
+
const de_ListAccountIntegrationsCommandError = async (output, context) => {
|
|
2039
2019
|
const parsedOutput = {
|
|
2040
2020
|
...output,
|
|
2041
2021
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2044,19 +2024,19 @@ const deserializeAws_restJson1ListAccountIntegrationsCommandError = async (outpu
|
|
|
2044
2024
|
switch (errorCode) {
|
|
2045
2025
|
case "AccessDeniedException":
|
|
2046
2026
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2047
|
-
throw await
|
|
2027
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2048
2028
|
case "BadRequestException":
|
|
2049
2029
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2050
|
-
throw await
|
|
2030
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2051
2031
|
case "InternalServerException":
|
|
2052
2032
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2053
|
-
throw await
|
|
2033
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2054
2034
|
case "ResourceNotFoundException":
|
|
2055
2035
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2056
|
-
throw await
|
|
2036
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2057
2037
|
case "ThrottlingException":
|
|
2058
2038
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2059
|
-
throw await
|
|
2039
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2060
2040
|
default:
|
|
2061
2041
|
const parsedBody = parsedOutput.body;
|
|
2062
2042
|
throwDefaultError({
|
|
@@ -2067,23 +2047,23 @@ const deserializeAws_restJson1ListAccountIntegrationsCommandError = async (outpu
|
|
|
2067
2047
|
});
|
|
2068
2048
|
}
|
|
2069
2049
|
};
|
|
2070
|
-
export const
|
|
2050
|
+
export const de_ListDomainsCommand = async (output, context) => {
|
|
2071
2051
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2072
|
-
return
|
|
2052
|
+
return de_ListDomainsCommandError(output, context);
|
|
2073
2053
|
}
|
|
2074
2054
|
const contents = map({
|
|
2075
2055
|
$metadata: deserializeMetadata(output),
|
|
2076
2056
|
});
|
|
2077
2057
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2078
2058
|
if (data.Items != null) {
|
|
2079
|
-
contents.Items =
|
|
2059
|
+
contents.Items = de_DomainList(data.Items, context);
|
|
2080
2060
|
}
|
|
2081
2061
|
if (data.NextToken != null) {
|
|
2082
2062
|
contents.NextToken = __expectString(data.NextToken);
|
|
2083
2063
|
}
|
|
2084
2064
|
return contents;
|
|
2085
2065
|
};
|
|
2086
|
-
const
|
|
2066
|
+
const de_ListDomainsCommandError = async (output, context) => {
|
|
2087
2067
|
const parsedOutput = {
|
|
2088
2068
|
...output,
|
|
2089
2069
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2092,19 +2072,19 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
|
|
|
2092
2072
|
switch (errorCode) {
|
|
2093
2073
|
case "AccessDeniedException":
|
|
2094
2074
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2095
|
-
throw await
|
|
2075
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2096
2076
|
case "BadRequestException":
|
|
2097
2077
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2098
|
-
throw await
|
|
2078
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2099
2079
|
case "InternalServerException":
|
|
2100
2080
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2101
|
-
throw await
|
|
2081
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2102
2082
|
case "ResourceNotFoundException":
|
|
2103
2083
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2104
|
-
throw await
|
|
2084
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2105
2085
|
case "ThrottlingException":
|
|
2106
2086
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2107
|
-
throw await
|
|
2087
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2108
2088
|
default:
|
|
2109
2089
|
const parsedBody = parsedOutput.body;
|
|
2110
2090
|
throwDefaultError({
|
|
@@ -2115,23 +2095,23 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
|
|
|
2115
2095
|
});
|
|
2116
2096
|
}
|
|
2117
2097
|
};
|
|
2118
|
-
export const
|
|
2098
|
+
export const de_ListIdentityResolutionJobsCommand = async (output, context) => {
|
|
2119
2099
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2120
|
-
return
|
|
2100
|
+
return de_ListIdentityResolutionJobsCommandError(output, context);
|
|
2121
2101
|
}
|
|
2122
2102
|
const contents = map({
|
|
2123
2103
|
$metadata: deserializeMetadata(output),
|
|
2124
2104
|
});
|
|
2125
2105
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2126
2106
|
if (data.IdentityResolutionJobsList != null) {
|
|
2127
|
-
contents.IdentityResolutionJobsList =
|
|
2107
|
+
contents.IdentityResolutionJobsList = de_IdentityResolutionJobsList(data.IdentityResolutionJobsList, context);
|
|
2128
2108
|
}
|
|
2129
2109
|
if (data.NextToken != null) {
|
|
2130
2110
|
contents.NextToken = __expectString(data.NextToken);
|
|
2131
2111
|
}
|
|
2132
2112
|
return contents;
|
|
2133
2113
|
};
|
|
2134
|
-
const
|
|
2114
|
+
const de_ListIdentityResolutionJobsCommandError = async (output, context) => {
|
|
2135
2115
|
const parsedOutput = {
|
|
2136
2116
|
...output,
|
|
2137
2117
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2140,19 +2120,19 @@ const deserializeAws_restJson1ListIdentityResolutionJobsCommandError = async (ou
|
|
|
2140
2120
|
switch (errorCode) {
|
|
2141
2121
|
case "AccessDeniedException":
|
|
2142
2122
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2143
|
-
throw await
|
|
2123
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2144
2124
|
case "BadRequestException":
|
|
2145
2125
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2146
|
-
throw await
|
|
2126
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2147
2127
|
case "InternalServerException":
|
|
2148
2128
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2149
|
-
throw await
|
|
2129
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2150
2130
|
case "ResourceNotFoundException":
|
|
2151
2131
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2152
|
-
throw await
|
|
2132
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2153
2133
|
case "ThrottlingException":
|
|
2154
2134
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2155
|
-
throw await
|
|
2135
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2156
2136
|
default:
|
|
2157
2137
|
const parsedBody = parsedOutput.body;
|
|
2158
2138
|
throwDefaultError({
|
|
@@ -2163,23 +2143,23 @@ const deserializeAws_restJson1ListIdentityResolutionJobsCommandError = async (ou
|
|
|
2163
2143
|
});
|
|
2164
2144
|
}
|
|
2165
2145
|
};
|
|
2166
|
-
export const
|
|
2146
|
+
export const de_ListIntegrationsCommand = async (output, context) => {
|
|
2167
2147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2168
|
-
return
|
|
2148
|
+
return de_ListIntegrationsCommandError(output, context);
|
|
2169
2149
|
}
|
|
2170
2150
|
const contents = map({
|
|
2171
2151
|
$metadata: deserializeMetadata(output),
|
|
2172
2152
|
});
|
|
2173
2153
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2174
2154
|
if (data.Items != null) {
|
|
2175
|
-
contents.Items =
|
|
2155
|
+
contents.Items = de_IntegrationList(data.Items, context);
|
|
2176
2156
|
}
|
|
2177
2157
|
if (data.NextToken != null) {
|
|
2178
2158
|
contents.NextToken = __expectString(data.NextToken);
|
|
2179
2159
|
}
|
|
2180
2160
|
return contents;
|
|
2181
2161
|
};
|
|
2182
|
-
const
|
|
2162
|
+
const de_ListIntegrationsCommandError = async (output, context) => {
|
|
2183
2163
|
const parsedOutput = {
|
|
2184
2164
|
...output,
|
|
2185
2165
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2188,19 +2168,19 @@ const deserializeAws_restJson1ListIntegrationsCommandError = async (output, cont
|
|
|
2188
2168
|
switch (errorCode) {
|
|
2189
2169
|
case "AccessDeniedException":
|
|
2190
2170
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2191
|
-
throw await
|
|
2171
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2192
2172
|
case "BadRequestException":
|
|
2193
2173
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2194
|
-
throw await
|
|
2174
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2195
2175
|
case "InternalServerException":
|
|
2196
2176
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2197
|
-
throw await
|
|
2177
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2198
2178
|
case "ResourceNotFoundException":
|
|
2199
2179
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2200
|
-
throw await
|
|
2180
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2201
2181
|
case "ThrottlingException":
|
|
2202
2182
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2203
|
-
throw await
|
|
2183
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2204
2184
|
default:
|
|
2205
2185
|
const parsedBody = parsedOutput.body;
|
|
2206
2186
|
throwDefaultError({
|
|
@@ -2211,23 +2191,23 @@ const deserializeAws_restJson1ListIntegrationsCommandError = async (output, cont
|
|
|
2211
2191
|
});
|
|
2212
2192
|
}
|
|
2213
2193
|
};
|
|
2214
|
-
export const
|
|
2194
|
+
export const de_ListProfileObjectsCommand = async (output, context) => {
|
|
2215
2195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2216
|
-
return
|
|
2196
|
+
return de_ListProfileObjectsCommandError(output, context);
|
|
2217
2197
|
}
|
|
2218
2198
|
const contents = map({
|
|
2219
2199
|
$metadata: deserializeMetadata(output),
|
|
2220
2200
|
});
|
|
2221
2201
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2222
2202
|
if (data.Items != null) {
|
|
2223
|
-
contents.Items =
|
|
2203
|
+
contents.Items = de_ProfileObjectList(data.Items, context);
|
|
2224
2204
|
}
|
|
2225
2205
|
if (data.NextToken != null) {
|
|
2226
2206
|
contents.NextToken = __expectString(data.NextToken);
|
|
2227
2207
|
}
|
|
2228
2208
|
return contents;
|
|
2229
2209
|
};
|
|
2230
|
-
const
|
|
2210
|
+
const de_ListProfileObjectsCommandError = async (output, context) => {
|
|
2231
2211
|
const parsedOutput = {
|
|
2232
2212
|
...output,
|
|
2233
2213
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2236,19 +2216,19 @@ const deserializeAws_restJson1ListProfileObjectsCommandError = async (output, co
|
|
|
2236
2216
|
switch (errorCode) {
|
|
2237
2217
|
case "AccessDeniedException":
|
|
2238
2218
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2239
|
-
throw await
|
|
2219
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2240
2220
|
case "BadRequestException":
|
|
2241
2221
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2242
|
-
throw await
|
|
2222
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2243
2223
|
case "InternalServerException":
|
|
2244
2224
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2245
|
-
throw await
|
|
2225
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2246
2226
|
case "ResourceNotFoundException":
|
|
2247
2227
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2248
|
-
throw await
|
|
2228
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2249
2229
|
case "ThrottlingException":
|
|
2250
2230
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2251
|
-
throw await
|
|
2231
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2252
2232
|
default:
|
|
2253
2233
|
const parsedBody = parsedOutput.body;
|
|
2254
2234
|
throwDefaultError({
|
|
@@ -2259,23 +2239,23 @@ const deserializeAws_restJson1ListProfileObjectsCommandError = async (output, co
|
|
|
2259
2239
|
});
|
|
2260
2240
|
}
|
|
2261
2241
|
};
|
|
2262
|
-
export const
|
|
2242
|
+
export const de_ListProfileObjectTypesCommand = async (output, context) => {
|
|
2263
2243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2264
|
-
return
|
|
2244
|
+
return de_ListProfileObjectTypesCommandError(output, context);
|
|
2265
2245
|
}
|
|
2266
2246
|
const contents = map({
|
|
2267
2247
|
$metadata: deserializeMetadata(output),
|
|
2268
2248
|
});
|
|
2269
2249
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2270
2250
|
if (data.Items != null) {
|
|
2271
|
-
contents.Items =
|
|
2251
|
+
contents.Items = de_ProfileObjectTypeList(data.Items, context);
|
|
2272
2252
|
}
|
|
2273
2253
|
if (data.NextToken != null) {
|
|
2274
2254
|
contents.NextToken = __expectString(data.NextToken);
|
|
2275
2255
|
}
|
|
2276
2256
|
return contents;
|
|
2277
2257
|
};
|
|
2278
|
-
const
|
|
2258
|
+
const de_ListProfileObjectTypesCommandError = async (output, context) => {
|
|
2279
2259
|
const parsedOutput = {
|
|
2280
2260
|
...output,
|
|
2281
2261
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2284,19 +2264,19 @@ const deserializeAws_restJson1ListProfileObjectTypesCommandError = async (output
|
|
|
2284
2264
|
switch (errorCode) {
|
|
2285
2265
|
case "AccessDeniedException":
|
|
2286
2266
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2287
|
-
throw await
|
|
2267
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2288
2268
|
case "BadRequestException":
|
|
2289
2269
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2290
|
-
throw await
|
|
2270
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2291
2271
|
case "InternalServerException":
|
|
2292
2272
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2293
|
-
throw await
|
|
2273
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2294
2274
|
case "ResourceNotFoundException":
|
|
2295
2275
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2296
|
-
throw await
|
|
2276
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2297
2277
|
case "ThrottlingException":
|
|
2298
2278
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2299
|
-
throw await
|
|
2279
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2300
2280
|
default:
|
|
2301
2281
|
const parsedBody = parsedOutput.body;
|
|
2302
2282
|
throwDefaultError({
|
|
@@ -2307,23 +2287,23 @@ const deserializeAws_restJson1ListProfileObjectTypesCommandError = async (output
|
|
|
2307
2287
|
});
|
|
2308
2288
|
}
|
|
2309
2289
|
};
|
|
2310
|
-
export const
|
|
2290
|
+
export const de_ListProfileObjectTypeTemplatesCommand = async (output, context) => {
|
|
2311
2291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2312
|
-
return
|
|
2292
|
+
return de_ListProfileObjectTypeTemplatesCommandError(output, context);
|
|
2313
2293
|
}
|
|
2314
2294
|
const contents = map({
|
|
2315
2295
|
$metadata: deserializeMetadata(output),
|
|
2316
2296
|
});
|
|
2317
2297
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2318
2298
|
if (data.Items != null) {
|
|
2319
|
-
contents.Items =
|
|
2299
|
+
contents.Items = de_ProfileObjectTypeTemplateList(data.Items, context);
|
|
2320
2300
|
}
|
|
2321
2301
|
if (data.NextToken != null) {
|
|
2322
2302
|
contents.NextToken = __expectString(data.NextToken);
|
|
2323
2303
|
}
|
|
2324
2304
|
return contents;
|
|
2325
2305
|
};
|
|
2326
|
-
const
|
|
2306
|
+
const de_ListProfileObjectTypeTemplatesCommandError = async (output, context) => {
|
|
2327
2307
|
const parsedOutput = {
|
|
2328
2308
|
...output,
|
|
2329
2309
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2332,19 +2312,19 @@ const deserializeAws_restJson1ListProfileObjectTypeTemplatesCommandError = async
|
|
|
2332
2312
|
switch (errorCode) {
|
|
2333
2313
|
case "AccessDeniedException":
|
|
2334
2314
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2335
|
-
throw await
|
|
2315
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2336
2316
|
case "BadRequestException":
|
|
2337
2317
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2338
|
-
throw await
|
|
2318
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2339
2319
|
case "InternalServerException":
|
|
2340
2320
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2341
|
-
throw await
|
|
2321
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2342
2322
|
case "ResourceNotFoundException":
|
|
2343
2323
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2344
|
-
throw await
|
|
2324
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2345
2325
|
case "ThrottlingException":
|
|
2346
2326
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2347
|
-
throw await
|
|
2327
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2348
2328
|
default:
|
|
2349
2329
|
const parsedBody = parsedOutput.body;
|
|
2350
2330
|
throwDefaultError({
|
|
@@ -2355,20 +2335,20 @@ const deserializeAws_restJson1ListProfileObjectTypeTemplatesCommandError = async
|
|
|
2355
2335
|
});
|
|
2356
2336
|
}
|
|
2357
2337
|
};
|
|
2358
|
-
export const
|
|
2338
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2359
2339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2360
|
-
return
|
|
2340
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2361
2341
|
}
|
|
2362
2342
|
const contents = map({
|
|
2363
2343
|
$metadata: deserializeMetadata(output),
|
|
2364
2344
|
});
|
|
2365
2345
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2366
2346
|
if (data.tags != null) {
|
|
2367
|
-
contents.tags =
|
|
2347
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
2368
2348
|
}
|
|
2369
2349
|
return contents;
|
|
2370
2350
|
};
|
|
2371
|
-
const
|
|
2351
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2372
2352
|
const parsedOutput = {
|
|
2373
2353
|
...output,
|
|
2374
2354
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2377,13 +2357,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2377
2357
|
switch (errorCode) {
|
|
2378
2358
|
case "BadRequestException":
|
|
2379
2359
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2380
|
-
throw await
|
|
2360
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2381
2361
|
case "InternalServerException":
|
|
2382
2362
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2383
|
-
throw await
|
|
2363
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2384
2364
|
case "ResourceNotFoundException":
|
|
2385
2365
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2386
|
-
throw await
|
|
2366
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2387
2367
|
default:
|
|
2388
2368
|
const parsedBody = parsedOutput.body;
|
|
2389
2369
|
throwDefaultError({
|
|
@@ -2394,23 +2374,23 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2394
2374
|
});
|
|
2395
2375
|
}
|
|
2396
2376
|
};
|
|
2397
|
-
export const
|
|
2377
|
+
export const de_ListWorkflowsCommand = async (output, context) => {
|
|
2398
2378
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2399
|
-
return
|
|
2379
|
+
return de_ListWorkflowsCommandError(output, context);
|
|
2400
2380
|
}
|
|
2401
2381
|
const contents = map({
|
|
2402
2382
|
$metadata: deserializeMetadata(output),
|
|
2403
2383
|
});
|
|
2404
2384
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2405
2385
|
if (data.Items != null) {
|
|
2406
|
-
contents.Items =
|
|
2386
|
+
contents.Items = de_WorkflowList(data.Items, context);
|
|
2407
2387
|
}
|
|
2408
2388
|
if (data.NextToken != null) {
|
|
2409
2389
|
contents.NextToken = __expectString(data.NextToken);
|
|
2410
2390
|
}
|
|
2411
2391
|
return contents;
|
|
2412
2392
|
};
|
|
2413
|
-
const
|
|
2393
|
+
const de_ListWorkflowsCommandError = async (output, context) => {
|
|
2414
2394
|
const parsedOutput = {
|
|
2415
2395
|
...output,
|
|
2416
2396
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2419,19 +2399,19 @@ const deserializeAws_restJson1ListWorkflowsCommandError = async (output, context
|
|
|
2419
2399
|
switch (errorCode) {
|
|
2420
2400
|
case "AccessDeniedException":
|
|
2421
2401
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2422
|
-
throw await
|
|
2402
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2423
2403
|
case "BadRequestException":
|
|
2424
2404
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2425
|
-
throw await
|
|
2405
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2426
2406
|
case "InternalServerException":
|
|
2427
2407
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2428
|
-
throw await
|
|
2408
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2429
2409
|
case "ResourceNotFoundException":
|
|
2430
2410
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2431
|
-
throw await
|
|
2411
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2432
2412
|
case "ThrottlingException":
|
|
2433
2413
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2434
|
-
throw await
|
|
2414
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2435
2415
|
default:
|
|
2436
2416
|
const parsedBody = parsedOutput.body;
|
|
2437
2417
|
throwDefaultError({
|
|
@@ -2442,9 +2422,9 @@ const deserializeAws_restJson1ListWorkflowsCommandError = async (output, context
|
|
|
2442
2422
|
});
|
|
2443
2423
|
}
|
|
2444
2424
|
};
|
|
2445
|
-
export const
|
|
2425
|
+
export const de_MergeProfilesCommand = async (output, context) => {
|
|
2446
2426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2447
|
-
return
|
|
2427
|
+
return de_MergeProfilesCommandError(output, context);
|
|
2448
2428
|
}
|
|
2449
2429
|
const contents = map({
|
|
2450
2430
|
$metadata: deserializeMetadata(output),
|
|
@@ -2455,7 +2435,7 @@ export const deserializeAws_restJson1MergeProfilesCommand = async (output, conte
|
|
|
2455
2435
|
}
|
|
2456
2436
|
return contents;
|
|
2457
2437
|
};
|
|
2458
|
-
const
|
|
2438
|
+
const de_MergeProfilesCommandError = async (output, context) => {
|
|
2459
2439
|
const parsedOutput = {
|
|
2460
2440
|
...output,
|
|
2461
2441
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2464,16 +2444,16 @@ const deserializeAws_restJson1MergeProfilesCommandError = async (output, context
|
|
|
2464
2444
|
switch (errorCode) {
|
|
2465
2445
|
case "BadRequestException":
|
|
2466
2446
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2467
|
-
throw await
|
|
2447
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2468
2448
|
case "InternalServerException":
|
|
2469
2449
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2470
|
-
throw await
|
|
2450
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2471
2451
|
case "ResourceNotFoundException":
|
|
2472
2452
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2473
|
-
throw await
|
|
2453
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2474
2454
|
case "ThrottlingException":
|
|
2475
2455
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2476
|
-
throw await
|
|
2456
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2477
2457
|
default:
|
|
2478
2458
|
const parsedBody = parsedOutput.body;
|
|
2479
2459
|
throwDefaultError({
|
|
@@ -2484,9 +2464,9 @@ const deserializeAws_restJson1MergeProfilesCommandError = async (output, context
|
|
|
2484
2464
|
});
|
|
2485
2465
|
}
|
|
2486
2466
|
};
|
|
2487
|
-
export const
|
|
2467
|
+
export const de_PutIntegrationCommand = async (output, context) => {
|
|
2488
2468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2489
|
-
return
|
|
2469
|
+
return de_PutIntegrationCommandError(output, context);
|
|
2490
2470
|
}
|
|
2491
2471
|
const contents = map({
|
|
2492
2472
|
$metadata: deserializeMetadata(output),
|
|
@@ -2508,10 +2488,10 @@ export const deserializeAws_restJson1PutIntegrationCommand = async (output, cont
|
|
|
2508
2488
|
contents.ObjectTypeName = __expectString(data.ObjectTypeName);
|
|
2509
2489
|
}
|
|
2510
2490
|
if (data.ObjectTypeNames != null) {
|
|
2511
|
-
contents.ObjectTypeNames =
|
|
2491
|
+
contents.ObjectTypeNames = de_ObjectTypeNames(data.ObjectTypeNames, context);
|
|
2512
2492
|
}
|
|
2513
2493
|
if (data.Tags != null) {
|
|
2514
|
-
contents.Tags =
|
|
2494
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
2515
2495
|
}
|
|
2516
2496
|
if (data.Uri != null) {
|
|
2517
2497
|
contents.Uri = __expectString(data.Uri);
|
|
@@ -2521,7 +2501,7 @@ export const deserializeAws_restJson1PutIntegrationCommand = async (output, cont
|
|
|
2521
2501
|
}
|
|
2522
2502
|
return contents;
|
|
2523
2503
|
};
|
|
2524
|
-
const
|
|
2504
|
+
const de_PutIntegrationCommandError = async (output, context) => {
|
|
2525
2505
|
const parsedOutput = {
|
|
2526
2506
|
...output,
|
|
2527
2507
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2530,19 +2510,19 @@ const deserializeAws_restJson1PutIntegrationCommandError = async (output, contex
|
|
|
2530
2510
|
switch (errorCode) {
|
|
2531
2511
|
case "AccessDeniedException":
|
|
2532
2512
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2533
|
-
throw await
|
|
2513
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2534
2514
|
case "BadRequestException":
|
|
2535
2515
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2536
|
-
throw await
|
|
2516
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2537
2517
|
case "InternalServerException":
|
|
2538
2518
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2539
|
-
throw await
|
|
2519
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2540
2520
|
case "ResourceNotFoundException":
|
|
2541
2521
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2542
|
-
throw await
|
|
2522
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2543
2523
|
case "ThrottlingException":
|
|
2544
2524
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2545
|
-
throw await
|
|
2525
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2546
2526
|
default:
|
|
2547
2527
|
const parsedBody = parsedOutput.body;
|
|
2548
2528
|
throwDefaultError({
|
|
@@ -2553,9 +2533,9 @@ const deserializeAws_restJson1PutIntegrationCommandError = async (output, contex
|
|
|
2553
2533
|
});
|
|
2554
2534
|
}
|
|
2555
2535
|
};
|
|
2556
|
-
export const
|
|
2536
|
+
export const de_PutProfileObjectCommand = async (output, context) => {
|
|
2557
2537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2558
|
-
return
|
|
2538
|
+
return de_PutProfileObjectCommandError(output, context);
|
|
2559
2539
|
}
|
|
2560
2540
|
const contents = map({
|
|
2561
2541
|
$metadata: deserializeMetadata(output),
|
|
@@ -2566,7 +2546,7 @@ export const deserializeAws_restJson1PutProfileObjectCommand = async (output, co
|
|
|
2566
2546
|
}
|
|
2567
2547
|
return contents;
|
|
2568
2548
|
};
|
|
2569
|
-
const
|
|
2549
|
+
const de_PutProfileObjectCommandError = async (output, context) => {
|
|
2570
2550
|
const parsedOutput = {
|
|
2571
2551
|
...output,
|
|
2572
2552
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2575,19 +2555,19 @@ const deserializeAws_restJson1PutProfileObjectCommandError = async (output, cont
|
|
|
2575
2555
|
switch (errorCode) {
|
|
2576
2556
|
case "AccessDeniedException":
|
|
2577
2557
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2578
|
-
throw await
|
|
2558
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2579
2559
|
case "BadRequestException":
|
|
2580
2560
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2581
|
-
throw await
|
|
2561
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2582
2562
|
case "InternalServerException":
|
|
2583
2563
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2584
|
-
throw await
|
|
2564
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2585
2565
|
case "ResourceNotFoundException":
|
|
2586
2566
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2587
|
-
throw await
|
|
2567
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2588
2568
|
case "ThrottlingException":
|
|
2589
2569
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2590
|
-
throw await
|
|
2570
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2591
2571
|
default:
|
|
2592
2572
|
const parsedBody = parsedOutput.body;
|
|
2593
2573
|
throwDefaultError({
|
|
@@ -2598,9 +2578,9 @@ const deserializeAws_restJson1PutProfileObjectCommandError = async (output, cont
|
|
|
2598
2578
|
});
|
|
2599
2579
|
}
|
|
2600
2580
|
};
|
|
2601
|
-
export const
|
|
2581
|
+
export const de_PutProfileObjectTypeCommand = async (output, context) => {
|
|
2602
2582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2603
|
-
return
|
|
2583
|
+
return de_PutProfileObjectTypeCommandError(output, context);
|
|
2604
2584
|
}
|
|
2605
2585
|
const contents = map({
|
|
2606
2586
|
$metadata: deserializeMetadata(output),
|
|
@@ -2622,10 +2602,10 @@ export const deserializeAws_restJson1PutProfileObjectTypeCommand = async (output
|
|
|
2622
2602
|
contents.ExpirationDays = __expectInt32(data.ExpirationDays);
|
|
2623
2603
|
}
|
|
2624
2604
|
if (data.Fields != null) {
|
|
2625
|
-
contents.Fields =
|
|
2605
|
+
contents.Fields = de_FieldMap(data.Fields, context);
|
|
2626
2606
|
}
|
|
2627
2607
|
if (data.Keys != null) {
|
|
2628
|
-
contents.Keys =
|
|
2608
|
+
contents.Keys = de_KeyMap(data.Keys, context);
|
|
2629
2609
|
}
|
|
2630
2610
|
if (data.LastUpdatedAt != null) {
|
|
2631
2611
|
contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
|
|
@@ -2637,14 +2617,14 @@ export const deserializeAws_restJson1PutProfileObjectTypeCommand = async (output
|
|
|
2637
2617
|
contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
|
|
2638
2618
|
}
|
|
2639
2619
|
if (data.Tags != null) {
|
|
2640
|
-
contents.Tags =
|
|
2620
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
2641
2621
|
}
|
|
2642
2622
|
if (data.TemplateId != null) {
|
|
2643
2623
|
contents.TemplateId = __expectString(data.TemplateId);
|
|
2644
2624
|
}
|
|
2645
2625
|
return contents;
|
|
2646
2626
|
};
|
|
2647
|
-
const
|
|
2627
|
+
const de_PutProfileObjectTypeCommandError = async (output, context) => {
|
|
2648
2628
|
const parsedOutput = {
|
|
2649
2629
|
...output,
|
|
2650
2630
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2653,19 +2633,19 @@ const deserializeAws_restJson1PutProfileObjectTypeCommandError = async (output,
|
|
|
2653
2633
|
switch (errorCode) {
|
|
2654
2634
|
case "AccessDeniedException":
|
|
2655
2635
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2656
|
-
throw await
|
|
2636
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2657
2637
|
case "BadRequestException":
|
|
2658
2638
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2659
|
-
throw await
|
|
2639
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2660
2640
|
case "InternalServerException":
|
|
2661
2641
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2662
|
-
throw await
|
|
2642
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2663
2643
|
case "ResourceNotFoundException":
|
|
2664
2644
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2665
|
-
throw await
|
|
2645
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2666
2646
|
case "ThrottlingException":
|
|
2667
2647
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2668
|
-
throw await
|
|
2648
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2669
2649
|
default:
|
|
2670
2650
|
const parsedBody = parsedOutput.body;
|
|
2671
2651
|
throwDefaultError({
|
|
@@ -2676,23 +2656,23 @@ const deserializeAws_restJson1PutProfileObjectTypeCommandError = async (output,
|
|
|
2676
2656
|
});
|
|
2677
2657
|
}
|
|
2678
2658
|
};
|
|
2679
|
-
export const
|
|
2659
|
+
export const de_SearchProfilesCommand = async (output, context) => {
|
|
2680
2660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2681
|
-
return
|
|
2661
|
+
return de_SearchProfilesCommandError(output, context);
|
|
2682
2662
|
}
|
|
2683
2663
|
const contents = map({
|
|
2684
2664
|
$metadata: deserializeMetadata(output),
|
|
2685
2665
|
});
|
|
2686
2666
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2687
2667
|
if (data.Items != null) {
|
|
2688
|
-
contents.Items =
|
|
2668
|
+
contents.Items = de_ProfileList(data.Items, context);
|
|
2689
2669
|
}
|
|
2690
2670
|
if (data.NextToken != null) {
|
|
2691
2671
|
contents.NextToken = __expectString(data.NextToken);
|
|
2692
2672
|
}
|
|
2693
2673
|
return contents;
|
|
2694
2674
|
};
|
|
2695
|
-
const
|
|
2675
|
+
const de_SearchProfilesCommandError = async (output, context) => {
|
|
2696
2676
|
const parsedOutput = {
|
|
2697
2677
|
...output,
|
|
2698
2678
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2701,19 +2681,19 @@ const deserializeAws_restJson1SearchProfilesCommandError = async (output, contex
|
|
|
2701
2681
|
switch (errorCode) {
|
|
2702
2682
|
case "AccessDeniedException":
|
|
2703
2683
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2704
|
-
throw await
|
|
2684
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2705
2685
|
case "BadRequestException":
|
|
2706
2686
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2707
|
-
throw await
|
|
2687
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2708
2688
|
case "InternalServerException":
|
|
2709
2689
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2710
|
-
throw await
|
|
2690
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2711
2691
|
case "ResourceNotFoundException":
|
|
2712
2692
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2713
|
-
throw await
|
|
2693
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2714
2694
|
case "ThrottlingException":
|
|
2715
2695
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2716
|
-
throw await
|
|
2696
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2717
2697
|
default:
|
|
2718
2698
|
const parsedBody = parsedOutput.body;
|
|
2719
2699
|
throwDefaultError({
|
|
@@ -2724,9 +2704,9 @@ const deserializeAws_restJson1SearchProfilesCommandError = async (output, contex
|
|
|
2724
2704
|
});
|
|
2725
2705
|
}
|
|
2726
2706
|
};
|
|
2727
|
-
export const
|
|
2707
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2728
2708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2729
|
-
return
|
|
2709
|
+
return de_TagResourceCommandError(output, context);
|
|
2730
2710
|
}
|
|
2731
2711
|
const contents = map({
|
|
2732
2712
|
$metadata: deserializeMetadata(output),
|
|
@@ -2734,7 +2714,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
2734
2714
|
await collectBody(output.body, context);
|
|
2735
2715
|
return contents;
|
|
2736
2716
|
};
|
|
2737
|
-
const
|
|
2717
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2738
2718
|
const parsedOutput = {
|
|
2739
2719
|
...output,
|
|
2740
2720
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2743,13 +2723,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2743
2723
|
switch (errorCode) {
|
|
2744
2724
|
case "BadRequestException":
|
|
2745
2725
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2746
|
-
throw await
|
|
2726
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2747
2727
|
case "InternalServerException":
|
|
2748
2728
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2749
|
-
throw await
|
|
2729
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2750
2730
|
case "ResourceNotFoundException":
|
|
2751
2731
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2752
|
-
throw await
|
|
2732
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2753
2733
|
default:
|
|
2754
2734
|
const parsedBody = parsedOutput.body;
|
|
2755
2735
|
throwDefaultError({
|
|
@@ -2760,9 +2740,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2760
2740
|
});
|
|
2761
2741
|
}
|
|
2762
2742
|
};
|
|
2763
|
-
export const
|
|
2743
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2764
2744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2765
|
-
return
|
|
2745
|
+
return de_UntagResourceCommandError(output, context);
|
|
2766
2746
|
}
|
|
2767
2747
|
const contents = map({
|
|
2768
2748
|
$metadata: deserializeMetadata(output),
|
|
@@ -2770,7 +2750,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
2770
2750
|
await collectBody(output.body, context);
|
|
2771
2751
|
return contents;
|
|
2772
2752
|
};
|
|
2773
|
-
const
|
|
2753
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2774
2754
|
const parsedOutput = {
|
|
2775
2755
|
...output,
|
|
2776
2756
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2779,13 +2759,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2779
2759
|
switch (errorCode) {
|
|
2780
2760
|
case "BadRequestException":
|
|
2781
2761
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2782
|
-
throw await
|
|
2762
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2783
2763
|
case "InternalServerException":
|
|
2784
2764
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2785
|
-
throw await
|
|
2765
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2786
2766
|
case "ResourceNotFoundException":
|
|
2787
2767
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2788
|
-
throw await
|
|
2768
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2789
2769
|
default:
|
|
2790
2770
|
const parsedBody = parsedOutput.body;
|
|
2791
2771
|
throwDefaultError({
|
|
@@ -2796,9 +2776,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2796
2776
|
});
|
|
2797
2777
|
}
|
|
2798
2778
|
};
|
|
2799
|
-
export const
|
|
2779
|
+
export const de_UpdateDomainCommand = async (output, context) => {
|
|
2800
2780
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2801
|
-
return
|
|
2781
|
+
return de_UpdateDomainCommandError(output, context);
|
|
2802
2782
|
}
|
|
2803
2783
|
const contents = map({
|
|
2804
2784
|
$metadata: deserializeMetadata(output),
|
|
@@ -2823,14 +2803,14 @@ export const deserializeAws_restJson1UpdateDomainCommand = async (output, contex
|
|
|
2823
2803
|
contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
|
|
2824
2804
|
}
|
|
2825
2805
|
if (data.Matching != null) {
|
|
2826
|
-
contents.Matching =
|
|
2806
|
+
contents.Matching = de_MatchingResponse(data.Matching, context);
|
|
2827
2807
|
}
|
|
2828
2808
|
if (data.Tags != null) {
|
|
2829
|
-
contents.Tags =
|
|
2809
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
2830
2810
|
}
|
|
2831
2811
|
return contents;
|
|
2832
2812
|
};
|
|
2833
|
-
const
|
|
2813
|
+
const de_UpdateDomainCommandError = async (output, context) => {
|
|
2834
2814
|
const parsedOutput = {
|
|
2835
2815
|
...output,
|
|
2836
2816
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2839,19 +2819,19 @@ const deserializeAws_restJson1UpdateDomainCommandError = async (output, context)
|
|
|
2839
2819
|
switch (errorCode) {
|
|
2840
2820
|
case "AccessDeniedException":
|
|
2841
2821
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2842
|
-
throw await
|
|
2822
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2843
2823
|
case "BadRequestException":
|
|
2844
2824
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2845
|
-
throw await
|
|
2825
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2846
2826
|
case "InternalServerException":
|
|
2847
2827
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2848
|
-
throw await
|
|
2828
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2849
2829
|
case "ResourceNotFoundException":
|
|
2850
2830
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2851
|
-
throw await
|
|
2831
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2852
2832
|
case "ThrottlingException":
|
|
2853
2833
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2854
|
-
throw await
|
|
2834
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2855
2835
|
default:
|
|
2856
2836
|
const parsedBody = parsedOutput.body;
|
|
2857
2837
|
throwDefaultError({
|
|
@@ -2862,9 +2842,9 @@ const deserializeAws_restJson1UpdateDomainCommandError = async (output, context)
|
|
|
2862
2842
|
});
|
|
2863
2843
|
}
|
|
2864
2844
|
};
|
|
2865
|
-
export const
|
|
2845
|
+
export const de_UpdateProfileCommand = async (output, context) => {
|
|
2866
2846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2867
|
-
return
|
|
2847
|
+
return de_UpdateProfileCommandError(output, context);
|
|
2868
2848
|
}
|
|
2869
2849
|
const contents = map({
|
|
2870
2850
|
$metadata: deserializeMetadata(output),
|
|
@@ -2875,7 +2855,7 @@ export const deserializeAws_restJson1UpdateProfileCommand = async (output, conte
|
|
|
2875
2855
|
}
|
|
2876
2856
|
return contents;
|
|
2877
2857
|
};
|
|
2878
|
-
const
|
|
2858
|
+
const de_UpdateProfileCommandError = async (output, context) => {
|
|
2879
2859
|
const parsedOutput = {
|
|
2880
2860
|
...output,
|
|
2881
2861
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2884,19 +2864,19 @@ const deserializeAws_restJson1UpdateProfileCommandError = async (output, context
|
|
|
2884
2864
|
switch (errorCode) {
|
|
2885
2865
|
case "AccessDeniedException":
|
|
2886
2866
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2887
|
-
throw await
|
|
2867
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2888
2868
|
case "BadRequestException":
|
|
2889
2869
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2890
|
-
throw await
|
|
2870
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2891
2871
|
case "InternalServerException":
|
|
2892
2872
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2893
|
-
throw await
|
|
2873
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2894
2874
|
case "ResourceNotFoundException":
|
|
2895
2875
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2896
|
-
throw await
|
|
2876
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2897
2877
|
case "ThrottlingException":
|
|
2898
2878
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2899
|
-
throw await
|
|
2879
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2900
2880
|
default:
|
|
2901
2881
|
const parsedBody = parsedOutput.body;
|
|
2902
2882
|
throwDefaultError({
|
|
@@ -2908,7 +2888,7 @@ const deserializeAws_restJson1UpdateProfileCommandError = async (output, context
|
|
|
2908
2888
|
}
|
|
2909
2889
|
};
|
|
2910
2890
|
const map = __map;
|
|
2911
|
-
const
|
|
2891
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2912
2892
|
const contents = map({});
|
|
2913
2893
|
const data = parsedOutput.body;
|
|
2914
2894
|
if (data.Message != null) {
|
|
@@ -2920,7 +2900,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2920
2900
|
});
|
|
2921
2901
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2922
2902
|
};
|
|
2923
|
-
const
|
|
2903
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2924
2904
|
const contents = map({});
|
|
2925
2905
|
const data = parsedOutput.body;
|
|
2926
2906
|
if (data.Message != null) {
|
|
@@ -2932,7 +2912,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2932
2912
|
});
|
|
2933
2913
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2934
2914
|
};
|
|
2935
|
-
const
|
|
2915
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2936
2916
|
const contents = map({});
|
|
2937
2917
|
const data = parsedOutput.body;
|
|
2938
2918
|
if (data.Message != null) {
|
|
@@ -2944,7 +2924,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2944
2924
|
});
|
|
2945
2925
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2946
2926
|
};
|
|
2947
|
-
const
|
|
2927
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2948
2928
|
const contents = map({});
|
|
2949
2929
|
const data = parsedOutput.body;
|
|
2950
2930
|
if (data.Message != null) {
|
|
@@ -2956,7 +2936,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2956
2936
|
});
|
|
2957
2937
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2958
2938
|
};
|
|
2959
|
-
const
|
|
2939
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2960
2940
|
const contents = map({});
|
|
2961
2941
|
const data = parsedOutput.body;
|
|
2962
2942
|
if (data.Message != null) {
|
|
@@ -2968,20 +2948,20 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2968
2948
|
});
|
|
2969
2949
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2970
2950
|
};
|
|
2971
|
-
const
|
|
2951
|
+
const se_AdditionalSearchKey = (input, context) => {
|
|
2972
2952
|
return {
|
|
2973
2953
|
...(input.KeyName != null && { KeyName: input.KeyName }),
|
|
2974
|
-
...(input.Values != null && { Values:
|
|
2954
|
+
...(input.Values != null && { Values: se_requestValueList(input.Values, context) }),
|
|
2975
2955
|
};
|
|
2976
2956
|
};
|
|
2977
|
-
const
|
|
2957
|
+
const se_additionalSearchKeysList = (input, context) => {
|
|
2978
2958
|
return input
|
|
2979
2959
|
.filter((e) => e != null)
|
|
2980
2960
|
.map((entry) => {
|
|
2981
|
-
return
|
|
2961
|
+
return se_AdditionalSearchKey(entry, context);
|
|
2982
2962
|
});
|
|
2983
2963
|
};
|
|
2984
|
-
const
|
|
2964
|
+
const se_Address = (input, context) => {
|
|
2985
2965
|
return {
|
|
2986
2966
|
...(input.Address1 != null && { Address1: input.Address1 }),
|
|
2987
2967
|
...(input.Address2 != null && { Address2: input.Address2 }),
|
|
@@ -2995,15 +2975,13 @@ const serializeAws_restJson1Address = (input, context) => {
|
|
|
2995
2975
|
...(input.State != null && { State: input.State }),
|
|
2996
2976
|
};
|
|
2997
2977
|
};
|
|
2998
|
-
const
|
|
2978
|
+
const se_AppflowIntegration = (input, context) => {
|
|
2999
2979
|
return {
|
|
3000
|
-
...(input.Batches != null && { Batches:
|
|
3001
|
-
...(input.FlowDefinition != null && {
|
|
3002
|
-
FlowDefinition: serializeAws_restJson1FlowDefinition(input.FlowDefinition, context),
|
|
3003
|
-
}),
|
|
2980
|
+
...(input.Batches != null && { Batches: se_Batches(input.Batches, context) }),
|
|
2981
|
+
...(input.FlowDefinition != null && { FlowDefinition: se_FlowDefinition(input.FlowDefinition, context) }),
|
|
3004
2982
|
};
|
|
3005
2983
|
};
|
|
3006
|
-
const
|
|
2984
|
+
const se_Attributes = (input, context) => {
|
|
3007
2985
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3008
2986
|
if (value === null) {
|
|
3009
2987
|
return acc;
|
|
@@ -3012,7 +2990,7 @@ const serializeAws_restJson1Attributes = (input, context) => {
|
|
|
3012
2990
|
return acc;
|
|
3013
2991
|
}, {});
|
|
3014
2992
|
};
|
|
3015
|
-
const
|
|
2993
|
+
const se_AttributeSourceIdMap = (input, context) => {
|
|
3016
2994
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3017
2995
|
if (value === null) {
|
|
3018
2996
|
return acc;
|
|
@@ -3021,40 +2999,38 @@ const serializeAws_restJson1AttributeSourceIdMap = (input, context) => {
|
|
|
3021
2999
|
return acc;
|
|
3022
3000
|
}, {});
|
|
3023
3001
|
};
|
|
3024
|
-
const
|
|
3002
|
+
const se_AutoMerging = (input, context) => {
|
|
3025
3003
|
return {
|
|
3026
3004
|
...(input.ConflictResolution != null && {
|
|
3027
|
-
ConflictResolution:
|
|
3028
|
-
}),
|
|
3029
|
-
...(input.Consolidation != null && {
|
|
3030
|
-
Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
|
|
3005
|
+
ConflictResolution: se_ConflictResolution(input.ConflictResolution, context),
|
|
3031
3006
|
}),
|
|
3007
|
+
...(input.Consolidation != null && { Consolidation: se_Consolidation(input.Consolidation, context) }),
|
|
3032
3008
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3033
3009
|
...(input.MinAllowedConfidenceScoreForMerging != null && {
|
|
3034
3010
|
MinAllowedConfidenceScoreForMerging: __serializeFloat(input.MinAllowedConfidenceScoreForMerging),
|
|
3035
3011
|
}),
|
|
3036
3012
|
};
|
|
3037
3013
|
};
|
|
3038
|
-
const
|
|
3014
|
+
const se_Batch = (input, context) => {
|
|
3039
3015
|
return {
|
|
3040
3016
|
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
3041
3017
|
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
3042
3018
|
};
|
|
3043
3019
|
};
|
|
3044
|
-
const
|
|
3020
|
+
const se_Batches = (input, context) => {
|
|
3045
3021
|
return input
|
|
3046
3022
|
.filter((e) => e != null)
|
|
3047
3023
|
.map((entry) => {
|
|
3048
|
-
return
|
|
3024
|
+
return se_Batch(entry, context);
|
|
3049
3025
|
});
|
|
3050
3026
|
};
|
|
3051
|
-
const
|
|
3027
|
+
const se_ConflictResolution = (input, context) => {
|
|
3052
3028
|
return {
|
|
3053
3029
|
...(input.ConflictResolvingModel != null && { ConflictResolvingModel: input.ConflictResolvingModel }),
|
|
3054
3030
|
...(input.SourceName != null && { SourceName: input.SourceName }),
|
|
3055
3031
|
};
|
|
3056
3032
|
};
|
|
3057
|
-
const
|
|
3033
|
+
const se_ConnectorOperator = (input, context) => {
|
|
3058
3034
|
return {
|
|
3059
3035
|
...(input.Marketo != null && { Marketo: input.Marketo }),
|
|
3060
3036
|
...(input.S3 != null && { S3: input.S3 }),
|
|
@@ -3063,44 +3039,40 @@ const serializeAws_restJson1ConnectorOperator = (input, context) => {
|
|
|
3063
3039
|
...(input.Zendesk != null && { Zendesk: input.Zendesk }),
|
|
3064
3040
|
};
|
|
3065
3041
|
};
|
|
3066
|
-
const
|
|
3042
|
+
const se_Consolidation = (input, context) => {
|
|
3067
3043
|
return {
|
|
3068
3044
|
...(input.MatchingAttributesList != null && {
|
|
3069
|
-
MatchingAttributesList:
|
|
3045
|
+
MatchingAttributesList: se_MatchingAttributesList(input.MatchingAttributesList, context),
|
|
3070
3046
|
}),
|
|
3071
3047
|
};
|
|
3072
3048
|
};
|
|
3073
|
-
const
|
|
3049
|
+
const se_ExportingConfig = (input, context) => {
|
|
3074
3050
|
return {
|
|
3075
|
-
...(input.S3Exporting != null && {
|
|
3076
|
-
S3Exporting: serializeAws_restJson1S3ExportingConfig(input.S3Exporting, context),
|
|
3077
|
-
}),
|
|
3051
|
+
...(input.S3Exporting != null && { S3Exporting: se_S3ExportingConfig(input.S3Exporting, context) }),
|
|
3078
3052
|
};
|
|
3079
3053
|
};
|
|
3080
|
-
const
|
|
3054
|
+
const se_FieldMap = (input, context) => {
|
|
3081
3055
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3082
3056
|
if (value === null) {
|
|
3083
3057
|
return acc;
|
|
3084
3058
|
}
|
|
3085
|
-
acc[key] =
|
|
3059
|
+
acc[key] = se_ObjectTypeField(value, context);
|
|
3086
3060
|
return acc;
|
|
3087
3061
|
}, {});
|
|
3088
3062
|
};
|
|
3089
|
-
const
|
|
3063
|
+
const se_FieldNameList = (input, context) => {
|
|
3090
3064
|
return input
|
|
3091
3065
|
.filter((e) => e != null)
|
|
3092
3066
|
.map((entry) => {
|
|
3093
3067
|
return entry;
|
|
3094
3068
|
});
|
|
3095
3069
|
};
|
|
3096
|
-
const
|
|
3070
|
+
const se_FieldSourceProfileIds = (input, context) => {
|
|
3097
3071
|
return {
|
|
3098
3072
|
...(input.AccountNumber != null && { AccountNumber: input.AccountNumber }),
|
|
3099
3073
|
...(input.AdditionalInformation != null && { AdditionalInformation: input.AdditionalInformation }),
|
|
3100
3074
|
...(input.Address != null && { Address: input.Address }),
|
|
3101
|
-
...(input.Attributes != null && {
|
|
3102
|
-
Attributes: serializeAws_restJson1AttributeSourceIdMap(input.Attributes, context),
|
|
3103
|
-
}),
|
|
3075
|
+
...(input.Attributes != null && { Attributes: se_AttributeSourceIdMap(input.Attributes, context) }),
|
|
3104
3076
|
...(input.BillingAddress != null && { BillingAddress: input.BillingAddress }),
|
|
3105
3077
|
...(input.BirthDate != null && { BirthDate: input.BirthDate }),
|
|
3106
3078
|
...(input.BusinessEmailAddress != null && { BusinessEmailAddress: input.BusinessEmailAddress }),
|
|
@@ -3120,105 +3092,99 @@ const serializeAws_restJson1FieldSourceProfileIds = (input, context) => {
|
|
|
3120
3092
|
...(input.ShippingAddress != null && { ShippingAddress: input.ShippingAddress }),
|
|
3121
3093
|
};
|
|
3122
3094
|
};
|
|
3123
|
-
const
|
|
3095
|
+
const se_FlowDefinition = (input, context) => {
|
|
3124
3096
|
return {
|
|
3125
3097
|
...(input.Description != null && { Description: input.Description }),
|
|
3126
3098
|
...(input.FlowName != null && { FlowName: input.FlowName }),
|
|
3127
3099
|
...(input.KmsArn != null && { KmsArn: input.KmsArn }),
|
|
3128
|
-
...(input.SourceFlowConfig != null && {
|
|
3129
|
-
|
|
3130
|
-
}),
|
|
3131
|
-
...(input.Tasks != null && { Tasks: serializeAws_restJson1Tasks(input.Tasks, context) }),
|
|
3132
|
-
...(input.TriggerConfig != null && {
|
|
3133
|
-
TriggerConfig: serializeAws_restJson1TriggerConfig(input.TriggerConfig, context),
|
|
3134
|
-
}),
|
|
3100
|
+
...(input.SourceFlowConfig != null && { SourceFlowConfig: se_SourceFlowConfig(input.SourceFlowConfig, context) }),
|
|
3101
|
+
...(input.Tasks != null && { Tasks: se_Tasks(input.Tasks, context) }),
|
|
3102
|
+
...(input.TriggerConfig != null && { TriggerConfig: se_TriggerConfig(input.TriggerConfig, context) }),
|
|
3135
3103
|
};
|
|
3136
3104
|
};
|
|
3137
|
-
const
|
|
3105
|
+
const se_IncrementalPullConfig = (input, context) => {
|
|
3138
3106
|
return {
|
|
3139
3107
|
...(input.DatetimeTypeFieldName != null && { DatetimeTypeFieldName: input.DatetimeTypeFieldName }),
|
|
3140
3108
|
};
|
|
3141
3109
|
};
|
|
3142
|
-
const
|
|
3110
|
+
const se_IntegrationConfig = (input, context) => {
|
|
3143
3111
|
return {
|
|
3144
3112
|
...(input.AppflowIntegration != null && {
|
|
3145
|
-
AppflowIntegration:
|
|
3113
|
+
AppflowIntegration: se_AppflowIntegration(input.AppflowIntegration, context),
|
|
3146
3114
|
}),
|
|
3147
3115
|
};
|
|
3148
3116
|
};
|
|
3149
|
-
const
|
|
3117
|
+
const se_JobSchedule = (input, context) => {
|
|
3150
3118
|
return {
|
|
3151
3119
|
...(input.DayOfTheWeek != null && { DayOfTheWeek: input.DayOfTheWeek }),
|
|
3152
3120
|
...(input.Time != null && { Time: input.Time }),
|
|
3153
3121
|
};
|
|
3154
3122
|
};
|
|
3155
|
-
const
|
|
3123
|
+
const se_KeyMap = (input, context) => {
|
|
3156
3124
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3157
3125
|
if (value === null) {
|
|
3158
3126
|
return acc;
|
|
3159
3127
|
}
|
|
3160
|
-
acc[key] =
|
|
3128
|
+
acc[key] = se_ObjectTypeKeyList(value, context);
|
|
3161
3129
|
return acc;
|
|
3162
3130
|
}, {});
|
|
3163
3131
|
};
|
|
3164
|
-
const
|
|
3132
|
+
const se_MarketoSourceProperties = (input, context) => {
|
|
3165
3133
|
return {
|
|
3166
3134
|
...(input.Object != null && { Object: input.Object }),
|
|
3167
3135
|
};
|
|
3168
3136
|
};
|
|
3169
|
-
const
|
|
3137
|
+
const se_MatchingAttributes = (input, context) => {
|
|
3170
3138
|
return input
|
|
3171
3139
|
.filter((e) => e != null)
|
|
3172
3140
|
.map((entry) => {
|
|
3173
3141
|
return entry;
|
|
3174
3142
|
});
|
|
3175
3143
|
};
|
|
3176
|
-
const
|
|
3144
|
+
const se_MatchingAttributesList = (input, context) => {
|
|
3177
3145
|
return input
|
|
3178
3146
|
.filter((e) => e != null)
|
|
3179
3147
|
.map((entry) => {
|
|
3180
|
-
return
|
|
3148
|
+
return se_MatchingAttributes(entry, context);
|
|
3181
3149
|
});
|
|
3182
3150
|
};
|
|
3183
|
-
const
|
|
3151
|
+
const se_MatchingRequest = (input, context) => {
|
|
3184
3152
|
return {
|
|
3185
|
-
...(input.AutoMerging != null && { AutoMerging:
|
|
3153
|
+
...(input.AutoMerging != null && { AutoMerging: se_AutoMerging(input.AutoMerging, context) }),
|
|
3186
3154
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3187
|
-
...(input.ExportingConfig != null && {
|
|
3188
|
-
|
|
3189
|
-
}),
|
|
3190
|
-
...(input.JobSchedule != null && { JobSchedule: serializeAws_restJson1JobSchedule(input.JobSchedule, context) }),
|
|
3155
|
+
...(input.ExportingConfig != null && { ExportingConfig: se_ExportingConfig(input.ExportingConfig, context) }),
|
|
3156
|
+
...(input.JobSchedule != null && { JobSchedule: se_JobSchedule(input.JobSchedule, context) }),
|
|
3191
3157
|
};
|
|
3192
3158
|
};
|
|
3193
|
-
const
|
|
3159
|
+
const se_ObjectFilter = (input, context) => {
|
|
3194
3160
|
return {
|
|
3195
3161
|
...(input.KeyName != null && { KeyName: input.KeyName }),
|
|
3196
|
-
...(input.Values != null && { Values:
|
|
3162
|
+
...(input.Values != null && { Values: se_requestValueList(input.Values, context) }),
|
|
3197
3163
|
};
|
|
3198
3164
|
};
|
|
3199
|
-
const
|
|
3165
|
+
const se_ObjectTypeField = (input, context) => {
|
|
3200
3166
|
return {
|
|
3201
3167
|
...(input.ContentType != null && { ContentType: input.ContentType }),
|
|
3202
3168
|
...(input.Source != null && { Source: input.Source }),
|
|
3203
3169
|
...(input.Target != null && { Target: input.Target }),
|
|
3204
3170
|
};
|
|
3205
3171
|
};
|
|
3206
|
-
const
|
|
3172
|
+
const se_ObjectTypeKey = (input, context) => {
|
|
3207
3173
|
return {
|
|
3208
|
-
...(input.FieldNames != null && { FieldNames:
|
|
3174
|
+
...(input.FieldNames != null && { FieldNames: se_FieldNameList(input.FieldNames, context) }),
|
|
3209
3175
|
...(input.StandardIdentifiers != null && {
|
|
3210
|
-
StandardIdentifiers:
|
|
3176
|
+
StandardIdentifiers: se_StandardIdentifierList(input.StandardIdentifiers, context),
|
|
3211
3177
|
}),
|
|
3212
3178
|
};
|
|
3213
3179
|
};
|
|
3214
|
-
const
|
|
3180
|
+
const se_ObjectTypeKeyList = (input, context) => {
|
|
3215
3181
|
return input
|
|
3216
3182
|
.filter((e) => e != null)
|
|
3217
3183
|
.map((entry) => {
|
|
3218
|
-
return
|
|
3184
|
+
return se_ObjectTypeKey(entry, context);
|
|
3219
3185
|
});
|
|
3220
3186
|
};
|
|
3221
|
-
const
|
|
3187
|
+
const se_ObjectTypeNames = (input, context) => {
|
|
3222
3188
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3223
3189
|
if (value === null) {
|
|
3224
3190
|
return acc;
|
|
@@ -3227,40 +3193,40 @@ const serializeAws_restJson1ObjectTypeNames = (input, context) => {
|
|
|
3227
3193
|
return acc;
|
|
3228
3194
|
}, {});
|
|
3229
3195
|
};
|
|
3230
|
-
const
|
|
3196
|
+
const se_ProfileIdToBeMergedList = (input, context) => {
|
|
3231
3197
|
return input
|
|
3232
3198
|
.filter((e) => e != null)
|
|
3233
3199
|
.map((entry) => {
|
|
3234
3200
|
return entry;
|
|
3235
3201
|
});
|
|
3236
3202
|
};
|
|
3237
|
-
const
|
|
3203
|
+
const se_requestValueList = (input, context) => {
|
|
3238
3204
|
return input
|
|
3239
3205
|
.filter((e) => e != null)
|
|
3240
3206
|
.map((entry) => {
|
|
3241
3207
|
return entry;
|
|
3242
3208
|
});
|
|
3243
3209
|
};
|
|
3244
|
-
const
|
|
3210
|
+
const se_S3ExportingConfig = (input, context) => {
|
|
3245
3211
|
return {
|
|
3246
3212
|
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
3247
3213
|
...(input.S3KeyName != null && { S3KeyName: input.S3KeyName }),
|
|
3248
3214
|
};
|
|
3249
3215
|
};
|
|
3250
|
-
const
|
|
3216
|
+
const se_S3SourceProperties = (input, context) => {
|
|
3251
3217
|
return {
|
|
3252
3218
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
3253
3219
|
...(input.BucketPrefix != null && { BucketPrefix: input.BucketPrefix }),
|
|
3254
3220
|
};
|
|
3255
3221
|
};
|
|
3256
|
-
const
|
|
3222
|
+
const se_SalesforceSourceProperties = (input, context) => {
|
|
3257
3223
|
return {
|
|
3258
3224
|
...(input.EnableDynamicFieldUpdate != null && { EnableDynamicFieldUpdate: input.EnableDynamicFieldUpdate }),
|
|
3259
3225
|
...(input.IncludeDeletedRecords != null && { IncludeDeletedRecords: input.IncludeDeletedRecords }),
|
|
3260
3226
|
...(input.Object != null && { Object: input.Object }),
|
|
3261
3227
|
};
|
|
3262
3228
|
};
|
|
3263
|
-
const
|
|
3229
|
+
const se_ScheduledTriggerProperties = (input, context) => {
|
|
3264
3230
|
return {
|
|
3265
3231
|
...(input.DataPullMode != null && { DataPullMode: input.DataPullMode }),
|
|
3266
3232
|
...(input.FirstExecutionFrom != null && {
|
|
@@ -3273,51 +3239,47 @@ const serializeAws_restJson1ScheduledTriggerProperties = (input, context) => {
|
|
|
3273
3239
|
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
3274
3240
|
};
|
|
3275
3241
|
};
|
|
3276
|
-
const
|
|
3242
|
+
const se_ServiceNowSourceProperties = (input, context) => {
|
|
3277
3243
|
return {
|
|
3278
3244
|
...(input.Object != null && { Object: input.Object }),
|
|
3279
3245
|
};
|
|
3280
3246
|
};
|
|
3281
|
-
const
|
|
3247
|
+
const se_SourceConnectorProperties = (input, context) => {
|
|
3282
3248
|
return {
|
|
3283
|
-
...(input.Marketo != null && { Marketo:
|
|
3284
|
-
...(input.S3 != null && { S3:
|
|
3285
|
-
...(input.Salesforce != null && {
|
|
3286
|
-
|
|
3287
|
-
}),
|
|
3288
|
-
...(input.ServiceNow != null && {
|
|
3289
|
-
ServiceNow: serializeAws_restJson1ServiceNowSourceProperties(input.ServiceNow, context),
|
|
3290
|
-
}),
|
|
3291
|
-
...(input.Zendesk != null && { Zendesk: serializeAws_restJson1ZendeskSourceProperties(input.Zendesk, context) }),
|
|
3249
|
+
...(input.Marketo != null && { Marketo: se_MarketoSourceProperties(input.Marketo, context) }),
|
|
3250
|
+
...(input.S3 != null && { S3: se_S3SourceProperties(input.S3, context) }),
|
|
3251
|
+
...(input.Salesforce != null && { Salesforce: se_SalesforceSourceProperties(input.Salesforce, context) }),
|
|
3252
|
+
...(input.ServiceNow != null && { ServiceNow: se_ServiceNowSourceProperties(input.ServiceNow, context) }),
|
|
3253
|
+
...(input.Zendesk != null && { Zendesk: se_ZendeskSourceProperties(input.Zendesk, context) }),
|
|
3292
3254
|
};
|
|
3293
3255
|
};
|
|
3294
|
-
const
|
|
3256
|
+
const se_SourceFields = (input, context) => {
|
|
3295
3257
|
return input
|
|
3296
3258
|
.filter((e) => e != null)
|
|
3297
3259
|
.map((entry) => {
|
|
3298
3260
|
return entry;
|
|
3299
3261
|
});
|
|
3300
3262
|
};
|
|
3301
|
-
const
|
|
3263
|
+
const se_SourceFlowConfig = (input, context) => {
|
|
3302
3264
|
return {
|
|
3303
3265
|
...(input.ConnectorProfileName != null && { ConnectorProfileName: input.ConnectorProfileName }),
|
|
3304
3266
|
...(input.ConnectorType != null && { ConnectorType: input.ConnectorType }),
|
|
3305
3267
|
...(input.IncrementalPullConfig != null && {
|
|
3306
|
-
IncrementalPullConfig:
|
|
3268
|
+
IncrementalPullConfig: se_IncrementalPullConfig(input.IncrementalPullConfig, context),
|
|
3307
3269
|
}),
|
|
3308
3270
|
...(input.SourceConnectorProperties != null && {
|
|
3309
|
-
SourceConnectorProperties:
|
|
3271
|
+
SourceConnectorProperties: se_SourceConnectorProperties(input.SourceConnectorProperties, context),
|
|
3310
3272
|
}),
|
|
3311
3273
|
};
|
|
3312
3274
|
};
|
|
3313
|
-
const
|
|
3275
|
+
const se_StandardIdentifierList = (input, context) => {
|
|
3314
3276
|
return input
|
|
3315
3277
|
.filter((e) => e != null)
|
|
3316
3278
|
.map((entry) => {
|
|
3317
3279
|
return entry;
|
|
3318
3280
|
});
|
|
3319
3281
|
};
|
|
3320
|
-
const
|
|
3282
|
+
const se_TagMap = (input, context) => {
|
|
3321
3283
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3322
3284
|
if (value === null) {
|
|
3323
3285
|
return acc;
|
|
@@ -3326,22 +3288,18 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3326
3288
|
return acc;
|
|
3327
3289
|
}, {});
|
|
3328
3290
|
};
|
|
3329
|
-
const
|
|
3291
|
+
const se_Task = (input, context) => {
|
|
3330
3292
|
return {
|
|
3331
3293
|
...(input.ConnectorOperator != null && {
|
|
3332
|
-
ConnectorOperator:
|
|
3294
|
+
ConnectorOperator: se_ConnectorOperator(input.ConnectorOperator, context),
|
|
3333
3295
|
}),
|
|
3334
3296
|
...(input.DestinationField != null && { DestinationField: input.DestinationField }),
|
|
3335
|
-
...(input.SourceFields != null && {
|
|
3336
|
-
|
|
3337
|
-
}),
|
|
3338
|
-
...(input.TaskProperties != null && {
|
|
3339
|
-
TaskProperties: serializeAws_restJson1TaskPropertiesMap(input.TaskProperties, context),
|
|
3340
|
-
}),
|
|
3297
|
+
...(input.SourceFields != null && { SourceFields: se_SourceFields(input.SourceFields, context) }),
|
|
3298
|
+
...(input.TaskProperties != null && { TaskProperties: se_TaskPropertiesMap(input.TaskProperties, context) }),
|
|
3341
3299
|
...(input.TaskType != null && { TaskType: input.TaskType }),
|
|
3342
3300
|
};
|
|
3343
3301
|
};
|
|
3344
|
-
const
|
|
3302
|
+
const se_TaskPropertiesMap = (input, context) => {
|
|
3345
3303
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3346
3304
|
if (value === null) {
|
|
3347
3305
|
return acc;
|
|
@@ -3350,29 +3308,27 @@ const serializeAws_restJson1TaskPropertiesMap = (input, context) => {
|
|
|
3350
3308
|
return acc;
|
|
3351
3309
|
}, {});
|
|
3352
3310
|
};
|
|
3353
|
-
const
|
|
3311
|
+
const se_Tasks = (input, context) => {
|
|
3354
3312
|
return input
|
|
3355
3313
|
.filter((e) => e != null)
|
|
3356
3314
|
.map((entry) => {
|
|
3357
|
-
return
|
|
3315
|
+
return se_Task(entry, context);
|
|
3358
3316
|
});
|
|
3359
3317
|
};
|
|
3360
|
-
const
|
|
3318
|
+
const se_TriggerConfig = (input, context) => {
|
|
3361
3319
|
return {
|
|
3362
3320
|
...(input.TriggerProperties != null && {
|
|
3363
|
-
TriggerProperties:
|
|
3321
|
+
TriggerProperties: se_TriggerProperties(input.TriggerProperties, context),
|
|
3364
3322
|
}),
|
|
3365
3323
|
...(input.TriggerType != null && { TriggerType: input.TriggerType }),
|
|
3366
3324
|
};
|
|
3367
3325
|
};
|
|
3368
|
-
const
|
|
3326
|
+
const se_TriggerProperties = (input, context) => {
|
|
3369
3327
|
return {
|
|
3370
|
-
...(input.Scheduled != null && {
|
|
3371
|
-
Scheduled: serializeAws_restJson1ScheduledTriggerProperties(input.Scheduled, context),
|
|
3372
|
-
}),
|
|
3328
|
+
...(input.Scheduled != null && { Scheduled: se_ScheduledTriggerProperties(input.Scheduled, context) }),
|
|
3373
3329
|
};
|
|
3374
3330
|
};
|
|
3375
|
-
const
|
|
3331
|
+
const se_UpdateAddress = (input, context) => {
|
|
3376
3332
|
return {
|
|
3377
3333
|
...(input.Address1 != null && { Address1: input.Address1 }),
|
|
3378
3334
|
...(input.Address2 != null && { Address2: input.Address2 }),
|
|
@@ -3386,7 +3342,7 @@ const serializeAws_restJson1UpdateAddress = (input, context) => {
|
|
|
3386
3342
|
...(input.State != null && { State: input.State }),
|
|
3387
3343
|
};
|
|
3388
3344
|
};
|
|
3389
|
-
const
|
|
3345
|
+
const se_UpdateAttributes = (input, context) => {
|
|
3390
3346
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3391
3347
|
if (value === null) {
|
|
3392
3348
|
return acc;
|
|
@@ -3395,12 +3351,12 @@ const serializeAws_restJson1UpdateAttributes = (input, context) => {
|
|
|
3395
3351
|
return acc;
|
|
3396
3352
|
}, {});
|
|
3397
3353
|
};
|
|
3398
|
-
const
|
|
3354
|
+
const se_ZendeskSourceProperties = (input, context) => {
|
|
3399
3355
|
return {
|
|
3400
3356
|
...(input.Object != null && { Object: input.Object }),
|
|
3401
3357
|
};
|
|
3402
3358
|
};
|
|
3403
|
-
const
|
|
3359
|
+
const de_Address = (output, context) => {
|
|
3404
3360
|
return {
|
|
3405
3361
|
Address1: __expectString(output.Address1),
|
|
3406
3362
|
Address2: __expectString(output.Address2),
|
|
@@ -3414,21 +3370,21 @@ const deserializeAws_restJson1Address = (output, context) => {
|
|
|
3414
3370
|
State: __expectString(output.State),
|
|
3415
3371
|
};
|
|
3416
3372
|
};
|
|
3417
|
-
const
|
|
3373
|
+
const de_AppflowIntegrationWorkflowAttributes = (output, context) => {
|
|
3418
3374
|
return {
|
|
3419
3375
|
ConnectorProfileName: __expectString(output.ConnectorProfileName),
|
|
3420
3376
|
RoleArn: __expectString(output.RoleArn),
|
|
3421
3377
|
SourceConnectorType: __expectString(output.SourceConnectorType),
|
|
3422
3378
|
};
|
|
3423
3379
|
};
|
|
3424
|
-
const
|
|
3380
|
+
const de_AppflowIntegrationWorkflowMetrics = (output, context) => {
|
|
3425
3381
|
return {
|
|
3426
3382
|
RecordsProcessed: __expectLong(output.RecordsProcessed),
|
|
3427
3383
|
StepsCompleted: __expectLong(output.StepsCompleted),
|
|
3428
3384
|
TotalSteps: __expectLong(output.TotalSteps),
|
|
3429
3385
|
};
|
|
3430
3386
|
};
|
|
3431
|
-
const
|
|
3387
|
+
const de_AppflowIntegrationWorkflowStep = (output, context) => {
|
|
3432
3388
|
return {
|
|
3433
3389
|
BatchRecordsEndTime: __expectString(output.BatchRecordsEndTime),
|
|
3434
3390
|
BatchRecordsStartTime: __expectString(output.BatchRecordsStartTime),
|
|
@@ -3442,7 +3398,7 @@ const deserializeAws_restJson1AppflowIntegrationWorkflowStep = (output, context)
|
|
|
3442
3398
|
Status: __expectString(output.Status),
|
|
3443
3399
|
};
|
|
3444
3400
|
};
|
|
3445
|
-
const
|
|
3401
|
+
const de_Attributes = (output, context) => {
|
|
3446
3402
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3447
3403
|
if (value === null) {
|
|
3448
3404
|
return acc;
|
|
@@ -3451,41 +3407,39 @@ const deserializeAws_restJson1Attributes = (output, context) => {
|
|
|
3451
3407
|
return acc;
|
|
3452
3408
|
}, {});
|
|
3453
3409
|
};
|
|
3454
|
-
const
|
|
3410
|
+
const de_AutoMerging = (output, context) => {
|
|
3455
3411
|
return {
|
|
3456
|
-
ConflictResolution: output.ConflictResolution != null
|
|
3457
|
-
|
|
3458
|
-
: undefined,
|
|
3459
|
-
Consolidation: output.Consolidation != null ? deserializeAws_restJson1Consolidation(output.Consolidation, context) : undefined,
|
|
3412
|
+
ConflictResolution: output.ConflictResolution != null ? de_ConflictResolution(output.ConflictResolution, context) : undefined,
|
|
3413
|
+
Consolidation: output.Consolidation != null ? de_Consolidation(output.Consolidation, context) : undefined,
|
|
3460
3414
|
Enabled: __expectBoolean(output.Enabled),
|
|
3461
3415
|
MinAllowedConfidenceScoreForMerging: __limitedParseDouble(output.MinAllowedConfidenceScoreForMerging),
|
|
3462
3416
|
};
|
|
3463
3417
|
};
|
|
3464
|
-
const
|
|
3418
|
+
const de_ConflictResolution = (output, context) => {
|
|
3465
3419
|
return {
|
|
3466
3420
|
ConflictResolvingModel: __expectString(output.ConflictResolvingModel),
|
|
3467
3421
|
SourceName: __expectString(output.SourceName),
|
|
3468
3422
|
};
|
|
3469
3423
|
};
|
|
3470
|
-
const
|
|
3424
|
+
const de_Consolidation = (output, context) => {
|
|
3471
3425
|
return {
|
|
3472
3426
|
MatchingAttributesList: output.MatchingAttributesList != null
|
|
3473
|
-
?
|
|
3427
|
+
? de_MatchingAttributesList(output.MatchingAttributesList, context)
|
|
3474
3428
|
: undefined,
|
|
3475
3429
|
};
|
|
3476
3430
|
};
|
|
3477
|
-
const
|
|
3431
|
+
const de_DomainList = (output, context) => {
|
|
3478
3432
|
const retVal = (output || [])
|
|
3479
3433
|
.filter((e) => e != null)
|
|
3480
3434
|
.map((entry) => {
|
|
3481
3435
|
if (entry === null) {
|
|
3482
3436
|
return null;
|
|
3483
3437
|
}
|
|
3484
|
-
return
|
|
3438
|
+
return de_ListDomainItem(entry, context);
|
|
3485
3439
|
});
|
|
3486
3440
|
return retVal;
|
|
3487
3441
|
};
|
|
3488
|
-
const
|
|
3442
|
+
const de_DomainStats = (output, context) => {
|
|
3489
3443
|
return {
|
|
3490
3444
|
MeteringProfileCount: __expectLong(output.MeteringProfileCount),
|
|
3491
3445
|
ObjectCount: __expectLong(output.ObjectCount),
|
|
@@ -3493,26 +3447,26 @@ const deserializeAws_restJson1DomainStats = (output, context) => {
|
|
|
3493
3447
|
TotalSize: __expectLong(output.TotalSize),
|
|
3494
3448
|
};
|
|
3495
3449
|
};
|
|
3496
|
-
const
|
|
3450
|
+
const de_ExportingConfig = (output, context) => {
|
|
3497
3451
|
return {
|
|
3498
|
-
S3Exporting: output.S3Exporting != null ?
|
|
3452
|
+
S3Exporting: output.S3Exporting != null ? de_S3ExportingConfig(output.S3Exporting, context) : undefined,
|
|
3499
3453
|
};
|
|
3500
3454
|
};
|
|
3501
|
-
const
|
|
3455
|
+
const de_ExportingLocation = (output, context) => {
|
|
3502
3456
|
return {
|
|
3503
|
-
S3Exporting: output.S3Exporting != null ?
|
|
3457
|
+
S3Exporting: output.S3Exporting != null ? de_S3ExportingLocation(output.S3Exporting, context) : undefined,
|
|
3504
3458
|
};
|
|
3505
3459
|
};
|
|
3506
|
-
const
|
|
3460
|
+
const de_FieldMap = (output, context) => {
|
|
3507
3461
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3508
3462
|
if (value === null) {
|
|
3509
3463
|
return acc;
|
|
3510
3464
|
}
|
|
3511
|
-
acc[key] =
|
|
3465
|
+
acc[key] = de_ObjectTypeField(value, context);
|
|
3512
3466
|
return acc;
|
|
3513
3467
|
}, {});
|
|
3514
3468
|
};
|
|
3515
|
-
const
|
|
3469
|
+
const de_FieldNameList = (output, context) => {
|
|
3516
3470
|
const retVal = (output || [])
|
|
3517
3471
|
.filter((e) => e != null)
|
|
3518
3472
|
.map((entry) => {
|
|
@@ -3523,94 +3477,92 @@ const deserializeAws_restJson1FieldNameList = (output, context) => {
|
|
|
3523
3477
|
});
|
|
3524
3478
|
return retVal;
|
|
3525
3479
|
};
|
|
3526
|
-
const
|
|
3480
|
+
const de_FoundByKeyValue = (output, context) => {
|
|
3527
3481
|
return {
|
|
3528
3482
|
KeyName: __expectString(output.KeyName),
|
|
3529
|
-
Values: output.Values != null ?
|
|
3483
|
+
Values: output.Values != null ? de_requestValueList(output.Values, context) : undefined,
|
|
3530
3484
|
};
|
|
3531
3485
|
};
|
|
3532
|
-
const
|
|
3486
|
+
const de_foundByList = (output, context) => {
|
|
3533
3487
|
const retVal = (output || [])
|
|
3534
3488
|
.filter((e) => e != null)
|
|
3535
3489
|
.map((entry) => {
|
|
3536
3490
|
if (entry === null) {
|
|
3537
3491
|
return null;
|
|
3538
3492
|
}
|
|
3539
|
-
return
|
|
3493
|
+
return de_FoundByKeyValue(entry, context);
|
|
3540
3494
|
});
|
|
3541
3495
|
return retVal;
|
|
3542
3496
|
};
|
|
3543
|
-
const
|
|
3497
|
+
const de_IdentityResolutionJob = (output, context) => {
|
|
3544
3498
|
return {
|
|
3545
3499
|
DomainName: __expectString(output.DomainName),
|
|
3546
|
-
ExportingLocation: output.ExportingLocation != null
|
|
3547
|
-
? deserializeAws_restJson1ExportingLocation(output.ExportingLocation, context)
|
|
3548
|
-
: undefined,
|
|
3500
|
+
ExportingLocation: output.ExportingLocation != null ? de_ExportingLocation(output.ExportingLocation, context) : undefined,
|
|
3549
3501
|
JobEndTime: output.JobEndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.JobEndTime))) : undefined,
|
|
3550
3502
|
JobId: __expectString(output.JobId),
|
|
3551
3503
|
JobStartTime: output.JobStartTime != null
|
|
3552
3504
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.JobStartTime)))
|
|
3553
3505
|
: undefined,
|
|
3554
|
-
JobStats: output.JobStats != null ?
|
|
3506
|
+
JobStats: output.JobStats != null ? de_JobStats(output.JobStats, context) : undefined,
|
|
3555
3507
|
Message: __expectString(output.Message),
|
|
3556
3508
|
Status: __expectString(output.Status),
|
|
3557
3509
|
};
|
|
3558
3510
|
};
|
|
3559
|
-
const
|
|
3511
|
+
const de_IdentityResolutionJobsList = (output, context) => {
|
|
3560
3512
|
const retVal = (output || [])
|
|
3561
3513
|
.filter((e) => e != null)
|
|
3562
3514
|
.map((entry) => {
|
|
3563
3515
|
if (entry === null) {
|
|
3564
3516
|
return null;
|
|
3565
3517
|
}
|
|
3566
|
-
return
|
|
3518
|
+
return de_IdentityResolutionJob(entry, context);
|
|
3567
3519
|
});
|
|
3568
3520
|
return retVal;
|
|
3569
3521
|
};
|
|
3570
|
-
const
|
|
3522
|
+
const de_IntegrationList = (output, context) => {
|
|
3571
3523
|
const retVal = (output || [])
|
|
3572
3524
|
.filter((e) => e != null)
|
|
3573
3525
|
.map((entry) => {
|
|
3574
3526
|
if (entry === null) {
|
|
3575
3527
|
return null;
|
|
3576
3528
|
}
|
|
3577
|
-
return
|
|
3529
|
+
return de_ListIntegrationItem(entry, context);
|
|
3578
3530
|
});
|
|
3579
3531
|
return retVal;
|
|
3580
3532
|
};
|
|
3581
|
-
const
|
|
3533
|
+
const de_JobSchedule = (output, context) => {
|
|
3582
3534
|
return {
|
|
3583
3535
|
DayOfTheWeek: __expectString(output.DayOfTheWeek),
|
|
3584
3536
|
Time: __expectString(output.Time),
|
|
3585
3537
|
};
|
|
3586
3538
|
};
|
|
3587
|
-
const
|
|
3539
|
+
const de_JobStats = (output, context) => {
|
|
3588
3540
|
return {
|
|
3589
3541
|
NumberOfMatchesFound: __expectLong(output.NumberOfMatchesFound),
|
|
3590
3542
|
NumberOfMergesDone: __expectLong(output.NumberOfMergesDone),
|
|
3591
3543
|
NumberOfProfilesReviewed: __expectLong(output.NumberOfProfilesReviewed),
|
|
3592
3544
|
};
|
|
3593
3545
|
};
|
|
3594
|
-
const
|
|
3546
|
+
const de_KeyMap = (output, context) => {
|
|
3595
3547
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3596
3548
|
if (value === null) {
|
|
3597
3549
|
return acc;
|
|
3598
3550
|
}
|
|
3599
|
-
acc[key] =
|
|
3551
|
+
acc[key] = de_ObjectTypeKeyList(value, context);
|
|
3600
3552
|
return acc;
|
|
3601
3553
|
}, {});
|
|
3602
3554
|
};
|
|
3603
|
-
const
|
|
3555
|
+
const de_ListDomainItem = (output, context) => {
|
|
3604
3556
|
return {
|
|
3605
3557
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
3606
3558
|
DomainName: __expectString(output.DomainName),
|
|
3607
3559
|
LastUpdatedAt: output.LastUpdatedAt != null
|
|
3608
3560
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3609
3561
|
: undefined,
|
|
3610
|
-
Tags: output.Tags != null ?
|
|
3562
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
3611
3563
|
};
|
|
3612
3564
|
};
|
|
3613
|
-
const
|
|
3565
|
+
const de_ListIntegrationItem = (output, context) => {
|
|
3614
3566
|
return {
|
|
3615
3567
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
3616
3568
|
DomainName: __expectString(output.DomainName),
|
|
@@ -3619,22 +3571,20 @@ const deserializeAws_restJson1ListIntegrationItem = (output, context) => {
|
|
|
3619
3571
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3620
3572
|
: undefined,
|
|
3621
3573
|
ObjectTypeName: __expectString(output.ObjectTypeName),
|
|
3622
|
-
ObjectTypeNames: output.ObjectTypeNames != null
|
|
3623
|
-
|
|
3624
|
-
: undefined,
|
|
3625
|
-
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
3574
|
+
ObjectTypeNames: output.ObjectTypeNames != null ? de_ObjectTypeNames(output.ObjectTypeNames, context) : undefined,
|
|
3575
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
3626
3576
|
Uri: __expectString(output.Uri),
|
|
3627
3577
|
WorkflowId: __expectString(output.WorkflowId),
|
|
3628
3578
|
};
|
|
3629
3579
|
};
|
|
3630
|
-
const
|
|
3580
|
+
const de_ListProfileObjectsItem = (output, context) => {
|
|
3631
3581
|
return {
|
|
3632
3582
|
Object: __expectString(output.Object),
|
|
3633
3583
|
ObjectTypeName: __expectString(output.ObjectTypeName),
|
|
3634
3584
|
ProfileObjectUniqueKey: __expectString(output.ProfileObjectUniqueKey),
|
|
3635
3585
|
};
|
|
3636
3586
|
};
|
|
3637
|
-
const
|
|
3587
|
+
const de_ListProfileObjectTypeItem = (output, context) => {
|
|
3638
3588
|
return {
|
|
3639
3589
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
3640
3590
|
Description: __expectString(output.Description),
|
|
@@ -3642,17 +3592,17 @@ const deserializeAws_restJson1ListProfileObjectTypeItem = (output, context) => {
|
|
|
3642
3592
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
3643
3593
|
: undefined,
|
|
3644
3594
|
ObjectTypeName: __expectString(output.ObjectTypeName),
|
|
3645
|
-
Tags: output.Tags != null ?
|
|
3595
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
3646
3596
|
};
|
|
3647
3597
|
};
|
|
3648
|
-
const
|
|
3598
|
+
const de_ListProfileObjectTypeTemplateItem = (output, context) => {
|
|
3649
3599
|
return {
|
|
3650
3600
|
SourceName: __expectString(output.SourceName),
|
|
3651
3601
|
SourceObject: __expectString(output.SourceObject),
|
|
3652
3602
|
TemplateId: __expectString(output.TemplateId),
|
|
3653
3603
|
};
|
|
3654
3604
|
};
|
|
3655
|
-
const
|
|
3605
|
+
const de_ListWorkflowsItem = (output, context) => {
|
|
3656
3606
|
return {
|
|
3657
3607
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
3658
3608
|
LastUpdatedAt: output.LastUpdatedAt != null
|
|
@@ -3664,18 +3614,18 @@ const deserializeAws_restJson1ListWorkflowsItem = (output, context) => {
|
|
|
3664
3614
|
WorkflowType: __expectString(output.WorkflowType),
|
|
3665
3615
|
};
|
|
3666
3616
|
};
|
|
3667
|
-
const
|
|
3617
|
+
const de_MatchesList = (output, context) => {
|
|
3668
3618
|
const retVal = (output || [])
|
|
3669
3619
|
.filter((e) => e != null)
|
|
3670
3620
|
.map((entry) => {
|
|
3671
3621
|
if (entry === null) {
|
|
3672
3622
|
return null;
|
|
3673
3623
|
}
|
|
3674
|
-
return
|
|
3624
|
+
return de_MatchItem(entry, context);
|
|
3675
3625
|
});
|
|
3676
3626
|
return retVal;
|
|
3677
3627
|
};
|
|
3678
|
-
const
|
|
3628
|
+
const de_MatchingAttributes = (output, context) => {
|
|
3679
3629
|
const retVal = (output || [])
|
|
3680
3630
|
.filter((e) => e != null)
|
|
3681
3631
|
.map((entry) => {
|
|
@@ -3686,61 +3636,57 @@ const deserializeAws_restJson1MatchingAttributes = (output, context) => {
|
|
|
3686
3636
|
});
|
|
3687
3637
|
return retVal;
|
|
3688
3638
|
};
|
|
3689
|
-
const
|
|
3639
|
+
const de_MatchingAttributesList = (output, context) => {
|
|
3690
3640
|
const retVal = (output || [])
|
|
3691
3641
|
.filter((e) => e != null)
|
|
3692
3642
|
.map((entry) => {
|
|
3693
3643
|
if (entry === null) {
|
|
3694
3644
|
return null;
|
|
3695
3645
|
}
|
|
3696
|
-
return
|
|
3646
|
+
return de_MatchingAttributes(entry, context);
|
|
3697
3647
|
});
|
|
3698
3648
|
return retVal;
|
|
3699
3649
|
};
|
|
3700
|
-
const
|
|
3650
|
+
const de_MatchingResponse = (output, context) => {
|
|
3701
3651
|
return {
|
|
3702
|
-
AutoMerging: output.AutoMerging != null ?
|
|
3652
|
+
AutoMerging: output.AutoMerging != null ? de_AutoMerging(output.AutoMerging, context) : undefined,
|
|
3703
3653
|
Enabled: __expectBoolean(output.Enabled),
|
|
3704
|
-
ExportingConfig: output.ExportingConfig != null
|
|
3705
|
-
|
|
3706
|
-
: undefined,
|
|
3707
|
-
JobSchedule: output.JobSchedule != null ? deserializeAws_restJson1JobSchedule(output.JobSchedule, context) : undefined,
|
|
3654
|
+
ExportingConfig: output.ExportingConfig != null ? de_ExportingConfig(output.ExportingConfig, context) : undefined,
|
|
3655
|
+
JobSchedule: output.JobSchedule != null ? de_JobSchedule(output.JobSchedule, context) : undefined,
|
|
3708
3656
|
};
|
|
3709
3657
|
};
|
|
3710
|
-
const
|
|
3658
|
+
const de_MatchItem = (output, context) => {
|
|
3711
3659
|
return {
|
|
3712
3660
|
ConfidenceScore: __limitedParseDouble(output.ConfidenceScore),
|
|
3713
3661
|
MatchId: __expectString(output.MatchId),
|
|
3714
|
-
ProfileIds: output.ProfileIds != null ?
|
|
3662
|
+
ProfileIds: output.ProfileIds != null ? de_ProfileIdList(output.ProfileIds, context) : undefined,
|
|
3715
3663
|
};
|
|
3716
3664
|
};
|
|
3717
|
-
const
|
|
3665
|
+
const de_ObjectTypeField = (output, context) => {
|
|
3718
3666
|
return {
|
|
3719
3667
|
ContentType: __expectString(output.ContentType),
|
|
3720
3668
|
Source: __expectString(output.Source),
|
|
3721
3669
|
Target: __expectString(output.Target),
|
|
3722
3670
|
};
|
|
3723
3671
|
};
|
|
3724
|
-
const
|
|
3672
|
+
const de_ObjectTypeKey = (output, context) => {
|
|
3725
3673
|
return {
|
|
3726
|
-
FieldNames: output.FieldNames != null ?
|
|
3727
|
-
StandardIdentifiers: output.StandardIdentifiers != null
|
|
3728
|
-
? deserializeAws_restJson1StandardIdentifierList(output.StandardIdentifiers, context)
|
|
3729
|
-
: undefined,
|
|
3674
|
+
FieldNames: output.FieldNames != null ? de_FieldNameList(output.FieldNames, context) : undefined,
|
|
3675
|
+
StandardIdentifiers: output.StandardIdentifiers != null ? de_StandardIdentifierList(output.StandardIdentifiers, context) : undefined,
|
|
3730
3676
|
};
|
|
3731
3677
|
};
|
|
3732
|
-
const
|
|
3678
|
+
const de_ObjectTypeKeyList = (output, context) => {
|
|
3733
3679
|
const retVal = (output || [])
|
|
3734
3680
|
.filter((e) => e != null)
|
|
3735
3681
|
.map((entry) => {
|
|
3736
3682
|
if (entry === null) {
|
|
3737
3683
|
return null;
|
|
3738
3684
|
}
|
|
3739
|
-
return
|
|
3685
|
+
return de_ObjectTypeKey(entry, context);
|
|
3740
3686
|
});
|
|
3741
3687
|
return retVal;
|
|
3742
3688
|
};
|
|
3743
|
-
const
|
|
3689
|
+
const de_ObjectTypeNames = (output, context) => {
|
|
3744
3690
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3745
3691
|
if (value === null) {
|
|
3746
3692
|
return acc;
|
|
@@ -3749,25 +3695,25 @@ const deserializeAws_restJson1ObjectTypeNames = (output, context) => {
|
|
|
3749
3695
|
return acc;
|
|
3750
3696
|
}, {});
|
|
3751
3697
|
};
|
|
3752
|
-
const
|
|
3698
|
+
const de_Profile = (output, context) => {
|
|
3753
3699
|
return {
|
|
3754
3700
|
AccountNumber: __expectString(output.AccountNumber),
|
|
3755
3701
|
AdditionalInformation: __expectString(output.AdditionalInformation),
|
|
3756
|
-
Address: output.Address != null ?
|
|
3757
|
-
Attributes: output.Attributes != null ?
|
|
3758
|
-
BillingAddress: output.BillingAddress != null ?
|
|
3702
|
+
Address: output.Address != null ? de_Address(output.Address, context) : undefined,
|
|
3703
|
+
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
3704
|
+
BillingAddress: output.BillingAddress != null ? de_Address(output.BillingAddress, context) : undefined,
|
|
3759
3705
|
BirthDate: __expectString(output.BirthDate),
|
|
3760
3706
|
BusinessEmailAddress: __expectString(output.BusinessEmailAddress),
|
|
3761
3707
|
BusinessName: __expectString(output.BusinessName),
|
|
3762
3708
|
BusinessPhoneNumber: __expectString(output.BusinessPhoneNumber),
|
|
3763
3709
|
EmailAddress: __expectString(output.EmailAddress),
|
|
3764
3710
|
FirstName: __expectString(output.FirstName),
|
|
3765
|
-
FoundByItems: output.FoundByItems != null ?
|
|
3711
|
+
FoundByItems: output.FoundByItems != null ? de_foundByList(output.FoundByItems, context) : undefined,
|
|
3766
3712
|
Gender: __expectString(output.Gender),
|
|
3767
3713
|
GenderString: __expectString(output.GenderString),
|
|
3768
3714
|
HomePhoneNumber: __expectString(output.HomePhoneNumber),
|
|
3769
3715
|
LastName: __expectString(output.LastName),
|
|
3770
|
-
MailingAddress: output.MailingAddress != null ?
|
|
3716
|
+
MailingAddress: output.MailingAddress != null ? de_Address(output.MailingAddress, context) : undefined,
|
|
3771
3717
|
MiddleName: __expectString(output.MiddleName),
|
|
3772
3718
|
MobilePhoneNumber: __expectString(output.MobilePhoneNumber),
|
|
3773
3719
|
PartyType: __expectString(output.PartyType),
|
|
@@ -3775,10 +3721,10 @@ const deserializeAws_restJson1Profile = (output, context) => {
|
|
|
3775
3721
|
PersonalEmailAddress: __expectString(output.PersonalEmailAddress),
|
|
3776
3722
|
PhoneNumber: __expectString(output.PhoneNumber),
|
|
3777
3723
|
ProfileId: __expectString(output.ProfileId),
|
|
3778
|
-
ShippingAddress: output.ShippingAddress != null ?
|
|
3724
|
+
ShippingAddress: output.ShippingAddress != null ? de_Address(output.ShippingAddress, context) : undefined,
|
|
3779
3725
|
};
|
|
3780
3726
|
};
|
|
3781
|
-
const
|
|
3727
|
+
const de_ProfileIdList = (output, context) => {
|
|
3782
3728
|
const retVal = (output || [])
|
|
3783
3729
|
.filter((e) => e != null)
|
|
3784
3730
|
.map((entry) => {
|
|
@@ -3789,51 +3735,51 @@ const deserializeAws_restJson1ProfileIdList = (output, context) => {
|
|
|
3789
3735
|
});
|
|
3790
3736
|
return retVal;
|
|
3791
3737
|
};
|
|
3792
|
-
const
|
|
3738
|
+
const de_ProfileList = (output, context) => {
|
|
3793
3739
|
const retVal = (output || [])
|
|
3794
3740
|
.filter((e) => e != null)
|
|
3795
3741
|
.map((entry) => {
|
|
3796
3742
|
if (entry === null) {
|
|
3797
3743
|
return null;
|
|
3798
3744
|
}
|
|
3799
|
-
return
|
|
3745
|
+
return de_Profile(entry, context);
|
|
3800
3746
|
});
|
|
3801
3747
|
return retVal;
|
|
3802
3748
|
};
|
|
3803
|
-
const
|
|
3749
|
+
const de_ProfileObjectList = (output, context) => {
|
|
3804
3750
|
const retVal = (output || [])
|
|
3805
3751
|
.filter((e) => e != null)
|
|
3806
3752
|
.map((entry) => {
|
|
3807
3753
|
if (entry === null) {
|
|
3808
3754
|
return null;
|
|
3809
3755
|
}
|
|
3810
|
-
return
|
|
3756
|
+
return de_ListProfileObjectsItem(entry, context);
|
|
3811
3757
|
});
|
|
3812
3758
|
return retVal;
|
|
3813
3759
|
};
|
|
3814
|
-
const
|
|
3760
|
+
const de_ProfileObjectTypeList = (output, context) => {
|
|
3815
3761
|
const retVal = (output || [])
|
|
3816
3762
|
.filter((e) => e != null)
|
|
3817
3763
|
.map((entry) => {
|
|
3818
3764
|
if (entry === null) {
|
|
3819
3765
|
return null;
|
|
3820
3766
|
}
|
|
3821
|
-
return
|
|
3767
|
+
return de_ListProfileObjectTypeItem(entry, context);
|
|
3822
3768
|
});
|
|
3823
3769
|
return retVal;
|
|
3824
3770
|
};
|
|
3825
|
-
const
|
|
3771
|
+
const de_ProfileObjectTypeTemplateList = (output, context) => {
|
|
3826
3772
|
const retVal = (output || [])
|
|
3827
3773
|
.filter((e) => e != null)
|
|
3828
3774
|
.map((entry) => {
|
|
3829
3775
|
if (entry === null) {
|
|
3830
3776
|
return null;
|
|
3831
3777
|
}
|
|
3832
|
-
return
|
|
3778
|
+
return de_ListProfileObjectTypeTemplateItem(entry, context);
|
|
3833
3779
|
});
|
|
3834
3780
|
return retVal;
|
|
3835
3781
|
};
|
|
3836
|
-
const
|
|
3782
|
+
const de_requestValueList = (output, context) => {
|
|
3837
3783
|
const retVal = (output || [])
|
|
3838
3784
|
.filter((e) => e != null)
|
|
3839
3785
|
.map((entry) => {
|
|
@@ -3844,19 +3790,19 @@ const deserializeAws_restJson1requestValueList = (output, context) => {
|
|
|
3844
3790
|
});
|
|
3845
3791
|
return retVal;
|
|
3846
3792
|
};
|
|
3847
|
-
const
|
|
3793
|
+
const de_S3ExportingConfig = (output, context) => {
|
|
3848
3794
|
return {
|
|
3849
3795
|
S3BucketName: __expectString(output.S3BucketName),
|
|
3850
3796
|
S3KeyName: __expectString(output.S3KeyName),
|
|
3851
3797
|
};
|
|
3852
3798
|
};
|
|
3853
|
-
const
|
|
3799
|
+
const de_S3ExportingLocation = (output, context) => {
|
|
3854
3800
|
return {
|
|
3855
3801
|
S3BucketName: __expectString(output.S3BucketName),
|
|
3856
3802
|
S3KeyName: __expectString(output.S3KeyName),
|
|
3857
3803
|
};
|
|
3858
3804
|
};
|
|
3859
|
-
const
|
|
3805
|
+
const de_StandardIdentifierList = (output, context) => {
|
|
3860
3806
|
const retVal = (output || [])
|
|
3861
3807
|
.filter((e) => e != null)
|
|
3862
3808
|
.map((entry) => {
|
|
@@ -3867,7 +3813,7 @@ const deserializeAws_restJson1StandardIdentifierList = (output, context) => {
|
|
|
3867
3813
|
});
|
|
3868
3814
|
return retVal;
|
|
3869
3815
|
};
|
|
3870
|
-
const
|
|
3816
|
+
const de_TagMap = (output, context) => {
|
|
3871
3817
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3872
3818
|
if (value === null) {
|
|
3873
3819
|
return acc;
|
|
@@ -3876,46 +3822,46 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3876
3822
|
return acc;
|
|
3877
3823
|
}, {});
|
|
3878
3824
|
};
|
|
3879
|
-
const
|
|
3825
|
+
const de_WorkflowAttributes = (output, context) => {
|
|
3880
3826
|
return {
|
|
3881
3827
|
AppflowIntegration: output.AppflowIntegration != null
|
|
3882
|
-
?
|
|
3828
|
+
? de_AppflowIntegrationWorkflowAttributes(output.AppflowIntegration, context)
|
|
3883
3829
|
: undefined,
|
|
3884
3830
|
};
|
|
3885
3831
|
};
|
|
3886
|
-
const
|
|
3832
|
+
const de_WorkflowList = (output, context) => {
|
|
3887
3833
|
const retVal = (output || [])
|
|
3888
3834
|
.filter((e) => e != null)
|
|
3889
3835
|
.map((entry) => {
|
|
3890
3836
|
if (entry === null) {
|
|
3891
3837
|
return null;
|
|
3892
3838
|
}
|
|
3893
|
-
return
|
|
3839
|
+
return de_ListWorkflowsItem(entry, context);
|
|
3894
3840
|
});
|
|
3895
3841
|
return retVal;
|
|
3896
3842
|
};
|
|
3897
|
-
const
|
|
3843
|
+
const de_WorkflowMetrics = (output, context) => {
|
|
3898
3844
|
return {
|
|
3899
3845
|
AppflowIntegration: output.AppflowIntegration != null
|
|
3900
|
-
?
|
|
3846
|
+
? de_AppflowIntegrationWorkflowMetrics(output.AppflowIntegration, context)
|
|
3901
3847
|
: undefined,
|
|
3902
3848
|
};
|
|
3903
3849
|
};
|
|
3904
|
-
const
|
|
3850
|
+
const de_WorkflowStepItem = (output, context) => {
|
|
3905
3851
|
return {
|
|
3906
3852
|
AppflowIntegration: output.AppflowIntegration != null
|
|
3907
|
-
?
|
|
3853
|
+
? de_AppflowIntegrationWorkflowStep(output.AppflowIntegration, context)
|
|
3908
3854
|
: undefined,
|
|
3909
3855
|
};
|
|
3910
3856
|
};
|
|
3911
|
-
const
|
|
3857
|
+
const de_WorkflowStepsList = (output, context) => {
|
|
3912
3858
|
const retVal = (output || [])
|
|
3913
3859
|
.filter((e) => e != null)
|
|
3914
3860
|
.map((entry) => {
|
|
3915
3861
|
if (entry === null) {
|
|
3916
3862
|
return null;
|
|
3917
3863
|
}
|
|
3918
|
-
return
|
|
3864
|
+
return de_WorkflowStepItem(entry, context);
|
|
3919
3865
|
});
|
|
3920
3866
|
return retVal;
|
|
3921
3867
|
};
|