@aws-sdk/client-neptune 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 +198 -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 +198 -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 -3224
|
@@ -4242,6 +4242,9 @@ const serializeAws_queryAddTagsToResourceMessage = (input, context) => {
|
|
|
4242
4242
|
}
|
|
4243
4243
|
if (input.Tags != null) {
|
|
4244
4244
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4245
|
+
if (input.Tags?.length === 0) {
|
|
4246
|
+
entries.Tags = [];
|
|
4247
|
+
}
|
|
4245
4248
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4246
4249
|
const loc = `Tags.${key}`;
|
|
4247
4250
|
entries[loc] = value;
|
|
@@ -4290,6 +4293,9 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
|
|
|
4290
4293
|
const entries = {};
|
|
4291
4294
|
if (input.EnableLogTypes != null) {
|
|
4292
4295
|
const memberEntries = serializeAws_queryLogTypeList(input.EnableLogTypes, context);
|
|
4296
|
+
if (input.EnableLogTypes?.length === 0) {
|
|
4297
|
+
entries.EnableLogTypes = [];
|
|
4298
|
+
}
|
|
4293
4299
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4294
4300
|
const loc = `EnableLogTypes.${key}`;
|
|
4295
4301
|
entries[loc] = value;
|
|
@@ -4297,6 +4303,9 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
|
|
|
4297
4303
|
}
|
|
4298
4304
|
if (input.DisableLogTypes != null) {
|
|
4299
4305
|
const memberEntries = serializeAws_queryLogTypeList(input.DisableLogTypes, context);
|
|
4306
|
+
if (input.DisableLogTypes?.length === 0) {
|
|
4307
|
+
entries.DisableLogTypes = [];
|
|
4308
|
+
}
|
|
4300
4309
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4301
4310
|
const loc = `DisableLogTypes.${key}`;
|
|
4302
4311
|
entries[loc] = value;
|
|
@@ -4317,6 +4326,9 @@ const serializeAws_queryCopyDBClusterParameterGroupMessage = (input, context) =>
|
|
|
4317
4326
|
}
|
|
4318
4327
|
if (input.Tags != null) {
|
|
4319
4328
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4329
|
+
if (input.Tags?.length === 0) {
|
|
4330
|
+
entries.Tags = [];
|
|
4331
|
+
}
|
|
4320
4332
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4321
4333
|
const loc = `Tags.${key}`;
|
|
4322
4334
|
entries[loc] = value;
|
|
@@ -4343,6 +4355,9 @@ const serializeAws_queryCopyDBClusterSnapshotMessage = (input, context) => {
|
|
|
4343
4355
|
}
|
|
4344
4356
|
if (input.Tags != null) {
|
|
4345
4357
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4358
|
+
if (input.Tags?.length === 0) {
|
|
4359
|
+
entries.Tags = [];
|
|
4360
|
+
}
|
|
4346
4361
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4347
4362
|
const loc = `Tags.${key}`;
|
|
4348
4363
|
entries[loc] = value;
|
|
@@ -4363,6 +4378,9 @@ const serializeAws_queryCopyDBParameterGroupMessage = (input, context) => {
|
|
|
4363
4378
|
}
|
|
4364
4379
|
if (input.Tags != null) {
|
|
4365
4380
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4381
|
+
if (input.Tags?.length === 0) {
|
|
4382
|
+
entries.Tags = [];
|
|
4383
|
+
}
|
|
4366
4384
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4367
4385
|
const loc = `Tags.${key}`;
|
|
4368
4386
|
entries[loc] = value;
|
|
@@ -4383,6 +4401,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
|
|
|
4383
4401
|
}
|
|
4384
4402
|
if (input.StaticMembers != null) {
|
|
4385
4403
|
const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
|
|
4404
|
+
if (input.StaticMembers?.length === 0) {
|
|
4405
|
+
entries.StaticMembers = [];
|
|
4406
|
+
}
|
|
4386
4407
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4387
4408
|
const loc = `StaticMembers.${key}`;
|
|
4388
4409
|
entries[loc] = value;
|
|
@@ -4390,6 +4411,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
|
|
|
4390
4411
|
}
|
|
4391
4412
|
if (input.ExcludedMembers != null) {
|
|
4392
4413
|
const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
|
|
4414
|
+
if (input.ExcludedMembers?.length === 0) {
|
|
4415
|
+
entries.ExcludedMembers = [];
|
|
4416
|
+
}
|
|
4393
4417
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4394
4418
|
const loc = `ExcludedMembers.${key}`;
|
|
4395
4419
|
entries[loc] = value;
|
|
@@ -4397,6 +4421,9 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
|
|
|
4397
4421
|
}
|
|
4398
4422
|
if (input.Tags != null) {
|
|
4399
4423
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4424
|
+
if (input.Tags?.length === 0) {
|
|
4425
|
+
entries.Tags = [];
|
|
4426
|
+
}
|
|
4400
4427
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4401
4428
|
const loc = `Tags.${key}`;
|
|
4402
4429
|
entries[loc] = value;
|
|
@@ -4408,6 +4435,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
|
|
|
4408
4435
|
const entries = {};
|
|
4409
4436
|
if (input.AvailabilityZones != null) {
|
|
4410
4437
|
const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
|
|
4438
|
+
if (input.AvailabilityZones?.length === 0) {
|
|
4439
|
+
entries.AvailabilityZones = [];
|
|
4440
|
+
}
|
|
4411
4441
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4412
4442
|
const loc = `AvailabilityZones.${key}`;
|
|
4413
4443
|
entries[loc] = value;
|
|
@@ -4433,6 +4463,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
|
|
|
4433
4463
|
}
|
|
4434
4464
|
if (input.VpcSecurityGroupIds != null) {
|
|
4435
4465
|
const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
|
|
4466
|
+
if (input.VpcSecurityGroupIds?.length === 0) {
|
|
4467
|
+
entries.VpcSecurityGroupIds = [];
|
|
4468
|
+
}
|
|
4436
4469
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4437
4470
|
const loc = `VpcSecurityGroupIds.${key}`;
|
|
4438
4471
|
entries[loc] = value;
|
|
@@ -4470,6 +4503,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
|
|
|
4470
4503
|
}
|
|
4471
4504
|
if (input.Tags != null) {
|
|
4472
4505
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4506
|
+
if (input.Tags?.length === 0) {
|
|
4507
|
+
entries.Tags = [];
|
|
4508
|
+
}
|
|
4473
4509
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4474
4510
|
const loc = `Tags.${key}`;
|
|
4475
4511
|
entries[loc] = value;
|
|
@@ -4489,6 +4525,9 @@ const serializeAws_queryCreateDBClusterMessage = (input, context) => {
|
|
|
4489
4525
|
}
|
|
4490
4526
|
if (input.EnableCloudwatchLogsExports != null) {
|
|
4491
4527
|
const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
|
|
4528
|
+
if (input.EnableCloudwatchLogsExports?.length === 0) {
|
|
4529
|
+
entries.EnableCloudwatchLogsExports = [];
|
|
4530
|
+
}
|
|
4492
4531
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4493
4532
|
const loc = `EnableCloudwatchLogsExports.${key}`;
|
|
4494
4533
|
entries[loc] = value;
|
|
@@ -4522,6 +4561,9 @@ const serializeAws_queryCreateDBClusterParameterGroupMessage = (input, context)
|
|
|
4522
4561
|
}
|
|
4523
4562
|
if (input.Tags != null) {
|
|
4524
4563
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4564
|
+
if (input.Tags?.length === 0) {
|
|
4565
|
+
entries.Tags = [];
|
|
4566
|
+
}
|
|
4525
4567
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4526
4568
|
const loc = `Tags.${key}`;
|
|
4527
4569
|
entries[loc] = value;
|
|
@@ -4539,6 +4581,9 @@ const serializeAws_queryCreateDBClusterSnapshotMessage = (input, context) => {
|
|
|
4539
4581
|
}
|
|
4540
4582
|
if (input.Tags != null) {
|
|
4541
4583
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4584
|
+
if (input.Tags?.length === 0) {
|
|
4585
|
+
entries.Tags = [];
|
|
4586
|
+
}
|
|
4542
4587
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4543
4588
|
const loc = `Tags.${key}`;
|
|
4544
4589
|
entries[loc] = value;
|
|
@@ -4571,6 +4616,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
|
|
|
4571
4616
|
}
|
|
4572
4617
|
if (input.DBSecurityGroups != null) {
|
|
4573
4618
|
const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
|
|
4619
|
+
if (input.DBSecurityGroups?.length === 0) {
|
|
4620
|
+
entries.DBSecurityGroups = [];
|
|
4621
|
+
}
|
|
4574
4622
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4575
4623
|
const loc = `DBSecurityGroups.${key}`;
|
|
4576
4624
|
entries[loc] = value;
|
|
@@ -4578,6 +4626,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
|
|
|
4578
4626
|
}
|
|
4579
4627
|
if (input.VpcSecurityGroupIds != null) {
|
|
4580
4628
|
const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
|
|
4629
|
+
if (input.VpcSecurityGroupIds?.length === 0) {
|
|
4630
|
+
entries.VpcSecurityGroupIds = [];
|
|
4631
|
+
}
|
|
4581
4632
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4582
4633
|
const loc = `VpcSecurityGroupIds.${key}`;
|
|
4583
4634
|
entries[loc] = value;
|
|
@@ -4630,6 +4681,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
|
|
|
4630
4681
|
}
|
|
4631
4682
|
if (input.Tags != null) {
|
|
4632
4683
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4684
|
+
if (input.Tags?.length === 0) {
|
|
4685
|
+
entries.Tags = [];
|
|
4686
|
+
}
|
|
4633
4687
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4634
4688
|
const loc = `Tags.${key}`;
|
|
4635
4689
|
entries[loc] = value;
|
|
@@ -4685,6 +4739,9 @@ const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
|
|
|
4685
4739
|
}
|
|
4686
4740
|
if (input.EnableCloudwatchLogsExports != null) {
|
|
4687
4741
|
const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
|
|
4742
|
+
if (input.EnableCloudwatchLogsExports?.length === 0) {
|
|
4743
|
+
entries.EnableCloudwatchLogsExports = [];
|
|
4744
|
+
}
|
|
4688
4745
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4689
4746
|
const loc = `EnableCloudwatchLogsExports.${key}`;
|
|
4690
4747
|
entries[loc] = value;
|
|
@@ -4708,6 +4765,9 @@ const serializeAws_queryCreateDBParameterGroupMessage = (input, context) => {
|
|
|
4708
4765
|
}
|
|
4709
4766
|
if (input.Tags != null) {
|
|
4710
4767
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4768
|
+
if (input.Tags?.length === 0) {
|
|
4769
|
+
entries.Tags = [];
|
|
4770
|
+
}
|
|
4711
4771
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4712
4772
|
const loc = `Tags.${key}`;
|
|
4713
4773
|
entries[loc] = value;
|
|
@@ -4725,6 +4785,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
|
|
|
4725
4785
|
}
|
|
4726
4786
|
if (input.SubnetIds != null) {
|
|
4727
4787
|
const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
|
|
4788
|
+
if (input.SubnetIds?.length === 0) {
|
|
4789
|
+
entries.SubnetIds = [];
|
|
4790
|
+
}
|
|
4728
4791
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4729
4792
|
const loc = `SubnetIds.${key}`;
|
|
4730
4793
|
entries[loc] = value;
|
|
@@ -4732,6 +4795,9 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
|
|
|
4732
4795
|
}
|
|
4733
4796
|
if (input.Tags != null) {
|
|
4734
4797
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4798
|
+
if (input.Tags?.length === 0) {
|
|
4799
|
+
entries.Tags = [];
|
|
4800
|
+
}
|
|
4735
4801
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4736
4802
|
const loc = `Tags.${key}`;
|
|
4737
4803
|
entries[loc] = value;
|
|
@@ -4752,6 +4818,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
|
|
|
4752
4818
|
}
|
|
4753
4819
|
if (input.EventCategories != null) {
|
|
4754
4820
|
const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
|
|
4821
|
+
if (input.EventCategories?.length === 0) {
|
|
4822
|
+
entries.EventCategories = [];
|
|
4823
|
+
}
|
|
4755
4824
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4756
4825
|
const loc = `EventCategories.${key}`;
|
|
4757
4826
|
entries[loc] = value;
|
|
@@ -4759,6 +4828,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
|
|
|
4759
4828
|
}
|
|
4760
4829
|
if (input.SourceIds != null) {
|
|
4761
4830
|
const memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
|
|
4831
|
+
if (input.SourceIds?.length === 0) {
|
|
4832
|
+
entries.SourceIds = [];
|
|
4833
|
+
}
|
|
4762
4834
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4763
4835
|
const loc = `SourceIds.${key}`;
|
|
4764
4836
|
entries[loc] = value;
|
|
@@ -4769,6 +4841,9 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
|
|
|
4769
4841
|
}
|
|
4770
4842
|
if (input.Tags != null) {
|
|
4771
4843
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
4844
|
+
if (input.Tags?.length === 0) {
|
|
4845
|
+
entries.Tags = [];
|
|
4846
|
+
}
|
|
4772
4847
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4773
4848
|
const loc = `Tags.${key}`;
|
|
4774
4849
|
entries[loc] = value;
|
|
@@ -4895,6 +4970,9 @@ const serializeAws_queryDescribeDBClusterEndpointsMessage = (input, context) =>
|
|
|
4895
4970
|
}
|
|
4896
4971
|
if (input.Filters != null) {
|
|
4897
4972
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4973
|
+
if (input.Filters?.length === 0) {
|
|
4974
|
+
entries.Filters = [];
|
|
4975
|
+
}
|
|
4898
4976
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4899
4977
|
const loc = `Filters.${key}`;
|
|
4900
4978
|
entries[loc] = value;
|
|
@@ -4915,6 +4993,9 @@ const serializeAws_queryDescribeDBClusterParameterGroupsMessage = (input, contex
|
|
|
4915
4993
|
}
|
|
4916
4994
|
if (input.Filters != null) {
|
|
4917
4995
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
4996
|
+
if (input.Filters?.length === 0) {
|
|
4997
|
+
entries.Filters = [];
|
|
4998
|
+
}
|
|
4918
4999
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4919
5000
|
const loc = `Filters.${key}`;
|
|
4920
5001
|
entries[loc] = value;
|
|
@@ -4938,6 +5019,9 @@ const serializeAws_queryDescribeDBClusterParametersMessage = (input, context) =>
|
|
|
4938
5019
|
}
|
|
4939
5020
|
if (input.Filters != null) {
|
|
4940
5021
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5022
|
+
if (input.Filters?.length === 0) {
|
|
5023
|
+
entries.Filters = [];
|
|
5024
|
+
}
|
|
4941
5025
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4942
5026
|
const loc = `Filters.${key}`;
|
|
4943
5027
|
entries[loc] = value;
|
|
@@ -4958,6 +5042,9 @@ const serializeAws_queryDescribeDBClustersMessage = (input, context) => {
|
|
|
4958
5042
|
}
|
|
4959
5043
|
if (input.Filters != null) {
|
|
4960
5044
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5045
|
+
if (input.Filters?.length === 0) {
|
|
5046
|
+
entries.Filters = [];
|
|
5047
|
+
}
|
|
4961
5048
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4962
5049
|
const loc = `Filters.${key}`;
|
|
4963
5050
|
entries[loc] = value;
|
|
@@ -4991,6 +5078,9 @@ const serializeAws_queryDescribeDBClusterSnapshotsMessage = (input, context) =>
|
|
|
4991
5078
|
}
|
|
4992
5079
|
if (input.Filters != null) {
|
|
4993
5080
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5081
|
+
if (input.Filters?.length === 0) {
|
|
5082
|
+
entries.Filters = [];
|
|
5083
|
+
}
|
|
4994
5084
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4995
5085
|
const loc = `Filters.${key}`;
|
|
4996
5086
|
entries[loc] = value;
|
|
@@ -5023,6 +5113,9 @@ const serializeAws_queryDescribeDBEngineVersionsMessage = (input, context) => {
|
|
|
5023
5113
|
}
|
|
5024
5114
|
if (input.Filters != null) {
|
|
5025
5115
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5116
|
+
if (input.Filters?.length === 0) {
|
|
5117
|
+
entries.Filters = [];
|
|
5118
|
+
}
|
|
5026
5119
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5027
5120
|
const loc = `Filters.${key}`;
|
|
5028
5121
|
entries[loc] = value;
|
|
@@ -5052,6 +5145,9 @@ const serializeAws_queryDescribeDBInstancesMessage = (input, context) => {
|
|
|
5052
5145
|
}
|
|
5053
5146
|
if (input.Filters != null) {
|
|
5054
5147
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5148
|
+
if (input.Filters?.length === 0) {
|
|
5149
|
+
entries.Filters = [];
|
|
5150
|
+
}
|
|
5055
5151
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5056
5152
|
const loc = `Filters.${key}`;
|
|
5057
5153
|
entries[loc] = value;
|
|
@@ -5072,6 +5168,9 @@ const serializeAws_queryDescribeDBParameterGroupsMessage = (input, context) => {
|
|
|
5072
5168
|
}
|
|
5073
5169
|
if (input.Filters != null) {
|
|
5074
5170
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5171
|
+
if (input.Filters?.length === 0) {
|
|
5172
|
+
entries.Filters = [];
|
|
5173
|
+
}
|
|
5075
5174
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5076
5175
|
const loc = `Filters.${key}`;
|
|
5077
5176
|
entries[loc] = value;
|
|
@@ -5095,6 +5194,9 @@ const serializeAws_queryDescribeDBParametersMessage = (input, context) => {
|
|
|
5095
5194
|
}
|
|
5096
5195
|
if (input.Filters != null) {
|
|
5097
5196
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5197
|
+
if (input.Filters?.length === 0) {
|
|
5198
|
+
entries.Filters = [];
|
|
5199
|
+
}
|
|
5098
5200
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5099
5201
|
const loc = `Filters.${key}`;
|
|
5100
5202
|
entries[loc] = value;
|
|
@@ -5115,6 +5217,9 @@ const serializeAws_queryDescribeDBSubnetGroupsMessage = (input, context) => {
|
|
|
5115
5217
|
}
|
|
5116
5218
|
if (input.Filters != null) {
|
|
5117
5219
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5220
|
+
if (input.Filters?.length === 0) {
|
|
5221
|
+
entries.Filters = [];
|
|
5222
|
+
}
|
|
5118
5223
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5119
5224
|
const loc = `Filters.${key}`;
|
|
5120
5225
|
entries[loc] = value;
|
|
@@ -5135,6 +5240,9 @@ const serializeAws_queryDescribeEngineDefaultClusterParametersMessage = (input,
|
|
|
5135
5240
|
}
|
|
5136
5241
|
if (input.Filters != null) {
|
|
5137
5242
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5243
|
+
if (input.Filters?.length === 0) {
|
|
5244
|
+
entries.Filters = [];
|
|
5245
|
+
}
|
|
5138
5246
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5139
5247
|
const loc = `Filters.${key}`;
|
|
5140
5248
|
entries[loc] = value;
|
|
@@ -5155,6 +5263,9 @@ const serializeAws_queryDescribeEngineDefaultParametersMessage = (input, context
|
|
|
5155
5263
|
}
|
|
5156
5264
|
if (input.Filters != null) {
|
|
5157
5265
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5266
|
+
if (input.Filters?.length === 0) {
|
|
5267
|
+
entries.Filters = [];
|
|
5268
|
+
}
|
|
5158
5269
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5159
5270
|
const loc = `Filters.${key}`;
|
|
5160
5271
|
entries[loc] = value;
|
|
@@ -5175,6 +5286,9 @@ const serializeAws_queryDescribeEventCategoriesMessage = (input, context) => {
|
|
|
5175
5286
|
}
|
|
5176
5287
|
if (input.Filters != null) {
|
|
5177
5288
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5289
|
+
if (input.Filters?.length === 0) {
|
|
5290
|
+
entries.Filters = [];
|
|
5291
|
+
}
|
|
5178
5292
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5179
5293
|
const loc = `Filters.${key}`;
|
|
5180
5294
|
entries[loc] = value;
|
|
@@ -5201,6 +5315,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
|
|
|
5201
5315
|
}
|
|
5202
5316
|
if (input.EventCategories != null) {
|
|
5203
5317
|
const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
|
|
5318
|
+
if (input.EventCategories?.length === 0) {
|
|
5319
|
+
entries.EventCategories = [];
|
|
5320
|
+
}
|
|
5204
5321
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5205
5322
|
const loc = `EventCategories.${key}`;
|
|
5206
5323
|
entries[loc] = value;
|
|
@@ -5208,6 +5325,9 @@ const serializeAws_queryDescribeEventsMessage = (input, context) => {
|
|
|
5208
5325
|
}
|
|
5209
5326
|
if (input.Filters != null) {
|
|
5210
5327
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5328
|
+
if (input.Filters?.length === 0) {
|
|
5329
|
+
entries.Filters = [];
|
|
5330
|
+
}
|
|
5211
5331
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5212
5332
|
const loc = `Filters.${key}`;
|
|
5213
5333
|
entries[loc] = value;
|
|
@@ -5228,6 +5348,9 @@ const serializeAws_queryDescribeEventSubscriptionsMessage = (input, context) =>
|
|
|
5228
5348
|
}
|
|
5229
5349
|
if (input.Filters != null) {
|
|
5230
5350
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5351
|
+
if (input.Filters?.length === 0) {
|
|
5352
|
+
entries.Filters = [];
|
|
5353
|
+
}
|
|
5231
5354
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5232
5355
|
const loc = `Filters.${key}`;
|
|
5233
5356
|
entries[loc] = value;
|
|
@@ -5273,6 +5396,9 @@ const serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = (input, cont
|
|
|
5273
5396
|
}
|
|
5274
5397
|
if (input.Filters != null) {
|
|
5275
5398
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5399
|
+
if (input.Filters?.length === 0) {
|
|
5400
|
+
entries.Filters = [];
|
|
5401
|
+
}
|
|
5276
5402
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5277
5403
|
const loc = `Filters.${key}`;
|
|
5278
5404
|
entries[loc] = value;
|
|
@@ -5293,6 +5419,9 @@ const serializeAws_queryDescribePendingMaintenanceActionsMessage = (input, conte
|
|
|
5293
5419
|
}
|
|
5294
5420
|
if (input.Filters != null) {
|
|
5295
5421
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5422
|
+
if (input.Filters?.length === 0) {
|
|
5423
|
+
entries.Filters = [];
|
|
5424
|
+
}
|
|
5296
5425
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5297
5426
|
const loc = `Filters.${key}`;
|
|
5298
5427
|
entries[loc] = value;
|
|
@@ -5352,6 +5481,9 @@ const serializeAws_queryFilter = (input, context) => {
|
|
|
5352
5481
|
}
|
|
5353
5482
|
if (input.Values != null) {
|
|
5354
5483
|
const memberEntries = serializeAws_queryFilterValueList(input.Values, context);
|
|
5484
|
+
if (input.Values?.length === 0) {
|
|
5485
|
+
entries.Values = [];
|
|
5486
|
+
}
|
|
5355
5487
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5356
5488
|
const loc = `Values.${key}`;
|
|
5357
5489
|
entries[loc] = value;
|
|
@@ -5405,6 +5537,9 @@ const serializeAws_queryListTagsForResourceMessage = (input, context) => {
|
|
|
5405
5537
|
}
|
|
5406
5538
|
if (input.Filters != null) {
|
|
5407
5539
|
const memberEntries = serializeAws_queryFilterList(input.Filters, context);
|
|
5540
|
+
if (input.Filters?.length === 0) {
|
|
5541
|
+
entries.Filters = [];
|
|
5542
|
+
}
|
|
5408
5543
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5409
5544
|
const loc = `Filters.${key}`;
|
|
5410
5545
|
entries[loc] = value;
|
|
@@ -5434,6 +5569,9 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
|
|
|
5434
5569
|
}
|
|
5435
5570
|
if (input.StaticMembers != null) {
|
|
5436
5571
|
const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
|
|
5572
|
+
if (input.StaticMembers?.length === 0) {
|
|
5573
|
+
entries.StaticMembers = [];
|
|
5574
|
+
}
|
|
5437
5575
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5438
5576
|
const loc = `StaticMembers.${key}`;
|
|
5439
5577
|
entries[loc] = value;
|
|
@@ -5441,6 +5579,9 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
|
|
|
5441
5579
|
}
|
|
5442
5580
|
if (input.ExcludedMembers != null) {
|
|
5443
5581
|
const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
|
|
5582
|
+
if (input.ExcludedMembers?.length === 0) {
|
|
5583
|
+
entries.ExcludedMembers = [];
|
|
5584
|
+
}
|
|
5444
5585
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5445
5586
|
const loc = `ExcludedMembers.${key}`;
|
|
5446
5587
|
entries[loc] = value;
|
|
@@ -5467,6 +5608,9 @@ const serializeAws_queryModifyDBClusterMessage = (input, context) => {
|
|
|
5467
5608
|
}
|
|
5468
5609
|
if (input.VpcSecurityGroupIds != null) {
|
|
5469
5610
|
const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
|
|
5611
|
+
if (input.VpcSecurityGroupIds?.length === 0) {
|
|
5612
|
+
entries.VpcSecurityGroupIds = [];
|
|
5613
|
+
}
|
|
5470
5614
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5471
5615
|
const loc = `VpcSecurityGroupIds.${key}`;
|
|
5472
5616
|
entries[loc] = value;
|
|
@@ -5528,6 +5672,9 @@ const serializeAws_queryModifyDBClusterParameterGroupMessage = (input, context)
|
|
|
5528
5672
|
}
|
|
5529
5673
|
if (input.Parameters != null) {
|
|
5530
5674
|
const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
|
|
5675
|
+
if (input.Parameters?.length === 0) {
|
|
5676
|
+
entries.Parameters = [];
|
|
5677
|
+
}
|
|
5531
5678
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5532
5679
|
const loc = `Parameters.${key}`;
|
|
5533
5680
|
entries[loc] = value;
|
|
@@ -5545,6 +5692,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
|
|
|
5545
5692
|
}
|
|
5546
5693
|
if (input.ValuesToAdd != null) {
|
|
5547
5694
|
const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
|
|
5695
|
+
if (input.ValuesToAdd?.length === 0) {
|
|
5696
|
+
entries.ValuesToAdd = [];
|
|
5697
|
+
}
|
|
5548
5698
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5549
5699
|
const loc = `ValuesToAdd.${key}`;
|
|
5550
5700
|
entries[loc] = value;
|
|
@@ -5552,6 +5702,9 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
|
|
|
5552
5702
|
}
|
|
5553
5703
|
if (input.ValuesToRemove != null) {
|
|
5554
5704
|
const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
|
|
5705
|
+
if (input.ValuesToRemove?.length === 0) {
|
|
5706
|
+
entries.ValuesToRemove = [];
|
|
5707
|
+
}
|
|
5555
5708
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5556
5709
|
const loc = `ValuesToRemove.${key}`;
|
|
5557
5710
|
entries[loc] = value;
|
|
@@ -5575,6 +5728,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
|
|
|
5575
5728
|
}
|
|
5576
5729
|
if (input.DBSecurityGroups != null) {
|
|
5577
5730
|
const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
|
|
5731
|
+
if (input.DBSecurityGroups?.length === 0) {
|
|
5732
|
+
entries.DBSecurityGroups = [];
|
|
5733
|
+
}
|
|
5578
5734
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5579
5735
|
const loc = `DBSecurityGroups.${key}`;
|
|
5580
5736
|
entries[loc] = value;
|
|
@@ -5582,6 +5738,9 @@ const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
|
|
|
5582
5738
|
}
|
|
5583
5739
|
if (input.VpcSecurityGroupIds != null) {
|
|
5584
5740
|
const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
|
|
5741
|
+
if (input.VpcSecurityGroupIds?.length === 0) {
|
|
5742
|
+
entries.VpcSecurityGroupIds = [];
|
|
5743
|
+
}
|
|
5585
5744
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5586
5745
|
const loc = `VpcSecurityGroupIds.${key}`;
|
|
5587
5746
|
entries[loc] = value;
|
|
@@ -5693,6 +5852,9 @@ const serializeAws_queryModifyDBParameterGroupMessage = (input, context) => {
|
|
|
5693
5852
|
}
|
|
5694
5853
|
if (input.Parameters != null) {
|
|
5695
5854
|
const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
|
|
5855
|
+
if (input.Parameters?.length === 0) {
|
|
5856
|
+
entries.Parameters = [];
|
|
5857
|
+
}
|
|
5696
5858
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5697
5859
|
const loc = `Parameters.${key}`;
|
|
5698
5860
|
entries[loc] = value;
|
|
@@ -5710,6 +5872,9 @@ const serializeAws_queryModifyDBSubnetGroupMessage = (input, context) => {
|
|
|
5710
5872
|
}
|
|
5711
5873
|
if (input.SubnetIds != null) {
|
|
5712
5874
|
const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
|
|
5875
|
+
if (input.SubnetIds?.length === 0) {
|
|
5876
|
+
entries.SubnetIds = [];
|
|
5877
|
+
}
|
|
5713
5878
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5714
5879
|
const loc = `SubnetIds.${key}`;
|
|
5715
5880
|
entries[loc] = value;
|
|
@@ -5730,6 +5895,9 @@ const serializeAws_queryModifyEventSubscriptionMessage = (input, context) => {
|
|
|
5730
5895
|
}
|
|
5731
5896
|
if (input.EventCategories != null) {
|
|
5732
5897
|
const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
|
|
5898
|
+
if (input.EventCategories?.length === 0) {
|
|
5899
|
+
entries.EventCategories = [];
|
|
5900
|
+
}
|
|
5733
5901
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5734
5902
|
const loc = `EventCategories.${key}`;
|
|
5735
5903
|
entries[loc] = value;
|
|
@@ -5865,6 +6033,9 @@ const serializeAws_queryRemoveTagsFromResourceMessage = (input, context) => {
|
|
|
5865
6033
|
}
|
|
5866
6034
|
if (input.TagKeys != null) {
|
|
5867
6035
|
const memberEntries = serializeAws_queryKeyList(input.TagKeys, context);
|
|
6036
|
+
if (input.TagKeys?.length === 0) {
|
|
6037
|
+
entries.TagKeys = [];
|
|
6038
|
+
}
|
|
5868
6039
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5869
6040
|
const loc = `TagKeys.${key}`;
|
|
5870
6041
|
entries[loc] = value;
|
|
@@ -5882,6 +6053,9 @@ const serializeAws_queryResetDBClusterParameterGroupMessage = (input, context) =
|
|
|
5882
6053
|
}
|
|
5883
6054
|
if (input.Parameters != null) {
|
|
5884
6055
|
const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
|
|
6056
|
+
if (input.Parameters?.length === 0) {
|
|
6057
|
+
entries.Parameters = [];
|
|
6058
|
+
}
|
|
5885
6059
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5886
6060
|
const loc = `Parameters.${key}`;
|
|
5887
6061
|
entries[loc] = value;
|
|
@@ -5899,6 +6073,9 @@ const serializeAws_queryResetDBParameterGroupMessage = (input, context) => {
|
|
|
5899
6073
|
}
|
|
5900
6074
|
if (input.Parameters != null) {
|
|
5901
6075
|
const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
|
|
6076
|
+
if (input.Parameters?.length === 0) {
|
|
6077
|
+
entries.Parameters = [];
|
|
6078
|
+
}
|
|
5902
6079
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5903
6080
|
const loc = `Parameters.${key}`;
|
|
5904
6081
|
entries[loc] = value;
|
|
@@ -5910,6 +6087,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
|
|
|
5910
6087
|
const entries = {};
|
|
5911
6088
|
if (input.AvailabilityZones != null) {
|
|
5912
6089
|
const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
|
|
6090
|
+
if (input.AvailabilityZones?.length === 0) {
|
|
6091
|
+
entries.AvailabilityZones = [];
|
|
6092
|
+
}
|
|
5913
6093
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5914
6094
|
const loc = `AvailabilityZones.${key}`;
|
|
5915
6095
|
entries[loc] = value;
|
|
@@ -5941,6 +6121,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
|
|
|
5941
6121
|
}
|
|
5942
6122
|
if (input.VpcSecurityGroupIds != null) {
|
|
5943
6123
|
const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
|
|
6124
|
+
if (input.VpcSecurityGroupIds?.length === 0) {
|
|
6125
|
+
entries.VpcSecurityGroupIds = [];
|
|
6126
|
+
}
|
|
5944
6127
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5945
6128
|
const loc = `VpcSecurityGroupIds.${key}`;
|
|
5946
6129
|
entries[loc] = value;
|
|
@@ -5948,6 +6131,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
|
|
|
5948
6131
|
}
|
|
5949
6132
|
if (input.Tags != null) {
|
|
5950
6133
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
6134
|
+
if (input.Tags?.length === 0) {
|
|
6135
|
+
entries.Tags = [];
|
|
6136
|
+
}
|
|
5951
6137
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5952
6138
|
const loc = `Tags.${key}`;
|
|
5953
6139
|
entries[loc] = value;
|
|
@@ -5961,6 +6147,9 @@ const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) =
|
|
|
5961
6147
|
}
|
|
5962
6148
|
if (input.EnableCloudwatchLogsExports != null) {
|
|
5963
6149
|
const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
|
|
6150
|
+
if (input.EnableCloudwatchLogsExports?.length === 0) {
|
|
6151
|
+
entries.EnableCloudwatchLogsExports = [];
|
|
6152
|
+
}
|
|
5964
6153
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5965
6154
|
const loc = `EnableCloudwatchLogsExports.${key}`;
|
|
5966
6155
|
entries[loc] = value;
|
|
@@ -6012,6 +6201,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
|
|
|
6012
6201
|
}
|
|
6013
6202
|
if (input.VpcSecurityGroupIds != null) {
|
|
6014
6203
|
const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
|
|
6204
|
+
if (input.VpcSecurityGroupIds?.length === 0) {
|
|
6205
|
+
entries.VpcSecurityGroupIds = [];
|
|
6206
|
+
}
|
|
6015
6207
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
6016
6208
|
const loc = `VpcSecurityGroupIds.${key}`;
|
|
6017
6209
|
entries[loc] = value;
|
|
@@ -6019,6 +6211,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
|
|
|
6019
6211
|
}
|
|
6020
6212
|
if (input.Tags != null) {
|
|
6021
6213
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
6214
|
+
if (input.Tags?.length === 0) {
|
|
6215
|
+
entries.Tags = [];
|
|
6216
|
+
}
|
|
6022
6217
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
6023
6218
|
const loc = `Tags.${key}`;
|
|
6024
6219
|
entries[loc] = value;
|
|
@@ -6032,6 +6227,9 @@ const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context)
|
|
|
6032
6227
|
}
|
|
6033
6228
|
if (input.EnableCloudwatchLogsExports != null) {
|
|
6034
6229
|
const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
|
|
6230
|
+
if (input.EnableCloudwatchLogsExports?.length === 0) {
|
|
6231
|
+
entries.EnableCloudwatchLogsExports = [];
|
|
6232
|
+
}
|
|
6035
6233
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
6036
6234
|
const loc = `EnableCloudwatchLogsExports.${key}`;
|
|
6037
6235
|
entries[loc] = value;
|
|
@@ -4,7 +4,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-
|
|
|
4
4
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
6
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
8
7
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
9
8
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
9
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
@@ -20,8 +19,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
20
19
|
...config,
|
|
21
20
|
runtime: "browser",
|
|
22
21
|
defaultsMode,
|
|
23
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
22
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
23
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
24
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
|
|
|
6
6
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
7
7
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
8
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
10
9
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
11
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
12
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
@@ -24,8 +23,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
24
23
|
...config,
|
|
25
24
|
runtime: "node",
|
|
26
25
|
defaultsMode,
|
|
27
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
28
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
26
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
2
3
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
3
4
|
export const getRuntimeConfig = (config) => ({
|
|
4
5
|
apiVersion: "2014-10-31",
|
|
6
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
7
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
5
8
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
9
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
7
10
|
logger: config?.logger ?? {},
|