@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
|
@@ -3368,39 +3368,28 @@ const serializeAws_queryVerifySMSSandboxPhoneNumberInput = (input, context) => {
|
|
|
3368
3368
|
return entries;
|
|
3369
3369
|
};
|
|
3370
3370
|
const deserializeAws_queryAuthorizationErrorException = (output, context) => {
|
|
3371
|
-
const contents = {
|
|
3372
|
-
message: undefined,
|
|
3373
|
-
};
|
|
3371
|
+
const contents = {};
|
|
3374
3372
|
if (output["message"] !== undefined) {
|
|
3375
3373
|
contents.message = __expectString(output["message"]);
|
|
3376
3374
|
}
|
|
3377
3375
|
return contents;
|
|
3378
3376
|
};
|
|
3379
3377
|
const deserializeAws_queryBatchEntryIdsNotDistinctException = (output, context) => {
|
|
3380
|
-
const contents = {
|
|
3381
|
-
message: undefined,
|
|
3382
|
-
};
|
|
3378
|
+
const contents = {};
|
|
3383
3379
|
if (output["message"] !== undefined) {
|
|
3384
3380
|
contents.message = __expectString(output["message"]);
|
|
3385
3381
|
}
|
|
3386
3382
|
return contents;
|
|
3387
3383
|
};
|
|
3388
3384
|
const deserializeAws_queryBatchRequestTooLongException = (output, context) => {
|
|
3389
|
-
const contents = {
|
|
3390
|
-
message: undefined,
|
|
3391
|
-
};
|
|
3385
|
+
const contents = {};
|
|
3392
3386
|
if (output["message"] !== undefined) {
|
|
3393
3387
|
contents.message = __expectString(output["message"]);
|
|
3394
3388
|
}
|
|
3395
3389
|
return contents;
|
|
3396
3390
|
};
|
|
3397
3391
|
const deserializeAws_queryBatchResultErrorEntry = (output, context) => {
|
|
3398
|
-
const contents = {
|
|
3399
|
-
Id: undefined,
|
|
3400
|
-
Code: undefined,
|
|
3401
|
-
Message: undefined,
|
|
3402
|
-
SenderFault: undefined,
|
|
3403
|
-
};
|
|
3392
|
+
const contents = {};
|
|
3404
3393
|
if (output["Id"] !== undefined) {
|
|
3405
3394
|
contents.Id = __expectString(output["Id"]);
|
|
3406
3395
|
}
|
|
@@ -3423,45 +3412,35 @@ const deserializeAws_queryBatchResultErrorEntryList = (output, context) => {
|
|
|
3423
3412
|
});
|
|
3424
3413
|
};
|
|
3425
3414
|
const deserializeAws_queryCheckIfPhoneNumberIsOptedOutResponse = (output, context) => {
|
|
3426
|
-
const contents = {
|
|
3427
|
-
isOptedOut: undefined,
|
|
3428
|
-
};
|
|
3415
|
+
const contents = {};
|
|
3429
3416
|
if (output["isOptedOut"] !== undefined) {
|
|
3430
3417
|
contents.isOptedOut = __parseBoolean(output["isOptedOut"]);
|
|
3431
3418
|
}
|
|
3432
3419
|
return contents;
|
|
3433
3420
|
};
|
|
3434
3421
|
const deserializeAws_queryConcurrentAccessException = (output, context) => {
|
|
3435
|
-
const contents = {
|
|
3436
|
-
message: undefined,
|
|
3437
|
-
};
|
|
3422
|
+
const contents = {};
|
|
3438
3423
|
if (output["message"] !== undefined) {
|
|
3439
3424
|
contents.message = __expectString(output["message"]);
|
|
3440
3425
|
}
|
|
3441
3426
|
return contents;
|
|
3442
3427
|
};
|
|
3443
3428
|
const deserializeAws_queryConfirmSubscriptionResponse = (output, context) => {
|
|
3444
|
-
const contents = {
|
|
3445
|
-
SubscriptionArn: undefined,
|
|
3446
|
-
};
|
|
3429
|
+
const contents = {};
|
|
3447
3430
|
if (output["SubscriptionArn"] !== undefined) {
|
|
3448
3431
|
contents.SubscriptionArn = __expectString(output["SubscriptionArn"]);
|
|
3449
3432
|
}
|
|
3450
3433
|
return contents;
|
|
3451
3434
|
};
|
|
3452
3435
|
const deserializeAws_queryCreateEndpointResponse = (output, context) => {
|
|
3453
|
-
const contents = {
|
|
3454
|
-
EndpointArn: undefined,
|
|
3455
|
-
};
|
|
3436
|
+
const contents = {};
|
|
3456
3437
|
if (output["EndpointArn"] !== undefined) {
|
|
3457
3438
|
contents.EndpointArn = __expectString(output["EndpointArn"]);
|
|
3458
3439
|
}
|
|
3459
3440
|
return contents;
|
|
3460
3441
|
};
|
|
3461
3442
|
const deserializeAws_queryCreatePlatformApplicationResponse = (output, context) => {
|
|
3462
|
-
const contents = {
|
|
3463
|
-
PlatformApplicationArn: undefined,
|
|
3464
|
-
};
|
|
3443
|
+
const contents = {};
|
|
3465
3444
|
if (output["PlatformApplicationArn"] !== undefined) {
|
|
3466
3445
|
contents.PlatformApplicationArn = __expectString(output["PlatformApplicationArn"]);
|
|
3467
3446
|
}
|
|
@@ -3472,9 +3451,7 @@ const deserializeAws_queryCreateSMSSandboxPhoneNumberResult = (output, context)
|
|
|
3472
3451
|
return contents;
|
|
3473
3452
|
};
|
|
3474
3453
|
const deserializeAws_queryCreateTopicResponse = (output, context) => {
|
|
3475
|
-
const contents = {
|
|
3476
|
-
TopicArn: undefined,
|
|
3477
|
-
};
|
|
3454
|
+
const contents = {};
|
|
3478
3455
|
if (output["TopicArn"] !== undefined) {
|
|
3479
3456
|
contents.TopicArn = __expectString(output["TopicArn"]);
|
|
3480
3457
|
}
|
|
@@ -3485,19 +3462,14 @@ const deserializeAws_queryDeleteSMSSandboxPhoneNumberResult = (output, context)
|
|
|
3485
3462
|
return contents;
|
|
3486
3463
|
};
|
|
3487
3464
|
const deserializeAws_queryEmptyBatchRequestException = (output, context) => {
|
|
3488
|
-
const contents = {
|
|
3489
|
-
message: undefined,
|
|
3490
|
-
};
|
|
3465
|
+
const contents = {};
|
|
3491
3466
|
if (output["message"] !== undefined) {
|
|
3492
3467
|
contents.message = __expectString(output["message"]);
|
|
3493
3468
|
}
|
|
3494
3469
|
return contents;
|
|
3495
3470
|
};
|
|
3496
3471
|
const deserializeAws_queryEndpoint = (output, context) => {
|
|
3497
|
-
const contents = {
|
|
3498
|
-
EndpointArn: undefined,
|
|
3499
|
-
Attributes: undefined,
|
|
3500
|
-
};
|
|
3472
|
+
const contents = {};
|
|
3501
3473
|
if (output["EndpointArn"] !== undefined) {
|
|
3502
3474
|
contents.EndpointArn = __expectString(output["EndpointArn"]);
|
|
3503
3475
|
}
|
|
@@ -3510,36 +3482,28 @@ const deserializeAws_queryEndpoint = (output, context) => {
|
|
|
3510
3482
|
return contents;
|
|
3511
3483
|
};
|
|
3512
3484
|
const deserializeAws_queryEndpointDisabledException = (output, context) => {
|
|
3513
|
-
const contents = {
|
|
3514
|
-
message: undefined,
|
|
3515
|
-
};
|
|
3485
|
+
const contents = {};
|
|
3516
3486
|
if (output["message"] !== undefined) {
|
|
3517
3487
|
contents.message = __expectString(output["message"]);
|
|
3518
3488
|
}
|
|
3519
3489
|
return contents;
|
|
3520
3490
|
};
|
|
3521
3491
|
const deserializeAws_queryFilterPolicyLimitExceededException = (output, context) => {
|
|
3522
|
-
const contents = {
|
|
3523
|
-
message: undefined,
|
|
3524
|
-
};
|
|
3492
|
+
const contents = {};
|
|
3525
3493
|
if (output["message"] !== undefined) {
|
|
3526
3494
|
contents.message = __expectString(output["message"]);
|
|
3527
3495
|
}
|
|
3528
3496
|
return contents;
|
|
3529
3497
|
};
|
|
3530
3498
|
const deserializeAws_queryGetDataProtectionPolicyResponse = (output, context) => {
|
|
3531
|
-
const contents = {
|
|
3532
|
-
DataProtectionPolicy: undefined,
|
|
3533
|
-
};
|
|
3499
|
+
const contents = {};
|
|
3534
3500
|
if (output["DataProtectionPolicy"] !== undefined) {
|
|
3535
3501
|
contents.DataProtectionPolicy = __expectString(output["DataProtectionPolicy"]);
|
|
3536
3502
|
}
|
|
3537
3503
|
return contents;
|
|
3538
3504
|
};
|
|
3539
3505
|
const deserializeAws_queryGetEndpointAttributesResponse = (output, context) => {
|
|
3540
|
-
const contents = {
|
|
3541
|
-
Attributes: undefined,
|
|
3542
|
-
};
|
|
3506
|
+
const contents = {};
|
|
3543
3507
|
if (output.Attributes === "") {
|
|
3544
3508
|
contents.Attributes = {};
|
|
3545
3509
|
}
|
|
@@ -3549,9 +3513,7 @@ const deserializeAws_queryGetEndpointAttributesResponse = (output, context) => {
|
|
|
3549
3513
|
return contents;
|
|
3550
3514
|
};
|
|
3551
3515
|
const deserializeAws_queryGetPlatformApplicationAttributesResponse = (output, context) => {
|
|
3552
|
-
const contents = {
|
|
3553
|
-
Attributes: undefined,
|
|
3554
|
-
};
|
|
3516
|
+
const contents = {};
|
|
3555
3517
|
if (output.Attributes === "") {
|
|
3556
3518
|
contents.Attributes = {};
|
|
3557
3519
|
}
|
|
@@ -3561,9 +3523,7 @@ const deserializeAws_queryGetPlatformApplicationAttributesResponse = (output, co
|
|
|
3561
3523
|
return contents;
|
|
3562
3524
|
};
|
|
3563
3525
|
const deserializeAws_queryGetSMSAttributesResponse = (output, context) => {
|
|
3564
|
-
const contents = {
|
|
3565
|
-
attributes: undefined,
|
|
3566
|
-
};
|
|
3526
|
+
const contents = {};
|
|
3567
3527
|
if (output.attributes === "") {
|
|
3568
3528
|
contents.attributes = {};
|
|
3569
3529
|
}
|
|
@@ -3573,18 +3533,14 @@ const deserializeAws_queryGetSMSAttributesResponse = (output, context) => {
|
|
|
3573
3533
|
return contents;
|
|
3574
3534
|
};
|
|
3575
3535
|
const deserializeAws_queryGetSMSSandboxAccountStatusResult = (output, context) => {
|
|
3576
|
-
const contents = {
|
|
3577
|
-
IsInSandbox: undefined,
|
|
3578
|
-
};
|
|
3536
|
+
const contents = {};
|
|
3579
3537
|
if (output["IsInSandbox"] !== undefined) {
|
|
3580
3538
|
contents.IsInSandbox = __parseBoolean(output["IsInSandbox"]);
|
|
3581
3539
|
}
|
|
3582
3540
|
return contents;
|
|
3583
3541
|
};
|
|
3584
3542
|
const deserializeAws_queryGetSubscriptionAttributesResponse = (output, context) => {
|
|
3585
|
-
const contents = {
|
|
3586
|
-
Attributes: undefined,
|
|
3587
|
-
};
|
|
3543
|
+
const contents = {};
|
|
3588
3544
|
if (output.Attributes === "") {
|
|
3589
3545
|
contents.Attributes = {};
|
|
3590
3546
|
}
|
|
@@ -3594,9 +3550,7 @@ const deserializeAws_queryGetSubscriptionAttributesResponse = (output, context)
|
|
|
3594
3550
|
return contents;
|
|
3595
3551
|
};
|
|
3596
3552
|
const deserializeAws_queryGetTopicAttributesResponse = (output, context) => {
|
|
3597
|
-
const contents = {
|
|
3598
|
-
Attributes: undefined,
|
|
3599
|
-
};
|
|
3553
|
+
const contents = {};
|
|
3600
3554
|
if (output.Attributes === "") {
|
|
3601
3555
|
contents.Attributes = {};
|
|
3602
3556
|
}
|
|
@@ -3606,109 +3560,84 @@ const deserializeAws_queryGetTopicAttributesResponse = (output, context) => {
|
|
|
3606
3560
|
return contents;
|
|
3607
3561
|
};
|
|
3608
3562
|
const deserializeAws_queryInternalErrorException = (output, context) => {
|
|
3609
|
-
const contents = {
|
|
3610
|
-
message: undefined,
|
|
3611
|
-
};
|
|
3563
|
+
const contents = {};
|
|
3612
3564
|
if (output["message"] !== undefined) {
|
|
3613
3565
|
contents.message = __expectString(output["message"]);
|
|
3614
3566
|
}
|
|
3615
3567
|
return contents;
|
|
3616
3568
|
};
|
|
3617
3569
|
const deserializeAws_queryInvalidBatchEntryIdException = (output, context) => {
|
|
3618
|
-
const contents = {
|
|
3619
|
-
message: undefined,
|
|
3620
|
-
};
|
|
3570
|
+
const contents = {};
|
|
3621
3571
|
if (output["message"] !== undefined) {
|
|
3622
3572
|
contents.message = __expectString(output["message"]);
|
|
3623
3573
|
}
|
|
3624
3574
|
return contents;
|
|
3625
3575
|
};
|
|
3626
3576
|
const deserializeAws_queryInvalidParameterException = (output, context) => {
|
|
3627
|
-
const contents = {
|
|
3628
|
-
message: undefined,
|
|
3629
|
-
};
|
|
3577
|
+
const contents = {};
|
|
3630
3578
|
if (output["message"] !== undefined) {
|
|
3631
3579
|
contents.message = __expectString(output["message"]);
|
|
3632
3580
|
}
|
|
3633
3581
|
return contents;
|
|
3634
3582
|
};
|
|
3635
3583
|
const deserializeAws_queryInvalidParameterValueException = (output, context) => {
|
|
3636
|
-
const contents = {
|
|
3637
|
-
message: undefined,
|
|
3638
|
-
};
|
|
3584
|
+
const contents = {};
|
|
3639
3585
|
if (output["message"] !== undefined) {
|
|
3640
3586
|
contents.message = __expectString(output["message"]);
|
|
3641
3587
|
}
|
|
3642
3588
|
return contents;
|
|
3643
3589
|
};
|
|
3644
3590
|
const deserializeAws_queryInvalidSecurityException = (output, context) => {
|
|
3645
|
-
const contents = {
|
|
3646
|
-
message: undefined,
|
|
3647
|
-
};
|
|
3591
|
+
const contents = {};
|
|
3648
3592
|
if (output["message"] !== undefined) {
|
|
3649
3593
|
contents.message = __expectString(output["message"]);
|
|
3650
3594
|
}
|
|
3651
3595
|
return contents;
|
|
3652
3596
|
};
|
|
3653
3597
|
const deserializeAws_queryKMSAccessDeniedException = (output, context) => {
|
|
3654
|
-
const contents = {
|
|
3655
|
-
message: undefined,
|
|
3656
|
-
};
|
|
3598
|
+
const contents = {};
|
|
3657
3599
|
if (output["message"] !== undefined) {
|
|
3658
3600
|
contents.message = __expectString(output["message"]);
|
|
3659
3601
|
}
|
|
3660
3602
|
return contents;
|
|
3661
3603
|
};
|
|
3662
3604
|
const deserializeAws_queryKMSDisabledException = (output, context) => {
|
|
3663
|
-
const contents = {
|
|
3664
|
-
message: undefined,
|
|
3665
|
-
};
|
|
3605
|
+
const contents = {};
|
|
3666
3606
|
if (output["message"] !== undefined) {
|
|
3667
3607
|
contents.message = __expectString(output["message"]);
|
|
3668
3608
|
}
|
|
3669
3609
|
return contents;
|
|
3670
3610
|
};
|
|
3671
3611
|
const deserializeAws_queryKMSInvalidStateException = (output, context) => {
|
|
3672
|
-
const contents = {
|
|
3673
|
-
message: undefined,
|
|
3674
|
-
};
|
|
3612
|
+
const contents = {};
|
|
3675
3613
|
if (output["message"] !== undefined) {
|
|
3676
3614
|
contents.message = __expectString(output["message"]);
|
|
3677
3615
|
}
|
|
3678
3616
|
return contents;
|
|
3679
3617
|
};
|
|
3680
3618
|
const deserializeAws_queryKMSNotFoundException = (output, context) => {
|
|
3681
|
-
const contents = {
|
|
3682
|
-
message: undefined,
|
|
3683
|
-
};
|
|
3619
|
+
const contents = {};
|
|
3684
3620
|
if (output["message"] !== undefined) {
|
|
3685
3621
|
contents.message = __expectString(output["message"]);
|
|
3686
3622
|
}
|
|
3687
3623
|
return contents;
|
|
3688
3624
|
};
|
|
3689
3625
|
const deserializeAws_queryKMSOptInRequired = (output, context) => {
|
|
3690
|
-
const contents = {
|
|
3691
|
-
message: undefined,
|
|
3692
|
-
};
|
|
3626
|
+
const contents = {};
|
|
3693
3627
|
if (output["message"] !== undefined) {
|
|
3694
3628
|
contents.message = __expectString(output["message"]);
|
|
3695
3629
|
}
|
|
3696
3630
|
return contents;
|
|
3697
3631
|
};
|
|
3698
3632
|
const deserializeAws_queryKMSThrottlingException = (output, context) => {
|
|
3699
|
-
const contents = {
|
|
3700
|
-
message: undefined,
|
|
3701
|
-
};
|
|
3633
|
+
const contents = {};
|
|
3702
3634
|
if (output["message"] !== undefined) {
|
|
3703
3635
|
contents.message = __expectString(output["message"]);
|
|
3704
3636
|
}
|
|
3705
3637
|
return contents;
|
|
3706
3638
|
};
|
|
3707
3639
|
const deserializeAws_queryListEndpointsByPlatformApplicationResponse = (output, context) => {
|
|
3708
|
-
const contents = {
|
|
3709
|
-
Endpoints: undefined,
|
|
3710
|
-
NextToken: undefined,
|
|
3711
|
-
};
|
|
3640
|
+
const contents = {};
|
|
3712
3641
|
if (output.Endpoints === "") {
|
|
3713
3642
|
contents.Endpoints = [];
|
|
3714
3643
|
}
|
|
@@ -3735,10 +3664,7 @@ const deserializeAws_queryListOfPlatformApplications = (output, context) => {
|
|
|
3735
3664
|
});
|
|
3736
3665
|
};
|
|
3737
3666
|
const deserializeAws_queryListOriginationNumbersResult = (output, context) => {
|
|
3738
|
-
const contents = {
|
|
3739
|
-
NextToken: undefined,
|
|
3740
|
-
PhoneNumbers: undefined,
|
|
3741
|
-
};
|
|
3667
|
+
const contents = {};
|
|
3742
3668
|
if (output["NextToken"] !== undefined) {
|
|
3743
3669
|
contents.NextToken = __expectString(output["NextToken"]);
|
|
3744
3670
|
}
|
|
@@ -3751,10 +3677,7 @@ const deserializeAws_queryListOriginationNumbersResult = (output, context) => {
|
|
|
3751
3677
|
return contents;
|
|
3752
3678
|
};
|
|
3753
3679
|
const deserializeAws_queryListPhoneNumbersOptedOutResponse = (output, context) => {
|
|
3754
|
-
const contents = {
|
|
3755
|
-
phoneNumbers: undefined,
|
|
3756
|
-
nextToken: undefined,
|
|
3757
|
-
};
|
|
3680
|
+
const contents = {};
|
|
3758
3681
|
if (output.phoneNumbers === "") {
|
|
3759
3682
|
contents.phoneNumbers = [];
|
|
3760
3683
|
}
|
|
@@ -3767,10 +3690,7 @@ const deserializeAws_queryListPhoneNumbersOptedOutResponse = (output, context) =
|
|
|
3767
3690
|
return contents;
|
|
3768
3691
|
};
|
|
3769
3692
|
const deserializeAws_queryListPlatformApplicationsResponse = (output, context) => {
|
|
3770
|
-
const contents = {
|
|
3771
|
-
PlatformApplications: undefined,
|
|
3772
|
-
NextToken: undefined,
|
|
3773
|
-
};
|
|
3693
|
+
const contents = {};
|
|
3774
3694
|
if (output.PlatformApplications === "") {
|
|
3775
3695
|
contents.PlatformApplications = [];
|
|
3776
3696
|
}
|
|
@@ -3783,10 +3703,7 @@ const deserializeAws_queryListPlatformApplicationsResponse = (output, context) =
|
|
|
3783
3703
|
return contents;
|
|
3784
3704
|
};
|
|
3785
3705
|
const deserializeAws_queryListSMSSandboxPhoneNumbersResult = (output, context) => {
|
|
3786
|
-
const contents = {
|
|
3787
|
-
PhoneNumbers: undefined,
|
|
3788
|
-
NextToken: undefined,
|
|
3789
|
-
};
|
|
3706
|
+
const contents = {};
|
|
3790
3707
|
if (output.PhoneNumbers === "") {
|
|
3791
3708
|
contents.PhoneNumbers = [];
|
|
3792
3709
|
}
|
|
@@ -3799,10 +3716,7 @@ const deserializeAws_queryListSMSSandboxPhoneNumbersResult = (output, context) =
|
|
|
3799
3716
|
return contents;
|
|
3800
3717
|
};
|
|
3801
3718
|
const deserializeAws_queryListSubscriptionsByTopicResponse = (output, context) => {
|
|
3802
|
-
const contents = {
|
|
3803
|
-
Subscriptions: undefined,
|
|
3804
|
-
NextToken: undefined,
|
|
3805
|
-
};
|
|
3719
|
+
const contents = {};
|
|
3806
3720
|
if (output.Subscriptions === "") {
|
|
3807
3721
|
contents.Subscriptions = [];
|
|
3808
3722
|
}
|
|
@@ -3815,10 +3729,7 @@ const deserializeAws_queryListSubscriptionsByTopicResponse = (output, context) =
|
|
|
3815
3729
|
return contents;
|
|
3816
3730
|
};
|
|
3817
3731
|
const deserializeAws_queryListSubscriptionsResponse = (output, context) => {
|
|
3818
|
-
const contents = {
|
|
3819
|
-
Subscriptions: undefined,
|
|
3820
|
-
NextToken: undefined,
|
|
3821
|
-
};
|
|
3732
|
+
const contents = {};
|
|
3822
3733
|
if (output.Subscriptions === "") {
|
|
3823
3734
|
contents.Subscriptions = [];
|
|
3824
3735
|
}
|
|
@@ -3831,9 +3742,7 @@ const deserializeAws_queryListSubscriptionsResponse = (output, context) => {
|
|
|
3831
3742
|
return contents;
|
|
3832
3743
|
};
|
|
3833
3744
|
const deserializeAws_queryListTagsForResourceResponse = (output, context) => {
|
|
3834
|
-
const contents = {
|
|
3835
|
-
Tags: undefined,
|
|
3836
|
-
};
|
|
3745
|
+
const contents = {};
|
|
3837
3746
|
if (output.Tags === "") {
|
|
3838
3747
|
contents.Tags = [];
|
|
3839
3748
|
}
|
|
@@ -3843,10 +3752,7 @@ const deserializeAws_queryListTagsForResourceResponse = (output, context) => {
|
|
|
3843
3752
|
return contents;
|
|
3844
3753
|
};
|
|
3845
3754
|
const deserializeAws_queryListTopicsResponse = (output, context) => {
|
|
3846
|
-
const contents = {
|
|
3847
|
-
Topics: undefined,
|
|
3848
|
-
NextToken: undefined,
|
|
3849
|
-
};
|
|
3755
|
+
const contents = {};
|
|
3850
3756
|
if (output.Topics === "") {
|
|
3851
3757
|
contents.Topics = [];
|
|
3852
3758
|
}
|
|
@@ -3868,9 +3774,7 @@ const deserializeAws_queryMapStringToString = (output, context) => {
|
|
|
3868
3774
|
}, {});
|
|
3869
3775
|
};
|
|
3870
3776
|
const deserializeAws_queryNotFoundException = (output, context) => {
|
|
3871
|
-
const contents = {
|
|
3872
|
-
message: undefined,
|
|
3873
|
-
};
|
|
3777
|
+
const contents = {};
|
|
3874
3778
|
if (output["message"] !== undefined) {
|
|
3875
3779
|
contents.message = __expectString(output["message"]);
|
|
3876
3780
|
}
|
|
@@ -3884,9 +3788,7 @@ const deserializeAws_queryNumberCapabilityList = (output, context) => {
|
|
|
3884
3788
|
});
|
|
3885
3789
|
};
|
|
3886
3790
|
const deserializeAws_queryOptedOutException = (output, context) => {
|
|
3887
|
-
const contents = {
|
|
3888
|
-
message: undefined,
|
|
3889
|
-
};
|
|
3791
|
+
const contents = {};
|
|
3890
3792
|
if (output["message"] !== undefined) {
|
|
3891
3793
|
contents.message = __expectString(output["message"]);
|
|
3892
3794
|
}
|
|
@@ -3897,14 +3799,7 @@ const deserializeAws_queryOptInPhoneNumberResponse = (output, context) => {
|
|
|
3897
3799
|
return contents;
|
|
3898
3800
|
};
|
|
3899
3801
|
const deserializeAws_queryPhoneNumberInformation = (output, context) => {
|
|
3900
|
-
const contents = {
|
|
3901
|
-
CreatedAt: undefined,
|
|
3902
|
-
PhoneNumber: undefined,
|
|
3903
|
-
Status: undefined,
|
|
3904
|
-
Iso2CountryCode: undefined,
|
|
3905
|
-
RouteType: undefined,
|
|
3906
|
-
NumberCapabilities: undefined,
|
|
3907
|
-
};
|
|
3802
|
+
const contents = {};
|
|
3908
3803
|
if (output["CreatedAt"] !== undefined) {
|
|
3909
3804
|
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedAt"]));
|
|
3910
3805
|
}
|
|
@@ -3943,10 +3838,7 @@ const deserializeAws_queryPhoneNumberList = (output, context) => {
|
|
|
3943
3838
|
});
|
|
3944
3839
|
};
|
|
3945
3840
|
const deserializeAws_queryPlatformApplication = (output, context) => {
|
|
3946
|
-
const contents = {
|
|
3947
|
-
PlatformApplicationArn: undefined,
|
|
3948
|
-
Attributes: undefined,
|
|
3949
|
-
};
|
|
3841
|
+
const contents = {};
|
|
3950
3842
|
if (output["PlatformApplicationArn"] !== undefined) {
|
|
3951
3843
|
contents.PlatformApplicationArn = __expectString(output["PlatformApplicationArn"]);
|
|
3952
3844
|
}
|
|
@@ -3959,19 +3851,14 @@ const deserializeAws_queryPlatformApplication = (output, context) => {
|
|
|
3959
3851
|
return contents;
|
|
3960
3852
|
};
|
|
3961
3853
|
const deserializeAws_queryPlatformApplicationDisabledException = (output, context) => {
|
|
3962
|
-
const contents = {
|
|
3963
|
-
message: undefined,
|
|
3964
|
-
};
|
|
3854
|
+
const contents = {};
|
|
3965
3855
|
if (output["message"] !== undefined) {
|
|
3966
3856
|
contents.message = __expectString(output["message"]);
|
|
3967
3857
|
}
|
|
3968
3858
|
return contents;
|
|
3969
3859
|
};
|
|
3970
3860
|
const deserializeAws_queryPublishBatchResponse = (output, context) => {
|
|
3971
|
-
const contents = {
|
|
3972
|
-
Successful: undefined,
|
|
3973
|
-
Failed: undefined,
|
|
3974
|
-
};
|
|
3861
|
+
const contents = {};
|
|
3975
3862
|
if (output.Successful === "") {
|
|
3976
3863
|
contents.Successful = [];
|
|
3977
3864
|
}
|
|
@@ -3987,11 +3874,7 @@ const deserializeAws_queryPublishBatchResponse = (output, context) => {
|
|
|
3987
3874
|
return contents;
|
|
3988
3875
|
};
|
|
3989
3876
|
const deserializeAws_queryPublishBatchResultEntry = (output, context) => {
|
|
3990
|
-
const contents = {
|
|
3991
|
-
Id: undefined,
|
|
3992
|
-
MessageId: undefined,
|
|
3993
|
-
SequenceNumber: undefined,
|
|
3994
|
-
};
|
|
3877
|
+
const contents = {};
|
|
3995
3878
|
if (output["Id"] !== undefined) {
|
|
3996
3879
|
contents.Id = __expectString(output["Id"]);
|
|
3997
3880
|
}
|
|
@@ -4011,10 +3894,7 @@ const deserializeAws_queryPublishBatchResultEntryList = (output, context) => {
|
|
|
4011
3894
|
});
|
|
4012
3895
|
};
|
|
4013
3896
|
const deserializeAws_queryPublishResponse = (output, context) => {
|
|
4014
|
-
const contents = {
|
|
4015
|
-
MessageId: undefined,
|
|
4016
|
-
SequenceNumber: undefined,
|
|
4017
|
-
};
|
|
3897
|
+
const contents = {};
|
|
4018
3898
|
if (output["MessageId"] !== undefined) {
|
|
4019
3899
|
contents.MessageId = __expectString(output["MessageId"]);
|
|
4020
3900
|
}
|
|
@@ -4024,9 +3904,7 @@ const deserializeAws_queryPublishResponse = (output, context) => {
|
|
|
4024
3904
|
return contents;
|
|
4025
3905
|
};
|
|
4026
3906
|
const deserializeAws_queryResourceNotFoundException = (output, context) => {
|
|
4027
|
-
const contents = {
|
|
4028
|
-
message: undefined,
|
|
4029
|
-
};
|
|
3907
|
+
const contents = {};
|
|
4030
3908
|
if (output["message"] !== undefined) {
|
|
4031
3909
|
contents.message = __expectString(output["message"]);
|
|
4032
3910
|
}
|
|
@@ -4037,10 +3915,7 @@ const deserializeAws_querySetSMSAttributesResponse = (output, context) => {
|
|
|
4037
3915
|
return contents;
|
|
4038
3916
|
};
|
|
4039
3917
|
const deserializeAws_querySMSSandboxPhoneNumber = (output, context) => {
|
|
4040
|
-
const contents = {
|
|
4041
|
-
PhoneNumber: undefined,
|
|
4042
|
-
Status: undefined,
|
|
4043
|
-
};
|
|
3918
|
+
const contents = {};
|
|
4044
3919
|
if (output["PhoneNumber"] !== undefined) {
|
|
4045
3920
|
contents.PhoneNumber = __expectString(output["PhoneNumber"]);
|
|
4046
3921
|
}
|
|
@@ -4057,31 +3932,21 @@ const deserializeAws_querySMSSandboxPhoneNumberList = (output, context) => {
|
|
|
4057
3932
|
});
|
|
4058
3933
|
};
|
|
4059
3934
|
const deserializeAws_queryStaleTagException = (output, context) => {
|
|
4060
|
-
const contents = {
|
|
4061
|
-
message: undefined,
|
|
4062
|
-
};
|
|
3935
|
+
const contents = {};
|
|
4063
3936
|
if (output["message"] !== undefined) {
|
|
4064
3937
|
contents.message = __expectString(output["message"]);
|
|
4065
3938
|
}
|
|
4066
3939
|
return contents;
|
|
4067
3940
|
};
|
|
4068
3941
|
const deserializeAws_querySubscribeResponse = (output, context) => {
|
|
4069
|
-
const contents = {
|
|
4070
|
-
SubscriptionArn: undefined,
|
|
4071
|
-
};
|
|
3942
|
+
const contents = {};
|
|
4072
3943
|
if (output["SubscriptionArn"] !== undefined) {
|
|
4073
3944
|
contents.SubscriptionArn = __expectString(output["SubscriptionArn"]);
|
|
4074
3945
|
}
|
|
4075
3946
|
return contents;
|
|
4076
3947
|
};
|
|
4077
3948
|
const deserializeAws_querySubscription = (output, context) => {
|
|
4078
|
-
const contents = {
|
|
4079
|
-
SubscriptionArn: undefined,
|
|
4080
|
-
Owner: undefined,
|
|
4081
|
-
Protocol: undefined,
|
|
4082
|
-
Endpoint: undefined,
|
|
4083
|
-
TopicArn: undefined,
|
|
4084
|
-
};
|
|
3949
|
+
const contents = {};
|
|
4085
3950
|
if (output["SubscriptionArn"] !== undefined) {
|
|
4086
3951
|
contents.SubscriptionArn = __expectString(output["SubscriptionArn"]);
|
|
4087
3952
|
}
|
|
@@ -4109,9 +3974,7 @@ const deserializeAws_querySubscriptionAttributesMap = (output, context) => {
|
|
|
4109
3974
|
}, {});
|
|
4110
3975
|
};
|
|
4111
3976
|
const deserializeAws_querySubscriptionLimitExceededException = (output, context) => {
|
|
4112
|
-
const contents = {
|
|
4113
|
-
message: undefined,
|
|
4114
|
-
};
|
|
3977
|
+
const contents = {};
|
|
4115
3978
|
if (output["message"] !== undefined) {
|
|
4116
3979
|
contents.message = __expectString(output["message"]);
|
|
4117
3980
|
}
|
|
@@ -4125,10 +3988,7 @@ const deserializeAws_querySubscriptionsList = (output, context) => {
|
|
|
4125
3988
|
});
|
|
4126
3989
|
};
|
|
4127
3990
|
const deserializeAws_queryTag = (output, context) => {
|
|
4128
|
-
const contents = {
|
|
4129
|
-
Key: undefined,
|
|
4130
|
-
Value: undefined,
|
|
4131
|
-
};
|
|
3991
|
+
const contents = {};
|
|
4132
3992
|
if (output["Key"] !== undefined) {
|
|
4133
3993
|
contents.Key = __expectString(output["Key"]);
|
|
4134
3994
|
}
|
|
@@ -4138,9 +3998,7 @@ const deserializeAws_queryTag = (output, context) => {
|
|
|
4138
3998
|
return contents;
|
|
4139
3999
|
};
|
|
4140
4000
|
const deserializeAws_queryTagLimitExceededException = (output, context) => {
|
|
4141
|
-
const contents = {
|
|
4142
|
-
message: undefined,
|
|
4143
|
-
};
|
|
4001
|
+
const contents = {};
|
|
4144
4002
|
if (output["message"] !== undefined) {
|
|
4145
4003
|
contents.message = __expectString(output["message"]);
|
|
4146
4004
|
}
|
|
@@ -4154,9 +4012,7 @@ const deserializeAws_queryTagList = (output, context) => {
|
|
|
4154
4012
|
});
|
|
4155
4013
|
};
|
|
4156
4014
|
const deserializeAws_queryTagPolicyException = (output, context) => {
|
|
4157
|
-
const contents = {
|
|
4158
|
-
message: undefined,
|
|
4159
|
-
};
|
|
4015
|
+
const contents = {};
|
|
4160
4016
|
if (output["message"] !== undefined) {
|
|
4161
4017
|
contents.message = __expectString(output["message"]);
|
|
4162
4018
|
}
|
|
@@ -4167,27 +4023,21 @@ const deserializeAws_queryTagResourceResponse = (output, context) => {
|
|
|
4167
4023
|
return contents;
|
|
4168
4024
|
};
|
|
4169
4025
|
const deserializeAws_queryThrottledException = (output, context) => {
|
|
4170
|
-
const contents = {
|
|
4171
|
-
message: undefined,
|
|
4172
|
-
};
|
|
4026
|
+
const contents = {};
|
|
4173
4027
|
if (output["message"] !== undefined) {
|
|
4174
4028
|
contents.message = __expectString(output["message"]);
|
|
4175
4029
|
}
|
|
4176
4030
|
return contents;
|
|
4177
4031
|
};
|
|
4178
4032
|
const deserializeAws_queryTooManyEntriesInBatchRequestException = (output, context) => {
|
|
4179
|
-
const contents = {
|
|
4180
|
-
message: undefined,
|
|
4181
|
-
};
|
|
4033
|
+
const contents = {};
|
|
4182
4034
|
if (output["message"] !== undefined) {
|
|
4183
4035
|
contents.message = __expectString(output["message"]);
|
|
4184
4036
|
}
|
|
4185
4037
|
return contents;
|
|
4186
4038
|
};
|
|
4187
4039
|
const deserializeAws_queryTopic = (output, context) => {
|
|
4188
|
-
const contents = {
|
|
4189
|
-
TopicArn: undefined,
|
|
4190
|
-
};
|
|
4040
|
+
const contents = {};
|
|
4191
4041
|
if (output["TopicArn"] !== undefined) {
|
|
4192
4042
|
contents.TopicArn = __expectString(output["TopicArn"]);
|
|
4193
4043
|
}
|
|
@@ -4203,9 +4053,7 @@ const deserializeAws_queryTopicAttributesMap = (output, context) => {
|
|
|
4203
4053
|
}, {});
|
|
4204
4054
|
};
|
|
4205
4055
|
const deserializeAws_queryTopicLimitExceededException = (output, context) => {
|
|
4206
|
-
const contents = {
|
|
4207
|
-
message: undefined,
|
|
4208
|
-
};
|
|
4056
|
+
const contents = {};
|
|
4209
4057
|
if (output["message"] !== undefined) {
|
|
4210
4058
|
contents.message = __expectString(output["message"]);
|
|
4211
4059
|
}
|
|
@@ -4223,28 +4071,21 @@ const deserializeAws_queryUntagResourceResponse = (output, context) => {
|
|
|
4223
4071
|
return contents;
|
|
4224
4072
|
};
|
|
4225
4073
|
const deserializeAws_queryUserErrorException = (output, context) => {
|
|
4226
|
-
const contents = {
|
|
4227
|
-
message: undefined,
|
|
4228
|
-
};
|
|
4074
|
+
const contents = {};
|
|
4229
4075
|
if (output["message"] !== undefined) {
|
|
4230
4076
|
contents.message = __expectString(output["message"]);
|
|
4231
4077
|
}
|
|
4232
4078
|
return contents;
|
|
4233
4079
|
};
|
|
4234
4080
|
const deserializeAws_queryValidationException = (output, context) => {
|
|
4235
|
-
const contents = {
|
|
4236
|
-
Message: undefined,
|
|
4237
|
-
};
|
|
4081
|
+
const contents = {};
|
|
4238
4082
|
if (output["Message"] !== undefined) {
|
|
4239
4083
|
contents.Message = __expectString(output["Message"]);
|
|
4240
4084
|
}
|
|
4241
4085
|
return contents;
|
|
4242
4086
|
};
|
|
4243
4087
|
const deserializeAws_queryVerificationException = (output, context) => {
|
|
4244
|
-
const contents = {
|
|
4245
|
-
Message: undefined,
|
|
4246
|
-
Status: undefined,
|
|
4247
|
-
};
|
|
4088
|
+
const contents = {};
|
|
4248
4089
|
if (output["Message"] !== undefined) {
|
|
4249
4090
|
contents.Message = __expectString(output["Message"]);
|
|
4250
4091
|
}
|