@aws-sdk/client-chime 3.121.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +371 -596
- package/dist-es/protocols/Aws_restJson1.js +260 -485
- package/package.json +26 -26
|
@@ -28,11 +28,9 @@ export var serializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommand
|
|
|
28
28
|
query = {
|
|
29
29
|
operation: "associate-phone-numbers",
|
|
30
30
|
};
|
|
31
|
-
body = JSON.stringify(__assign(__assign({}, (input.E164PhoneNumbers
|
|
32
|
-
input.E164PhoneNumbers !== null && {
|
|
31
|
+
body = JSON.stringify(__assign(__assign({}, (input.E164PhoneNumbers != null && {
|
|
33
32
|
E164PhoneNumbers: serializeAws_restJson1E164PhoneNumberList(input.E164PhoneNumbers, context),
|
|
34
|
-
})), (input.ForceAssociate
|
|
35
|
-
input.ForceAssociate !== null && { ForceAssociate: input.ForceAssociate })));
|
|
33
|
+
})), (input.ForceAssociate != null && { ForceAssociate: input.ForceAssociate })));
|
|
36
34
|
return [2, new __HttpRequest({
|
|
37
35
|
protocol: protocol,
|
|
38
36
|
hostname: hostname,
|
|
@@ -71,11 +69,9 @@ export var serializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorGroupCom
|
|
|
71
69
|
query = {
|
|
72
70
|
operation: "associate-phone-numbers",
|
|
73
71
|
};
|
|
74
|
-
body = JSON.stringify(__assign(__assign({}, (input.E164PhoneNumbers
|
|
75
|
-
input.E164PhoneNumbers !== null && {
|
|
72
|
+
body = JSON.stringify(__assign(__assign({}, (input.E164PhoneNumbers != null && {
|
|
76
73
|
E164PhoneNumbers: serializeAws_restJson1E164PhoneNumberList(input.E164PhoneNumbers, context),
|
|
77
|
-
})), (input.ForceAssociate
|
|
78
|
-
input.ForceAssociate !== null && { ForceAssociate: input.ForceAssociate })));
|
|
74
|
+
})), (input.ForceAssociate != null && { ForceAssociate: input.ForceAssociate })));
|
|
79
75
|
return [2, new __HttpRequest({
|
|
80
76
|
protocol: protocol,
|
|
81
77
|
hostname: hostname,
|
|
@@ -123,8 +119,7 @@ export var serializeAws_restJson1AssociatePhoneNumberWithUserCommand = function
|
|
|
123
119
|
query = {
|
|
124
120
|
operation: "associate-phone-number",
|
|
125
121
|
};
|
|
126
|
-
body = JSON.stringify(__assign({}, (input.E164PhoneNumber
|
|
127
|
-
input.E164PhoneNumber !== null && { E164PhoneNumber: input.E164PhoneNumber })));
|
|
122
|
+
body = JSON.stringify(__assign({}, (input.E164PhoneNumber != null && { E164PhoneNumber: input.E164PhoneNumber })));
|
|
128
123
|
return [2, new __HttpRequest({
|
|
129
124
|
protocol: protocol,
|
|
130
125
|
hostname: hostname,
|
|
@@ -162,8 +157,7 @@ export var serializeAws_restJson1AssociateSigninDelegateGroupsWithAccountCommand
|
|
|
162
157
|
query = {
|
|
163
158
|
operation: "associate-signin-delegate-groups",
|
|
164
159
|
};
|
|
165
|
-
body = JSON.stringify(__assign({}, (input.SigninDelegateGroups
|
|
166
|
-
input.SigninDelegateGroups !== null && {
|
|
160
|
+
body = JSON.stringify(__assign({}, (input.SigninDelegateGroups != null && {
|
|
167
161
|
SigninDelegateGroups: serializeAws_restJson1SigninDelegateGroupList(input.SigninDelegateGroups, context),
|
|
168
162
|
})));
|
|
169
163
|
return [2, new __HttpRequest({
|
|
@@ -203,8 +197,7 @@ export var serializeAws_restJson1BatchCreateAttendeeCommand = function (input, c
|
|
|
203
197
|
query = {
|
|
204
198
|
operation: "batch-create",
|
|
205
199
|
};
|
|
206
|
-
body = JSON.stringify(__assign({}, (input.Attendees
|
|
207
|
-
input.Attendees !== null && {
|
|
200
|
+
body = JSON.stringify(__assign({}, (input.Attendees != null && {
|
|
208
201
|
Attendees: serializeAws_restJson1CreateAttendeeRequestItemList(input.Attendees, context),
|
|
209
202
|
})));
|
|
210
203
|
return [2, new __HttpRequest({
|
|
@@ -242,8 +235,7 @@ export var serializeAws_restJson1BatchCreateChannelMembershipCommand = function
|
|
|
242
235
|
query = {
|
|
243
236
|
operation: "batch-create",
|
|
244
237
|
};
|
|
245
|
-
body = JSON.stringify(__assign(__assign({}, (input.MemberArns
|
|
246
|
-
input.MemberArns !== null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
238
|
+
body = JSON.stringify(__assign(__assign({}, (input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) })), (input.Type != null && { Type: input.Type })));
|
|
247
239
|
return [4, context.endpoint()];
|
|
248
240
|
case 2:
|
|
249
241
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -301,8 +293,7 @@ export var serializeAws_restJson1BatchCreateRoomMembershipCommand = function (in
|
|
|
301
293
|
query = {
|
|
302
294
|
operation: "batch-create",
|
|
303
295
|
};
|
|
304
|
-
body = JSON.stringify(__assign({}, (input.MembershipItemList
|
|
305
|
-
input.MembershipItemList !== null && {
|
|
296
|
+
body = JSON.stringify(__assign({}, (input.MembershipItemList != null && {
|
|
306
297
|
MembershipItemList: serializeAws_restJson1MembershipItemList(input.MembershipItemList, context),
|
|
307
298
|
})));
|
|
308
299
|
return [2, new __HttpRequest({
|
|
@@ -332,8 +323,7 @@ export var serializeAws_restJson1BatchDeletePhoneNumberCommand = function (input
|
|
|
332
323
|
query = {
|
|
333
324
|
operation: "batch-delete",
|
|
334
325
|
};
|
|
335
|
-
body = JSON.stringify(__assign({}, (input.PhoneNumberIds
|
|
336
|
-
input.PhoneNumberIds !== null && {
|
|
326
|
+
body = JSON.stringify(__assign({}, (input.PhoneNumberIds != null && {
|
|
337
327
|
PhoneNumberIds: serializeAws_restJson1NonEmptyStringList(input.PhoneNumberIds, context),
|
|
338
328
|
})));
|
|
339
329
|
return [2, new __HttpRequest({
|
|
@@ -373,8 +363,7 @@ export var serializeAws_restJson1BatchSuspendUserCommand = function (input, cont
|
|
|
373
363
|
query = {
|
|
374
364
|
operation: "suspend",
|
|
375
365
|
};
|
|
376
|
-
body = JSON.stringify(__assign({}, (input.UserIdList
|
|
377
|
-
input.UserIdList !== null && { UserIdList: serializeAws_restJson1UserIdList(input.UserIdList, context) })));
|
|
366
|
+
body = JSON.stringify(__assign({}, (input.UserIdList != null && { UserIdList: serializeAws_restJson1UserIdList(input.UserIdList, context) })));
|
|
378
367
|
return [2, new __HttpRequest({
|
|
379
368
|
protocol: protocol,
|
|
380
369
|
hostname: hostname,
|
|
@@ -412,8 +401,7 @@ export var serializeAws_restJson1BatchUnsuspendUserCommand = function (input, co
|
|
|
412
401
|
query = {
|
|
413
402
|
operation: "unsuspend",
|
|
414
403
|
};
|
|
415
|
-
body = JSON.stringify(__assign({}, (input.UserIdList
|
|
416
|
-
input.UserIdList !== null && { UserIdList: serializeAws_restJson1UserIdList(input.UserIdList, context) })));
|
|
404
|
+
body = JSON.stringify(__assign({}, (input.UserIdList != null && { UserIdList: serializeAws_restJson1UserIdList(input.UserIdList, context) })));
|
|
417
405
|
return [2, new __HttpRequest({
|
|
418
406
|
protocol: protocol,
|
|
419
407
|
hostname: hostname,
|
|
@@ -441,8 +429,7 @@ export var serializeAws_restJson1BatchUpdatePhoneNumberCommand = function (input
|
|
|
441
429
|
query = {
|
|
442
430
|
operation: "batch-update",
|
|
443
431
|
};
|
|
444
|
-
body = JSON.stringify(__assign({}, (input.UpdatePhoneNumberRequestItems
|
|
445
|
-
input.UpdatePhoneNumberRequestItems !== null && {
|
|
432
|
+
body = JSON.stringify(__assign({}, (input.UpdatePhoneNumberRequestItems != null && {
|
|
446
433
|
UpdatePhoneNumberRequestItems: serializeAws_restJson1UpdatePhoneNumberRequestItemList(input.UpdatePhoneNumberRequestItems, context),
|
|
447
434
|
})));
|
|
448
435
|
return [2, new __HttpRequest({
|
|
@@ -479,8 +466,7 @@ export var serializeAws_restJson1BatchUpdateUserCommand = function (input, conte
|
|
|
479
466
|
else {
|
|
480
467
|
throw new Error("No value provided for input HTTP label: AccountId.");
|
|
481
468
|
}
|
|
482
|
-
body = JSON.stringify(__assign({}, (input.UpdateUserRequestItems
|
|
483
|
-
input.UpdateUserRequestItems !== null && {
|
|
469
|
+
body = JSON.stringify(__assign({}, (input.UpdateUserRequestItems != null && {
|
|
484
470
|
UpdateUserRequestItems: serializeAws_restJson1UpdateUserRequestItemList(input.UpdateUserRequestItems, context),
|
|
485
471
|
})));
|
|
486
472
|
return [2, new __HttpRequest({
|
|
@@ -506,7 +492,7 @@ export var serializeAws_restJson1CreateAccountCommand = function (input, context
|
|
|
506
492
|
"content-type": "application/json",
|
|
507
493
|
};
|
|
508
494
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts";
|
|
509
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
495
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
510
496
|
return [2, new __HttpRequest({
|
|
511
497
|
protocol: protocol,
|
|
512
498
|
hostname: hostname,
|
|
@@ -531,8 +517,7 @@ export var serializeAws_restJson1CreateAppInstanceCommand = function (input, con
|
|
|
531
517
|
"content-type": "application/json",
|
|
532
518
|
};
|
|
533
519
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances";
|
|
534
|
-
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Metadata
|
|
535
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
520
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
536
521
|
return [4, context.endpoint()];
|
|
537
522
|
case 2:
|
|
538
523
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -575,8 +560,7 @@ export var serializeAws_restJson1CreateAppInstanceAdminCommand = function (input
|
|
|
575
560
|
else {
|
|
576
561
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
577
562
|
}
|
|
578
|
-
body = JSON.stringify(__assign({}, (input.AppInstanceAdminArn
|
|
579
|
-
input.AppInstanceAdminArn !== null && { AppInstanceAdminArn: input.AppInstanceAdminArn })));
|
|
563
|
+
body = JSON.stringify(__assign({}, (input.AppInstanceAdminArn != null && { AppInstanceAdminArn: input.AppInstanceAdminArn })));
|
|
580
564
|
return [4, context.endpoint()];
|
|
581
565
|
case 2:
|
|
582
566
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -610,10 +594,7 @@ export var serializeAws_restJson1CreateAppInstanceUserCommand = function (input,
|
|
|
610
594
|
"content-type": "application/json",
|
|
611
595
|
};
|
|
612
596
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users";
|
|
613
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn !==
|
|
614
|
-
input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn })), (input.AppInstanceUserId !== undefined &&
|
|
615
|
-
input.AppInstanceUserId !== null && { AppInstanceUserId: input.AppInstanceUserId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
616
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
597
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), (input.AppInstanceUserId != null && { AppInstanceUserId: input.AppInstanceUserId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
617
598
|
return [4, context.endpoint()];
|
|
618
599
|
case 2:
|
|
619
600
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -656,9 +637,7 @@ export var serializeAws_restJson1CreateAttendeeCommand = function (input, contex
|
|
|
656
637
|
else {
|
|
657
638
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
658
639
|
}
|
|
659
|
-
body = JSON.stringify(__assign(__assign({}, (input.ExternalUserId
|
|
660
|
-
input.ExternalUserId !== null && { ExternalUserId: input.ExternalUserId })), (input.Tags !== undefined &&
|
|
661
|
-
input.Tags !== null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) })));
|
|
640
|
+
body = JSON.stringify(__assign(__assign({}, (input.ExternalUserId != null && { ExternalUserId: input.ExternalUserId })), (input.Tags != null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) })));
|
|
662
641
|
return [2, new __HttpRequest({
|
|
663
642
|
protocol: protocol,
|
|
664
643
|
hostname: hostname,
|
|
@@ -692,7 +671,7 @@ export var serializeAws_restJson1CreateBotCommand = function (input, context) {
|
|
|
692
671
|
else {
|
|
693
672
|
throw new Error("No value provided for input HTTP label: AccountId.");
|
|
694
673
|
}
|
|
695
|
-
body = JSON.stringify(__assign(__assign({}, (input.DisplayName
|
|
674
|
+
body = JSON.stringify(__assign(__assign({}, (input.DisplayName != null && { DisplayName: input.DisplayName })), (input.Domain != null && { Domain: input.Domain })));
|
|
696
675
|
return [2, new __HttpRequest({
|
|
697
676
|
protocol: protocol,
|
|
698
677
|
hostname: hostname,
|
|
@@ -715,9 +694,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
715
694
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
716
695
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
717
696
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
718
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn !==
|
|
719
|
-
input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Privacy !== undefined && input.Privacy !== null && { Privacy: input.Privacy })), (input.Tags !== undefined &&
|
|
720
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
697
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Metadata != null && { Metadata: input.Metadata })), (input.Mode != null && { Mode: input.Mode })), (input.Name != null && { Name: input.Name })), (input.Privacy != null && { Privacy: input.Privacy })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
721
698
|
return [4, context.endpoint()];
|
|
722
699
|
case 2:
|
|
723
700
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -758,7 +735,7 @@ export var serializeAws_restJson1CreateChannelBanCommand = function (input, cont
|
|
|
758
735
|
else {
|
|
759
736
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
760
737
|
}
|
|
761
|
-
body = JSON.stringify(__assign({}, (input.MemberArn
|
|
738
|
+
body = JSON.stringify(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })));
|
|
762
739
|
return [4, context.endpoint()];
|
|
763
740
|
case 2:
|
|
764
741
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -799,7 +776,7 @@ export var serializeAws_restJson1CreateChannelMembershipCommand = function (inpu
|
|
|
799
776
|
else {
|
|
800
777
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
801
778
|
}
|
|
802
|
-
body = JSON.stringify(__assign(__assign({}, (input.MemberArn
|
|
779
|
+
body = JSON.stringify(__assign(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })), (input.Type != null && { Type: input.Type })));
|
|
803
780
|
return [4, context.endpoint()];
|
|
804
781
|
case 2:
|
|
805
782
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -840,8 +817,7 @@ export var serializeAws_restJson1CreateChannelModeratorCommand = function (input
|
|
|
840
817
|
else {
|
|
841
818
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
842
819
|
}
|
|
843
|
-
body = JSON.stringify(__assign({}, (input.ChannelModeratorArn
|
|
844
|
-
input.ChannelModeratorArn !== null && { ChannelModeratorArn: input.ChannelModeratorArn })));
|
|
820
|
+
body = JSON.stringify(__assign({}, (input.ChannelModeratorArn != null && { ChannelModeratorArn: input.ChannelModeratorArn })));
|
|
845
821
|
return [4, context.endpoint()];
|
|
846
822
|
case 2:
|
|
847
823
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -875,10 +851,9 @@ export var serializeAws_restJson1CreateMediaCapturePipelineCommand = function (i
|
|
|
875
851
|
"content-type": "application/json",
|
|
876
852
|
};
|
|
877
853
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/media-capture-pipelines";
|
|
878
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ChimeSdkMeetingConfiguration
|
|
879
|
-
input.ChimeSdkMeetingConfiguration !== null && {
|
|
854
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ChimeSdkMeetingConfiguration != null && {
|
|
880
855
|
ChimeSdkMeetingConfiguration: serializeAws_restJson1ChimeSdkMeetingConfiguration(input.ChimeSdkMeetingConfiguration, context),
|
|
881
|
-
})), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.SinkArn
|
|
856
|
+
})), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.SinkArn != null && { SinkArn: input.SinkArn })), (input.SinkType != null && { SinkType: input.SinkType })), (input.SourceArn != null && { SourceArn: input.SourceArn })), (input.SourceType != null && { SourceType: input.SourceType })));
|
|
882
857
|
return [2, new __HttpRequest({
|
|
883
858
|
protocol: protocol,
|
|
884
859
|
hostname: hostname,
|
|
@@ -903,12 +878,9 @@ export var serializeAws_restJson1CreateMeetingCommand = function (input, context
|
|
|
903
878
|
"content-type": "application/json",
|
|
904
879
|
};
|
|
905
880
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/meetings";
|
|
906
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ExternalMeetingId
|
|
907
|
-
input.ExternalMeetingId !== null && { ExternalMeetingId: input.ExternalMeetingId })), (input.MediaRegion !== undefined && input.MediaRegion !== null && { MediaRegion: input.MediaRegion })), (input.MeetingHostId !== undefined && input.MeetingHostId !== null && { MeetingHostId: input.MeetingHostId })), (input.NotificationsConfiguration !== undefined &&
|
|
908
|
-
input.NotificationsConfiguration !== null && {
|
|
881
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId })), (input.MediaRegion != null && { MediaRegion: input.MediaRegion })), (input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId })), (input.NotificationsConfiguration != null && {
|
|
909
882
|
NotificationsConfiguration: serializeAws_restJson1MeetingNotificationConfiguration(input.NotificationsConfiguration, context),
|
|
910
|
-
})), (input.Tags
|
|
911
|
-
input.Tags !== null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) })));
|
|
883
|
+
})), (input.Tags != null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) })));
|
|
912
884
|
return [2, new __HttpRequest({
|
|
913
885
|
protocol: protocol,
|
|
914
886
|
hostname: hostname,
|
|
@@ -942,8 +914,7 @@ export var serializeAws_restJson1CreateMeetingDialOutCommand = function (input,
|
|
|
942
914
|
else {
|
|
943
915
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
944
916
|
}
|
|
945
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.FromPhoneNumber
|
|
946
|
-
input.FromPhoneNumber !== null && { FromPhoneNumber: input.FromPhoneNumber })), (input.JoinToken !== undefined && input.JoinToken !== null && { JoinToken: input.JoinToken })), (input.ToPhoneNumber !== undefined && input.ToPhoneNumber !== null && { ToPhoneNumber: input.ToPhoneNumber })));
|
|
917
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.FromPhoneNumber != null && { FromPhoneNumber: input.FromPhoneNumber })), (input.JoinToken != null && { JoinToken: input.JoinToken })), (input.ToPhoneNumber != null && { ToPhoneNumber: input.ToPhoneNumber })));
|
|
947
918
|
return [2, new __HttpRequest({
|
|
948
919
|
protocol: protocol,
|
|
949
920
|
hostname: hostname,
|
|
@@ -971,15 +942,11 @@ export var serializeAws_restJson1CreateMeetingWithAttendeesCommand = function (i
|
|
|
971
942
|
query = {
|
|
972
943
|
operation: "create-attendees",
|
|
973
944
|
};
|
|
974
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attendees
|
|
975
|
-
input.Attendees !== null && {
|
|
945
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attendees != null && {
|
|
976
946
|
Attendees: serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList(input.Attendees, context),
|
|
977
|
-
})), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ExternalMeetingId
|
|
978
|
-
input.ExternalMeetingId !== null && { ExternalMeetingId: input.ExternalMeetingId })), (input.MediaRegion !== undefined && input.MediaRegion !== null && { MediaRegion: input.MediaRegion })), (input.MeetingHostId !== undefined && input.MeetingHostId !== null && { MeetingHostId: input.MeetingHostId })), (input.NotificationsConfiguration !== undefined &&
|
|
979
|
-
input.NotificationsConfiguration !== null && {
|
|
947
|
+
})), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId })), (input.MediaRegion != null && { MediaRegion: input.MediaRegion })), (input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId })), (input.NotificationsConfiguration != null && {
|
|
980
948
|
NotificationsConfiguration: serializeAws_restJson1MeetingNotificationConfiguration(input.NotificationsConfiguration, context),
|
|
981
|
-
})), (input.Tags
|
|
982
|
-
input.Tags !== null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) })));
|
|
949
|
+
})), (input.Tags != null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) })));
|
|
983
950
|
return [2, new __HttpRequest({
|
|
984
951
|
protocol: protocol,
|
|
985
952
|
hostname: hostname,
|
|
@@ -1004,10 +971,9 @@ export var serializeAws_restJson1CreatePhoneNumberOrderCommand = function (input
|
|
|
1004
971
|
"content-type": "application/json",
|
|
1005
972
|
};
|
|
1006
973
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/phone-number-orders";
|
|
1007
|
-
body = JSON.stringify(__assign(__assign({}, (input.E164PhoneNumbers
|
|
1008
|
-
input.E164PhoneNumbers !== null && {
|
|
974
|
+
body = JSON.stringify(__assign(__assign({}, (input.E164PhoneNumbers != null && {
|
|
1009
975
|
E164PhoneNumbers: serializeAws_restJson1E164PhoneNumberList(input.E164PhoneNumbers, context),
|
|
1010
|
-
})), (input.ProductType
|
|
976
|
+
})), (input.ProductType != null && { ProductType: input.ProductType })));
|
|
1011
977
|
return [2, new __HttpRequest({
|
|
1012
978
|
protocol: protocol,
|
|
1013
979
|
hostname: hostname,
|
|
@@ -1042,15 +1008,11 @@ export var serializeAws_restJson1CreateProxySessionCommand = function (input, co
|
|
|
1042
1008
|
else {
|
|
1043
1009
|
throw new Error("No value provided for input HTTP label: VoiceConnectorId.");
|
|
1044
1010
|
}
|
|
1045
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capabilities
|
|
1046
|
-
input.Capabilities !== null && {
|
|
1011
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capabilities != null && {
|
|
1047
1012
|
Capabilities: serializeAws_restJson1CapabilityList(input.Capabilities, context),
|
|
1048
|
-
})), (input.ExpiryMinutes
|
|
1049
|
-
input.GeoMatchParams !== null && {
|
|
1013
|
+
})), (input.ExpiryMinutes != null && { ExpiryMinutes: input.ExpiryMinutes })), (input.GeoMatchLevel != null && { GeoMatchLevel: input.GeoMatchLevel })), (input.GeoMatchParams != null && {
|
|
1050
1014
|
GeoMatchParams: serializeAws_restJson1GeoMatchParams(input.GeoMatchParams, context),
|
|
1051
|
-
})), (input.Name
|
|
1052
|
-
input.NumberSelectionBehavior !== null && { NumberSelectionBehavior: input.NumberSelectionBehavior })), (input.ParticipantPhoneNumbers !== undefined &&
|
|
1053
|
-
input.ParticipantPhoneNumbers !== null && {
|
|
1015
|
+
})), (input.Name != null && { Name: input.Name })), (input.NumberSelectionBehavior != null && { NumberSelectionBehavior: input.NumberSelectionBehavior })), (input.ParticipantPhoneNumbers != null && {
|
|
1054
1016
|
ParticipantPhoneNumbers: serializeAws_restJson1ParticipantPhoneNumberList(input.ParticipantPhoneNumbers, context),
|
|
1055
1017
|
})));
|
|
1056
1018
|
return [2, new __HttpRequest({
|
|
@@ -1087,7 +1049,7 @@ export var serializeAws_restJson1CreateRoomCommand = function (input, context) {
|
|
|
1087
1049
|
else {
|
|
1088
1050
|
throw new Error("No value provided for input HTTP label: AccountId.");
|
|
1089
1051
|
}
|
|
1090
|
-
body = JSON.stringify(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Name
|
|
1052
|
+
body = JSON.stringify(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Name != null && { Name: input.Name })));
|
|
1091
1053
|
return [2, new __HttpRequest({
|
|
1092
1054
|
protocol: protocol,
|
|
1093
1055
|
hostname: hostname,
|
|
@@ -1132,7 +1094,7 @@ export var serializeAws_restJson1CreateRoomMembershipCommand = function (input,
|
|
|
1132
1094
|
else {
|
|
1133
1095
|
throw new Error("No value provided for input HTTP label: RoomId.");
|
|
1134
1096
|
}
|
|
1135
|
-
body = JSON.stringify(__assign(__assign({}, (input.MemberId
|
|
1097
|
+
body = JSON.stringify(__assign(__assign({}, (input.MemberId != null && { MemberId: input.MemberId })), (input.Role != null && { Role: input.Role })));
|
|
1136
1098
|
return [2, new __HttpRequest({
|
|
1137
1099
|
protocol: protocol,
|
|
1138
1100
|
hostname: hostname,
|
|
@@ -1156,10 +1118,9 @@ export var serializeAws_restJson1CreateSipMediaApplicationCommand = function (in
|
|
|
1156
1118
|
"content-type": "application/json",
|
|
1157
1119
|
};
|
|
1158
1120
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sip-media-applications";
|
|
1159
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.AwsRegion
|
|
1160
|
-
input.Endpoints !== null && {
|
|
1121
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.AwsRegion != null && { AwsRegion: input.AwsRegion })), (input.Endpoints != null && {
|
|
1161
1122
|
Endpoints: serializeAws_restJson1SipMediaApplicationEndpointList(input.Endpoints, context),
|
|
1162
|
-
})), (input.Name
|
|
1123
|
+
})), (input.Name != null && { Name: input.Name })));
|
|
1163
1124
|
return [2, new __HttpRequest({
|
|
1164
1125
|
protocol: protocol,
|
|
1165
1126
|
hostname: hostname,
|
|
@@ -1194,9 +1155,7 @@ export var serializeAws_restJson1CreateSipMediaApplicationCallCommand = function
|
|
|
1194
1155
|
else {
|
|
1195
1156
|
throw new Error("No value provided for input HTTP label: SipMediaApplicationId.");
|
|
1196
1157
|
}
|
|
1197
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.FromPhoneNumber
|
|
1198
|
-
input.FromPhoneNumber !== null && { FromPhoneNumber: input.FromPhoneNumber })), (input.SipHeaders !== undefined &&
|
|
1199
|
-
input.SipHeaders !== null && { SipHeaders: serializeAws_restJson1SipHeadersMap(input.SipHeaders, context) })), (input.ToPhoneNumber !== undefined && input.ToPhoneNumber !== null && { ToPhoneNumber: input.ToPhoneNumber })));
|
|
1158
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.FromPhoneNumber != null && { FromPhoneNumber: input.FromPhoneNumber })), (input.SipHeaders != null && { SipHeaders: serializeAws_restJson1SipHeadersMap(input.SipHeaders, context) })), (input.ToPhoneNumber != null && { ToPhoneNumber: input.ToPhoneNumber })));
|
|
1200
1159
|
return [2, new __HttpRequest({
|
|
1201
1160
|
protocol: protocol,
|
|
1202
1161
|
hostname: hostname,
|
|
@@ -1220,10 +1179,9 @@ export var serializeAws_restJson1CreateSipRuleCommand = function (input, context
|
|
|
1220
1179
|
"content-type": "application/json",
|
|
1221
1180
|
};
|
|
1222
1181
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sip-rules";
|
|
1223
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Disabled
|
|
1224
|
-
input.TargetApplications !== null && {
|
|
1182
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Disabled != null && { Disabled: input.Disabled })), (input.Name != null && { Name: input.Name })), (input.TargetApplications != null && {
|
|
1225
1183
|
TargetApplications: serializeAws_restJson1SipRuleTargetApplicationList(input.TargetApplications, context),
|
|
1226
|
-
})), (input.TriggerType
|
|
1184
|
+
})), (input.TriggerType != null && { TriggerType: input.TriggerType })), (input.TriggerValue != null && { TriggerValue: input.TriggerValue })));
|
|
1227
1185
|
return [2, new __HttpRequest({
|
|
1228
1186
|
protocol: protocol,
|
|
1229
1187
|
hostname: hostname,
|
|
@@ -1260,7 +1218,7 @@ export var serializeAws_restJson1CreateUserCommand = function (input, context) {
|
|
|
1260
1218
|
query = {
|
|
1261
1219
|
operation: "create",
|
|
1262
1220
|
};
|
|
1263
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Email
|
|
1221
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Email != null && { Email: input.Email })), (input.UserType != null && { UserType: input.UserType })), (input.Username != null && { Username: input.Username })));
|
|
1264
1222
|
return [2, new __HttpRequest({
|
|
1265
1223
|
protocol: protocol,
|
|
1266
1224
|
hostname: hostname,
|
|
@@ -1285,8 +1243,7 @@ export var serializeAws_restJson1CreateVoiceConnectorCommand = function (input,
|
|
|
1285
1243
|
"content-type": "application/json",
|
|
1286
1244
|
};
|
|
1287
1245
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/voice-connectors";
|
|
1288
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.AwsRegion
|
|
1289
|
-
input.RequireEncryption !== null && { RequireEncryption: input.RequireEncryption })));
|
|
1246
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.AwsRegion != null && { AwsRegion: input.AwsRegion })), (input.Name != null && { Name: input.Name })), (input.RequireEncryption != null && { RequireEncryption: input.RequireEncryption })));
|
|
1290
1247
|
return [2, new __HttpRequest({
|
|
1291
1248
|
protocol: protocol,
|
|
1292
1249
|
hostname: hostname,
|
|
@@ -1310,8 +1267,7 @@ export var serializeAws_restJson1CreateVoiceConnectorGroupCommand = function (in
|
|
|
1310
1267
|
"content-type": "application/json",
|
|
1311
1268
|
};
|
|
1312
1269
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/voice-connector-groups";
|
|
1313
|
-
body = JSON.stringify(__assign(__assign({}, (input.Name
|
|
1314
|
-
input.VoiceConnectorItems !== null && {
|
|
1270
|
+
body = JSON.stringify(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.VoiceConnectorItems != null && {
|
|
1315
1271
|
VoiceConnectorItems: serializeAws_restJson1VoiceConnectorItemList(input.VoiceConnectorItems, context),
|
|
1316
1272
|
})));
|
|
1317
1273
|
return [2, new __HttpRequest({
|
|
@@ -2387,8 +2343,7 @@ export var serializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsComma
|
|
|
2387
2343
|
query = {
|
|
2388
2344
|
operation: "delete",
|
|
2389
2345
|
};
|
|
2390
|
-
body = JSON.stringify(__assign({}, (input.Usernames
|
|
2391
|
-
input.Usernames !== null && { Usernames: serializeAws_restJson1SensitiveStringList(input.Usernames, context) })));
|
|
2346
|
+
body = JSON.stringify(__assign({}, (input.Usernames != null && { Usernames: serializeAws_restJson1SensitiveStringList(input.Usernames, context) })));
|
|
2392
2347
|
return [2, new __HttpRequest({
|
|
2393
2348
|
protocol: protocol,
|
|
2394
2349
|
hostname: hostname,
|
|
@@ -2878,8 +2833,7 @@ export var serializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorComma
|
|
|
2878
2833
|
query = {
|
|
2879
2834
|
operation: "disassociate-phone-numbers",
|
|
2880
2835
|
};
|
|
2881
|
-
body = JSON.stringify(__assign({}, (input.E164PhoneNumbers
|
|
2882
|
-
input.E164PhoneNumbers !== null && {
|
|
2836
|
+
body = JSON.stringify(__assign({}, (input.E164PhoneNumbers != null && {
|
|
2883
2837
|
E164PhoneNumbers: serializeAws_restJson1E164PhoneNumberList(input.E164PhoneNumbers, context),
|
|
2884
2838
|
})));
|
|
2885
2839
|
return [2, new __HttpRequest({
|
|
@@ -2920,8 +2874,7 @@ export var serializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorGroup
|
|
|
2920
2874
|
query = {
|
|
2921
2875
|
operation: "disassociate-phone-numbers",
|
|
2922
2876
|
};
|
|
2923
|
-
body = JSON.stringify(__assign({}, (input.E164PhoneNumbers
|
|
2924
|
-
input.E164PhoneNumbers !== null && {
|
|
2877
|
+
body = JSON.stringify(__assign({}, (input.E164PhoneNumbers != null && {
|
|
2925
2878
|
E164PhoneNumbers: serializeAws_restJson1E164PhoneNumberList(input.E164PhoneNumbers, context),
|
|
2926
2879
|
})));
|
|
2927
2880
|
return [2, new __HttpRequest({
|
|
@@ -2961,8 +2914,9 @@ export var serializeAws_restJson1DisassociateSigninDelegateGroupsFromAccountComm
|
|
|
2961
2914
|
query = {
|
|
2962
2915
|
operation: "disassociate-signin-delegate-groups",
|
|
2963
2916
|
};
|
|
2964
|
-
body = JSON.stringify(__assign({}, (input.GroupNames
|
|
2965
|
-
|
|
2917
|
+
body = JSON.stringify(__assign({}, (input.GroupNames != null && {
|
|
2918
|
+
GroupNames: serializeAws_restJson1NonEmptyStringList(input.GroupNames, context),
|
|
2919
|
+
})));
|
|
2966
2920
|
return [2, new __HttpRequest({
|
|
2967
2921
|
protocol: protocol,
|
|
2968
2922
|
hostname: hostname,
|
|
@@ -4096,10 +4050,9 @@ export var serializeAws_restJson1InviteUsersCommand = function (input, context)
|
|
|
4096
4050
|
query = {
|
|
4097
4051
|
operation: "add",
|
|
4098
4052
|
};
|
|
4099
|
-
body = JSON.stringify(__assign(__assign({}, (input.UserEmailList
|
|
4100
|
-
input.UserEmailList !== null && {
|
|
4053
|
+
body = JSON.stringify(__assign(__assign({}, (input.UserEmailList != null && {
|
|
4101
4054
|
UserEmailList: serializeAws_restJson1UserEmailList(input.UserEmailList, context),
|
|
4102
|
-
})), (input.UserType
|
|
4055
|
+
})), (input.UserType != null && { UserType: input.UserType })));
|
|
4103
4056
|
return [2, new __HttpRequest({
|
|
4104
4057
|
protocol: protocol,
|
|
4105
4058
|
hostname: hostname,
|
|
@@ -5120,8 +5073,7 @@ export var serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = functi
|
|
|
5120
5073
|
else {
|
|
5121
5074
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
5122
5075
|
}
|
|
5123
|
-
body = JSON.stringify(__assign({}, (input.AppInstanceRetentionSettings
|
|
5124
|
-
input.AppInstanceRetentionSettings !== null && {
|
|
5076
|
+
body = JSON.stringify(__assign({}, (input.AppInstanceRetentionSettings != null && {
|
|
5125
5077
|
AppInstanceRetentionSettings: serializeAws_restJson1AppInstanceRetentionSettings(input.AppInstanceRetentionSettings, context),
|
|
5126
5078
|
})));
|
|
5127
5079
|
return [4, context.endpoint()];
|
|
@@ -5167,8 +5119,7 @@ export var serializeAws_restJson1PutAppInstanceStreamingConfigurationsCommand =
|
|
|
5167
5119
|
else {
|
|
5168
5120
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
5169
5121
|
}
|
|
5170
|
-
body = JSON.stringify(__assign({}, (input.AppInstanceStreamingConfigurations
|
|
5171
|
-
input.AppInstanceStreamingConfigurations !== null && {
|
|
5122
|
+
body = JSON.stringify(__assign({}, (input.AppInstanceStreamingConfigurations != null && {
|
|
5172
5123
|
AppInstanceStreamingConfigurations: serializeAws_restJson1AppInstanceStreamingConfigurationList(input.AppInstanceStreamingConfigurations, context),
|
|
5173
5124
|
})));
|
|
5174
5125
|
return [2, new __HttpRequest({
|
|
@@ -5215,9 +5166,9 @@ export var serializeAws_restJson1PutEventsConfigurationCommand = function (input
|
|
|
5215
5166
|
else {
|
|
5216
5167
|
throw new Error("No value provided for input HTTP label: BotId.");
|
|
5217
5168
|
}
|
|
5218
|
-
body = JSON.stringify(__assign(__assign({}, (input.LambdaFunctionArn
|
|
5219
|
-
|
|
5220
|
-
|
|
5169
|
+
body = JSON.stringify(__assign(__assign({}, (input.LambdaFunctionArn != null && { LambdaFunctionArn: input.LambdaFunctionArn })), (input.OutboundEventsHTTPSEndpoint != null && {
|
|
5170
|
+
OutboundEventsHTTPSEndpoint: input.OutboundEventsHTTPSEndpoint,
|
|
5171
|
+
})));
|
|
5221
5172
|
return [2, new __HttpRequest({
|
|
5222
5173
|
protocol: protocol,
|
|
5223
5174
|
hostname: hostname,
|
|
@@ -5251,8 +5202,7 @@ export var serializeAws_restJson1PutRetentionSettingsCommand = function (input,
|
|
|
5251
5202
|
else {
|
|
5252
5203
|
throw new Error("No value provided for input HTTP label: AccountId.");
|
|
5253
5204
|
}
|
|
5254
|
-
body = JSON.stringify(__assign({}, (input.RetentionSettings
|
|
5255
|
-
input.RetentionSettings !== null && {
|
|
5205
|
+
body = JSON.stringify(__assign({}, (input.RetentionSettings != null && {
|
|
5256
5206
|
RetentionSettings: serializeAws_restJson1RetentionSettings(input.RetentionSettings, context),
|
|
5257
5207
|
})));
|
|
5258
5208
|
return [2, new __HttpRequest({
|
|
@@ -5289,8 +5239,7 @@ export var serializeAws_restJson1PutSipMediaApplicationLoggingConfigurationComma
|
|
|
5289
5239
|
else {
|
|
5290
5240
|
throw new Error("No value provided for input HTTP label: SipMediaApplicationId.");
|
|
5291
5241
|
}
|
|
5292
|
-
body = JSON.stringify(__assign({}, (input.SipMediaApplicationLoggingConfiguration
|
|
5293
|
-
input.SipMediaApplicationLoggingConfiguration !== null && {
|
|
5242
|
+
body = JSON.stringify(__assign({}, (input.SipMediaApplicationLoggingConfiguration != null && {
|
|
5294
5243
|
SipMediaApplicationLoggingConfiguration: serializeAws_restJson1SipMediaApplicationLoggingConfiguration(input.SipMediaApplicationLoggingConfiguration, context),
|
|
5295
5244
|
})));
|
|
5296
5245
|
return [2, new __HttpRequest({
|
|
@@ -5327,8 +5276,7 @@ export var serializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationC
|
|
|
5327
5276
|
else {
|
|
5328
5277
|
throw new Error("No value provided for input HTTP label: VoiceConnectorId.");
|
|
5329
5278
|
}
|
|
5330
|
-
body = JSON.stringify(__assign({}, (input.EmergencyCallingConfiguration
|
|
5331
|
-
input.EmergencyCallingConfiguration !== null && {
|
|
5279
|
+
body = JSON.stringify(__assign({}, (input.EmergencyCallingConfiguration != null && {
|
|
5332
5280
|
EmergencyCallingConfiguration: serializeAws_restJson1EmergencyCallingConfiguration(input.EmergencyCallingConfiguration, context),
|
|
5333
5281
|
})));
|
|
5334
5282
|
return [2, new __HttpRequest({
|
|
@@ -5365,8 +5313,7 @@ export var serializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommand =
|
|
|
5365
5313
|
else {
|
|
5366
5314
|
throw new Error("No value provided for input HTTP label: VoiceConnectorId.");
|
|
5367
5315
|
}
|
|
5368
|
-
body = JSON.stringify(__assign({}, (input.LoggingConfiguration
|
|
5369
|
-
input.LoggingConfiguration !== null && {
|
|
5316
|
+
body = JSON.stringify(__assign({}, (input.LoggingConfiguration != null && {
|
|
5370
5317
|
LoggingConfiguration: serializeAws_restJson1LoggingConfiguration(input.LoggingConfiguration, context),
|
|
5371
5318
|
})));
|
|
5372
5319
|
return [2, new __HttpRequest({
|
|
@@ -5403,8 +5350,7 @@ export var serializeAws_restJson1PutVoiceConnectorOriginationCommand = function
|
|
|
5403
5350
|
else {
|
|
5404
5351
|
throw new Error("No value provided for input HTTP label: VoiceConnectorId.");
|
|
5405
5352
|
}
|
|
5406
|
-
body = JSON.stringify(__assign({}, (input.Origination
|
|
5407
|
-
input.Origination !== null && { Origination: serializeAws_restJson1Origination(input.Origination, context) })));
|
|
5353
|
+
body = JSON.stringify(__assign({}, (input.Origination != null && { Origination: serializeAws_restJson1Origination(input.Origination, context) })));
|
|
5408
5354
|
return [2, new __HttpRequest({
|
|
5409
5355
|
protocol: protocol,
|
|
5410
5356
|
hostname: hostname,
|
|
@@ -5439,10 +5385,9 @@ export var serializeAws_restJson1PutVoiceConnectorProxyCommand = function (input
|
|
|
5439
5385
|
else {
|
|
5440
5386
|
throw new Error("No value provided for input HTTP label: VoiceConnectorId.");
|
|
5441
5387
|
}
|
|
5442
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DefaultSessionExpiryMinutes
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
input.PhoneNumberPoolCountries !== null && {
|
|
5388
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DefaultSessionExpiryMinutes != null && {
|
|
5389
|
+
DefaultSessionExpiryMinutes: input.DefaultSessionExpiryMinutes,
|
|
5390
|
+
})), (input.Disabled != null && { Disabled: input.Disabled })), (input.FallBackPhoneNumber != null && { FallBackPhoneNumber: input.FallBackPhoneNumber })), (input.PhoneNumberPoolCountries != null && {
|
|
5446
5391
|
PhoneNumberPoolCountries: serializeAws_restJson1CountryList(input.PhoneNumberPoolCountries, context),
|
|
5447
5392
|
})));
|
|
5448
5393
|
return [2, new __HttpRequest({
|
|
@@ -5479,8 +5424,7 @@ export var serializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommand
|
|
|
5479
5424
|
else {
|
|
5480
5425
|
throw new Error("No value provided for input HTTP label: VoiceConnectorId.");
|
|
5481
5426
|
}
|
|
5482
|
-
body = JSON.stringify(__assign({}, (input.StreamingConfiguration
|
|
5483
|
-
input.StreamingConfiguration !== null && {
|
|
5427
|
+
body = JSON.stringify(__assign({}, (input.StreamingConfiguration != null && {
|
|
5484
5428
|
StreamingConfiguration: serializeAws_restJson1StreamingConfiguration(input.StreamingConfiguration, context),
|
|
5485
5429
|
})));
|
|
5486
5430
|
return [2, new __HttpRequest({
|
|
@@ -5517,8 +5461,7 @@ export var serializeAws_restJson1PutVoiceConnectorTerminationCommand = function
|
|
|
5517
5461
|
else {
|
|
5518
5462
|
throw new Error("No value provided for input HTTP label: VoiceConnectorId.");
|
|
5519
5463
|
}
|
|
5520
|
-
body = JSON.stringify(__assign({}, (input.Termination
|
|
5521
|
-
input.Termination !== null && { Termination: serializeAws_restJson1Termination(input.Termination, context) })));
|
|
5464
|
+
body = JSON.stringify(__assign({}, (input.Termination != null && { Termination: serializeAws_restJson1Termination(input.Termination, context) })));
|
|
5522
5465
|
return [2, new __HttpRequest({
|
|
5523
5466
|
protocol: protocol,
|
|
5524
5467
|
hostname: hostname,
|
|
@@ -5556,8 +5499,7 @@ export var serializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommand
|
|
|
5556
5499
|
query = {
|
|
5557
5500
|
operation: "put",
|
|
5558
5501
|
};
|
|
5559
|
-
body = JSON.stringify(__assign({}, (input.Credentials
|
|
5560
|
-
input.Credentials !== null && { Credentials: serializeAws_restJson1CredentialList(input.Credentials, context) })));
|
|
5502
|
+
body = JSON.stringify(__assign({}, (input.Credentials != null && { Credentials: serializeAws_restJson1CredentialList(input.Credentials, context) })));
|
|
5561
5503
|
return [2, new __HttpRequest({
|
|
5562
5504
|
protocol: protocol,
|
|
5563
5505
|
hostname: hostname,
|
|
@@ -5906,7 +5848,7 @@ export var serializeAws_restJson1SendChannelMessageCommand = function (input, co
|
|
|
5906
5848
|
else {
|
|
5907
5849
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
5908
5850
|
}
|
|
5909
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content
|
|
5851
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.Metadata != null && { Metadata: input.Metadata })), (input.Persistence != null && { Persistence: input.Persistence })), (input.Type != null && { Type: input.Type })));
|
|
5910
5852
|
return [4, context.endpoint()];
|
|
5911
5853
|
case 2:
|
|
5912
5854
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -5952,8 +5894,7 @@ export var serializeAws_restJson1StartMeetingTranscriptionCommand = function (in
|
|
|
5952
5894
|
query = {
|
|
5953
5895
|
operation: "start",
|
|
5954
5896
|
};
|
|
5955
|
-
body = JSON.stringify(__assign({}, (input.TranscriptionConfiguration
|
|
5956
|
-
input.TranscriptionConfiguration !== null && {
|
|
5897
|
+
body = JSON.stringify(__assign({}, (input.TranscriptionConfiguration != null && {
|
|
5957
5898
|
TranscriptionConfiguration: serializeAws_restJson1TranscriptionConfiguration(input.TranscriptionConfiguration, context),
|
|
5958
5899
|
})));
|
|
5959
5900
|
return [2, new __HttpRequest({
|
|
@@ -6039,8 +5980,7 @@ export var serializeAws_restJson1TagAttendeeCommand = function (input, context)
|
|
|
6039
5980
|
query = {
|
|
6040
5981
|
operation: "add",
|
|
6041
5982
|
};
|
|
6042
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
6043
|
-
input.Tags !== null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) })));
|
|
5983
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) })));
|
|
6044
5984
|
return [2, new __HttpRequest({
|
|
6045
5985
|
protocol: protocol,
|
|
6046
5986
|
hostname: hostname,
|
|
@@ -6078,8 +6018,7 @@ export var serializeAws_restJson1TagMeetingCommand = function (input, context) {
|
|
|
6078
6018
|
query = {
|
|
6079
6019
|
operation: "add",
|
|
6080
6020
|
};
|
|
6081
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
6082
|
-
input.Tags !== null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) })));
|
|
6021
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) })));
|
|
6083
6022
|
return [2, new __HttpRequest({
|
|
6084
6023
|
protocol: protocol,
|
|
6085
6024
|
hostname: hostname,
|
|
@@ -6107,8 +6046,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
6107
6046
|
query = {
|
|
6108
6047
|
operation: "tag-resource",
|
|
6109
6048
|
};
|
|
6110
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN
|
|
6111
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
6049
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
6112
6050
|
return [2, new __HttpRequest({
|
|
6113
6051
|
protocol: protocol,
|
|
6114
6052
|
hostname: hostname,
|
|
@@ -6157,8 +6095,7 @@ export var serializeAws_restJson1UntagAttendeeCommand = function (input, context
|
|
|
6157
6095
|
query = {
|
|
6158
6096
|
operation: "delete",
|
|
6159
6097
|
};
|
|
6160
|
-
body = JSON.stringify(__assign({}, (input.TagKeys
|
|
6161
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1AttendeeTagKeyList(input.TagKeys, context) })));
|
|
6098
|
+
body = JSON.stringify(__assign({}, (input.TagKeys != null && { TagKeys: serializeAws_restJson1AttendeeTagKeyList(input.TagKeys, context) })));
|
|
6162
6099
|
return [2, new __HttpRequest({
|
|
6163
6100
|
protocol: protocol,
|
|
6164
6101
|
hostname: hostname,
|
|
@@ -6196,8 +6133,7 @@ export var serializeAws_restJson1UntagMeetingCommand = function (input, context)
|
|
|
6196
6133
|
query = {
|
|
6197
6134
|
operation: "delete",
|
|
6198
6135
|
};
|
|
6199
|
-
body = JSON.stringify(__assign({}, (input.TagKeys
|
|
6200
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1MeetingTagKeyList(input.TagKeys, context) })));
|
|
6136
|
+
body = JSON.stringify(__assign({}, (input.TagKeys != null && { TagKeys: serializeAws_restJson1MeetingTagKeyList(input.TagKeys, context) })));
|
|
6201
6137
|
return [2, new __HttpRequest({
|
|
6202
6138
|
protocol: protocol,
|
|
6203
6139
|
hostname: hostname,
|
|
@@ -6225,8 +6161,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
6225
6161
|
query = {
|
|
6226
6162
|
operation: "untag-resource",
|
|
6227
6163
|
};
|
|
6228
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN
|
|
6229
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
6164
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
6230
6165
|
return [2, new __HttpRequest({
|
|
6231
6166
|
protocol: protocol,
|
|
6232
6167
|
hostname: hostname,
|
|
@@ -6261,8 +6196,7 @@ export var serializeAws_restJson1UpdateAccountCommand = function (input, context
|
|
|
6261
6196
|
else {
|
|
6262
6197
|
throw new Error("No value provided for input HTTP label: AccountId.");
|
|
6263
6198
|
}
|
|
6264
|
-
body = JSON.stringify(__assign(__assign({}, (input.DefaultLicense
|
|
6265
|
-
input.DefaultLicense !== null && { DefaultLicense: input.DefaultLicense })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
6199
|
+
body = JSON.stringify(__assign(__assign({}, (input.DefaultLicense != null && { DefaultLicense: input.DefaultLicense })), (input.Name != null && { Name: input.Name })));
|
|
6266
6200
|
return [2, new __HttpRequest({
|
|
6267
6201
|
protocol: protocol,
|
|
6268
6202
|
hostname: hostname,
|
|
@@ -6296,8 +6230,7 @@ export var serializeAws_restJson1UpdateAccountSettingsCommand = function (input,
|
|
|
6296
6230
|
else {
|
|
6297
6231
|
throw new Error("No value provided for input HTTP label: AccountId.");
|
|
6298
6232
|
}
|
|
6299
|
-
body = JSON.stringify(__assign({}, (input.AccountSettings
|
|
6300
|
-
input.AccountSettings !== null && {
|
|
6233
|
+
body = JSON.stringify(__assign({}, (input.AccountSettings != null && {
|
|
6301
6234
|
AccountSettings: serializeAws_restJson1AccountSettings(input.AccountSettings, context),
|
|
6302
6235
|
})));
|
|
6303
6236
|
return [2, new __HttpRequest({
|
|
@@ -6333,7 +6266,7 @@ export var serializeAws_restJson1UpdateAppInstanceCommand = function (input, con
|
|
|
6333
6266
|
else {
|
|
6334
6267
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
6335
6268
|
}
|
|
6336
|
-
body = JSON.stringify(__assign(__assign({}, (input.Metadata
|
|
6269
|
+
body = JSON.stringify(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })));
|
|
6337
6270
|
return [4, context.endpoint()];
|
|
6338
6271
|
case 2:
|
|
6339
6272
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -6376,7 +6309,7 @@ export var serializeAws_restJson1UpdateAppInstanceUserCommand = function (input,
|
|
|
6376
6309
|
else {
|
|
6377
6310
|
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
6378
6311
|
}
|
|
6379
|
-
body = JSON.stringify(__assign(__assign({}, (input.Metadata
|
|
6312
|
+
body = JSON.stringify(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Name != null && { Name: input.Name })));
|
|
6380
6313
|
return [4, context.endpoint()];
|
|
6381
6314
|
case 2:
|
|
6382
6315
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -6429,7 +6362,7 @@ export var serializeAws_restJson1UpdateBotCommand = function (input, context) {
|
|
|
6429
6362
|
else {
|
|
6430
6363
|
throw new Error("No value provided for input HTTP label: BotId.");
|
|
6431
6364
|
}
|
|
6432
|
-
body = JSON.stringify(__assign({}, (input.Disabled
|
|
6365
|
+
body = JSON.stringify(__assign({}, (input.Disabled != null && { Disabled: input.Disabled })));
|
|
6433
6366
|
return [2, new __HttpRequest({
|
|
6434
6367
|
protocol: protocol,
|
|
6435
6368
|
hostname: hostname,
|
|
@@ -6461,7 +6394,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
6461
6394
|
else {
|
|
6462
6395
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
6463
6396
|
}
|
|
6464
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Metadata
|
|
6397
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Mode != null && { Mode: input.Mode })), (input.Name != null && { Name: input.Name })));
|
|
6465
6398
|
return [4, context.endpoint()];
|
|
6466
6399
|
case 2:
|
|
6467
6400
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -6513,7 +6446,7 @@ export var serializeAws_restJson1UpdateChannelMessageCommand = function (input,
|
|
|
6513
6446
|
else {
|
|
6514
6447
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
6515
6448
|
}
|
|
6516
|
-
body = JSON.stringify(__assign(__assign({}, (input.Content
|
|
6449
|
+
body = JSON.stringify(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Metadata != null && { Metadata: input.Metadata })));
|
|
6517
6450
|
return [4, context.endpoint()];
|
|
6518
6451
|
case 2:
|
|
6519
6452
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -6586,11 +6519,9 @@ export var serializeAws_restJson1UpdateGlobalSettingsCommand = function (input,
|
|
|
6586
6519
|
"content-type": "application/json",
|
|
6587
6520
|
};
|
|
6588
6521
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/settings";
|
|
6589
|
-
body = JSON.stringify(__assign(__assign({}, (input.BusinessCalling
|
|
6590
|
-
input.BusinessCalling !== null && {
|
|
6522
|
+
body = JSON.stringify(__assign(__assign({}, (input.BusinessCalling != null && {
|
|
6591
6523
|
BusinessCalling: serializeAws_restJson1BusinessCallingSettings(input.BusinessCalling, context),
|
|
6592
|
-
})), (input.VoiceConnector
|
|
6593
|
-
input.VoiceConnector !== null && {
|
|
6524
|
+
})), (input.VoiceConnector != null && {
|
|
6594
6525
|
VoiceConnector: serializeAws_restJson1VoiceConnectorSettings(input.VoiceConnector, context),
|
|
6595
6526
|
})));
|
|
6596
6527
|
return [2, new __HttpRequest({
|
|
@@ -6626,7 +6557,7 @@ export var serializeAws_restJson1UpdatePhoneNumberCommand = function (input, con
|
|
|
6626
6557
|
else {
|
|
6627
6558
|
throw new Error("No value provided for input HTTP label: PhoneNumberId.");
|
|
6628
6559
|
}
|
|
6629
|
-
body = JSON.stringify(__assign(__assign({}, (input.CallingName
|
|
6560
|
+
body = JSON.stringify(__assign(__assign({}, (input.CallingName != null && { CallingName: input.CallingName })), (input.ProductType != null && { ProductType: input.ProductType })));
|
|
6630
6561
|
return [2, new __HttpRequest({
|
|
6631
6562
|
protocol: protocol,
|
|
6632
6563
|
hostname: hostname,
|
|
@@ -6650,7 +6581,7 @@ export var serializeAws_restJson1UpdatePhoneNumberSettingsCommand = function (in
|
|
|
6650
6581
|
"content-type": "application/json",
|
|
6651
6582
|
};
|
|
6652
6583
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/settings/phone-number";
|
|
6653
|
-
body = JSON.stringify(__assign({}, (input.CallingName
|
|
6584
|
+
body = JSON.stringify(__assign({}, (input.CallingName != null && { CallingName: input.CallingName })));
|
|
6654
6585
|
return [2, new __HttpRequest({
|
|
6655
6586
|
protocol: protocol,
|
|
6656
6587
|
hostname: hostname,
|
|
@@ -6695,10 +6626,9 @@ export var serializeAws_restJson1UpdateProxySessionCommand = function (input, co
|
|
|
6695
6626
|
else {
|
|
6696
6627
|
throw new Error("No value provided for input HTTP label: ProxySessionId.");
|
|
6697
6628
|
}
|
|
6698
|
-
body = JSON.stringify(__assign(__assign({}, (input.Capabilities
|
|
6699
|
-
input.Capabilities !== null && {
|
|
6629
|
+
body = JSON.stringify(__assign(__assign({}, (input.Capabilities != null && {
|
|
6700
6630
|
Capabilities: serializeAws_restJson1CapabilityList(input.Capabilities, context),
|
|
6701
|
-
})), (input.ExpiryMinutes
|
|
6631
|
+
})), (input.ExpiryMinutes != null && { ExpiryMinutes: input.ExpiryMinutes })));
|
|
6702
6632
|
return [2, new __HttpRequest({
|
|
6703
6633
|
protocol: protocol,
|
|
6704
6634
|
hostname: hostname,
|
|
@@ -6742,7 +6672,7 @@ export var serializeAws_restJson1UpdateRoomCommand = function (input, context) {
|
|
|
6742
6672
|
else {
|
|
6743
6673
|
throw new Error("No value provided for input HTTP label: RoomId.");
|
|
6744
6674
|
}
|
|
6745
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
6675
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
6746
6676
|
return [2, new __HttpRequest({
|
|
6747
6677
|
protocol: protocol,
|
|
6748
6678
|
hostname: hostname,
|
|
@@ -6797,7 +6727,7 @@ export var serializeAws_restJson1UpdateRoomMembershipCommand = function (input,
|
|
|
6797
6727
|
else {
|
|
6798
6728
|
throw new Error("No value provided for input HTTP label: MemberId.");
|
|
6799
6729
|
}
|
|
6800
|
-
body = JSON.stringify(__assign({}, (input.Role
|
|
6730
|
+
body = JSON.stringify(__assign({}, (input.Role != null && { Role: input.Role })));
|
|
6801
6731
|
return [2, new __HttpRequest({
|
|
6802
6732
|
protocol: protocol,
|
|
6803
6733
|
hostname: hostname,
|
|
@@ -6832,10 +6762,9 @@ export var serializeAws_restJson1UpdateSipMediaApplicationCommand = function (in
|
|
|
6832
6762
|
else {
|
|
6833
6763
|
throw new Error("No value provided for input HTTP label: SipMediaApplicationId.");
|
|
6834
6764
|
}
|
|
6835
|
-
body = JSON.stringify(__assign(__assign({}, (input.Endpoints
|
|
6836
|
-
input.Endpoints !== null && {
|
|
6765
|
+
body = JSON.stringify(__assign(__assign({}, (input.Endpoints != null && {
|
|
6837
6766
|
Endpoints: serializeAws_restJson1SipMediaApplicationEndpointList(input.Endpoints, context),
|
|
6838
|
-
})), (input.Name
|
|
6767
|
+
})), (input.Name != null && { Name: input.Name })));
|
|
6839
6768
|
return [2, new __HttpRequest({
|
|
6840
6769
|
protocol: protocol,
|
|
6841
6770
|
hostname: hostname,
|
|
@@ -6880,8 +6809,7 @@ export var serializeAws_restJson1UpdateSipMediaApplicationCallCommand = function
|
|
|
6880
6809
|
else {
|
|
6881
6810
|
throw new Error("No value provided for input HTTP label: TransactionId.");
|
|
6882
6811
|
}
|
|
6883
|
-
body = JSON.stringify(__assign({}, (input.Arguments
|
|
6884
|
-
input.Arguments !== null && {
|
|
6812
|
+
body = JSON.stringify(__assign({}, (input.Arguments != null && {
|
|
6885
6813
|
Arguments: serializeAws_restJson1SMAUpdateCallArgumentsMap(input.Arguments, context),
|
|
6886
6814
|
})));
|
|
6887
6815
|
return [2, new __HttpRequest({
|
|
@@ -6917,8 +6845,7 @@ export var serializeAws_restJson1UpdateSipRuleCommand = function (input, context
|
|
|
6917
6845
|
else {
|
|
6918
6846
|
throw new Error("No value provided for input HTTP label: SipRuleId.");
|
|
6919
6847
|
}
|
|
6920
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Disabled
|
|
6921
|
-
input.TargetApplications !== null && {
|
|
6848
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Disabled != null && { Disabled: input.Disabled })), (input.Name != null && { Name: input.Name })), (input.TargetApplications != null && {
|
|
6922
6849
|
TargetApplications: serializeAws_restJson1SipRuleTargetApplicationList(input.TargetApplications, context),
|
|
6923
6850
|
})));
|
|
6924
6851
|
return [2, new __HttpRequest({
|
|
@@ -6964,10 +6891,9 @@ export var serializeAws_restJson1UpdateUserCommand = function (input, context) {
|
|
|
6964
6891
|
else {
|
|
6965
6892
|
throw new Error("No value provided for input HTTP label: UserId.");
|
|
6966
6893
|
}
|
|
6967
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.AlexaForBusinessMetadata
|
|
6968
|
-
input.AlexaForBusinessMetadata !== null && {
|
|
6894
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.AlexaForBusinessMetadata != null && {
|
|
6969
6895
|
AlexaForBusinessMetadata: serializeAws_restJson1AlexaForBusinessMetadata(input.AlexaForBusinessMetadata, context),
|
|
6970
|
-
})), (input.LicenseType
|
|
6896
|
+
})), (input.LicenseType != null && { LicenseType: input.LicenseType })), (input.UserType != null && { UserType: input.UserType })));
|
|
6971
6897
|
return [2, new __HttpRequest({
|
|
6972
6898
|
protocol: protocol,
|
|
6973
6899
|
hostname: hostname,
|
|
@@ -7012,8 +6938,9 @@ export var serializeAws_restJson1UpdateUserSettingsCommand = function (input, co
|
|
|
7012
6938
|
else {
|
|
7013
6939
|
throw new Error("No value provided for input HTTP label: UserId.");
|
|
7014
6940
|
}
|
|
7015
|
-
body = JSON.stringify(__assign({}, (input.UserSettings
|
|
7016
|
-
|
|
6941
|
+
body = JSON.stringify(__assign({}, (input.UserSettings != null && {
|
|
6942
|
+
UserSettings: serializeAws_restJson1UserSettings(input.UserSettings, context),
|
|
6943
|
+
})));
|
|
7017
6944
|
return [2, new __HttpRequest({
|
|
7018
6945
|
protocol: protocol,
|
|
7019
6946
|
hostname: hostname,
|
|
@@ -7047,8 +6974,7 @@ export var serializeAws_restJson1UpdateVoiceConnectorCommand = function (input,
|
|
|
7047
6974
|
else {
|
|
7048
6975
|
throw new Error("No value provided for input HTTP label: VoiceConnectorId.");
|
|
7049
6976
|
}
|
|
7050
|
-
body = JSON.stringify(__assign(__assign({}, (input.Name
|
|
7051
|
-
input.RequireEncryption !== null && { RequireEncryption: input.RequireEncryption })));
|
|
6977
|
+
body = JSON.stringify(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.RequireEncryption != null && { RequireEncryption: input.RequireEncryption })));
|
|
7052
6978
|
return [2, new __HttpRequest({
|
|
7053
6979
|
protocol: protocol,
|
|
7054
6980
|
hostname: hostname,
|
|
@@ -7083,8 +7009,7 @@ export var serializeAws_restJson1UpdateVoiceConnectorGroupCommand = function (in
|
|
|
7083
7009
|
else {
|
|
7084
7010
|
throw new Error("No value provided for input HTTP label: VoiceConnectorGroupId.");
|
|
7085
7011
|
}
|
|
7086
|
-
body = JSON.stringify(__assign(__assign({}, (input.Name
|
|
7087
|
-
input.VoiceConnectorItems !== null && {
|
|
7012
|
+
body = JSON.stringify(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.VoiceConnectorItems != null && {
|
|
7088
7013
|
VoiceConnectorItems: serializeAws_restJson1VoiceConnectorItemList(input.VoiceConnectorItems, context),
|
|
7089
7014
|
})));
|
|
7090
7015
|
return [2, new __HttpRequest({
|
|
@@ -22593,23 +22518,18 @@ var deserializeAws_restJson1UnprocessableEntityExceptionResponse = function (par
|
|
|
22593
22518
|
});
|
|
22594
22519
|
}); };
|
|
22595
22520
|
var serializeAws_restJson1AccountSettings = function (input, context) {
|
|
22596
|
-
return __assign(__assign({}, (input.DisableRemoteControl
|
|
22597
|
-
input.DisableRemoteControl !== null && { DisableRemoteControl: input.DisableRemoteControl })), (input.EnableDialOut !== undefined && input.EnableDialOut !== null && { EnableDialOut: input.EnableDialOut }));
|
|
22521
|
+
return __assign(__assign({}, (input.DisableRemoteControl != null && { DisableRemoteControl: input.DisableRemoteControl })), (input.EnableDialOut != null && { EnableDialOut: input.EnableDialOut }));
|
|
22598
22522
|
};
|
|
22599
22523
|
var serializeAws_restJson1AlexaForBusinessMetadata = function (input, context) {
|
|
22600
|
-
return __assign(__assign({}, (input.AlexaForBusinessRoomArn
|
|
22601
|
-
input.AlexaForBusinessRoomArn !== null && { AlexaForBusinessRoomArn: input.AlexaForBusinessRoomArn })), (input.IsAlexaForBusinessEnabled !== undefined &&
|
|
22602
|
-
input.IsAlexaForBusinessEnabled !== null && { IsAlexaForBusinessEnabled: input.IsAlexaForBusinessEnabled }));
|
|
22524
|
+
return __assign(__assign({}, (input.AlexaForBusinessRoomArn != null && { AlexaForBusinessRoomArn: input.AlexaForBusinessRoomArn })), (input.IsAlexaForBusinessEnabled != null && { IsAlexaForBusinessEnabled: input.IsAlexaForBusinessEnabled }));
|
|
22603
22525
|
};
|
|
22604
22526
|
var serializeAws_restJson1AppInstanceRetentionSettings = function (input, context) {
|
|
22605
|
-
return __assign({}, (input.ChannelRetentionSettings
|
|
22606
|
-
input.ChannelRetentionSettings !== null && {
|
|
22527
|
+
return __assign({}, (input.ChannelRetentionSettings != null && {
|
|
22607
22528
|
ChannelRetentionSettings: serializeAws_restJson1ChannelRetentionSettings(input.ChannelRetentionSettings, context),
|
|
22608
22529
|
}));
|
|
22609
22530
|
};
|
|
22610
22531
|
var serializeAws_restJson1AppInstanceStreamingConfiguration = function (input, context) {
|
|
22611
|
-
return __assign(__assign({}, (input.AppInstanceDataType
|
|
22612
|
-
input.AppInstanceDataType !== null && { AppInstanceDataType: input.AppInstanceDataType })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
22532
|
+
return __assign(__assign({}, (input.AppInstanceDataType != null && { AppInstanceDataType: input.AppInstanceDataType })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
22613
22533
|
};
|
|
22614
22534
|
var serializeAws_restJson1AppInstanceStreamingConfigurationList = function (input, context) {
|
|
22615
22535
|
return input
|
|
@@ -22622,12 +22542,9 @@ var serializeAws_restJson1AppInstanceStreamingConfigurationList = function (inpu
|
|
|
22622
22542
|
});
|
|
22623
22543
|
};
|
|
22624
22544
|
var serializeAws_restJson1ArtifactsConfiguration = function (input, context) {
|
|
22625
|
-
return __assign(__assign(__assign({}, (input.Audio
|
|
22626
|
-
input.Audio !== null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) })), (input.Content !== undefined &&
|
|
22627
|
-
input.Content !== null && {
|
|
22545
|
+
return __assign(__assign(__assign({}, (input.Audio != null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) })), (input.Content != null && {
|
|
22628
22546
|
Content: serializeAws_restJson1ContentArtifactsConfiguration(input.Content, context),
|
|
22629
|
-
})), (input.Video
|
|
22630
|
-
input.Video !== null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }));
|
|
22547
|
+
})), (input.Video != null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }));
|
|
22631
22548
|
};
|
|
22632
22549
|
var serializeAws_restJson1AttendeeIdList = function (input, context) {
|
|
22633
22550
|
return input
|
|
@@ -22660,10 +22577,10 @@ var serializeAws_restJson1AttendeeTagList = function (input, context) {
|
|
|
22660
22577
|
});
|
|
22661
22578
|
};
|
|
22662
22579
|
var serializeAws_restJson1AudioArtifactsConfiguration = function (input, context) {
|
|
22663
|
-
return __assign({}, (input.MuxType
|
|
22580
|
+
return __assign({}, (input.MuxType != null && { MuxType: input.MuxType }));
|
|
22664
22581
|
};
|
|
22665
22582
|
var serializeAws_restJson1BusinessCallingSettings = function (input, context) {
|
|
22666
|
-
return __assign({}, (input.CdrBucket
|
|
22583
|
+
return __assign({}, (input.CdrBucket != null && { CdrBucket: input.CdrBucket }));
|
|
22667
22584
|
};
|
|
22668
22585
|
var serializeAws_restJson1CallingRegionList = function (input, context) {
|
|
22669
22586
|
return input
|
|
@@ -22686,22 +22603,20 @@ var serializeAws_restJson1CapabilityList = function (input, context) {
|
|
|
22686
22603
|
});
|
|
22687
22604
|
};
|
|
22688
22605
|
var serializeAws_restJson1ChannelRetentionSettings = function (input, context) {
|
|
22689
|
-
return __assign({}, (input.RetentionDays
|
|
22606
|
+
return __assign({}, (input.RetentionDays != null && { RetentionDays: input.RetentionDays }));
|
|
22690
22607
|
};
|
|
22691
22608
|
var serializeAws_restJson1ChimeSdkMeetingConfiguration = function (input, context) {
|
|
22692
|
-
return __assign(__assign({}, (input.ArtifactsConfiguration
|
|
22693
|
-
input.ArtifactsConfiguration !== null && {
|
|
22609
|
+
return __assign(__assign({}, (input.ArtifactsConfiguration != null && {
|
|
22694
22610
|
ArtifactsConfiguration: serializeAws_restJson1ArtifactsConfiguration(input.ArtifactsConfiguration, context),
|
|
22695
|
-
})), (input.SourceConfiguration
|
|
22696
|
-
input.SourceConfiguration !== null && {
|
|
22611
|
+
})), (input.SourceConfiguration != null && {
|
|
22697
22612
|
SourceConfiguration: serializeAws_restJson1SourceConfiguration(input.SourceConfiguration, context),
|
|
22698
22613
|
}));
|
|
22699
22614
|
};
|
|
22700
22615
|
var serializeAws_restJson1ContentArtifactsConfiguration = function (input, context) {
|
|
22701
|
-
return __assign(__assign({}, (input.MuxType
|
|
22616
|
+
return __assign(__assign({}, (input.MuxType != null && { MuxType: input.MuxType })), (input.State != null && { State: input.State }));
|
|
22702
22617
|
};
|
|
22703
22618
|
var serializeAws_restJson1ConversationRetentionSettings = function (input, context) {
|
|
22704
|
-
return __assign({}, (input.RetentionDays
|
|
22619
|
+
return __assign({}, (input.RetentionDays != null && { RetentionDays: input.RetentionDays }));
|
|
22705
22620
|
};
|
|
22706
22621
|
var serializeAws_restJson1CountryList = function (input, context) {
|
|
22707
22622
|
return input
|
|
@@ -22714,9 +22629,7 @@ var serializeAws_restJson1CountryList = function (input, context) {
|
|
|
22714
22629
|
});
|
|
22715
22630
|
};
|
|
22716
22631
|
var serializeAws_restJson1CreateAttendeeRequestItem = function (input, context) {
|
|
22717
|
-
return __assign(__assign({}, (input.ExternalUserId
|
|
22718
|
-
input.ExternalUserId !== null && { ExternalUserId: input.ExternalUserId })), (input.Tags !== undefined &&
|
|
22719
|
-
input.Tags !== null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) }));
|
|
22632
|
+
return __assign(__assign({}, (input.ExternalUserId != null && { ExternalUserId: input.ExternalUserId })), (input.Tags != null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) }));
|
|
22720
22633
|
};
|
|
22721
22634
|
var serializeAws_restJson1CreateAttendeeRequestItemList = function (input, context) {
|
|
22722
22635
|
return input
|
|
@@ -22739,7 +22652,7 @@ var serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList = function (
|
|
|
22739
22652
|
});
|
|
22740
22653
|
};
|
|
22741
22654
|
var serializeAws_restJson1Credential = function (input, context) {
|
|
22742
|
-
return __assign(__assign({}, (input.Password
|
|
22655
|
+
return __assign(__assign({}, (input.Password != null && { Password: input.Password })), (input.Username != null && { Username: input.Username }));
|
|
22743
22656
|
};
|
|
22744
22657
|
var serializeAws_restJson1CredentialList = function (input, context) {
|
|
22745
22658
|
return input
|
|
@@ -22752,10 +22665,7 @@ var serializeAws_restJson1CredentialList = function (input, context) {
|
|
|
22752
22665
|
});
|
|
22753
22666
|
};
|
|
22754
22667
|
var serializeAws_restJson1DNISEmergencyCallingConfiguration = function (input, context) {
|
|
22755
|
-
return __assign(__assign(__assign({}, (input.CallingCountry
|
|
22756
|
-
input.CallingCountry !== null && { CallingCountry: input.CallingCountry })), (input.EmergencyPhoneNumber !== undefined &&
|
|
22757
|
-
input.EmergencyPhoneNumber !== null && { EmergencyPhoneNumber: input.EmergencyPhoneNumber })), (input.TestPhoneNumber !== undefined &&
|
|
22758
|
-
input.TestPhoneNumber !== null && { TestPhoneNumber: input.TestPhoneNumber }));
|
|
22668
|
+
return __assign(__assign(__assign({}, (input.CallingCountry != null && { CallingCountry: input.CallingCountry })), (input.EmergencyPhoneNumber != null && { EmergencyPhoneNumber: input.EmergencyPhoneNumber })), (input.TestPhoneNumber != null && { TestPhoneNumber: input.TestPhoneNumber }));
|
|
22759
22669
|
};
|
|
22760
22670
|
var serializeAws_restJson1DNISEmergencyCallingConfigurationList = function (input, context) {
|
|
22761
22671
|
return input
|
|
@@ -22778,29 +22688,17 @@ var serializeAws_restJson1E164PhoneNumberList = function (input, context) {
|
|
|
22778
22688
|
});
|
|
22779
22689
|
};
|
|
22780
22690
|
var serializeAws_restJson1EmergencyCallingConfiguration = function (input, context) {
|
|
22781
|
-
return __assign({}, (input.DNIS
|
|
22782
|
-
input.DNIS !== null && {
|
|
22691
|
+
return __assign({}, (input.DNIS != null && {
|
|
22783
22692
|
DNIS: serializeAws_restJson1DNISEmergencyCallingConfigurationList(input.DNIS, context),
|
|
22784
22693
|
}));
|
|
22785
22694
|
};
|
|
22786
22695
|
var serializeAws_restJson1EngineTranscribeMedicalSettings = function (input, context) {
|
|
22787
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContentIdentificationType
|
|
22788
|
-
input.ContentIdentificationType !== null && { ContentIdentificationType: input.ContentIdentificationType })), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.Region !== undefined && input.Region !== null && { Region: input.Region })), (input.Specialty !== undefined && input.Specialty !== null && { Specialty: input.Specialty })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.VocabularyName !== undefined &&
|
|
22789
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }));
|
|
22696
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Region != null && { Region: input.Region })), (input.Specialty != null && { Specialty: input.Specialty })), (input.Type != null && { Type: input.Type })), (input.VocabularyName != null && { VocabularyName: input.VocabularyName }));
|
|
22790
22697
|
};
|
|
22791
22698
|
var serializeAws_restJson1EngineTranscribeSettings = function (input, context) {
|
|
22792
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContentIdentificationType
|
|
22793
|
-
input.ContentIdentificationType !== null && { ContentIdentificationType: input.ContentIdentificationType })), (input.ContentRedactionType !== undefined &&
|
|
22794
|
-
input.ContentRedactionType !== null && { ContentRedactionType: input.ContentRedactionType })), (input.EnablePartialResultsStabilization !== undefined &&
|
|
22795
|
-
input.EnablePartialResultsStabilization !== null && {
|
|
22699
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType })), (input.ContentRedactionType != null && { ContentRedactionType: input.ContentRedactionType })), (input.EnablePartialResultsStabilization != null && {
|
|
22796
22700
|
EnablePartialResultsStabilization: input.EnablePartialResultsStabilization,
|
|
22797
|
-
})), (input.LanguageCode
|
|
22798
|
-
input.LanguageModelName !== null && { LanguageModelName: input.LanguageModelName })), (input.PartialResultsStability !== undefined &&
|
|
22799
|
-
input.PartialResultsStability !== null && { PartialResultsStability: input.PartialResultsStability })), (input.PiiEntityTypes !== undefined &&
|
|
22800
|
-
input.PiiEntityTypes !== null && { PiiEntityTypes: input.PiiEntityTypes })), (input.Region !== undefined && input.Region !== null && { Region: input.Region })), (input.VocabularyFilterMethod !== undefined &&
|
|
22801
|
-
input.VocabularyFilterMethod !== null && { VocabularyFilterMethod: input.VocabularyFilterMethod })), (input.VocabularyFilterName !== undefined &&
|
|
22802
|
-
input.VocabularyFilterName !== null && { VocabularyFilterName: input.VocabularyFilterName })), (input.VocabularyName !== undefined &&
|
|
22803
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }));
|
|
22701
|
+
})), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName })), (input.PartialResultsStability != null && { PartialResultsStability: input.PartialResultsStability })), (input.PiiEntityTypes != null && { PiiEntityTypes: input.PiiEntityTypes })), (input.Region != null && { Region: input.Region })), (input.VocabularyFilterMethod != null && { VocabularyFilterMethod: input.VocabularyFilterMethod })), (input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName })), (input.VocabularyName != null && { VocabularyName: input.VocabularyName }));
|
|
22804
22702
|
};
|
|
22805
22703
|
var serializeAws_restJson1ExternalUserIdList = function (input, context) {
|
|
22806
22704
|
return input
|
|
@@ -22813,14 +22711,13 @@ var serializeAws_restJson1ExternalUserIdList = function (input, context) {
|
|
|
22813
22711
|
});
|
|
22814
22712
|
};
|
|
22815
22713
|
var serializeAws_restJson1GeoMatchParams = function (input, context) {
|
|
22816
|
-
return __assign(__assign({}, (input.AreaCode
|
|
22714
|
+
return __assign(__assign({}, (input.AreaCode != null && { AreaCode: input.AreaCode })), (input.Country != null && { Country: input.Country }));
|
|
22817
22715
|
};
|
|
22818
22716
|
var serializeAws_restJson1LoggingConfiguration = function (input, context) {
|
|
22819
|
-
return __assign(__assign({}, (input.EnableMediaMetricLogs
|
|
22820
|
-
input.EnableMediaMetricLogs !== null && { EnableMediaMetricLogs: input.EnableMediaMetricLogs })), (input.EnableSIPLogs !== undefined && input.EnableSIPLogs !== null && { EnableSIPLogs: input.EnableSIPLogs }));
|
|
22717
|
+
return __assign(__assign({}, (input.EnableMediaMetricLogs != null && { EnableMediaMetricLogs: input.EnableMediaMetricLogs })), (input.EnableSIPLogs != null && { EnableSIPLogs: input.EnableSIPLogs }));
|
|
22821
22718
|
};
|
|
22822
22719
|
var serializeAws_restJson1MeetingNotificationConfiguration = function (input, context) {
|
|
22823
|
-
return __assign(__assign({}, (input.SnsTopicArn
|
|
22720
|
+
return __assign(__assign({}, (input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn })), (input.SqsQueueArn != null && { SqsQueueArn: input.SqsQueueArn }));
|
|
22824
22721
|
};
|
|
22825
22722
|
var serializeAws_restJson1MeetingTagKeyList = function (input, context) {
|
|
22826
22723
|
return input
|
|
@@ -22853,7 +22750,7 @@ var serializeAws_restJson1MemberArns = function (input, context) {
|
|
|
22853
22750
|
});
|
|
22854
22751
|
};
|
|
22855
22752
|
var serializeAws_restJson1MembershipItem = function (input, context) {
|
|
22856
|
-
return __assign(__assign({}, (input.MemberId
|
|
22753
|
+
return __assign(__assign({}, (input.MemberId != null && { MemberId: input.MemberId })), (input.Role != null && { Role: input.Role }));
|
|
22857
22754
|
};
|
|
22858
22755
|
var serializeAws_restJson1MembershipItemList = function (input, context) {
|
|
22859
22756
|
return input
|
|
@@ -22876,11 +22773,10 @@ var serializeAws_restJson1NonEmptyStringList = function (input, context) {
|
|
|
22876
22773
|
});
|
|
22877
22774
|
};
|
|
22878
22775
|
var serializeAws_restJson1Origination = function (input, context) {
|
|
22879
|
-
return __assign(__assign({}, (input.Disabled
|
|
22880
|
-
input.Routes !== null && { Routes: serializeAws_restJson1OriginationRouteList(input.Routes, context) }));
|
|
22776
|
+
return __assign(__assign({}, (input.Disabled != null && { Disabled: input.Disabled })), (input.Routes != null && { Routes: serializeAws_restJson1OriginationRouteList(input.Routes, context) }));
|
|
22881
22777
|
};
|
|
22882
22778
|
var serializeAws_restJson1OriginationRoute = function (input, context) {
|
|
22883
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Host
|
|
22779
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Host != null && { Host: input.Host })), (input.Port != null && { Port: input.Port })), (input.Priority != null && { Priority: input.Priority })), (input.Protocol != null && { Protocol: input.Protocol })), (input.Weight != null && { Weight: input.Weight }));
|
|
22884
22780
|
};
|
|
22885
22781
|
var serializeAws_restJson1OriginationRouteList = function (input, context) {
|
|
22886
22782
|
return input
|
|
@@ -22903,21 +22799,17 @@ var serializeAws_restJson1ParticipantPhoneNumberList = function (input, context)
|
|
|
22903
22799
|
});
|
|
22904
22800
|
};
|
|
22905
22801
|
var serializeAws_restJson1RetentionSettings = function (input, context) {
|
|
22906
|
-
return __assign(__assign({}, (input.ConversationRetentionSettings
|
|
22907
|
-
input.ConversationRetentionSettings !== null && {
|
|
22802
|
+
return __assign(__assign({}, (input.ConversationRetentionSettings != null && {
|
|
22908
22803
|
ConversationRetentionSettings: serializeAws_restJson1ConversationRetentionSettings(input.ConversationRetentionSettings, context),
|
|
22909
|
-
})), (input.RoomRetentionSettings
|
|
22910
|
-
input.RoomRetentionSettings !== null && {
|
|
22804
|
+
})), (input.RoomRetentionSettings != null && {
|
|
22911
22805
|
RoomRetentionSettings: serializeAws_restJson1RoomRetentionSettings(input.RoomRetentionSettings, context),
|
|
22912
22806
|
}));
|
|
22913
22807
|
};
|
|
22914
22808
|
var serializeAws_restJson1RoomRetentionSettings = function (input, context) {
|
|
22915
|
-
return __assign({}, (input.RetentionDays
|
|
22809
|
+
return __assign({}, (input.RetentionDays != null && { RetentionDays: input.RetentionDays }));
|
|
22916
22810
|
};
|
|
22917
22811
|
var serializeAws_restJson1SelectedVideoStreams = function (input, context) {
|
|
22918
|
-
return __assign(__assign({}, (input.AttendeeIds
|
|
22919
|
-
input.AttendeeIds !== null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) })), (input.ExternalUserIds !== undefined &&
|
|
22920
|
-
input.ExternalUserIds !== null && {
|
|
22812
|
+
return __assign(__assign({}, (input.AttendeeIds != null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) })), (input.ExternalUserIds != null && {
|
|
22921
22813
|
ExternalUserIds: serializeAws_restJson1ExternalUserIdList(input.ExternalUserIds, context),
|
|
22922
22814
|
}));
|
|
22923
22815
|
};
|
|
@@ -22932,7 +22824,7 @@ var serializeAws_restJson1SensitiveStringList = function (input, context) {
|
|
|
22932
22824
|
});
|
|
22933
22825
|
};
|
|
22934
22826
|
var serializeAws_restJson1SigninDelegateGroup = function (input, context) {
|
|
22935
|
-
return __assign({}, (input.GroupName
|
|
22827
|
+
return __assign({}, (input.GroupName != null && { GroupName: input.GroupName }));
|
|
22936
22828
|
};
|
|
22937
22829
|
var serializeAws_restJson1SigninDelegateGroupList = function (input, context) {
|
|
22938
22830
|
return input
|
|
@@ -22955,7 +22847,7 @@ var serializeAws_restJson1SipHeadersMap = function (input, context) {
|
|
|
22955
22847
|
}, {});
|
|
22956
22848
|
};
|
|
22957
22849
|
var serializeAws_restJson1SipMediaApplicationEndpoint = function (input, context) {
|
|
22958
|
-
return __assign({}, (input.LambdaArn
|
|
22850
|
+
return __assign({}, (input.LambdaArn != null && { LambdaArn: input.LambdaArn }));
|
|
22959
22851
|
};
|
|
22960
22852
|
var serializeAws_restJson1SipMediaApplicationEndpointList = function (input, context) {
|
|
22961
22853
|
return input
|
|
@@ -22968,14 +22860,12 @@ var serializeAws_restJson1SipMediaApplicationEndpointList = function (input, con
|
|
|
22968
22860
|
});
|
|
22969
22861
|
};
|
|
22970
22862
|
var serializeAws_restJson1SipMediaApplicationLoggingConfiguration = function (input, context) {
|
|
22971
|
-
return __assign({}, (input.EnableSipMediaApplicationMessageLogs
|
|
22972
|
-
input.EnableSipMediaApplicationMessageLogs !== null && {
|
|
22863
|
+
return __assign({}, (input.EnableSipMediaApplicationMessageLogs != null && {
|
|
22973
22864
|
EnableSipMediaApplicationMessageLogs: input.EnableSipMediaApplicationMessageLogs,
|
|
22974
22865
|
}));
|
|
22975
22866
|
};
|
|
22976
22867
|
var serializeAws_restJson1SipRuleTargetApplication = function (input, context) {
|
|
22977
|
-
return __assign(__assign(__assign({}, (input.AwsRegion
|
|
22978
|
-
input.SipMediaApplicationId !== null && { SipMediaApplicationId: input.SipMediaApplicationId }));
|
|
22868
|
+
return __assign(__assign(__assign({}, (input.AwsRegion != null && { AwsRegion: input.AwsRegion })), (input.Priority != null && { Priority: input.Priority })), (input.SipMediaApplicationId != null && { SipMediaApplicationId: input.SipMediaApplicationId }));
|
|
22979
22869
|
};
|
|
22980
22870
|
var serializeAws_restJson1SipRuleTargetApplicationList = function (input, context) {
|
|
22981
22871
|
return input
|
|
@@ -22998,21 +22888,17 @@ var serializeAws_restJson1SMAUpdateCallArgumentsMap = function (input, context)
|
|
|
22998
22888
|
}, {});
|
|
22999
22889
|
};
|
|
23000
22890
|
var serializeAws_restJson1SourceConfiguration = function (input, context) {
|
|
23001
|
-
return __assign({}, (input.SelectedVideoStreams
|
|
23002
|
-
input.SelectedVideoStreams !== null && {
|
|
22891
|
+
return __assign({}, (input.SelectedVideoStreams != null && {
|
|
23003
22892
|
SelectedVideoStreams: serializeAws_restJson1SelectedVideoStreams(input.SelectedVideoStreams, context),
|
|
23004
22893
|
}));
|
|
23005
22894
|
};
|
|
23006
22895
|
var serializeAws_restJson1StreamingConfiguration = function (input, context) {
|
|
23007
|
-
return __assign(__assign(__assign({}, (input.DataRetentionInHours
|
|
23008
|
-
input.DataRetentionInHours !== null && { DataRetentionInHours: input.DataRetentionInHours })), (input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled })), (input.StreamingNotificationTargets !== undefined &&
|
|
23009
|
-
input.StreamingNotificationTargets !== null && {
|
|
22896
|
+
return __assign(__assign(__assign({}, (input.DataRetentionInHours != null && { DataRetentionInHours: input.DataRetentionInHours })), (input.Disabled != null && { Disabled: input.Disabled })), (input.StreamingNotificationTargets != null && {
|
|
23010
22897
|
StreamingNotificationTargets: serializeAws_restJson1StreamingNotificationTargetList(input.StreamingNotificationTargets, context),
|
|
23011
22898
|
}));
|
|
23012
22899
|
};
|
|
23013
22900
|
var serializeAws_restJson1StreamingNotificationTarget = function (input, context) {
|
|
23014
|
-
return __assign({}, (input.NotificationTarget
|
|
23015
|
-
input.NotificationTarget !== null && { NotificationTarget: input.NotificationTarget }));
|
|
22901
|
+
return __assign({}, (input.NotificationTarget != null && { NotificationTarget: input.NotificationTarget }));
|
|
23016
22902
|
};
|
|
23017
22903
|
var serializeAws_restJson1StreamingNotificationTargetList = function (input, context) {
|
|
23018
22904
|
return input
|
|
@@ -23035,7 +22921,7 @@ var serializeAws_restJson1StringList = function (input, context) {
|
|
|
23035
22921
|
});
|
|
23036
22922
|
};
|
|
23037
22923
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
23038
|
-
return __assign(__assign({}, (input.Key
|
|
22924
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
23039
22925
|
};
|
|
23040
22926
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
23041
22927
|
return input
|
|
@@ -23058,31 +22944,24 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
23058
22944
|
});
|
|
23059
22945
|
};
|
|
23060
22946
|
var serializeAws_restJson1TelephonySettings = function (input, context) {
|
|
23061
|
-
return __assign(__assign(__assign({}, (input.InboundCalling
|
|
23062
|
-
input.InboundCalling !== null && { InboundCalling: input.InboundCalling })), (input.OutboundCalling !== undefined &&
|
|
23063
|
-
input.OutboundCalling !== null && { OutboundCalling: input.OutboundCalling })), (input.SMS !== undefined && input.SMS !== null && { SMS: input.SMS }));
|
|
22947
|
+
return __assign(__assign(__assign({}, (input.InboundCalling != null && { InboundCalling: input.InboundCalling })), (input.OutboundCalling != null && { OutboundCalling: input.OutboundCalling })), (input.SMS != null && { SMS: input.SMS }));
|
|
23064
22948
|
};
|
|
23065
22949
|
var serializeAws_restJson1Termination = function (input, context) {
|
|
23066
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CallingRegions
|
|
23067
|
-
input.CallingRegions !== null && {
|
|
22950
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.CallingRegions != null && {
|
|
23068
22951
|
CallingRegions: serializeAws_restJson1CallingRegionList(input.CallingRegions, context),
|
|
23069
|
-
})), (input.CidrAllowedList
|
|
23070
|
-
input.CidrAllowedList !== null && {
|
|
22952
|
+
})), (input.CidrAllowedList != null && {
|
|
23071
22953
|
CidrAllowedList: serializeAws_restJson1StringList(input.CidrAllowedList, context),
|
|
23072
|
-
})), (input.CpsLimit
|
|
23073
|
-
input.DefaultPhoneNumber !== null && { DefaultPhoneNumber: input.DefaultPhoneNumber })), (input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled }));
|
|
22954
|
+
})), (input.CpsLimit != null && { CpsLimit: input.CpsLimit })), (input.DefaultPhoneNumber != null && { DefaultPhoneNumber: input.DefaultPhoneNumber })), (input.Disabled != null && { Disabled: input.Disabled }));
|
|
23074
22955
|
};
|
|
23075
22956
|
var serializeAws_restJson1TranscriptionConfiguration = function (input, context) {
|
|
23076
|
-
return __assign(__assign({}, (input.EngineTranscribeMedicalSettings
|
|
23077
|
-
input.EngineTranscribeMedicalSettings !== null && {
|
|
22957
|
+
return __assign(__assign({}, (input.EngineTranscribeMedicalSettings != null && {
|
|
23078
22958
|
EngineTranscribeMedicalSettings: serializeAws_restJson1EngineTranscribeMedicalSettings(input.EngineTranscribeMedicalSettings, context),
|
|
23079
|
-
})), (input.EngineTranscribeSettings
|
|
23080
|
-
input.EngineTranscribeSettings !== null && {
|
|
22959
|
+
})), (input.EngineTranscribeSettings != null && {
|
|
23081
22960
|
EngineTranscribeSettings: serializeAws_restJson1EngineTranscribeSettings(input.EngineTranscribeSettings, context),
|
|
23082
22961
|
}));
|
|
23083
22962
|
};
|
|
23084
22963
|
var serializeAws_restJson1UpdatePhoneNumberRequestItem = function (input, context) {
|
|
23085
|
-
return __assign(__assign(__assign({}, (input.CallingName
|
|
22964
|
+
return __assign(__assign(__assign({}, (input.CallingName != null && { CallingName: input.CallingName })), (input.PhoneNumberId != null && { PhoneNumberId: input.PhoneNumberId })), (input.ProductType != null && { ProductType: input.ProductType }));
|
|
23086
22965
|
};
|
|
23087
22966
|
var serializeAws_restJson1UpdatePhoneNumberRequestItemList = function (input, context) {
|
|
23088
22967
|
return input
|
|
@@ -23095,10 +22974,9 @@ var serializeAws_restJson1UpdatePhoneNumberRequestItemList = function (input, co
|
|
|
23095
22974
|
});
|
|
23096
22975
|
};
|
|
23097
22976
|
var serializeAws_restJson1UpdateUserRequestItem = function (input, context) {
|
|
23098
|
-
return __assign(__assign(__assign(__assign({}, (input.AlexaForBusinessMetadata
|
|
23099
|
-
input.AlexaForBusinessMetadata !== null && {
|
|
22977
|
+
return __assign(__assign(__assign(__assign({}, (input.AlexaForBusinessMetadata != null && {
|
|
23100
22978
|
AlexaForBusinessMetadata: serializeAws_restJson1AlexaForBusinessMetadata(input.AlexaForBusinessMetadata, context),
|
|
23101
|
-
})), (input.LicenseType
|
|
22979
|
+
})), (input.LicenseType != null && { LicenseType: input.LicenseType })), (input.UserId != null && { UserId: input.UserId })), (input.UserType != null && { UserType: input.UserType }));
|
|
23102
22980
|
};
|
|
23103
22981
|
var serializeAws_restJson1UpdateUserRequestItemList = function (input, context) {
|
|
23104
22982
|
return input
|
|
@@ -23131,15 +23009,13 @@ var serializeAws_restJson1UserIdList = function (input, context) {
|
|
|
23131
23009
|
});
|
|
23132
23010
|
};
|
|
23133
23011
|
var serializeAws_restJson1UserSettings = function (input, context) {
|
|
23134
|
-
return __assign({}, (input.Telephony
|
|
23135
|
-
input.Telephony !== null && { Telephony: serializeAws_restJson1TelephonySettings(input.Telephony, context) }));
|
|
23012
|
+
return __assign({}, (input.Telephony != null && { Telephony: serializeAws_restJson1TelephonySettings(input.Telephony, context) }));
|
|
23136
23013
|
};
|
|
23137
23014
|
var serializeAws_restJson1VideoArtifactsConfiguration = function (input, context) {
|
|
23138
|
-
return __assign(__assign({}, (input.MuxType
|
|
23015
|
+
return __assign(__assign({}, (input.MuxType != null && { MuxType: input.MuxType })), (input.State != null && { State: input.State }));
|
|
23139
23016
|
};
|
|
23140
23017
|
var serializeAws_restJson1VoiceConnectorItem = function (input, context) {
|
|
23141
|
-
return __assign(__assign({}, (input.Priority
|
|
23142
|
-
input.VoiceConnectorId !== null && { VoiceConnectorId: input.VoiceConnectorId }));
|
|
23018
|
+
return __assign(__assign({}, (input.Priority != null && { Priority: input.Priority })), (input.VoiceConnectorId != null && { VoiceConnectorId: input.VoiceConnectorId }));
|
|
23143
23019
|
};
|
|
23144
23020
|
var serializeAws_restJson1VoiceConnectorItemList = function (input, context) {
|
|
23145
23021
|
return input
|
|
@@ -23152,7 +23028,7 @@ var serializeAws_restJson1VoiceConnectorItemList = function (input, context) {
|
|
|
23152
23028
|
});
|
|
23153
23029
|
};
|
|
23154
23030
|
var serializeAws_restJson1VoiceConnectorSettings = function (input, context) {
|
|
23155
|
-
return __assign({}, (input.CdrBucket
|
|
23031
|
+
return __assign({}, (input.CdrBucket != null && { CdrBucket: input.CdrBucket }));
|
|
23156
23032
|
};
|
|
23157
23033
|
var deserializeAws_restJson1Account = function (output, context) {
|
|
23158
23034
|
return {
|
|
@@ -23160,15 +23036,13 @@ var deserializeAws_restJson1Account = function (output, context) {
|
|
|
23160
23036
|
AccountStatus: __expectString(output.AccountStatus),
|
|
23161
23037
|
AccountType: __expectString(output.AccountType),
|
|
23162
23038
|
AwsAccountId: __expectString(output.AwsAccountId),
|
|
23163
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
23164
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
|
|
23165
|
-
: undefined,
|
|
23039
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
23166
23040
|
DefaultLicense: __expectString(output.DefaultLicense),
|
|
23167
23041
|
Name: __expectString(output.Name),
|
|
23168
|
-
SigninDelegateGroups: output.SigninDelegateGroups
|
|
23042
|
+
SigninDelegateGroups: output.SigninDelegateGroups != null
|
|
23169
23043
|
? deserializeAws_restJson1SigninDelegateGroupList(output.SigninDelegateGroups, context)
|
|
23170
23044
|
: undefined,
|
|
23171
|
-
SupportedLicenses: output.SupportedLicenses
|
|
23045
|
+
SupportedLicenses: output.SupportedLicenses != null
|
|
23172
23046
|
? deserializeAws_restJson1LicenseList(output.SupportedLicenses, context)
|
|
23173
23047
|
: undefined,
|
|
23174
23048
|
};
|
|
@@ -23199,10 +23073,10 @@ var deserializeAws_restJson1AlexaForBusinessMetadata = function (output, context
|
|
|
23199
23073
|
var deserializeAws_restJson1AppInstance = function (output, context) {
|
|
23200
23074
|
return {
|
|
23201
23075
|
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
23202
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
23076
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
23203
23077
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
23204
23078
|
: undefined,
|
|
23205
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
23079
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
23206
23080
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
23207
23081
|
: undefined,
|
|
23208
23082
|
Metadata: __expectString(output.Metadata),
|
|
@@ -23211,11 +23085,9 @@ var deserializeAws_restJson1AppInstance = function (output, context) {
|
|
|
23211
23085
|
};
|
|
23212
23086
|
var deserializeAws_restJson1AppInstanceAdmin = function (output, context) {
|
|
23213
23087
|
return {
|
|
23214
|
-
Admin: output.Admin
|
|
23215
|
-
? deserializeAws_restJson1Identity(output.Admin, context)
|
|
23216
|
-
: undefined,
|
|
23088
|
+
Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
|
|
23217
23089
|
AppInstanceArn: __expectString(output.AppInstanceArn),
|
|
23218
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
23090
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
23219
23091
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
23220
23092
|
: undefined,
|
|
23221
23093
|
};
|
|
@@ -23233,9 +23105,7 @@ var deserializeAws_restJson1AppInstanceAdminList = function (output, context) {
|
|
|
23233
23105
|
};
|
|
23234
23106
|
var deserializeAws_restJson1AppInstanceAdminSummary = function (output, context) {
|
|
23235
23107
|
return {
|
|
23236
|
-
Admin: output.Admin
|
|
23237
|
-
? deserializeAws_restJson1Identity(output.Admin, context)
|
|
23238
|
-
: undefined,
|
|
23108
|
+
Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
|
|
23239
23109
|
};
|
|
23240
23110
|
};
|
|
23241
23111
|
var deserializeAws_restJson1AppInstanceList = function (output, context) {
|
|
@@ -23251,7 +23121,7 @@ var deserializeAws_restJson1AppInstanceList = function (output, context) {
|
|
|
23251
23121
|
};
|
|
23252
23122
|
var deserializeAws_restJson1AppInstanceRetentionSettings = function (output, context) {
|
|
23253
23123
|
return {
|
|
23254
|
-
ChannelRetentionSettings: output.ChannelRetentionSettings
|
|
23124
|
+
ChannelRetentionSettings: output.ChannelRetentionSettings != null
|
|
23255
23125
|
? deserializeAws_restJson1ChannelRetentionSettings(output.ChannelRetentionSettings, context)
|
|
23256
23126
|
: undefined,
|
|
23257
23127
|
};
|
|
@@ -23283,10 +23153,10 @@ var deserializeAws_restJson1AppInstanceSummary = function (output, context) {
|
|
|
23283
23153
|
var deserializeAws_restJson1AppInstanceUser = function (output, context) {
|
|
23284
23154
|
return {
|
|
23285
23155
|
AppInstanceUserArn: __expectString(output.AppInstanceUserArn),
|
|
23286
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
23156
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
23287
23157
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
23288
23158
|
: undefined,
|
|
23289
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
23159
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
23290
23160
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
23291
23161
|
: undefined,
|
|
23292
23162
|
Metadata: __expectString(output.Metadata),
|
|
@@ -23306,7 +23176,7 @@ var deserializeAws_restJson1AppInstanceUserList = function (output, context) {
|
|
|
23306
23176
|
};
|
|
23307
23177
|
var deserializeAws_restJson1AppInstanceUserMembershipSummary = function (output, context) {
|
|
23308
23178
|
return {
|
|
23309
|
-
ReadMarkerTimestamp: output.ReadMarkerTimestamp
|
|
23179
|
+
ReadMarkerTimestamp: output.ReadMarkerTimestamp != null
|
|
23310
23180
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadMarkerTimestamp)))
|
|
23311
23181
|
: undefined,
|
|
23312
23182
|
Type: __expectString(output.Type),
|
|
@@ -23321,15 +23191,11 @@ var deserializeAws_restJson1AppInstanceUserSummary = function (output, context)
|
|
|
23321
23191
|
};
|
|
23322
23192
|
var deserializeAws_restJson1ArtifactsConfiguration = function (output, context) {
|
|
23323
23193
|
return {
|
|
23324
|
-
Audio: output.Audio
|
|
23325
|
-
|
|
23326
|
-
: undefined,
|
|
23327
|
-
Content: output.Content !== undefined && output.Content !== null
|
|
23194
|
+
Audio: output.Audio != null ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context) : undefined,
|
|
23195
|
+
Content: output.Content != null
|
|
23328
23196
|
? deserializeAws_restJson1ContentArtifactsConfiguration(output.Content, context)
|
|
23329
23197
|
: undefined,
|
|
23330
|
-
Video: output.Video
|
|
23331
|
-
? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context)
|
|
23332
|
-
: undefined,
|
|
23198
|
+
Video: output.Video != null ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context) : undefined,
|
|
23333
23199
|
};
|
|
23334
23200
|
};
|
|
23335
23201
|
var deserializeAws_restJson1Attendee = function (output, context) {
|
|
@@ -23369,12 +23235,8 @@ var deserializeAws_restJson1AudioArtifactsConfiguration = function (output, cont
|
|
|
23369
23235
|
var deserializeAws_restJson1BatchChannelMemberships = function (output, context) {
|
|
23370
23236
|
return {
|
|
23371
23237
|
ChannelArn: __expectString(output.ChannelArn),
|
|
23372
|
-
InvitedBy: output.InvitedBy
|
|
23373
|
-
|
|
23374
|
-
: undefined,
|
|
23375
|
-
Members: output.Members !== undefined && output.Members !== null
|
|
23376
|
-
? deserializeAws_restJson1Members(output.Members, context)
|
|
23377
|
-
: undefined,
|
|
23238
|
+
InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
|
|
23239
|
+
Members: output.Members != null ? deserializeAws_restJson1Members(output.Members, context) : undefined,
|
|
23378
23240
|
Type: __expectString(output.Type),
|
|
23379
23241
|
};
|
|
23380
23242
|
};
|
|
@@ -23412,15 +23274,11 @@ var deserializeAws_restJson1Bot = function (output, context) {
|
|
|
23412
23274
|
BotEmail: __expectString(output.BotEmail),
|
|
23413
23275
|
BotId: __expectString(output.BotId),
|
|
23414
23276
|
BotType: __expectString(output.BotType),
|
|
23415
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
23416
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
|
|
23417
|
-
: undefined,
|
|
23277
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
23418
23278
|
Disabled: __expectBoolean(output.Disabled),
|
|
23419
23279
|
DisplayName: __expectString(output.DisplayName),
|
|
23420
23280
|
SecurityToken: __expectString(output.SecurityToken),
|
|
23421
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
23422
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
23423
|
-
: undefined,
|
|
23281
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
23424
23282
|
UserId: __expectString(output.UserId),
|
|
23425
23283
|
};
|
|
23426
23284
|
};
|
|
@@ -23465,16 +23323,14 @@ var deserializeAws_restJson1CapabilityList = function (output, context) {
|
|
|
23465
23323
|
var deserializeAws_restJson1Channel = function (output, context) {
|
|
23466
23324
|
return {
|
|
23467
23325
|
ChannelArn: __expectString(output.ChannelArn),
|
|
23468
|
-
CreatedBy: output.CreatedBy
|
|
23469
|
-
|
|
23470
|
-
: undefined,
|
|
23471
|
-
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
23326
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
|
|
23327
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
23472
23328
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
23473
23329
|
: undefined,
|
|
23474
|
-
LastMessageTimestamp: output.LastMessageTimestamp
|
|
23330
|
+
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
23475
23331
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
23476
23332
|
: undefined,
|
|
23477
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
23333
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
23478
23334
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
23479
23335
|
: undefined,
|
|
23480
23336
|
Metadata: __expectString(output.Metadata),
|
|
@@ -23486,22 +23342,16 @@ var deserializeAws_restJson1Channel = function (output, context) {
|
|
|
23486
23342
|
var deserializeAws_restJson1ChannelBan = function (output, context) {
|
|
23487
23343
|
return {
|
|
23488
23344
|
ChannelArn: __expectString(output.ChannelArn),
|
|
23489
|
-
CreatedBy: output.CreatedBy
|
|
23490
|
-
|
|
23491
|
-
: undefined,
|
|
23492
|
-
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
23345
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
|
|
23346
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
23493
23347
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
23494
23348
|
: undefined,
|
|
23495
|
-
Member: output.Member
|
|
23496
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
23497
|
-
: undefined,
|
|
23349
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
23498
23350
|
};
|
|
23499
23351
|
};
|
|
23500
23352
|
var deserializeAws_restJson1ChannelBanSummary = function (output, context) {
|
|
23501
23353
|
return {
|
|
23502
|
-
Member: output.Member
|
|
23503
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
23504
|
-
: undefined,
|
|
23354
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
23505
23355
|
};
|
|
23506
23356
|
};
|
|
23507
23357
|
var deserializeAws_restJson1ChannelBanSummaryList = function (output, context) {
|
|
@@ -23518,27 +23368,23 @@ var deserializeAws_restJson1ChannelBanSummaryList = function (output, context) {
|
|
|
23518
23368
|
var deserializeAws_restJson1ChannelMembership = function (output, context) {
|
|
23519
23369
|
return {
|
|
23520
23370
|
ChannelArn: __expectString(output.ChannelArn),
|
|
23521
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
23371
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
23522
23372
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
23523
23373
|
: undefined,
|
|
23524
|
-
InvitedBy: output.InvitedBy
|
|
23525
|
-
|
|
23526
|
-
: undefined,
|
|
23527
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
23374
|
+
InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
|
|
23375
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
23528
23376
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
23529
23377
|
: undefined,
|
|
23530
|
-
Member: output.Member
|
|
23531
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
23532
|
-
: undefined,
|
|
23378
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
23533
23379
|
Type: __expectString(output.Type),
|
|
23534
23380
|
};
|
|
23535
23381
|
};
|
|
23536
23382
|
var deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary = function (output, context) {
|
|
23537
23383
|
return {
|
|
23538
|
-
AppInstanceUserMembershipSummary: output.AppInstanceUserMembershipSummary
|
|
23384
|
+
AppInstanceUserMembershipSummary: output.AppInstanceUserMembershipSummary != null
|
|
23539
23385
|
? deserializeAws_restJson1AppInstanceUserMembershipSummary(output.AppInstanceUserMembershipSummary, context)
|
|
23540
23386
|
: undefined,
|
|
23541
|
-
ChannelSummary: output.ChannelSummary
|
|
23387
|
+
ChannelSummary: output.ChannelSummary != null
|
|
23542
23388
|
? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
|
|
23543
23389
|
: undefined,
|
|
23544
23390
|
};
|
|
@@ -23556,9 +23402,7 @@ var deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList = fun
|
|
|
23556
23402
|
};
|
|
23557
23403
|
var deserializeAws_restJson1ChannelMembershipSummary = function (output, context) {
|
|
23558
23404
|
return {
|
|
23559
|
-
Member: output.Member
|
|
23560
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
23561
|
-
: undefined,
|
|
23405
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
23562
23406
|
};
|
|
23563
23407
|
};
|
|
23564
23408
|
var deserializeAws_restJson1ChannelMembershipSummaryList = function (output, context) {
|
|
@@ -23576,43 +23420,39 @@ var deserializeAws_restJson1ChannelMessage = function (output, context) {
|
|
|
23576
23420
|
return {
|
|
23577
23421
|
ChannelArn: __expectString(output.ChannelArn),
|
|
23578
23422
|
Content: __expectString(output.Content),
|
|
23579
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
23423
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
23580
23424
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
23581
23425
|
: undefined,
|
|
23582
|
-
LastEditedTimestamp: output.LastEditedTimestamp
|
|
23426
|
+
LastEditedTimestamp: output.LastEditedTimestamp != null
|
|
23583
23427
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
|
|
23584
23428
|
: undefined,
|
|
23585
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
23429
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
23586
23430
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
23587
23431
|
: undefined,
|
|
23588
23432
|
MessageId: __expectString(output.MessageId),
|
|
23589
23433
|
Metadata: __expectString(output.Metadata),
|
|
23590
23434
|
Persistence: __expectString(output.Persistence),
|
|
23591
23435
|
Redacted: __expectBoolean(output.Redacted),
|
|
23592
|
-
Sender: output.Sender
|
|
23593
|
-
? deserializeAws_restJson1Identity(output.Sender, context)
|
|
23594
|
-
: undefined,
|
|
23436
|
+
Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
|
|
23595
23437
|
Type: __expectString(output.Type),
|
|
23596
23438
|
};
|
|
23597
23439
|
};
|
|
23598
23440
|
var deserializeAws_restJson1ChannelMessageSummary = function (output, context) {
|
|
23599
23441
|
return {
|
|
23600
23442
|
Content: __expectString(output.Content),
|
|
23601
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
23443
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
23602
23444
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
23603
23445
|
: undefined,
|
|
23604
|
-
LastEditedTimestamp: output.LastEditedTimestamp
|
|
23446
|
+
LastEditedTimestamp: output.LastEditedTimestamp != null
|
|
23605
23447
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
|
|
23606
23448
|
: undefined,
|
|
23607
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
23449
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
23608
23450
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
23609
23451
|
: undefined,
|
|
23610
23452
|
MessageId: __expectString(output.MessageId),
|
|
23611
23453
|
Metadata: __expectString(output.Metadata),
|
|
23612
23454
|
Redacted: __expectBoolean(output.Redacted),
|
|
23613
|
-
Sender: output.Sender
|
|
23614
|
-
? deserializeAws_restJson1Identity(output.Sender, context)
|
|
23615
|
-
: undefined,
|
|
23455
|
+
Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
|
|
23616
23456
|
Type: __expectString(output.Type),
|
|
23617
23457
|
};
|
|
23618
23458
|
};
|
|
@@ -23629,7 +23469,7 @@ var deserializeAws_restJson1ChannelMessageSummaryList = function (output, contex
|
|
|
23629
23469
|
};
|
|
23630
23470
|
var deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary = function (output, context) {
|
|
23631
23471
|
return {
|
|
23632
|
-
ChannelSummary: output.ChannelSummary
|
|
23472
|
+
ChannelSummary: output.ChannelSummary != null
|
|
23633
23473
|
? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
|
|
23634
23474
|
: undefined,
|
|
23635
23475
|
};
|
|
@@ -23648,22 +23488,16 @@ var deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = funct
|
|
|
23648
23488
|
var deserializeAws_restJson1ChannelModerator = function (output, context) {
|
|
23649
23489
|
return {
|
|
23650
23490
|
ChannelArn: __expectString(output.ChannelArn),
|
|
23651
|
-
CreatedBy: output.CreatedBy
|
|
23652
|
-
|
|
23653
|
-
: undefined,
|
|
23654
|
-
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
23491
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
|
|
23492
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
23655
23493
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
23656
23494
|
: undefined,
|
|
23657
|
-
Moderator: output.Moderator
|
|
23658
|
-
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
23659
|
-
: undefined,
|
|
23495
|
+
Moderator: output.Moderator != null ? deserializeAws_restJson1Identity(output.Moderator, context) : undefined,
|
|
23660
23496
|
};
|
|
23661
23497
|
};
|
|
23662
23498
|
var deserializeAws_restJson1ChannelModeratorSummary = function (output, context) {
|
|
23663
23499
|
return {
|
|
23664
|
-
Moderator: output.Moderator
|
|
23665
|
-
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
23666
|
-
: undefined,
|
|
23500
|
+
Moderator: output.Moderator != null ? deserializeAws_restJson1Identity(output.Moderator, context) : undefined,
|
|
23667
23501
|
};
|
|
23668
23502
|
};
|
|
23669
23503
|
var deserializeAws_restJson1ChannelModeratorSummaryList = function (output, context) {
|
|
@@ -23685,7 +23519,7 @@ var deserializeAws_restJson1ChannelRetentionSettings = function (output, context
|
|
|
23685
23519
|
var deserializeAws_restJson1ChannelSummary = function (output, context) {
|
|
23686
23520
|
return {
|
|
23687
23521
|
ChannelArn: __expectString(output.ChannelArn),
|
|
23688
|
-
LastMessageTimestamp: output.LastMessageTimestamp
|
|
23522
|
+
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
23689
23523
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
23690
23524
|
: undefined,
|
|
23691
23525
|
Metadata: __expectString(output.Metadata),
|
|
@@ -23707,10 +23541,10 @@ var deserializeAws_restJson1ChannelSummaryList = function (output, context) {
|
|
|
23707
23541
|
};
|
|
23708
23542
|
var deserializeAws_restJson1ChimeSdkMeetingConfiguration = function (output, context) {
|
|
23709
23543
|
return {
|
|
23710
|
-
ArtifactsConfiguration: output.ArtifactsConfiguration
|
|
23544
|
+
ArtifactsConfiguration: output.ArtifactsConfiguration != null
|
|
23711
23545
|
? deserializeAws_restJson1ArtifactsConfiguration(output.ArtifactsConfiguration, context)
|
|
23712
23546
|
: undefined,
|
|
23713
|
-
SourceConfiguration: output.SourceConfiguration
|
|
23547
|
+
SourceConfiguration: output.SourceConfiguration != null
|
|
23714
23548
|
? deserializeAws_restJson1SourceConfiguration(output.SourceConfiguration, context)
|
|
23715
23549
|
: undefined,
|
|
23716
23550
|
};
|
|
@@ -23764,7 +23598,7 @@ var deserializeAws_restJson1E164PhoneNumberList = function (output, context) {
|
|
|
23764
23598
|
};
|
|
23765
23599
|
var deserializeAws_restJson1EmergencyCallingConfiguration = function (output, context) {
|
|
23766
23600
|
return {
|
|
23767
|
-
DNIS: output.DNIS
|
|
23601
|
+
DNIS: output.DNIS != null
|
|
23768
23602
|
? deserializeAws_restJson1DNISEmergencyCallingConfigurationList(output.DNIS, context)
|
|
23769
23603
|
: undefined,
|
|
23770
23604
|
};
|
|
@@ -23837,21 +23671,17 @@ var deserializeAws_restJson1LoggingConfiguration = function (output, context) {
|
|
|
23837
23671
|
};
|
|
23838
23672
|
var deserializeAws_restJson1MediaCapturePipeline = function (output, context) {
|
|
23839
23673
|
return {
|
|
23840
|
-
ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration
|
|
23674
|
+
ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration != null
|
|
23841
23675
|
? deserializeAws_restJson1ChimeSdkMeetingConfiguration(output.ChimeSdkMeetingConfiguration, context)
|
|
23842
23676
|
: undefined,
|
|
23843
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
23844
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
|
|
23845
|
-
: undefined,
|
|
23677
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
23846
23678
|
MediaPipelineId: __expectString(output.MediaPipelineId),
|
|
23847
23679
|
SinkArn: __expectString(output.SinkArn),
|
|
23848
23680
|
SinkType: __expectString(output.SinkType),
|
|
23849
23681
|
SourceArn: __expectString(output.SourceArn),
|
|
23850
23682
|
SourceType: __expectString(output.SourceType),
|
|
23851
23683
|
Status: __expectString(output.Status),
|
|
23852
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
23853
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
23854
|
-
: undefined,
|
|
23684
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
23855
23685
|
};
|
|
23856
23686
|
};
|
|
23857
23687
|
var deserializeAws_restJson1MediaCapturePipelineList = function (output, context) {
|
|
@@ -23880,7 +23710,7 @@ var deserializeAws_restJson1MediaPlacement = function (output, context) {
|
|
|
23880
23710
|
var deserializeAws_restJson1Meeting = function (output, context) {
|
|
23881
23711
|
return {
|
|
23882
23712
|
ExternalMeetingId: __expectString(output.ExternalMeetingId),
|
|
23883
|
-
MediaPlacement: output.MediaPlacement
|
|
23713
|
+
MediaPlacement: output.MediaPlacement != null
|
|
23884
23714
|
? deserializeAws_restJson1MediaPlacement(output.MediaPlacement, context)
|
|
23885
23715
|
: undefined,
|
|
23886
23716
|
MediaRegion: __expectString(output.MediaRegion),
|
|
@@ -23961,9 +23791,7 @@ var deserializeAws_restJson1OrderedPhoneNumberList = function (output, context)
|
|
|
23961
23791
|
var deserializeAws_restJson1Origination = function (output, context) {
|
|
23962
23792
|
return {
|
|
23963
23793
|
Disabled: __expectBoolean(output.Disabled),
|
|
23964
|
-
Routes: output.Routes
|
|
23965
|
-
? deserializeAws_restJson1OriginationRouteList(output.Routes, context)
|
|
23966
|
-
: undefined,
|
|
23794
|
+
Routes: output.Routes != null ? deserializeAws_restJson1OriginationRouteList(output.Routes, context) : undefined,
|
|
23967
23795
|
};
|
|
23968
23796
|
};
|
|
23969
23797
|
var deserializeAws_restJson1OriginationRoute = function (output, context) {
|
|
@@ -24005,34 +23833,28 @@ var deserializeAws_restJson1Participants = function (output, context) {
|
|
|
24005
23833
|
};
|
|
24006
23834
|
var deserializeAws_restJson1PhoneNumber = function (output, context) {
|
|
24007
23835
|
return {
|
|
24008
|
-
Associations: output.Associations
|
|
23836
|
+
Associations: output.Associations != null
|
|
24009
23837
|
? deserializeAws_restJson1PhoneNumberAssociationList(output.Associations, context)
|
|
24010
23838
|
: undefined,
|
|
24011
23839
|
CallingName: __expectString(output.CallingName),
|
|
24012
23840
|
CallingNameStatus: __expectString(output.CallingNameStatus),
|
|
24013
|
-
Capabilities: output.Capabilities
|
|
23841
|
+
Capabilities: output.Capabilities != null
|
|
24014
23842
|
? deserializeAws_restJson1PhoneNumberCapabilities(output.Capabilities, context)
|
|
24015
23843
|
: undefined,
|
|
24016
23844
|
Country: __expectString(output.Country),
|
|
24017
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
24018
|
-
|
|
24019
|
-
: undefined,
|
|
24020
|
-
DeletionTimestamp: output.DeletionTimestamp !== undefined && output.DeletionTimestamp !== null
|
|
24021
|
-
? __expectNonNull(__parseRfc3339DateTime(output.DeletionTimestamp))
|
|
24022
|
-
: undefined,
|
|
23845
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
23846
|
+
DeletionTimestamp: output.DeletionTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.DeletionTimestamp)) : undefined,
|
|
24023
23847
|
E164PhoneNumber: __expectString(output.E164PhoneNumber),
|
|
24024
23848
|
PhoneNumberId: __expectString(output.PhoneNumberId),
|
|
24025
23849
|
ProductType: __expectString(output.ProductType),
|
|
24026
23850
|
Status: __expectString(output.Status),
|
|
24027
23851
|
Type: __expectString(output.Type),
|
|
24028
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
24029
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
24030
|
-
: undefined,
|
|
23852
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
24031
23853
|
};
|
|
24032
23854
|
};
|
|
24033
23855
|
var deserializeAws_restJson1PhoneNumberAssociation = function (output, context) {
|
|
24034
23856
|
return {
|
|
24035
|
-
AssociatedTimestamp: output.AssociatedTimestamp
|
|
23857
|
+
AssociatedTimestamp: output.AssociatedTimestamp != null
|
|
24036
23858
|
? __expectNonNull(__parseRfc3339DateTime(output.AssociatedTimestamp))
|
|
24037
23859
|
: undefined,
|
|
24038
23860
|
Name: __expectString(output.Name),
|
|
@@ -24074,7 +23896,7 @@ var deserializeAws_restJson1PhoneNumberCountriesList = function (output, context
|
|
|
24074
23896
|
var deserializeAws_restJson1PhoneNumberCountry = function (output, context) {
|
|
24075
23897
|
return {
|
|
24076
23898
|
CountryCode: __expectString(output.CountryCode),
|
|
24077
|
-
SupportedPhoneNumberTypes: output.SupportedPhoneNumberTypes
|
|
23899
|
+
SupportedPhoneNumberTypes: output.SupportedPhoneNumberTypes != null
|
|
24078
23900
|
? deserializeAws_restJson1PhoneNumberTypeList(output.SupportedPhoneNumberTypes, context)
|
|
24079
23901
|
: undefined,
|
|
24080
23902
|
};
|
|
@@ -24110,18 +23932,14 @@ var deserializeAws_restJson1PhoneNumberList = function (output, context) {
|
|
|
24110
23932
|
};
|
|
24111
23933
|
var deserializeAws_restJson1PhoneNumberOrder = function (output, context) {
|
|
24112
23934
|
return {
|
|
24113
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
24114
|
-
|
|
24115
|
-
: undefined,
|
|
24116
|
-
OrderedPhoneNumbers: output.OrderedPhoneNumbers !== undefined && output.OrderedPhoneNumbers !== null
|
|
23935
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
23936
|
+
OrderedPhoneNumbers: output.OrderedPhoneNumbers != null
|
|
24117
23937
|
? deserializeAws_restJson1OrderedPhoneNumberList(output.OrderedPhoneNumbers, context)
|
|
24118
23938
|
: undefined,
|
|
24119
23939
|
PhoneNumberOrderId: __expectString(output.PhoneNumberOrderId),
|
|
24120
23940
|
ProductType: __expectString(output.ProductType),
|
|
24121
23941
|
Status: __expectString(output.Status),
|
|
24122
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
24123
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
24124
|
-
: undefined,
|
|
23942
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
24125
23943
|
};
|
|
24126
23944
|
};
|
|
24127
23945
|
var deserializeAws_restJson1PhoneNumberOrderList = function (output, context) {
|
|
@@ -24151,37 +23969,27 @@ var deserializeAws_restJson1Proxy = function (output, context) {
|
|
|
24151
23969
|
DefaultSessionExpiryMinutes: __expectInt32(output.DefaultSessionExpiryMinutes),
|
|
24152
23970
|
Disabled: __expectBoolean(output.Disabled),
|
|
24153
23971
|
FallBackPhoneNumber: __expectString(output.FallBackPhoneNumber),
|
|
24154
|
-
PhoneNumberCountries: output.PhoneNumberCountries
|
|
23972
|
+
PhoneNumberCountries: output.PhoneNumberCountries != null
|
|
24155
23973
|
? deserializeAws_restJson1StringList(output.PhoneNumberCountries, context)
|
|
24156
23974
|
: undefined,
|
|
24157
23975
|
};
|
|
24158
23976
|
};
|
|
24159
23977
|
var deserializeAws_restJson1ProxySession = function (output, context) {
|
|
24160
23978
|
return {
|
|
24161
|
-
Capabilities: output.Capabilities
|
|
24162
|
-
|
|
24163
|
-
|
|
24164
|
-
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
24165
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
|
|
24166
|
-
: undefined,
|
|
24167
|
-
EndedTimestamp: output.EndedTimestamp !== undefined && output.EndedTimestamp !== null
|
|
24168
|
-
? __expectNonNull(__parseRfc3339DateTime(output.EndedTimestamp))
|
|
24169
|
-
: undefined,
|
|
23979
|
+
Capabilities: output.Capabilities != null ? deserializeAws_restJson1CapabilityList(output.Capabilities, context) : undefined,
|
|
23980
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
23981
|
+
EndedTimestamp: output.EndedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.EndedTimestamp)) : undefined,
|
|
24170
23982
|
ExpiryMinutes: __expectInt32(output.ExpiryMinutes),
|
|
24171
23983
|
GeoMatchLevel: __expectString(output.GeoMatchLevel),
|
|
24172
|
-
GeoMatchParams: output.GeoMatchParams
|
|
23984
|
+
GeoMatchParams: output.GeoMatchParams != null
|
|
24173
23985
|
? deserializeAws_restJson1GeoMatchParams(output.GeoMatchParams, context)
|
|
24174
23986
|
: undefined,
|
|
24175
23987
|
Name: __expectString(output.Name),
|
|
24176
23988
|
NumberSelectionBehavior: __expectString(output.NumberSelectionBehavior),
|
|
24177
|
-
Participants: output.Participants
|
|
24178
|
-
? deserializeAws_restJson1Participants(output.Participants, context)
|
|
24179
|
-
: undefined,
|
|
23989
|
+
Participants: output.Participants != null ? deserializeAws_restJson1Participants(output.Participants, context) : undefined,
|
|
24180
23990
|
ProxySessionId: __expectString(output.ProxySessionId),
|
|
24181
23991
|
Status: __expectString(output.Status),
|
|
24182
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
24183
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
24184
|
-
: undefined,
|
|
23992
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
24185
23993
|
VoiceConnectorId: __expectString(output.VoiceConnectorId),
|
|
24186
23994
|
};
|
|
24187
23995
|
};
|
|
@@ -24198,10 +24006,10 @@ var deserializeAws_restJson1ProxySessions = function (output, context) {
|
|
|
24198
24006
|
};
|
|
24199
24007
|
var deserializeAws_restJson1RetentionSettings = function (output, context) {
|
|
24200
24008
|
return {
|
|
24201
|
-
ConversationRetentionSettings: output.ConversationRetentionSettings
|
|
24009
|
+
ConversationRetentionSettings: output.ConversationRetentionSettings != null
|
|
24202
24010
|
? deserializeAws_restJson1ConversationRetentionSettings(output.ConversationRetentionSettings, context)
|
|
24203
24011
|
: undefined,
|
|
24204
|
-
RoomRetentionSettings: output.RoomRetentionSettings
|
|
24012
|
+
RoomRetentionSettings: output.RoomRetentionSettings != null
|
|
24205
24013
|
? deserializeAws_restJson1RoomRetentionSettings(output.RoomRetentionSettings, context)
|
|
24206
24014
|
: undefined,
|
|
24207
24015
|
};
|
|
@@ -24210,14 +24018,10 @@ var deserializeAws_restJson1Room = function (output, context) {
|
|
|
24210
24018
|
return {
|
|
24211
24019
|
AccountId: __expectString(output.AccountId),
|
|
24212
24020
|
CreatedBy: __expectString(output.CreatedBy),
|
|
24213
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
24214
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
|
|
24215
|
-
: undefined,
|
|
24021
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
24216
24022
|
Name: __expectString(output.Name),
|
|
24217
24023
|
RoomId: __expectString(output.RoomId),
|
|
24218
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
24219
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
24220
|
-
: undefined,
|
|
24024
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
24221
24025
|
};
|
|
24222
24026
|
};
|
|
24223
24027
|
var deserializeAws_restJson1RoomList = function (output, context) {
|
|
@@ -24234,14 +24038,10 @@ var deserializeAws_restJson1RoomList = function (output, context) {
|
|
|
24234
24038
|
var deserializeAws_restJson1RoomMembership = function (output, context) {
|
|
24235
24039
|
return {
|
|
24236
24040
|
InvitedBy: __expectString(output.InvitedBy),
|
|
24237
|
-
Member: output.Member
|
|
24238
|
-
? deserializeAws_restJson1Member(output.Member, context)
|
|
24239
|
-
: undefined,
|
|
24041
|
+
Member: output.Member != null ? deserializeAws_restJson1Member(output.Member, context) : undefined,
|
|
24240
24042
|
Role: __expectString(output.Role),
|
|
24241
24043
|
RoomId: __expectString(output.RoomId),
|
|
24242
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
24243
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
24244
|
-
: undefined,
|
|
24044
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
24245
24045
|
};
|
|
24246
24046
|
};
|
|
24247
24047
|
var deserializeAws_restJson1RoomMembershipList = function (output, context) {
|
|
@@ -24262,10 +24062,8 @@ var deserializeAws_restJson1RoomRetentionSettings = function (output, context) {
|
|
|
24262
24062
|
};
|
|
24263
24063
|
var deserializeAws_restJson1SelectedVideoStreams = function (output, context) {
|
|
24264
24064
|
return {
|
|
24265
|
-
AttendeeIds: output.AttendeeIds
|
|
24266
|
-
|
|
24267
|
-
: undefined,
|
|
24268
|
-
ExternalUserIds: output.ExternalUserIds !== undefined && output.ExternalUserIds !== null
|
|
24065
|
+
AttendeeIds: output.AttendeeIds != null ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context) : undefined,
|
|
24066
|
+
ExternalUserIds: output.ExternalUserIds != null
|
|
24269
24067
|
? deserializeAws_restJson1ExternalUserIdList(output.ExternalUserIds, context)
|
|
24270
24068
|
: undefined,
|
|
24271
24069
|
};
|
|
@@ -24300,17 +24098,13 @@ var deserializeAws_restJson1SigninDelegateGroupList = function (output, context)
|
|
|
24300
24098
|
var deserializeAws_restJson1SipMediaApplication = function (output, context) {
|
|
24301
24099
|
return {
|
|
24302
24100
|
AwsRegion: __expectString(output.AwsRegion),
|
|
24303
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
24304
|
-
|
|
24305
|
-
: undefined,
|
|
24306
|
-
Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
|
|
24101
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
24102
|
+
Endpoints: output.Endpoints != null
|
|
24307
24103
|
? deserializeAws_restJson1SipMediaApplicationEndpointList(output.Endpoints, context)
|
|
24308
24104
|
: undefined,
|
|
24309
24105
|
Name: __expectString(output.Name),
|
|
24310
24106
|
SipMediaApplicationId: __expectString(output.SipMediaApplicationId),
|
|
24311
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
24312
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
24313
|
-
: undefined,
|
|
24107
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
24314
24108
|
};
|
|
24315
24109
|
};
|
|
24316
24110
|
var deserializeAws_restJson1SipMediaApplicationCall = function (output, context) {
|
|
@@ -24352,20 +24146,16 @@ var deserializeAws_restJson1SipMediaApplicationLoggingConfiguration = function (
|
|
|
24352
24146
|
};
|
|
24353
24147
|
var deserializeAws_restJson1SipRule = function (output, context) {
|
|
24354
24148
|
return {
|
|
24355
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
24356
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
|
|
24357
|
-
: undefined,
|
|
24149
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
24358
24150
|
Disabled: __expectBoolean(output.Disabled),
|
|
24359
24151
|
Name: __expectString(output.Name),
|
|
24360
24152
|
SipRuleId: __expectString(output.SipRuleId),
|
|
24361
|
-
TargetApplications: output.TargetApplications
|
|
24153
|
+
TargetApplications: output.TargetApplications != null
|
|
24362
24154
|
? deserializeAws_restJson1SipRuleTargetApplicationList(output.TargetApplications, context)
|
|
24363
24155
|
: undefined,
|
|
24364
24156
|
TriggerType: __expectString(output.TriggerType),
|
|
24365
24157
|
TriggerValue: __expectString(output.TriggerValue),
|
|
24366
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
24367
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
24368
|
-
: undefined,
|
|
24158
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
24369
24159
|
};
|
|
24370
24160
|
};
|
|
24371
24161
|
var deserializeAws_restJson1SipRuleList = function (output, context) {
|
|
@@ -24399,7 +24189,7 @@ var deserializeAws_restJson1SipRuleTargetApplicationList = function (output, con
|
|
|
24399
24189
|
};
|
|
24400
24190
|
var deserializeAws_restJson1SourceConfiguration = function (output, context) {
|
|
24401
24191
|
return {
|
|
24402
|
-
SelectedVideoStreams: output.SelectedVideoStreams
|
|
24192
|
+
SelectedVideoStreams: output.SelectedVideoStreams != null
|
|
24403
24193
|
? deserializeAws_restJson1SelectedVideoStreams(output.SelectedVideoStreams, context)
|
|
24404
24194
|
: undefined,
|
|
24405
24195
|
};
|
|
@@ -24408,7 +24198,7 @@ var deserializeAws_restJson1StreamingConfiguration = function (output, context)
|
|
|
24408
24198
|
return {
|
|
24409
24199
|
DataRetentionInHours: __expectInt32(output.DataRetentionInHours),
|
|
24410
24200
|
Disabled: __expectBoolean(output.Disabled),
|
|
24411
|
-
StreamingNotificationTargets: output.StreamingNotificationTargets
|
|
24201
|
+
StreamingNotificationTargets: output.StreamingNotificationTargets != null
|
|
24412
24202
|
? deserializeAws_restJson1StreamingNotificationTargetList(output.StreamingNotificationTargets, context)
|
|
24413
24203
|
: undefined,
|
|
24414
24204
|
};
|
|
@@ -24466,12 +24256,10 @@ var deserializeAws_restJson1TelephonySettings = function (output, context) {
|
|
|
24466
24256
|
};
|
|
24467
24257
|
var deserializeAws_restJson1Termination = function (output, context) {
|
|
24468
24258
|
return {
|
|
24469
|
-
CallingRegions: output.CallingRegions
|
|
24259
|
+
CallingRegions: output.CallingRegions != null
|
|
24470
24260
|
? deserializeAws_restJson1CallingRegionList(output.CallingRegions, context)
|
|
24471
24261
|
: undefined,
|
|
24472
|
-
CidrAllowedList: output.CidrAllowedList
|
|
24473
|
-
? deserializeAws_restJson1StringList(output.CidrAllowedList, context)
|
|
24474
|
-
: undefined,
|
|
24262
|
+
CidrAllowedList: output.CidrAllowedList != null ? deserializeAws_restJson1StringList(output.CidrAllowedList, context) : undefined,
|
|
24475
24263
|
CpsLimit: __expectInt32(output.CpsLimit),
|
|
24476
24264
|
DefaultPhoneNumber: __expectString(output.DefaultPhoneNumber),
|
|
24477
24265
|
Disabled: __expectBoolean(output.Disabled),
|
|
@@ -24480,28 +24268,22 @@ var deserializeAws_restJson1Termination = function (output, context) {
|
|
|
24480
24268
|
var deserializeAws_restJson1TerminationHealth = function (output, context) {
|
|
24481
24269
|
return {
|
|
24482
24270
|
Source: __expectString(output.Source),
|
|
24483
|
-
Timestamp: output.Timestamp
|
|
24484
|
-
? __expectNonNull(__parseRfc3339DateTime(output.Timestamp))
|
|
24485
|
-
: undefined,
|
|
24271
|
+
Timestamp: output.Timestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.Timestamp)) : undefined,
|
|
24486
24272
|
};
|
|
24487
24273
|
};
|
|
24488
24274
|
var deserializeAws_restJson1User = function (output, context) {
|
|
24489
24275
|
return {
|
|
24490
24276
|
AccountId: __expectString(output.AccountId),
|
|
24491
|
-
AlexaForBusinessMetadata: output.AlexaForBusinessMetadata
|
|
24277
|
+
AlexaForBusinessMetadata: output.AlexaForBusinessMetadata != null
|
|
24492
24278
|
? deserializeAws_restJson1AlexaForBusinessMetadata(output.AlexaForBusinessMetadata, context)
|
|
24493
24279
|
: undefined,
|
|
24494
24280
|
DisplayName: __expectString(output.DisplayName),
|
|
24495
|
-
InvitedOn: output.InvitedOn
|
|
24496
|
-
? __expectNonNull(__parseRfc3339DateTime(output.InvitedOn))
|
|
24497
|
-
: undefined,
|
|
24281
|
+
InvitedOn: output.InvitedOn != null ? __expectNonNull(__parseRfc3339DateTime(output.InvitedOn)) : undefined,
|
|
24498
24282
|
LicenseType: __expectString(output.LicenseType),
|
|
24499
24283
|
PersonalPIN: __expectString(output.PersonalPIN),
|
|
24500
24284
|
PrimaryEmail: __expectString(output.PrimaryEmail),
|
|
24501
24285
|
PrimaryProvisionedNumber: __expectString(output.PrimaryProvisionedNumber),
|
|
24502
|
-
RegisteredOn: output.RegisteredOn
|
|
24503
|
-
? __expectNonNull(__parseRfc3339DateTime(output.RegisteredOn))
|
|
24504
|
-
: undefined,
|
|
24286
|
+
RegisteredOn: output.RegisteredOn != null ? __expectNonNull(__parseRfc3339DateTime(output.RegisteredOn)) : undefined,
|
|
24505
24287
|
UserId: __expectString(output.UserId),
|
|
24506
24288
|
UserInvitationStatus: __expectString(output.UserInvitationStatus),
|
|
24507
24289
|
UserRegistrationStatus: __expectString(output.UserRegistrationStatus),
|
|
@@ -24539,9 +24321,7 @@ var deserializeAws_restJson1UserList = function (output, context) {
|
|
|
24539
24321
|
};
|
|
24540
24322
|
var deserializeAws_restJson1UserSettings = function (output, context) {
|
|
24541
24323
|
return {
|
|
24542
|
-
Telephony: output.Telephony
|
|
24543
|
-
? deserializeAws_restJson1TelephonySettings(output.Telephony, context)
|
|
24544
|
-
: undefined,
|
|
24324
|
+
Telephony: output.Telephony != null ? deserializeAws_restJson1TelephonySettings(output.Telephony, context) : undefined,
|
|
24545
24325
|
};
|
|
24546
24326
|
};
|
|
24547
24327
|
var deserializeAws_restJson1VideoArtifactsConfiguration = function (output, context) {
|
|
@@ -24553,31 +24333,23 @@ var deserializeAws_restJson1VideoArtifactsConfiguration = function (output, cont
|
|
|
24553
24333
|
var deserializeAws_restJson1VoiceConnector = function (output, context) {
|
|
24554
24334
|
return {
|
|
24555
24335
|
AwsRegion: __expectString(output.AwsRegion),
|
|
24556
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
24557
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
|
|
24558
|
-
: undefined,
|
|
24336
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
24559
24337
|
Name: __expectString(output.Name),
|
|
24560
24338
|
OutboundHostName: __expectString(output.OutboundHostName),
|
|
24561
24339
|
RequireEncryption: __expectBoolean(output.RequireEncryption),
|
|
24562
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
24563
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
24564
|
-
: undefined,
|
|
24340
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
24565
24341
|
VoiceConnectorArn: __expectString(output.VoiceConnectorArn),
|
|
24566
24342
|
VoiceConnectorId: __expectString(output.VoiceConnectorId),
|
|
24567
24343
|
};
|
|
24568
24344
|
};
|
|
24569
24345
|
var deserializeAws_restJson1VoiceConnectorGroup = function (output, context) {
|
|
24570
24346
|
return {
|
|
24571
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
24572
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp))
|
|
24573
|
-
: undefined,
|
|
24347
|
+
CreatedTimestamp: output.CreatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTimestamp)) : undefined,
|
|
24574
24348
|
Name: __expectString(output.Name),
|
|
24575
|
-
UpdatedTimestamp: output.UpdatedTimestamp
|
|
24576
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp))
|
|
24577
|
-
: undefined,
|
|
24349
|
+
UpdatedTimestamp: output.UpdatedTimestamp != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTimestamp)) : undefined,
|
|
24578
24350
|
VoiceConnectorGroupArn: __expectString(output.VoiceConnectorGroupArn),
|
|
24579
24351
|
VoiceConnectorGroupId: __expectString(output.VoiceConnectorGroupId),
|
|
24580
|
-
VoiceConnectorItems: output.VoiceConnectorItems
|
|
24352
|
+
VoiceConnectorItems: output.VoiceConnectorItems != null
|
|
24581
24353
|
? deserializeAws_restJson1VoiceConnectorItemList(output.VoiceConnectorItems, context)
|
|
24582
24354
|
: undefined,
|
|
24583
24355
|
};
|
|
@@ -24664,6 +24436,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
24664
24436
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
24665
24437
|
var sanitizeErrorCode = function (rawValue) {
|
|
24666
24438
|
var cleanValue = rawValue;
|
|
24439
|
+
if (typeof cleanValue === "number") {
|
|
24440
|
+
cleanValue = cleanValue.toString();
|
|
24441
|
+
}
|
|
24667
24442
|
if (cleanValue.indexOf(":") >= 0) {
|
|
24668
24443
|
cleanValue = cleanValue.split(":")[0];
|
|
24669
24444
|
}
|