@aws-sdk/client-docdb 3.201.0 → 3.204.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 +150 -0
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/protocols/Aws_query.js +150 -0
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +6 -5
- package/CHANGELOG.md +0 -3249
|
@@ -3440,6 +3440,9 @@ const serializeAws_queryAddTagsToResourceMessage = (input, context) => {
|
|
|
3440
3440
|
}
|
|
3441
3441
|
if (input.Tags != null) {
|
|
3442
3442
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
3443
|
+
if (input.Tags?.length === 0) {
|
|
3444
|
+
entries.Tags = [];
|
|
3445
|
+
}
|
|
3443
3446
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3444
3447
|
const loc = `Tags.${key}`;
|
|
3445
3448
|
entries[loc] = value;
|
|
@@ -3488,6 +3491,9 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
|
|
|
3488
3491
|
const entries = {};
|
|
3489
3492
|
if (input.EnableLogTypes != null) {
|
|
3490
3493
|
const memberEntries = serializeAws_queryLogTypeList(input.EnableLogTypes, context);
|
|
3494
|
+
if (input.EnableLogTypes?.length === 0) {
|
|
3495
|
+
entries.EnableLogTypes = [];
|
|
3496
|
+
}
|
|
3491
3497
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3492
3498
|
const loc = `EnableLogTypes.${key}`;
|
|
3493
3499
|
entries[loc] = value;
|
|
@@ -3495,6 +3501,9 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
|
|
|
3495
3501
|
}
|
|
3496
3502
|
if (input.DisableLogTypes != null) {
|
|
3497
3503
|
const memberEntries = serializeAws_queryLogTypeList(input.DisableLogTypes, context);
|
|
3504
|
+
if (input.DisableLogTypes?.length === 0) {
|
|
3505
|
+
entries.DisableLogTypes = [];
|
|
3506
|
+
}
|
|
3498
3507
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3499
3508
|
const loc = `DisableLogTypes.${key}`;
|
|
3500
3509
|
entries[loc] = value;
|
|
@@ -3515,6 +3524,9 @@ const serializeAws_queryCopyDBClusterParameterGroupMessage = (input, context) =>
|
|
|
3515
3524
|
}
|
|
3516
3525
|
if (input.Tags != null) {
|
|
3517
3526
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
3527
|
+
if (input.Tags?.length === 0) {
|
|
3528
|
+
entries.Tags = [];
|
|
3529
|
+
}
|
|
3518
3530
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3519
3531
|
const loc = `Tags.${key}`;
|
|
3520
3532
|
entries[loc] = value;
|
|
@@ -3541,6 +3553,9 @@ const serializeAws_queryCopyDBClusterSnapshotMessage = (input, context) => {
|
|
|
3541
3553
|
}
|
|
3542
3554
|
if (input.Tags != null) {
|
|
3543
3555
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
3556
|
+
if (input.Tags?.length === 0) {
|
|
3557
|
+
entries.Tags = [];
|
|
3558
|
+
}
|
|
3544
3559
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3545
3560
|
const loc = `Tags.${key}`;
|
|
3546
3561
|
entries[loc] = value;
|
|
@@ -3552,6 +3567,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
|
|
|
3552
3567
|
const entries = {};
|
|
3553
3568
|
if (input.AvailabilityZones != null) {
|
|
3554
3569
|
const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
|
|
3570
|
+
if (input.AvailabilityZones?.length === 0) {
|
|
3571
|
+
entries.AvailabilityZones = [];
|
|
3572
|
+
}
|
|
3555
3573
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3556
3574
|
const loc = `AvailabilityZones.${key}`;
|
|
3557
3575
|
entries[loc] = value;
|
|
@@ -3568,6 +3586,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
|
|
|
3568
3586
|
}
|
|
3569
3587
|
if (input.VpcSecurityGroupIds != null) {
|
|
3570
3588
|
const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
|
|
3589
|
+
if (input.VpcSecurityGroupIds?.length === 0) {
|
|
3590
|
+
entries.VpcSecurityGroupIds = [];
|
|
3591
|
+
}
|
|
3571
3592
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3572
3593
|
const loc = `VpcSecurityGroupIds.${key}`;
|
|
3573
3594
|
entries[loc] = value;
|
|
@@ -3599,6 +3620,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
|
|
|
3599
3620
|
}
|
|
3600
3621
|
if (input.Tags != null) {
|
|
3601
3622
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
3623
|
+
if (input.Tags?.length === 0) {
|
|
3624
|
+
entries.Tags = [];
|
|
3625
|
+
}
|
|
3602
3626
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3603
3627
|
const loc = `Tags.${key}`;
|
|
3604
3628
|
entries[loc] = value;
|
|
@@ -3615,6 +3639,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
|
|
|
3615
3639
|
}
|
|
3616
3640
|
if (input.EnableCloudwatchLogsExports != null) {
|
|
3617
3641
|
const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
|
|
3642
|
+
if (input.EnableCloudwatchLogsExports?.length === 0) {
|
|
3643
|
+
entries.EnableCloudwatchLogsExports = [];
|
|
3644
|
+
}
|
|
3618
3645
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3619
3646
|
const loc = `EnableCloudwatchLogsExports.${key}`;
|
|
3620
3647
|
entries[loc] = value;
|
|
@@ -3641,6 +3668,9 @@ const serializeAws_queryCreateDBClusterParameterGroupMessage = (input, context)
|
|
|
3641
3668
|
}
|
|
3642
3669
|
if (input.Tags != null) {
|
|
3643
3670
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
3671
|
+
if (input.Tags?.length === 0) {
|
|
3672
|
+
entries.Tags = [];
|
|
3673
|
+
}
|
|
3644
3674
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3645
3675
|
const loc = `Tags.${key}`;
|
|
3646
3676
|
entries[loc] = value;
|
|
@@ -3658,6 +3688,9 @@ const serializeAws_queryCreateDBClusterSnapshotMessage = (input, context) => {
|
|
|
3658
3688
|
}
|
|
3659
3689
|
if (input.Tags != null) {
|
|
3660
3690
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
3691
|
+
if (input.Tags?.length === 0) {
|
|
3692
|
+
entries.Tags = [];
|
|
3693
|
+
}
|
|
3661
3694
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3662
3695
|
const loc = `Tags.${key}`;
|
|
3663
3696
|
entries[loc] = value;
|
|
@@ -3687,6 +3720,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
|
|
|
3687
3720
|
}
|
|
3688
3721
|
if (input.Tags != null) {
|
|
3689
3722
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
3723
|
+
if (input.Tags?.length === 0) {
|
|
3724
|
+
entries.Tags = [];
|
|
3725
|
+
}
|
|
3690
3726
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3691
3727
|
const loc = `Tags.${key}`;
|
|
3692
3728
|
entries[loc] = value;
|
|
@@ -3719,6 +3755,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
|
|
|
3719
3755
|
}
|
|
3720
3756
|
if (input.SubnetIds != null) {
|
|
3721
3757
|
const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
|
|
3758
|
+
if (input.SubnetIds?.length === 0) {
|
|
3759
|
+
entries.SubnetIds = [];
|
|
3760
|
+
}
|
|
3722
3761
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3723
3762
|
const loc = `SubnetIds.${key}`;
|
|
3724
3763
|
entries[loc] = value;
|
|
@@ -3726,6 +3765,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
|
|
|
3726
3765
|
}
|
|
3727
3766
|
if (input.Tags != null) {
|
|
3728
3767
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
3768
|
+
if (input.Tags?.length === 0) {
|
|
3769
|
+
entries.Tags = [];
|
|
3770
|
+
}
|
|
3729
3771
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3730
3772
|
const loc = `Tags.${key}`;
|
|
3731
3773
|
entries[loc] = value;
|
|
@@ -3746,6 +3788,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
|
|
|
3746
3788
|
}
|
|
3747
3789
|
if (input.EventCategories != null) {
|
|
3748
3790
|
const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
|
|
3791
|
+
if (input.EventCategories?.length === 0) {
|
|
3792
|
+
entries.EventCategories = [];
|
|
3793
|
+
}
|
|
3749
3794
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3750
3795
|
const loc = `EventCategories.${key}`;
|
|
3751
3796
|
entries[loc] = value;
|
|
@@ -3753,6 +3798,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
|
|
|
3753
3798
|
}
|
|
3754
3799
|
if (input.SourceIds != null) {
|
|
3755
3800
|
const memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
|
|
3801
|
+
if (input.SourceIds?.length === 0) {
|
|
3802
|
+
entries.SourceIds = [];
|
|
3803
|
+
}
|
|
3756
3804
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3757
3805
|
const loc = `SourceIds.${key}`;
|
|
3758
3806
|
entries[loc] = value;
|
|
@@ -3763,6 +3811,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
|
|
|
3763
3811
|
}
|
|
3764
3812
|
if (input.Tags != null) {
|
|
3765
3813
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
3814
|
+
if (input.Tags?.length === 0) {
|
|
3815
|
+
entries.Tags = [];
|
|
3816
|
+
}
|
|
3766
3817
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3767
3818
|
const loc = `Tags.${key}`;
|
|
3768
3819
|
entries[loc] = value;
|
|
@@ -3857,6 +3908,9 @@ const serializeAws_queryDescribeCertificatesMessage = (input, context) => {
|
|
|
3857
3908
|
}
|
|
3858
3909
|
if (input.Filters != null) {
|
|
3859
3910
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
3911
|
+
if (input.Filters?.length === 0) {
|
|
3912
|
+
entries.Filters = [];
|
|
3913
|
+
}
|
|
3860
3914
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3861
3915
|
const loc = `Filters.${key}`;
|
|
3862
3916
|
entries[loc] = value;
|
|
@@ -3877,6 +3931,9 @@ const serializeAws_queryDescribeDBClusterParameterGroupsMessage = (input, contex
|
|
|
3877
3931
|
}
|
|
3878
3932
|
if (input.Filters != null) {
|
|
3879
3933
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
3934
|
+
if (input.Filters?.length === 0) {
|
|
3935
|
+
entries.Filters = [];
|
|
3936
|
+
}
|
|
3880
3937
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3881
3938
|
const loc = `Filters.${key}`;
|
|
3882
3939
|
entries[loc] = value;
|
|
@@ -3900,6 +3957,9 @@ const serializeAws_queryDescribeDBClusterParametersMessage = (input, context) =>
|
|
|
3900
3957
|
}
|
|
3901
3958
|
if (input.Filters != null) {
|
|
3902
3959
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
3960
|
+
if (input.Filters?.length === 0) {
|
|
3961
|
+
entries.Filters = [];
|
|
3962
|
+
}
|
|
3903
3963
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3904
3964
|
const loc = `Filters.${key}`;
|
|
3905
3965
|
entries[loc] = value;
|
|
@@ -3920,6 +3980,9 @@ const serializeAws_queryDescribeDBClustersMessage = (input, context) => {
|
|
|
3920
3980
|
}
|
|
3921
3981
|
if (input.Filters != null) {
|
|
3922
3982
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
3983
|
+
if (input.Filters?.length === 0) {
|
|
3984
|
+
entries.Filters = [];
|
|
3985
|
+
}
|
|
3923
3986
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3924
3987
|
const loc = `Filters.${key}`;
|
|
3925
3988
|
entries[loc] = value;
|
|
@@ -3953,6 +4016,9 @@ const serializeAws_queryDescribeDBClusterSnapshotsMessage = (input, context) =>
|
|
|
3953
4016
|
}
|
|
3954
4017
|
if (input.Filters != null) {
|
|
3955
4018
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4019
|
+
if (input.Filters?.length === 0) {
|
|
4020
|
+
entries.Filters = [];
|
|
4021
|
+
}
|
|
3956
4022
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3957
4023
|
const loc = `Filters.${key}`;
|
|
3958
4024
|
entries[loc] = value;
|
|
@@ -3985,6 +4051,9 @@ const serializeAws_queryDescribeDBEngineVersionsMessage = (input, context) => {
|
|
|
3985
4051
|
}
|
|
3986
4052
|
if (input.Filters != null) {
|
|
3987
4053
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4054
|
+
if (input.Filters?.length === 0) {
|
|
4055
|
+
entries.Filters = [];
|
|
4056
|
+
}
|
|
3988
4057
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3989
4058
|
const loc = `Filters.${key}`;
|
|
3990
4059
|
entries[loc] = value;
|
|
@@ -4014,6 +4083,9 @@ const serializeAws_queryDescribeDBInstancesMessage = (input, context) => {
|
|
|
4014
4083
|
}
|
|
4015
4084
|
if (input.Filters != null) {
|
|
4016
4085
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4086
|
+
if (input.Filters?.length === 0) {
|
|
4087
|
+
entries.Filters = [];
|
|
4088
|
+
}
|
|
4017
4089
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4018
4090
|
const loc = `Filters.${key}`;
|
|
4019
4091
|
entries[loc] = value;
|
|
@@ -4034,6 +4106,9 @@ const serializeAws_queryDescribeDBSubnetGroupsMessage = (input, context) => {
|
|
|
4034
4106
|
}
|
|
4035
4107
|
if (input.Filters != null) {
|
|
4036
4108
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4109
|
+
if (input.Filters?.length === 0) {
|
|
4110
|
+
entries.Filters = [];
|
|
4111
|
+
}
|
|
4037
4112
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4038
4113
|
const loc = `Filters.${key}`;
|
|
4039
4114
|
entries[loc] = value;
|
|
@@ -4054,6 +4129,9 @@ const serializeAws_queryDescribeEngineDefaultClusterParametersMessage = (input,
|
|
|
4054
4129
|
}
|
|
4055
4130
|
if (input.Filters != null) {
|
|
4056
4131
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4132
|
+
if (input.Filters?.length === 0) {
|
|
4133
|
+
entries.Filters = [];
|
|
4134
|
+
}
|
|
4057
4135
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4058
4136
|
const loc = `Filters.${key}`;
|
|
4059
4137
|
entries[loc] = value;
|
|
@@ -4074,6 +4152,9 @@ const serializeAws_queryDescribeEventCategoriesMessage = (input, context) => {
|
|
|
4074
4152
|
}
|
|
4075
4153
|
if (input.Filters != null) {
|
|
4076
4154
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4155
|
+
if (input.Filters?.length === 0) {
|
|
4156
|
+
entries.Filters = [];
|
|
4157
|
+
}
|
|
4077
4158
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4078
4159
|
const loc = `Filters.${key}`;
|
|
4079
4160
|
entries[loc] = value;
|
|
@@ -4100,6 +4181,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
|
|
|
4100
4181
|
}
|
|
4101
4182
|
if (input.EventCategories != null) {
|
|
4102
4183
|
const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
|
|
4184
|
+
if (input.EventCategories?.length === 0) {
|
|
4185
|
+
entries.EventCategories = [];
|
|
4186
|
+
}
|
|
4103
4187
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4104
4188
|
const loc = `EventCategories.${key}`;
|
|
4105
4189
|
entries[loc] = value;
|
|
@@ -4107,6 +4191,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
|
|
|
4107
4191
|
}
|
|
4108
4192
|
if (input.Filters != null) {
|
|
4109
4193
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4194
|
+
if (input.Filters?.length === 0) {
|
|
4195
|
+
entries.Filters = [];
|
|
4196
|
+
}
|
|
4110
4197
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4111
4198
|
const loc = `Filters.${key}`;
|
|
4112
4199
|
entries[loc] = value;
|
|
@@ -4127,6 +4214,9 @@ const serializeAws_queryDescribeEventSubscriptionsMessage = (input, context) =>
|
|
|
4127
4214
|
}
|
|
4128
4215
|
if (input.Filters != null) {
|
|
4129
4216
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4217
|
+
if (input.Filters?.length === 0) {
|
|
4218
|
+
entries.Filters = [];
|
|
4219
|
+
}
|
|
4130
4220
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4131
4221
|
const loc = `Filters.${key}`;
|
|
4132
4222
|
entries[loc] = value;
|
|
@@ -4147,6 +4237,9 @@ const serializeAws_queryDescribeGlobalClustersMessage = (input, context) => {
|
|
|
4147
4237
|
}
|
|
4148
4238
|
if (input.Filters != null) {
|
|
4149
4239
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4240
|
+
if (input.Filters?.length === 0) {
|
|
4241
|
+
entries.Filters = [];
|
|
4242
|
+
}
|
|
4150
4243
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4151
4244
|
const loc = `Filters.${key}`;
|
|
4152
4245
|
entries[loc] = value;
|
|
@@ -4179,6 +4272,9 @@ const serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = (input, cont
|
|
|
4179
4272
|
}
|
|
4180
4273
|
if (input.Filters != null) {
|
|
4181
4274
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4275
|
+
if (input.Filters?.length === 0) {
|
|
4276
|
+
entries.Filters = [];
|
|
4277
|
+
}
|
|
4182
4278
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4183
4279
|
const loc = `Filters.${key}`;
|
|
4184
4280
|
entries[loc] = value;
|
|
@@ -4199,6 +4295,9 @@ const serializeAws_queryDescribePendingMaintenanceActionsMessage = (input, conte
|
|
|
4199
4295
|
}
|
|
4200
4296
|
if (input.Filters != null) {
|
|
4201
4297
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4298
|
+
if (input.Filters?.length === 0) {
|
|
4299
|
+
entries.Filters = [];
|
|
4300
|
+
}
|
|
4202
4301
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4203
4302
|
const loc = `Filters.${key}`;
|
|
4204
4303
|
entries[loc] = value;
|
|
@@ -4241,6 +4340,9 @@ const serializeAws_queryFilter = (input, context) => {
|
|
|
4241
4340
|
}
|
|
4242
4341
|
if (input.Values != null) {
|
|
4243
4342
|
const memberEntries = serializeAws_queryFilterValueList(input.Values, context);
|
|
4343
|
+
if (input.Values?.length === 0) {
|
|
4344
|
+
entries.Values = [];
|
|
4345
|
+
}
|
|
4244
4346
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4245
4347
|
const loc = `Values.${key}`;
|
|
4246
4348
|
entries[loc] = value;
|
|
@@ -4294,6 +4396,9 @@ const serializeAws_queryListTagsForResourceMessage = (input, context) => {
|
|
|
4294
4396
|
}
|
|
4295
4397
|
if (input.Filters != null) {
|
|
4296
4398
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4399
|
+
if (input.Filters?.length === 0) {
|
|
4400
|
+
entries.Filters = [];
|
|
4401
|
+
}
|
|
4297
4402
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4298
4403
|
const loc = `Filters.${key}`;
|
|
4299
4404
|
entries[loc] = value;
|
|
@@ -4332,6 +4437,9 @@ const serializeAws_queryModifyDBClusterMessage = (input, context) => {
|
|
|
4332
4437
|
}
|
|
4333
4438
|
if (input.VpcSecurityGroupIds != null) {
|
|
4334
4439
|
const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
|
|
4440
|
+
if (input.VpcSecurityGroupIds?.length === 0) {
|
|
4441
|
+
entries.VpcSecurityGroupIds = [];
|
|
4442
|
+
}
|
|
4335
4443
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4336
4444
|
const loc = `VpcSecurityGroupIds.${key}`;
|
|
4337
4445
|
entries[loc] = value;
|
|
@@ -4371,6 +4479,9 @@ const serializeAws_queryModifyDBClusterParameterGroupMessage = (input, context)
|
|
|
4371
4479
|
}
|
|
4372
4480
|
if (input.Parameters != null) {
|
|
4373
4481
|
const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
|
|
4482
|
+
if (input.Parameters?.length === 0) {
|
|
4483
|
+
entries.Parameters = [];
|
|
4484
|
+
}
|
|
4374
4485
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4375
4486
|
const loc = `Parameters.${key}`;
|
|
4376
4487
|
entries[loc] = value;
|
|
@@ -4388,6 +4499,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
|
|
|
4388
4499
|
}
|
|
4389
4500
|
if (input.ValuesToAdd != null) {
|
|
4390
4501
|
const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
|
|
4502
|
+
if (input.ValuesToAdd?.length === 0) {
|
|
4503
|
+
entries.ValuesToAdd = [];
|
|
4504
|
+
}
|
|
4391
4505
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4392
4506
|
const loc = `ValuesToAdd.${key}`;
|
|
4393
4507
|
entries[loc] = value;
|
|
@@ -4395,6 +4509,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
|
|
|
4395
4509
|
}
|
|
4396
4510
|
if (input.ValuesToRemove != null) {
|
|
4397
4511
|
const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
|
|
4512
|
+
if (input.ValuesToRemove?.length === 0) {
|
|
4513
|
+
entries.ValuesToRemove = [];
|
|
4514
|
+
}
|
|
4398
4515
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4399
4516
|
const loc = `ValuesToRemove.${key}`;
|
|
4400
4517
|
entries[loc] = value;
|
|
@@ -4449,6 +4566,9 @@ const serializeAws_queryModifyDBSubnetGroupMessage = (input, context) => {
|
|
|
4449
4566
|
}
|
|
4450
4567
|
if (input.SubnetIds != null) {
|
|
4451
4568
|
const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
|
|
4569
|
+
if (input.SubnetIds?.length === 0) {
|
|
4570
|
+
entries.SubnetIds = [];
|
|
4571
|
+
}
|
|
4452
4572
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4453
4573
|
const loc = `SubnetIds.${key}`;
|
|
4454
4574
|
entries[loc] = value;
|
|
@@ -4469,6 +4589,9 @@ const serializeAws_queryModifyEventSubscriptionMessage = (input, context) => {
|
|
|
4469
4589
|
}
|
|
4470
4590
|
if (input.EventCategories != null) {
|
|
4471
4591
|
const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
|
|
4592
|
+
if (input.EventCategories?.length === 0) {
|
|
4593
|
+
entries.EventCategories = [];
|
|
4594
|
+
}
|
|
4472
4595
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4473
4596
|
const loc = `EventCategories.${key}`;
|
|
4474
4597
|
entries[loc] = value;
|
|
@@ -4578,6 +4701,9 @@ const serializeAws_queryRemoveTagsFromResourceMessage = (input, context) => {
|
|
|
4578
4701
|
}
|
|
4579
4702
|
if (input.TagKeys != null) {
|
|
4580
4703
|
const memberEntries = serializeAws_queryKeyList(input.TagKeys, context);
|
|
4704
|
+
if (input.TagKeys?.length === 0) {
|
|
4705
|
+
entries.TagKeys = [];
|
|
4706
|
+
}
|
|
4581
4707
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4582
4708
|
const loc = `TagKeys.${key}`;
|
|
4583
4709
|
entries[loc] = value;
|
|
@@ -4595,6 +4721,9 @@ const serializeAws_queryResetDBClusterParameterGroupMessage = (input, context) =
|
|
|
4595
4721
|
}
|
|
4596
4722
|
if (input.Parameters != null) {
|
|
4597
4723
|
const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
|
|
4724
|
+
if (input.Parameters?.length === 0) {
|
|
4725
|
+
entries.Parameters = [];
|
|
4726
|
+
}
|
|
4598
4727
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4599
4728
|
const loc = `Parameters.${key}`;
|
|
4600
4729
|
entries[loc] = value;
|
|
@@ -4606,6 +4735,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
|
|
|
4606
4735
|
const entries = {};
|
|
4607
4736
|
if (input.AvailabilityZones != null) {
|
|
4608
4737
|
const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
|
|
4738
|
+
if (input.AvailabilityZones?.length === 0) {
|
|
4739
|
+
entries.AvailabilityZones = [];
|
|
4740
|
+
}
|
|
4609
4741
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4610
4742
|
const loc = `AvailabilityZones.${key}`;
|
|
4611
4743
|
entries[loc] = value;
|
|
@@ -4631,6 +4763,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
|
|
|
4631
4763
|
}
|
|
4632
4764
|
if (input.VpcSecurityGroupIds != null) {
|
|
4633
4765
|
const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
|
|
4766
|
+
if (input.VpcSecurityGroupIds?.length === 0) {
|
|
4767
|
+
entries.VpcSecurityGroupIds = [];
|
|
4768
|
+
}
|
|
4634
4769
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4635
4770
|
const loc = `VpcSecurityGroupIds.${key}`;
|
|
4636
4771
|
entries[loc] = value;
|
|
@@ -4638,6 +4773,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
|
|
|
4638
4773
|
}
|
|
4639
4774
|
if (input.Tags != null) {
|
|
4640
4775
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4776
|
+
if (input.Tags?.length === 0) {
|
|
4777
|
+
entries.Tags = [];
|
|
4778
|
+
}
|
|
4641
4779
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4642
4780
|
const loc = `Tags.${key}`;
|
|
4643
4781
|
entries[loc] = value;
|
|
@@ -4648,6 +4786,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
|
|
|
4648
4786
|
}
|
|
4649
4787
|
if (input.EnableCloudwatchLogsExports != null) {
|
|
4650
4788
|
const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
|
|
4789
|
+
if (input.EnableCloudwatchLogsExports?.length === 0) {
|
|
4790
|
+
entries.EnableCloudwatchLogsExports = [];
|
|
4791
|
+
}
|
|
4651
4792
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4652
4793
|
const loc = `EnableCloudwatchLogsExports.${key}`;
|
|
4653
4794
|
entries[loc] = value;
|
|
@@ -4683,6 +4824,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
|
|
|
4683
4824
|
}
|
|
4684
4825
|
if (input.VpcSecurityGroupIds != null) {
|
|
4685
4826
|
const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
|
|
4827
|
+
if (input.VpcSecurityGroupIds?.length === 0) {
|
|
4828
|
+
entries.VpcSecurityGroupIds = [];
|
|
4829
|
+
}
|
|
4686
4830
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4687
4831
|
const loc = `VpcSecurityGroupIds.${key}`;
|
|
4688
4832
|
entries[loc] = value;
|
|
@@ -4690,6 +4834,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
|
|
|
4690
4834
|
}
|
|
4691
4835
|
if (input.Tags != null) {
|
|
4692
4836
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4837
|
+
if (input.Tags?.length === 0) {
|
|
4838
|
+
entries.Tags = [];
|
|
4839
|
+
}
|
|
4693
4840
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4694
4841
|
const loc = `Tags.${key}`;
|
|
4695
4842
|
entries[loc] = value;
|
|
@@ -4700,6 +4847,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
|
|
|
4700
4847
|
}
|
|
4701
4848
|
if (input.EnableCloudwatchLogsExports != null) {
|
|
4702
4849
|
const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
|
|
4850
|
+
if (input.EnableCloudwatchLogsExports?.length === 0) {
|
|
4851
|
+
entries.EnableCloudwatchLogsExports = [];
|
|
4852
|
+
}
|
|
4703
4853
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4704
4854
|
const loc = `EnableCloudwatchLogsExports.${key}`;
|
|
4705
4855
|
entries[loc] = value;
|
|
@@ -8,7 +8,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
8
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
-
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
12
11
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
13
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
@@ -24,8 +23,6 @@ const getRuntimeConfig = (config) => {
|
|
|
24
23
|
...config,
|
|
25
24
|
runtime: "browser",
|
|
26
25
|
defaultsMode,
|
|
27
|
-
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
-
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
26
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -10,7 +10,6 @@ const hash_node_1 = require("@aws-sdk/hash-node");
|
|
|
10
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
11
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
12
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
-
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
13
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
14
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
15
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
@@ -28,8 +27,6 @@ const getRuntimeConfig = (config) => {
|
|
|
28
27
|
...config,
|
|
29
28
|
runtime: "node",
|
|
30
29
|
defaultsMode,
|
|
31
|
-
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
-
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
30
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
31
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
32
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
5
6
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
7
|
const getRuntimeConfig = (config) => ({
|
|
7
8
|
apiVersion: "2014-10-31",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
8
11
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
12
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
13
|
logger: config?.logger ?? {},
|