@aws-sdk/client-sns 3.295.0 → 3.297.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_query.js +65 -224
- package/dist-es/protocols/Aws_query.js +65 -224
- package/dist-types/SNS.d.ts +43 -0
- package/dist-types/SNSClient.d.ts +24 -4
- package/dist-types/commands/AddPermissionCommand.d.ts +16 -0
- package/dist-types/commands/CheckIfPhoneNumberIsOptedOutCommand.d.ts +16 -0
- package/dist-types/commands/ConfirmSubscriptionCommand.d.ts +16 -0
- package/dist-types/commands/CreatePlatformApplicationCommand.d.ts +16 -0
- package/dist-types/commands/CreatePlatformEndpointCommand.d.ts +16 -0
- package/dist-types/commands/CreateSMSSandboxPhoneNumberCommand.d.ts +16 -0
- package/dist-types/commands/CreateTopicCommand.d.ts +16 -0
- package/dist-types/commands/DeleteEndpointCommand.d.ts +16 -0
- package/dist-types/commands/DeletePlatformApplicationCommand.d.ts +16 -0
- package/dist-types/commands/DeleteSMSSandboxPhoneNumberCommand.d.ts +16 -0
- package/dist-types/commands/DeleteTopicCommand.d.ts +16 -0
- package/dist-types/commands/GetDataProtectionPolicyCommand.d.ts +16 -0
- package/dist-types/commands/GetEndpointAttributesCommand.d.ts +16 -0
- package/dist-types/commands/GetPlatformApplicationAttributesCommand.d.ts +16 -0
- package/dist-types/commands/GetSMSAttributesCommand.d.ts +16 -0
- package/dist-types/commands/GetSMSSandboxAccountStatusCommand.d.ts +16 -0
- package/dist-types/commands/GetSubscriptionAttributesCommand.d.ts +16 -0
- package/dist-types/commands/GetTopicAttributesCommand.d.ts +16 -0
- package/dist-types/commands/ListEndpointsByPlatformApplicationCommand.d.ts +16 -0
- package/dist-types/commands/ListOriginationNumbersCommand.d.ts +16 -0
- package/dist-types/commands/ListPhoneNumbersOptedOutCommand.d.ts +16 -0
- package/dist-types/commands/ListPlatformApplicationsCommand.d.ts +16 -0
- package/dist-types/commands/ListSMSSandboxPhoneNumbersCommand.d.ts +16 -0
- package/dist-types/commands/ListSubscriptionsByTopicCommand.d.ts +16 -0
- package/dist-types/commands/ListSubscriptionsCommand.d.ts +16 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +16 -0
- package/dist-types/commands/ListTopicsCommand.d.ts +16 -0
- package/dist-types/commands/OptInPhoneNumberCommand.d.ts +16 -0
- package/dist-types/commands/PublishBatchCommand.d.ts +16 -0
- package/dist-types/commands/PublishCommand.d.ts +16 -0
- package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +16 -0
- package/dist-types/commands/RemovePermissionCommand.d.ts +16 -0
- package/dist-types/commands/SetEndpointAttributesCommand.d.ts +16 -0
- package/dist-types/commands/SetPlatformApplicationAttributesCommand.d.ts +16 -0
- package/dist-types/commands/SetSMSAttributesCommand.d.ts +16 -0
- package/dist-types/commands/SetSubscriptionAttributesCommand.d.ts +16 -0
- package/dist-types/commands/SetTopicAttributesCommand.d.ts +16 -0
- package/dist-types/commands/SubscribeCommand.d.ts +16 -0
- package/dist-types/commands/TagResourceCommand.d.ts +16 -0
- package/dist-types/commands/UnsubscribeCommand.d.ts +16 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +16 -0
- package/dist-types/commands/VerifySMSSandboxPhoneNumberCommand.d.ts +16 -0
- package/dist-types/models/SNSServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +182 -4
- package/dist-types/pagination/Interfaces.d.ts +3 -0
- package/dist-types/pagination/ListEndpointsByPlatformApplicationPaginator.d.ts +3 -0
- package/dist-types/pagination/ListOriginationNumbersPaginator.d.ts +3 -0
- package/dist-types/pagination/ListPhoneNumbersOptedOutPaginator.d.ts +3 -0
- package/dist-types/pagination/ListPlatformApplicationsPaginator.d.ts +3 -0
- package/dist-types/pagination/ListSMSSandboxPhoneNumbersPaginator.d.ts +3 -0
- package/dist-types/pagination/ListSubscriptionsByTopicPaginator.d.ts +3 -0
- package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +3 -0
- package/dist-types/pagination/ListTopicsPaginator.d.ts +3 -0
- package/package.json +29 -29
|
@@ -3456,39 +3456,28 @@ const serializeAws_queryVerifySMSSandboxPhoneNumberInput = (input, context) => {
|
|
|
3456
3456
|
return entries;
|
|
3457
3457
|
};
|
|
3458
3458
|
const deserializeAws_queryAuthorizationErrorException = (output, context) => {
|
|
3459
|
-
const contents = {
|
|
3460
|
-
message: undefined,
|
|
3461
|
-
};
|
|
3459
|
+
const contents = {};
|
|
3462
3460
|
if (output["message"] !== undefined) {
|
|
3463
3461
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3464
3462
|
}
|
|
3465
3463
|
return contents;
|
|
3466
3464
|
};
|
|
3467
3465
|
const deserializeAws_queryBatchEntryIdsNotDistinctException = (output, context) => {
|
|
3468
|
-
const contents = {
|
|
3469
|
-
message: undefined,
|
|
3470
|
-
};
|
|
3466
|
+
const contents = {};
|
|
3471
3467
|
if (output["message"] !== undefined) {
|
|
3472
3468
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3473
3469
|
}
|
|
3474
3470
|
return contents;
|
|
3475
3471
|
};
|
|
3476
3472
|
const deserializeAws_queryBatchRequestTooLongException = (output, context) => {
|
|
3477
|
-
const contents = {
|
|
3478
|
-
message: undefined,
|
|
3479
|
-
};
|
|
3473
|
+
const contents = {};
|
|
3480
3474
|
if (output["message"] !== undefined) {
|
|
3481
3475
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3482
3476
|
}
|
|
3483
3477
|
return contents;
|
|
3484
3478
|
};
|
|
3485
3479
|
const deserializeAws_queryBatchResultErrorEntry = (output, context) => {
|
|
3486
|
-
const contents = {
|
|
3487
|
-
Id: undefined,
|
|
3488
|
-
Code: undefined,
|
|
3489
|
-
Message: undefined,
|
|
3490
|
-
SenderFault: undefined,
|
|
3491
|
-
};
|
|
3480
|
+
const contents = {};
|
|
3492
3481
|
if (output["Id"] !== undefined) {
|
|
3493
3482
|
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
3494
3483
|
}
|
|
@@ -3511,45 +3500,35 @@ const deserializeAws_queryBatchResultErrorEntryList = (output, context) => {
|
|
|
3511
3500
|
});
|
|
3512
3501
|
};
|
|
3513
3502
|
const deserializeAws_queryCheckIfPhoneNumberIsOptedOutResponse = (output, context) => {
|
|
3514
|
-
const contents = {
|
|
3515
|
-
isOptedOut: undefined,
|
|
3516
|
-
};
|
|
3503
|
+
const contents = {};
|
|
3517
3504
|
if (output["isOptedOut"] !== undefined) {
|
|
3518
3505
|
contents.isOptedOut = (0, smithy_client_1.parseBoolean)(output["isOptedOut"]);
|
|
3519
3506
|
}
|
|
3520
3507
|
return contents;
|
|
3521
3508
|
};
|
|
3522
3509
|
const deserializeAws_queryConcurrentAccessException = (output, context) => {
|
|
3523
|
-
const contents = {
|
|
3524
|
-
message: undefined,
|
|
3525
|
-
};
|
|
3510
|
+
const contents = {};
|
|
3526
3511
|
if (output["message"] !== undefined) {
|
|
3527
3512
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3528
3513
|
}
|
|
3529
3514
|
return contents;
|
|
3530
3515
|
};
|
|
3531
3516
|
const deserializeAws_queryConfirmSubscriptionResponse = (output, context) => {
|
|
3532
|
-
const contents = {
|
|
3533
|
-
SubscriptionArn: undefined,
|
|
3534
|
-
};
|
|
3517
|
+
const contents = {};
|
|
3535
3518
|
if (output["SubscriptionArn"] !== undefined) {
|
|
3536
3519
|
contents.SubscriptionArn = (0, smithy_client_1.expectString)(output["SubscriptionArn"]);
|
|
3537
3520
|
}
|
|
3538
3521
|
return contents;
|
|
3539
3522
|
};
|
|
3540
3523
|
const deserializeAws_queryCreateEndpointResponse = (output, context) => {
|
|
3541
|
-
const contents = {
|
|
3542
|
-
EndpointArn: undefined,
|
|
3543
|
-
};
|
|
3524
|
+
const contents = {};
|
|
3544
3525
|
if (output["EndpointArn"] !== undefined) {
|
|
3545
3526
|
contents.EndpointArn = (0, smithy_client_1.expectString)(output["EndpointArn"]);
|
|
3546
3527
|
}
|
|
3547
3528
|
return contents;
|
|
3548
3529
|
};
|
|
3549
3530
|
const deserializeAws_queryCreatePlatformApplicationResponse = (output, context) => {
|
|
3550
|
-
const contents = {
|
|
3551
|
-
PlatformApplicationArn: undefined,
|
|
3552
|
-
};
|
|
3531
|
+
const contents = {};
|
|
3553
3532
|
if (output["PlatformApplicationArn"] !== undefined) {
|
|
3554
3533
|
contents.PlatformApplicationArn = (0, smithy_client_1.expectString)(output["PlatformApplicationArn"]);
|
|
3555
3534
|
}
|
|
@@ -3560,9 +3539,7 @@ const deserializeAws_queryCreateSMSSandboxPhoneNumberResult = (output, context)
|
|
|
3560
3539
|
return contents;
|
|
3561
3540
|
};
|
|
3562
3541
|
const deserializeAws_queryCreateTopicResponse = (output, context) => {
|
|
3563
|
-
const contents = {
|
|
3564
|
-
TopicArn: undefined,
|
|
3565
|
-
};
|
|
3542
|
+
const contents = {};
|
|
3566
3543
|
if (output["TopicArn"] !== undefined) {
|
|
3567
3544
|
contents.TopicArn = (0, smithy_client_1.expectString)(output["TopicArn"]);
|
|
3568
3545
|
}
|
|
@@ -3573,19 +3550,14 @@ const deserializeAws_queryDeleteSMSSandboxPhoneNumberResult = (output, context)
|
|
|
3573
3550
|
return contents;
|
|
3574
3551
|
};
|
|
3575
3552
|
const deserializeAws_queryEmptyBatchRequestException = (output, context) => {
|
|
3576
|
-
const contents = {
|
|
3577
|
-
message: undefined,
|
|
3578
|
-
};
|
|
3553
|
+
const contents = {};
|
|
3579
3554
|
if (output["message"] !== undefined) {
|
|
3580
3555
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3581
3556
|
}
|
|
3582
3557
|
return contents;
|
|
3583
3558
|
};
|
|
3584
3559
|
const deserializeAws_queryEndpoint = (output, context) => {
|
|
3585
|
-
const contents = {
|
|
3586
|
-
EndpointArn: undefined,
|
|
3587
|
-
Attributes: undefined,
|
|
3588
|
-
};
|
|
3560
|
+
const contents = {};
|
|
3589
3561
|
if (output["EndpointArn"] !== undefined) {
|
|
3590
3562
|
contents.EndpointArn = (0, smithy_client_1.expectString)(output["EndpointArn"]);
|
|
3591
3563
|
}
|
|
@@ -3598,36 +3570,28 @@ const deserializeAws_queryEndpoint = (output, context) => {
|
|
|
3598
3570
|
return contents;
|
|
3599
3571
|
};
|
|
3600
3572
|
const deserializeAws_queryEndpointDisabledException = (output, context) => {
|
|
3601
|
-
const contents = {
|
|
3602
|
-
message: undefined,
|
|
3603
|
-
};
|
|
3573
|
+
const contents = {};
|
|
3604
3574
|
if (output["message"] !== undefined) {
|
|
3605
3575
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3606
3576
|
}
|
|
3607
3577
|
return contents;
|
|
3608
3578
|
};
|
|
3609
3579
|
const deserializeAws_queryFilterPolicyLimitExceededException = (output, context) => {
|
|
3610
|
-
const contents = {
|
|
3611
|
-
message: undefined,
|
|
3612
|
-
};
|
|
3580
|
+
const contents = {};
|
|
3613
3581
|
if (output["message"] !== undefined) {
|
|
3614
3582
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3615
3583
|
}
|
|
3616
3584
|
return contents;
|
|
3617
3585
|
};
|
|
3618
3586
|
const deserializeAws_queryGetDataProtectionPolicyResponse = (output, context) => {
|
|
3619
|
-
const contents = {
|
|
3620
|
-
DataProtectionPolicy: undefined,
|
|
3621
|
-
};
|
|
3587
|
+
const contents = {};
|
|
3622
3588
|
if (output["DataProtectionPolicy"] !== undefined) {
|
|
3623
3589
|
contents.DataProtectionPolicy = (0, smithy_client_1.expectString)(output["DataProtectionPolicy"]);
|
|
3624
3590
|
}
|
|
3625
3591
|
return contents;
|
|
3626
3592
|
};
|
|
3627
3593
|
const deserializeAws_queryGetEndpointAttributesResponse = (output, context) => {
|
|
3628
|
-
const contents = {
|
|
3629
|
-
Attributes: undefined,
|
|
3630
|
-
};
|
|
3594
|
+
const contents = {};
|
|
3631
3595
|
if (output.Attributes === "") {
|
|
3632
3596
|
contents.Attributes = {};
|
|
3633
3597
|
}
|
|
@@ -3637,9 +3601,7 @@ const deserializeAws_queryGetEndpointAttributesResponse = (output, context) => {
|
|
|
3637
3601
|
return contents;
|
|
3638
3602
|
};
|
|
3639
3603
|
const deserializeAws_queryGetPlatformApplicationAttributesResponse = (output, context) => {
|
|
3640
|
-
const contents = {
|
|
3641
|
-
Attributes: undefined,
|
|
3642
|
-
};
|
|
3604
|
+
const contents = {};
|
|
3643
3605
|
if (output.Attributes === "") {
|
|
3644
3606
|
contents.Attributes = {};
|
|
3645
3607
|
}
|
|
@@ -3649,9 +3611,7 @@ const deserializeAws_queryGetPlatformApplicationAttributesResponse = (output, co
|
|
|
3649
3611
|
return contents;
|
|
3650
3612
|
};
|
|
3651
3613
|
const deserializeAws_queryGetSMSAttributesResponse = (output, context) => {
|
|
3652
|
-
const contents = {
|
|
3653
|
-
attributes: undefined,
|
|
3654
|
-
};
|
|
3614
|
+
const contents = {};
|
|
3655
3615
|
if (output.attributes === "") {
|
|
3656
3616
|
contents.attributes = {};
|
|
3657
3617
|
}
|
|
@@ -3661,18 +3621,14 @@ const deserializeAws_queryGetSMSAttributesResponse = (output, context) => {
|
|
|
3661
3621
|
return contents;
|
|
3662
3622
|
};
|
|
3663
3623
|
const deserializeAws_queryGetSMSSandboxAccountStatusResult = (output, context) => {
|
|
3664
|
-
const contents = {
|
|
3665
|
-
IsInSandbox: undefined,
|
|
3666
|
-
};
|
|
3624
|
+
const contents = {};
|
|
3667
3625
|
if (output["IsInSandbox"] !== undefined) {
|
|
3668
3626
|
contents.IsInSandbox = (0, smithy_client_1.parseBoolean)(output["IsInSandbox"]);
|
|
3669
3627
|
}
|
|
3670
3628
|
return contents;
|
|
3671
3629
|
};
|
|
3672
3630
|
const deserializeAws_queryGetSubscriptionAttributesResponse = (output, context) => {
|
|
3673
|
-
const contents = {
|
|
3674
|
-
Attributes: undefined,
|
|
3675
|
-
};
|
|
3631
|
+
const contents = {};
|
|
3676
3632
|
if (output.Attributes === "") {
|
|
3677
3633
|
contents.Attributes = {};
|
|
3678
3634
|
}
|
|
@@ -3682,9 +3638,7 @@ const deserializeAws_queryGetSubscriptionAttributesResponse = (output, context)
|
|
|
3682
3638
|
return contents;
|
|
3683
3639
|
};
|
|
3684
3640
|
const deserializeAws_queryGetTopicAttributesResponse = (output, context) => {
|
|
3685
|
-
const contents = {
|
|
3686
|
-
Attributes: undefined,
|
|
3687
|
-
};
|
|
3641
|
+
const contents = {};
|
|
3688
3642
|
if (output.Attributes === "") {
|
|
3689
3643
|
contents.Attributes = {};
|
|
3690
3644
|
}
|
|
@@ -3694,109 +3648,84 @@ const deserializeAws_queryGetTopicAttributesResponse = (output, context) => {
|
|
|
3694
3648
|
return contents;
|
|
3695
3649
|
};
|
|
3696
3650
|
const deserializeAws_queryInternalErrorException = (output, context) => {
|
|
3697
|
-
const contents = {
|
|
3698
|
-
message: undefined,
|
|
3699
|
-
};
|
|
3651
|
+
const contents = {};
|
|
3700
3652
|
if (output["message"] !== undefined) {
|
|
3701
3653
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3702
3654
|
}
|
|
3703
3655
|
return contents;
|
|
3704
3656
|
};
|
|
3705
3657
|
const deserializeAws_queryInvalidBatchEntryIdException = (output, context) => {
|
|
3706
|
-
const contents = {
|
|
3707
|
-
message: undefined,
|
|
3708
|
-
};
|
|
3658
|
+
const contents = {};
|
|
3709
3659
|
if (output["message"] !== undefined) {
|
|
3710
3660
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3711
3661
|
}
|
|
3712
3662
|
return contents;
|
|
3713
3663
|
};
|
|
3714
3664
|
const deserializeAws_queryInvalidParameterException = (output, context) => {
|
|
3715
|
-
const contents = {
|
|
3716
|
-
message: undefined,
|
|
3717
|
-
};
|
|
3665
|
+
const contents = {};
|
|
3718
3666
|
if (output["message"] !== undefined) {
|
|
3719
3667
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3720
3668
|
}
|
|
3721
3669
|
return contents;
|
|
3722
3670
|
};
|
|
3723
3671
|
const deserializeAws_queryInvalidParameterValueException = (output, context) => {
|
|
3724
|
-
const contents = {
|
|
3725
|
-
message: undefined,
|
|
3726
|
-
};
|
|
3672
|
+
const contents = {};
|
|
3727
3673
|
if (output["message"] !== undefined) {
|
|
3728
3674
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3729
3675
|
}
|
|
3730
3676
|
return contents;
|
|
3731
3677
|
};
|
|
3732
3678
|
const deserializeAws_queryInvalidSecurityException = (output, context) => {
|
|
3733
|
-
const contents = {
|
|
3734
|
-
message: undefined,
|
|
3735
|
-
};
|
|
3679
|
+
const contents = {};
|
|
3736
3680
|
if (output["message"] !== undefined) {
|
|
3737
3681
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3738
3682
|
}
|
|
3739
3683
|
return contents;
|
|
3740
3684
|
};
|
|
3741
3685
|
const deserializeAws_queryKMSAccessDeniedException = (output, context) => {
|
|
3742
|
-
const contents = {
|
|
3743
|
-
message: undefined,
|
|
3744
|
-
};
|
|
3686
|
+
const contents = {};
|
|
3745
3687
|
if (output["message"] !== undefined) {
|
|
3746
3688
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3747
3689
|
}
|
|
3748
3690
|
return contents;
|
|
3749
3691
|
};
|
|
3750
3692
|
const deserializeAws_queryKMSDisabledException = (output, context) => {
|
|
3751
|
-
const contents = {
|
|
3752
|
-
message: undefined,
|
|
3753
|
-
};
|
|
3693
|
+
const contents = {};
|
|
3754
3694
|
if (output["message"] !== undefined) {
|
|
3755
3695
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3756
3696
|
}
|
|
3757
3697
|
return contents;
|
|
3758
3698
|
};
|
|
3759
3699
|
const deserializeAws_queryKMSInvalidStateException = (output, context) => {
|
|
3760
|
-
const contents = {
|
|
3761
|
-
message: undefined,
|
|
3762
|
-
};
|
|
3700
|
+
const contents = {};
|
|
3763
3701
|
if (output["message"] !== undefined) {
|
|
3764
3702
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3765
3703
|
}
|
|
3766
3704
|
return contents;
|
|
3767
3705
|
};
|
|
3768
3706
|
const deserializeAws_queryKMSNotFoundException = (output, context) => {
|
|
3769
|
-
const contents = {
|
|
3770
|
-
message: undefined,
|
|
3771
|
-
};
|
|
3707
|
+
const contents = {};
|
|
3772
3708
|
if (output["message"] !== undefined) {
|
|
3773
3709
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3774
3710
|
}
|
|
3775
3711
|
return contents;
|
|
3776
3712
|
};
|
|
3777
3713
|
const deserializeAws_queryKMSOptInRequired = (output, context) => {
|
|
3778
|
-
const contents = {
|
|
3779
|
-
message: undefined,
|
|
3780
|
-
};
|
|
3714
|
+
const contents = {};
|
|
3781
3715
|
if (output["message"] !== undefined) {
|
|
3782
3716
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3783
3717
|
}
|
|
3784
3718
|
return contents;
|
|
3785
3719
|
};
|
|
3786
3720
|
const deserializeAws_queryKMSThrottlingException = (output, context) => {
|
|
3787
|
-
const contents = {
|
|
3788
|
-
message: undefined,
|
|
3789
|
-
};
|
|
3721
|
+
const contents = {};
|
|
3790
3722
|
if (output["message"] !== undefined) {
|
|
3791
3723
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3792
3724
|
}
|
|
3793
3725
|
return contents;
|
|
3794
3726
|
};
|
|
3795
3727
|
const deserializeAws_queryListEndpointsByPlatformApplicationResponse = (output, context) => {
|
|
3796
|
-
const contents = {
|
|
3797
|
-
Endpoints: undefined,
|
|
3798
|
-
NextToken: undefined,
|
|
3799
|
-
};
|
|
3728
|
+
const contents = {};
|
|
3800
3729
|
if (output.Endpoints === "") {
|
|
3801
3730
|
contents.Endpoints = [];
|
|
3802
3731
|
}
|
|
@@ -3823,10 +3752,7 @@ const deserializeAws_queryListOfPlatformApplications = (output, context) => {
|
|
|
3823
3752
|
});
|
|
3824
3753
|
};
|
|
3825
3754
|
const deserializeAws_queryListOriginationNumbersResult = (output, context) => {
|
|
3826
|
-
const contents = {
|
|
3827
|
-
NextToken: undefined,
|
|
3828
|
-
PhoneNumbers: undefined,
|
|
3829
|
-
};
|
|
3755
|
+
const contents = {};
|
|
3830
3756
|
if (output["NextToken"] !== undefined) {
|
|
3831
3757
|
contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
|
|
3832
3758
|
}
|
|
@@ -3839,10 +3765,7 @@ const deserializeAws_queryListOriginationNumbersResult = (output, context) => {
|
|
|
3839
3765
|
return contents;
|
|
3840
3766
|
};
|
|
3841
3767
|
const deserializeAws_queryListPhoneNumbersOptedOutResponse = (output, context) => {
|
|
3842
|
-
const contents = {
|
|
3843
|
-
phoneNumbers: undefined,
|
|
3844
|
-
nextToken: undefined,
|
|
3845
|
-
};
|
|
3768
|
+
const contents = {};
|
|
3846
3769
|
if (output.phoneNumbers === "") {
|
|
3847
3770
|
contents.phoneNumbers = [];
|
|
3848
3771
|
}
|
|
@@ -3855,10 +3778,7 @@ const deserializeAws_queryListPhoneNumbersOptedOutResponse = (output, context) =
|
|
|
3855
3778
|
return contents;
|
|
3856
3779
|
};
|
|
3857
3780
|
const deserializeAws_queryListPlatformApplicationsResponse = (output, context) => {
|
|
3858
|
-
const contents = {
|
|
3859
|
-
PlatformApplications: undefined,
|
|
3860
|
-
NextToken: undefined,
|
|
3861
|
-
};
|
|
3781
|
+
const contents = {};
|
|
3862
3782
|
if (output.PlatformApplications === "") {
|
|
3863
3783
|
contents.PlatformApplications = [];
|
|
3864
3784
|
}
|
|
@@ -3871,10 +3791,7 @@ const deserializeAws_queryListPlatformApplicationsResponse = (output, context) =
|
|
|
3871
3791
|
return contents;
|
|
3872
3792
|
};
|
|
3873
3793
|
const deserializeAws_queryListSMSSandboxPhoneNumbersResult = (output, context) => {
|
|
3874
|
-
const contents = {
|
|
3875
|
-
PhoneNumbers: undefined,
|
|
3876
|
-
NextToken: undefined,
|
|
3877
|
-
};
|
|
3794
|
+
const contents = {};
|
|
3878
3795
|
if (output.PhoneNumbers === "") {
|
|
3879
3796
|
contents.PhoneNumbers = [];
|
|
3880
3797
|
}
|
|
@@ -3887,10 +3804,7 @@ const deserializeAws_queryListSMSSandboxPhoneNumbersResult = (output, context) =
|
|
|
3887
3804
|
return contents;
|
|
3888
3805
|
};
|
|
3889
3806
|
const deserializeAws_queryListSubscriptionsByTopicResponse = (output, context) => {
|
|
3890
|
-
const contents = {
|
|
3891
|
-
Subscriptions: undefined,
|
|
3892
|
-
NextToken: undefined,
|
|
3893
|
-
};
|
|
3807
|
+
const contents = {};
|
|
3894
3808
|
if (output.Subscriptions === "") {
|
|
3895
3809
|
contents.Subscriptions = [];
|
|
3896
3810
|
}
|
|
@@ -3903,10 +3817,7 @@ const deserializeAws_queryListSubscriptionsByTopicResponse = (output, context) =
|
|
|
3903
3817
|
return contents;
|
|
3904
3818
|
};
|
|
3905
3819
|
const deserializeAws_queryListSubscriptionsResponse = (output, context) => {
|
|
3906
|
-
const contents = {
|
|
3907
|
-
Subscriptions: undefined,
|
|
3908
|
-
NextToken: undefined,
|
|
3909
|
-
};
|
|
3820
|
+
const contents = {};
|
|
3910
3821
|
if (output.Subscriptions === "") {
|
|
3911
3822
|
contents.Subscriptions = [];
|
|
3912
3823
|
}
|
|
@@ -3919,9 +3830,7 @@ const deserializeAws_queryListSubscriptionsResponse = (output, context) => {
|
|
|
3919
3830
|
return contents;
|
|
3920
3831
|
};
|
|
3921
3832
|
const deserializeAws_queryListTagsForResourceResponse = (output, context) => {
|
|
3922
|
-
const contents = {
|
|
3923
|
-
Tags: undefined,
|
|
3924
|
-
};
|
|
3833
|
+
const contents = {};
|
|
3925
3834
|
if (output.Tags === "") {
|
|
3926
3835
|
contents.Tags = [];
|
|
3927
3836
|
}
|
|
@@ -3931,10 +3840,7 @@ const deserializeAws_queryListTagsForResourceResponse = (output, context) => {
|
|
|
3931
3840
|
return contents;
|
|
3932
3841
|
};
|
|
3933
3842
|
const deserializeAws_queryListTopicsResponse = (output, context) => {
|
|
3934
|
-
const contents = {
|
|
3935
|
-
Topics: undefined,
|
|
3936
|
-
NextToken: undefined,
|
|
3937
|
-
};
|
|
3843
|
+
const contents = {};
|
|
3938
3844
|
if (output.Topics === "") {
|
|
3939
3845
|
contents.Topics = [];
|
|
3940
3846
|
}
|
|
@@ -3956,9 +3862,7 @@ const deserializeAws_queryMapStringToString = (output, context) => {
|
|
|
3956
3862
|
}, {});
|
|
3957
3863
|
};
|
|
3958
3864
|
const deserializeAws_queryNotFoundException = (output, context) => {
|
|
3959
|
-
const contents = {
|
|
3960
|
-
message: undefined,
|
|
3961
|
-
};
|
|
3865
|
+
const contents = {};
|
|
3962
3866
|
if (output["message"] !== undefined) {
|
|
3963
3867
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3964
3868
|
}
|
|
@@ -3972,9 +3876,7 @@ const deserializeAws_queryNumberCapabilityList = (output, context) => {
|
|
|
3972
3876
|
});
|
|
3973
3877
|
};
|
|
3974
3878
|
const deserializeAws_queryOptedOutException = (output, context) => {
|
|
3975
|
-
const contents = {
|
|
3976
|
-
message: undefined,
|
|
3977
|
-
};
|
|
3879
|
+
const contents = {};
|
|
3978
3880
|
if (output["message"] !== undefined) {
|
|
3979
3881
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3980
3882
|
}
|
|
@@ -3985,14 +3887,7 @@ const deserializeAws_queryOptInPhoneNumberResponse = (output, context) => {
|
|
|
3985
3887
|
return contents;
|
|
3986
3888
|
};
|
|
3987
3889
|
const deserializeAws_queryPhoneNumberInformation = (output, context) => {
|
|
3988
|
-
const contents = {
|
|
3989
|
-
CreatedAt: undefined,
|
|
3990
|
-
PhoneNumber: undefined,
|
|
3991
|
-
Status: undefined,
|
|
3992
|
-
Iso2CountryCode: undefined,
|
|
3993
|
-
RouteType: undefined,
|
|
3994
|
-
NumberCapabilities: undefined,
|
|
3995
|
-
};
|
|
3890
|
+
const contents = {};
|
|
3996
3891
|
if (output["CreatedAt"] !== undefined) {
|
|
3997
3892
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CreatedAt"]));
|
|
3998
3893
|
}
|
|
@@ -4031,10 +3926,7 @@ const deserializeAws_queryPhoneNumberList = (output, context) => {
|
|
|
4031
3926
|
});
|
|
4032
3927
|
};
|
|
4033
3928
|
const deserializeAws_queryPlatformApplication = (output, context) => {
|
|
4034
|
-
const contents = {
|
|
4035
|
-
PlatformApplicationArn: undefined,
|
|
4036
|
-
Attributes: undefined,
|
|
4037
|
-
};
|
|
3929
|
+
const contents = {};
|
|
4038
3930
|
if (output["PlatformApplicationArn"] !== undefined) {
|
|
4039
3931
|
contents.PlatformApplicationArn = (0, smithy_client_1.expectString)(output["PlatformApplicationArn"]);
|
|
4040
3932
|
}
|
|
@@ -4047,19 +3939,14 @@ const deserializeAws_queryPlatformApplication = (output, context) => {
|
|
|
4047
3939
|
return contents;
|
|
4048
3940
|
};
|
|
4049
3941
|
const deserializeAws_queryPlatformApplicationDisabledException = (output, context) => {
|
|
4050
|
-
const contents = {
|
|
4051
|
-
message: undefined,
|
|
4052
|
-
};
|
|
3942
|
+
const contents = {};
|
|
4053
3943
|
if (output["message"] !== undefined) {
|
|
4054
3944
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
4055
3945
|
}
|
|
4056
3946
|
return contents;
|
|
4057
3947
|
};
|
|
4058
3948
|
const deserializeAws_queryPublishBatchResponse = (output, context) => {
|
|
4059
|
-
const contents = {
|
|
4060
|
-
Successful: undefined,
|
|
4061
|
-
Failed: undefined,
|
|
4062
|
-
};
|
|
3949
|
+
const contents = {};
|
|
4063
3950
|
if (output.Successful === "") {
|
|
4064
3951
|
contents.Successful = [];
|
|
4065
3952
|
}
|
|
@@ -4075,11 +3962,7 @@ const deserializeAws_queryPublishBatchResponse = (output, context) => {
|
|
|
4075
3962
|
return contents;
|
|
4076
3963
|
};
|
|
4077
3964
|
const deserializeAws_queryPublishBatchResultEntry = (output, context) => {
|
|
4078
|
-
const contents = {
|
|
4079
|
-
Id: undefined,
|
|
4080
|
-
MessageId: undefined,
|
|
4081
|
-
SequenceNumber: undefined,
|
|
4082
|
-
};
|
|
3965
|
+
const contents = {};
|
|
4083
3966
|
if (output["Id"] !== undefined) {
|
|
4084
3967
|
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
4085
3968
|
}
|
|
@@ -4099,10 +3982,7 @@ const deserializeAws_queryPublishBatchResultEntryList = (output, context) => {
|
|
|
4099
3982
|
});
|
|
4100
3983
|
};
|
|
4101
3984
|
const deserializeAws_queryPublishResponse = (output, context) => {
|
|
4102
|
-
const contents = {
|
|
4103
|
-
MessageId: undefined,
|
|
4104
|
-
SequenceNumber: undefined,
|
|
4105
|
-
};
|
|
3985
|
+
const contents = {};
|
|
4106
3986
|
if (output["MessageId"] !== undefined) {
|
|
4107
3987
|
contents.MessageId = (0, smithy_client_1.expectString)(output["MessageId"]);
|
|
4108
3988
|
}
|
|
@@ -4112,9 +3992,7 @@ const deserializeAws_queryPublishResponse = (output, context) => {
|
|
|
4112
3992
|
return contents;
|
|
4113
3993
|
};
|
|
4114
3994
|
const deserializeAws_queryResourceNotFoundException = (output, context) => {
|
|
4115
|
-
const contents = {
|
|
4116
|
-
message: undefined,
|
|
4117
|
-
};
|
|
3995
|
+
const contents = {};
|
|
4118
3996
|
if (output["message"] !== undefined) {
|
|
4119
3997
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
4120
3998
|
}
|
|
@@ -4125,10 +4003,7 @@ const deserializeAws_querySetSMSAttributesResponse = (output, context) => {
|
|
|
4125
4003
|
return contents;
|
|
4126
4004
|
};
|
|
4127
4005
|
const deserializeAws_querySMSSandboxPhoneNumber = (output, context) => {
|
|
4128
|
-
const contents = {
|
|
4129
|
-
PhoneNumber: undefined,
|
|
4130
|
-
Status: undefined,
|
|
4131
|
-
};
|
|
4006
|
+
const contents = {};
|
|
4132
4007
|
if (output["PhoneNumber"] !== undefined) {
|
|
4133
4008
|
contents.PhoneNumber = (0, smithy_client_1.expectString)(output["PhoneNumber"]);
|
|
4134
4009
|
}
|
|
@@ -4145,31 +4020,21 @@ const deserializeAws_querySMSSandboxPhoneNumberList = (output, context) => {
|
|
|
4145
4020
|
});
|
|
4146
4021
|
};
|
|
4147
4022
|
const deserializeAws_queryStaleTagException = (output, context) => {
|
|
4148
|
-
const contents = {
|
|
4149
|
-
message: undefined,
|
|
4150
|
-
};
|
|
4023
|
+
const contents = {};
|
|
4151
4024
|
if (output["message"] !== undefined) {
|
|
4152
4025
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
4153
4026
|
}
|
|
4154
4027
|
return contents;
|
|
4155
4028
|
};
|
|
4156
4029
|
const deserializeAws_querySubscribeResponse = (output, context) => {
|
|
4157
|
-
const contents = {
|
|
4158
|
-
SubscriptionArn: undefined,
|
|
4159
|
-
};
|
|
4030
|
+
const contents = {};
|
|
4160
4031
|
if (output["SubscriptionArn"] !== undefined) {
|
|
4161
4032
|
contents.SubscriptionArn = (0, smithy_client_1.expectString)(output["SubscriptionArn"]);
|
|
4162
4033
|
}
|
|
4163
4034
|
return contents;
|
|
4164
4035
|
};
|
|
4165
4036
|
const deserializeAws_querySubscription = (output, context) => {
|
|
4166
|
-
const contents = {
|
|
4167
|
-
SubscriptionArn: undefined,
|
|
4168
|
-
Owner: undefined,
|
|
4169
|
-
Protocol: undefined,
|
|
4170
|
-
Endpoint: undefined,
|
|
4171
|
-
TopicArn: undefined,
|
|
4172
|
-
};
|
|
4037
|
+
const contents = {};
|
|
4173
4038
|
if (output["SubscriptionArn"] !== undefined) {
|
|
4174
4039
|
contents.SubscriptionArn = (0, smithy_client_1.expectString)(output["SubscriptionArn"]);
|
|
4175
4040
|
}
|
|
@@ -4197,9 +4062,7 @@ const deserializeAws_querySubscriptionAttributesMap = (output, context) => {
|
|
|
4197
4062
|
}, {});
|
|
4198
4063
|
};
|
|
4199
4064
|
const deserializeAws_querySubscriptionLimitExceededException = (output, context) => {
|
|
4200
|
-
const contents = {
|
|
4201
|
-
message: undefined,
|
|
4202
|
-
};
|
|
4065
|
+
const contents = {};
|
|
4203
4066
|
if (output["message"] !== undefined) {
|
|
4204
4067
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
4205
4068
|
}
|
|
@@ -4213,10 +4076,7 @@ const deserializeAws_querySubscriptionsList = (output, context) => {
|
|
|
4213
4076
|
});
|
|
4214
4077
|
};
|
|
4215
4078
|
const deserializeAws_queryTag = (output, context) => {
|
|
4216
|
-
const contents = {
|
|
4217
|
-
Key: undefined,
|
|
4218
|
-
Value: undefined,
|
|
4219
|
-
};
|
|
4079
|
+
const contents = {};
|
|
4220
4080
|
if (output["Key"] !== undefined) {
|
|
4221
4081
|
contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
|
|
4222
4082
|
}
|
|
@@ -4226,9 +4086,7 @@ const deserializeAws_queryTag = (output, context) => {
|
|
|
4226
4086
|
return contents;
|
|
4227
4087
|
};
|
|
4228
4088
|
const deserializeAws_queryTagLimitExceededException = (output, context) => {
|
|
4229
|
-
const contents = {
|
|
4230
|
-
message: undefined,
|
|
4231
|
-
};
|
|
4089
|
+
const contents = {};
|
|
4232
4090
|
if (output["message"] !== undefined) {
|
|
4233
4091
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
4234
4092
|
}
|
|
@@ -4242,9 +4100,7 @@ const deserializeAws_queryTagList = (output, context) => {
|
|
|
4242
4100
|
});
|
|
4243
4101
|
};
|
|
4244
4102
|
const deserializeAws_queryTagPolicyException = (output, context) => {
|
|
4245
|
-
const contents = {
|
|
4246
|
-
message: undefined,
|
|
4247
|
-
};
|
|
4103
|
+
const contents = {};
|
|
4248
4104
|
if (output["message"] !== undefined) {
|
|
4249
4105
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
4250
4106
|
}
|
|
@@ -4255,27 +4111,21 @@ const deserializeAws_queryTagResourceResponse = (output, context) => {
|
|
|
4255
4111
|
return contents;
|
|
4256
4112
|
};
|
|
4257
4113
|
const deserializeAws_queryThrottledException = (output, context) => {
|
|
4258
|
-
const contents = {
|
|
4259
|
-
message: undefined,
|
|
4260
|
-
};
|
|
4114
|
+
const contents = {};
|
|
4261
4115
|
if (output["message"] !== undefined) {
|
|
4262
4116
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
4263
4117
|
}
|
|
4264
4118
|
return contents;
|
|
4265
4119
|
};
|
|
4266
4120
|
const deserializeAws_queryTooManyEntriesInBatchRequestException = (output, context) => {
|
|
4267
|
-
const contents = {
|
|
4268
|
-
message: undefined,
|
|
4269
|
-
};
|
|
4121
|
+
const contents = {};
|
|
4270
4122
|
if (output["message"] !== undefined) {
|
|
4271
4123
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
4272
4124
|
}
|
|
4273
4125
|
return contents;
|
|
4274
4126
|
};
|
|
4275
4127
|
const deserializeAws_queryTopic = (output, context) => {
|
|
4276
|
-
const contents = {
|
|
4277
|
-
TopicArn: undefined,
|
|
4278
|
-
};
|
|
4128
|
+
const contents = {};
|
|
4279
4129
|
if (output["TopicArn"] !== undefined) {
|
|
4280
4130
|
contents.TopicArn = (0, smithy_client_1.expectString)(output["TopicArn"]);
|
|
4281
4131
|
}
|
|
@@ -4291,9 +4141,7 @@ const deserializeAws_queryTopicAttributesMap = (output, context) => {
|
|
|
4291
4141
|
}, {});
|
|
4292
4142
|
};
|
|
4293
4143
|
const deserializeAws_queryTopicLimitExceededException = (output, context) => {
|
|
4294
|
-
const contents = {
|
|
4295
|
-
message: undefined,
|
|
4296
|
-
};
|
|
4144
|
+
const contents = {};
|
|
4297
4145
|
if (output["message"] !== undefined) {
|
|
4298
4146
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
4299
4147
|
}
|
|
@@ -4311,28 +4159,21 @@ const deserializeAws_queryUntagResourceResponse = (output, context) => {
|
|
|
4311
4159
|
return contents;
|
|
4312
4160
|
};
|
|
4313
4161
|
const deserializeAws_queryUserErrorException = (output, context) => {
|
|
4314
|
-
const contents = {
|
|
4315
|
-
message: undefined,
|
|
4316
|
-
};
|
|
4162
|
+
const contents = {};
|
|
4317
4163
|
if (output["message"] !== undefined) {
|
|
4318
4164
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
4319
4165
|
}
|
|
4320
4166
|
return contents;
|
|
4321
4167
|
};
|
|
4322
4168
|
const deserializeAws_queryValidationException = (output, context) => {
|
|
4323
|
-
const contents = {
|
|
4324
|
-
Message: undefined,
|
|
4325
|
-
};
|
|
4169
|
+
const contents = {};
|
|
4326
4170
|
if (output["Message"] !== undefined) {
|
|
4327
4171
|
contents.Message = (0, smithy_client_1.expectString)(output["Message"]);
|
|
4328
4172
|
}
|
|
4329
4173
|
return contents;
|
|
4330
4174
|
};
|
|
4331
4175
|
const deserializeAws_queryVerificationException = (output, context) => {
|
|
4332
|
-
const contents = {
|
|
4333
|
-
Message: undefined,
|
|
4334
|
-
Status: undefined,
|
|
4335
|
-
};
|
|
4176
|
+
const contents = {};
|
|
4336
4177
|
if (output["Message"] !== undefined) {
|
|
4337
4178
|
contents.Message = (0, smithy_client_1.expectString)(output["Message"]);
|
|
4338
4179
|
}
|