@aws-sdk/client-iam 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.
@@ -8604,6 +8604,9 @@ const serializeAws_queryContextEntry = (input, context) => {
8604
8604
  }
8605
8605
  if (input.ContextKeyValues != null) {
8606
8606
  const memberEntries = serializeAws_queryContextKeyValueListType(input.ContextKeyValues, context);
8607
+ if (input.ContextKeyValues?.length === 0) {
8608
+ entries.ContextKeyValues = [];
8609
+ }
8607
8610
  Object.entries(memberEntries).forEach(([key, value]) => {
8608
8611
  const loc = `ContextKeyValues.${key}`;
8609
8612
  entries[loc] = value;
@@ -8675,6 +8678,9 @@ const serializeAws_queryCreateInstanceProfileRequest = (input, context) => {
8675
8678
  }
8676
8679
  if (input.Tags != null) {
8677
8680
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8681
+ if (input.Tags?.length === 0) {
8682
+ entries.Tags = [];
8683
+ }
8678
8684
  Object.entries(memberEntries).forEach(([key, value]) => {
8679
8685
  const loc = `Tags.${key}`;
8680
8686
  entries[loc] = value;
@@ -8702,6 +8708,9 @@ const serializeAws_queryCreateOpenIDConnectProviderRequest = (input, context) =>
8702
8708
  }
8703
8709
  if (input.ClientIDList != null) {
8704
8710
  const memberEntries = serializeAws_queryclientIDListType(input.ClientIDList, context);
8711
+ if (input.ClientIDList?.length === 0) {
8712
+ entries.ClientIDList = [];
8713
+ }
8705
8714
  Object.entries(memberEntries).forEach(([key, value]) => {
8706
8715
  const loc = `ClientIDList.${key}`;
8707
8716
  entries[loc] = value;
@@ -8709,6 +8718,9 @@ const serializeAws_queryCreateOpenIDConnectProviderRequest = (input, context) =>
8709
8718
  }
8710
8719
  if (input.ThumbprintList != null) {
8711
8720
  const memberEntries = serializeAws_querythumbprintListType(input.ThumbprintList, context);
8721
+ if (input.ThumbprintList?.length === 0) {
8722
+ entries.ThumbprintList = [];
8723
+ }
8712
8724
  Object.entries(memberEntries).forEach(([key, value]) => {
8713
8725
  const loc = `ThumbprintList.${key}`;
8714
8726
  entries[loc] = value;
@@ -8716,6 +8728,9 @@ const serializeAws_queryCreateOpenIDConnectProviderRequest = (input, context) =>
8716
8728
  }
8717
8729
  if (input.Tags != null) {
8718
8730
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8731
+ if (input.Tags?.length === 0) {
8732
+ entries.Tags = [];
8733
+ }
8719
8734
  Object.entries(memberEntries).forEach(([key, value]) => {
8720
8735
  const loc = `Tags.${key}`;
8721
8736
  entries[loc] = value;
@@ -8739,6 +8754,9 @@ const serializeAws_queryCreatePolicyRequest = (input, context) => {
8739
8754
  }
8740
8755
  if (input.Tags != null) {
8741
8756
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8757
+ if (input.Tags?.length === 0) {
8758
+ entries.Tags = [];
8759
+ }
8742
8760
  Object.entries(memberEntries).forEach(([key, value]) => {
8743
8761
  const loc = `Tags.${key}`;
8744
8762
  entries[loc] = value;
@@ -8781,6 +8799,9 @@ const serializeAws_queryCreateRoleRequest = (input, context) => {
8781
8799
  }
8782
8800
  if (input.Tags != null) {
8783
8801
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8802
+ if (input.Tags?.length === 0) {
8803
+ entries.Tags = [];
8804
+ }
8784
8805
  Object.entries(memberEntries).forEach(([key, value]) => {
8785
8806
  const loc = `Tags.${key}`;
8786
8807
  entries[loc] = value;
@@ -8798,6 +8819,9 @@ const serializeAws_queryCreateSAMLProviderRequest = (input, context) => {
8798
8819
  }
8799
8820
  if (input.Tags != null) {
8800
8821
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8822
+ if (input.Tags?.length === 0) {
8823
+ entries.Tags = [];
8824
+ }
8801
8825
  Object.entries(memberEntries).forEach(([key, value]) => {
8802
8826
  const loc = `Tags.${key}`;
8803
8827
  entries[loc] = value;
@@ -8841,6 +8865,9 @@ const serializeAws_queryCreateUserRequest = (input, context) => {
8841
8865
  }
8842
8866
  if (input.Tags != null) {
8843
8867
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8868
+ if (input.Tags?.length === 0) {
8869
+ entries.Tags = [];
8870
+ }
8844
8871
  Object.entries(memberEntries).forEach(([key, value]) => {
8845
8872
  const loc = `Tags.${key}`;
8846
8873
  entries[loc] = value;
@@ -8858,6 +8885,9 @@ const serializeAws_queryCreateVirtualMFADeviceRequest = (input, context) => {
8858
8885
  }
8859
8886
  if (input.Tags != null) {
8860
8887
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8888
+ if (input.Tags?.length === 0) {
8889
+ entries.Tags = [];
8890
+ }
8861
8891
  Object.entries(memberEntries).forEach(([key, value]) => {
8862
8892
  const loc = `Tags.${key}`;
8863
8893
  entries[loc] = value;
@@ -9142,6 +9172,9 @@ const serializeAws_queryGetAccountAuthorizationDetailsRequest = (input, context)
9142
9172
  const entries = {};
9143
9173
  if (input.Filter != null) {
9144
9174
  const memberEntries = serializeAws_queryentityListType(input.Filter, context);
9175
+ if (input.Filter?.length === 0) {
9176
+ entries.Filter = [];
9177
+ }
9145
9178
  Object.entries(memberEntries).forEach(([key, value]) => {
9146
9179
  const loc = `Filter.${key}`;
9147
9180
  entries[loc] = value;
@@ -9159,6 +9192,9 @@ const serializeAws_queryGetContextKeysForCustomPolicyRequest = (input, context)
9159
9192
  const entries = {};
9160
9193
  if (input.PolicyInputList != null) {
9161
9194
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PolicyInputList, context);
9195
+ if (input.PolicyInputList?.length === 0) {
9196
+ entries.PolicyInputList = [];
9197
+ }
9162
9198
  Object.entries(memberEntries).forEach(([key, value]) => {
9163
9199
  const loc = `PolicyInputList.${key}`;
9164
9200
  entries[loc] = value;
@@ -9173,6 +9209,9 @@ const serializeAws_queryGetContextKeysForPrincipalPolicyRequest = (input, contex
9173
9209
  }
9174
9210
  if (input.PolicyInputList != null) {
9175
9211
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PolicyInputList, context);
9212
+ if (input.PolicyInputList?.length === 0) {
9213
+ entries.PolicyInputList = [];
9214
+ }
9176
9215
  Object.entries(memberEntries).forEach(([key, value]) => {
9177
9216
  const loc = `PolicyInputList.${key}`;
9178
9217
  entries[loc] = value;
@@ -9578,6 +9617,9 @@ const serializeAws_queryListPoliciesGrantingServiceAccessRequest = (input, conte
9578
9617
  }
9579
9618
  if (input.ServiceNamespaces != null) {
9580
9619
  const memberEntries = serializeAws_queryserviceNamespaceListType(input.ServiceNamespaces, context);
9620
+ if (input.ServiceNamespaces?.length === 0) {
9621
+ entries.ServiceNamespaces = [];
9622
+ }
9581
9623
  Object.entries(memberEntries).forEach(([key, value]) => {
9582
9624
  const loc = `ServiceNamespaces.${key}`;
9583
9625
  entries[loc] = value;
@@ -9963,6 +10005,9 @@ const serializeAws_querySimulateCustomPolicyRequest = (input, context) => {
9963
10005
  const entries = {};
9964
10006
  if (input.PolicyInputList != null) {
9965
10007
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PolicyInputList, context);
10008
+ if (input.PolicyInputList?.length === 0) {
10009
+ entries.PolicyInputList = [];
10010
+ }
9966
10011
  Object.entries(memberEntries).forEach(([key, value]) => {
9967
10012
  const loc = `PolicyInputList.${key}`;
9968
10013
  entries[loc] = value;
@@ -9970,6 +10015,9 @@ const serializeAws_querySimulateCustomPolicyRequest = (input, context) => {
9970
10015
  }
9971
10016
  if (input.PermissionsBoundaryPolicyInputList != null) {
9972
10017
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PermissionsBoundaryPolicyInputList, context);
10018
+ if (input.PermissionsBoundaryPolicyInputList?.length === 0) {
10019
+ entries.PermissionsBoundaryPolicyInputList = [];
10020
+ }
9973
10021
  Object.entries(memberEntries).forEach(([key, value]) => {
9974
10022
  const loc = `PermissionsBoundaryPolicyInputList.${key}`;
9975
10023
  entries[loc] = value;
@@ -9977,6 +10025,9 @@ const serializeAws_querySimulateCustomPolicyRequest = (input, context) => {
9977
10025
  }
9978
10026
  if (input.ActionNames != null) {
9979
10027
  const memberEntries = serializeAws_queryActionNameListType(input.ActionNames, context);
10028
+ if (input.ActionNames?.length === 0) {
10029
+ entries.ActionNames = [];
10030
+ }
9980
10031
  Object.entries(memberEntries).forEach(([key, value]) => {
9981
10032
  const loc = `ActionNames.${key}`;
9982
10033
  entries[loc] = value;
@@ -9984,6 +10035,9 @@ const serializeAws_querySimulateCustomPolicyRequest = (input, context) => {
9984
10035
  }
9985
10036
  if (input.ResourceArns != null) {
9986
10037
  const memberEntries = serializeAws_queryResourceNameListType(input.ResourceArns, context);
10038
+ if (input.ResourceArns?.length === 0) {
10039
+ entries.ResourceArns = [];
10040
+ }
9987
10041
  Object.entries(memberEntries).forEach(([key, value]) => {
9988
10042
  const loc = `ResourceArns.${key}`;
9989
10043
  entries[loc] = value;
@@ -10000,6 +10054,9 @@ const serializeAws_querySimulateCustomPolicyRequest = (input, context) => {
10000
10054
  }
10001
10055
  if (input.ContextEntries != null) {
10002
10056
  const memberEntries = serializeAws_queryContextEntryListType(input.ContextEntries, context);
10057
+ if (input.ContextEntries?.length === 0) {
10058
+ entries.ContextEntries = [];
10059
+ }
10003
10060
  Object.entries(memberEntries).forEach(([key, value]) => {
10004
10061
  const loc = `ContextEntries.${key}`;
10005
10062
  entries[loc] = value;
@@ -10023,6 +10080,9 @@ const serializeAws_querySimulatePrincipalPolicyRequest = (input, context) => {
10023
10080
  }
10024
10081
  if (input.PolicyInputList != null) {
10025
10082
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PolicyInputList, context);
10083
+ if (input.PolicyInputList?.length === 0) {
10084
+ entries.PolicyInputList = [];
10085
+ }
10026
10086
  Object.entries(memberEntries).forEach(([key, value]) => {
10027
10087
  const loc = `PolicyInputList.${key}`;
10028
10088
  entries[loc] = value;
@@ -10030,6 +10090,9 @@ const serializeAws_querySimulatePrincipalPolicyRequest = (input, context) => {
10030
10090
  }
10031
10091
  if (input.PermissionsBoundaryPolicyInputList != null) {
10032
10092
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PermissionsBoundaryPolicyInputList, context);
10093
+ if (input.PermissionsBoundaryPolicyInputList?.length === 0) {
10094
+ entries.PermissionsBoundaryPolicyInputList = [];
10095
+ }
10033
10096
  Object.entries(memberEntries).forEach(([key, value]) => {
10034
10097
  const loc = `PermissionsBoundaryPolicyInputList.${key}`;
10035
10098
  entries[loc] = value;
@@ -10037,6 +10100,9 @@ const serializeAws_querySimulatePrincipalPolicyRequest = (input, context) => {
10037
10100
  }
10038
10101
  if (input.ActionNames != null) {
10039
10102
  const memberEntries = serializeAws_queryActionNameListType(input.ActionNames, context);
10103
+ if (input.ActionNames?.length === 0) {
10104
+ entries.ActionNames = [];
10105
+ }
10040
10106
  Object.entries(memberEntries).forEach(([key, value]) => {
10041
10107
  const loc = `ActionNames.${key}`;
10042
10108
  entries[loc] = value;
@@ -10044,6 +10110,9 @@ const serializeAws_querySimulatePrincipalPolicyRequest = (input, context) => {
10044
10110
  }
10045
10111
  if (input.ResourceArns != null) {
10046
10112
  const memberEntries = serializeAws_queryResourceNameListType(input.ResourceArns, context);
10113
+ if (input.ResourceArns?.length === 0) {
10114
+ entries.ResourceArns = [];
10115
+ }
10047
10116
  Object.entries(memberEntries).forEach(([key, value]) => {
10048
10117
  const loc = `ResourceArns.${key}`;
10049
10118
  entries[loc] = value;
@@ -10060,6 +10129,9 @@ const serializeAws_querySimulatePrincipalPolicyRequest = (input, context) => {
10060
10129
  }
10061
10130
  if (input.ContextEntries != null) {
10062
10131
  const memberEntries = serializeAws_queryContextEntryListType(input.ContextEntries, context);
10132
+ if (input.ContextEntries?.length === 0) {
10133
+ entries.ContextEntries = [];
10134
+ }
10063
10135
  Object.entries(memberEntries).forEach(([key, value]) => {
10064
10136
  const loc = `ContextEntries.${key}`;
10065
10137
  entries[loc] = value;
@@ -10105,6 +10177,9 @@ const serializeAws_queryTagInstanceProfileRequest = (input, context) => {
10105
10177
  }
10106
10178
  if (input.Tags != null) {
10107
10179
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10180
+ if (input.Tags?.length === 0) {
10181
+ entries.Tags = [];
10182
+ }
10108
10183
  Object.entries(memberEntries).forEach(([key, value]) => {
10109
10184
  const loc = `Tags.${key}`;
10110
10185
  entries[loc] = value;
@@ -10146,6 +10221,9 @@ const serializeAws_queryTagMFADeviceRequest = (input, context) => {
10146
10221
  }
10147
10222
  if (input.Tags != null) {
10148
10223
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10224
+ if (input.Tags?.length === 0) {
10225
+ entries.Tags = [];
10226
+ }
10149
10227
  Object.entries(memberEntries).forEach(([key, value]) => {
10150
10228
  const loc = `Tags.${key}`;
10151
10229
  entries[loc] = value;
@@ -10160,6 +10238,9 @@ const serializeAws_queryTagOpenIDConnectProviderRequest = (input, context) => {
10160
10238
  }
10161
10239
  if (input.Tags != null) {
10162
10240
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10241
+ if (input.Tags?.length === 0) {
10242
+ entries.Tags = [];
10243
+ }
10163
10244
  Object.entries(memberEntries).forEach(([key, value]) => {
10164
10245
  const loc = `Tags.${key}`;
10165
10246
  entries[loc] = value;
@@ -10174,6 +10255,9 @@ const serializeAws_queryTagPolicyRequest = (input, context) => {
10174
10255
  }
10175
10256
  if (input.Tags != null) {
10176
10257
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10258
+ if (input.Tags?.length === 0) {
10259
+ entries.Tags = [];
10260
+ }
10177
10261
  Object.entries(memberEntries).forEach(([key, value]) => {
10178
10262
  const loc = `Tags.${key}`;
10179
10263
  entries[loc] = value;
@@ -10188,6 +10272,9 @@ const serializeAws_queryTagRoleRequest = (input, context) => {
10188
10272
  }
10189
10273
  if (input.Tags != null) {
10190
10274
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10275
+ if (input.Tags?.length === 0) {
10276
+ entries.Tags = [];
10277
+ }
10191
10278
  Object.entries(memberEntries).forEach(([key, value]) => {
10192
10279
  const loc = `Tags.${key}`;
10193
10280
  entries[loc] = value;
@@ -10202,6 +10289,9 @@ const serializeAws_queryTagSAMLProviderRequest = (input, context) => {
10202
10289
  }
10203
10290
  if (input.Tags != null) {
10204
10291
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10292
+ if (input.Tags?.length === 0) {
10293
+ entries.Tags = [];
10294
+ }
10205
10295
  Object.entries(memberEntries).forEach(([key, value]) => {
10206
10296
  const loc = `Tags.${key}`;
10207
10297
  entries[loc] = value;
@@ -10216,6 +10306,9 @@ const serializeAws_queryTagServerCertificateRequest = (input, context) => {
10216
10306
  }
10217
10307
  if (input.Tags != null) {
10218
10308
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10309
+ if (input.Tags?.length === 0) {
10310
+ entries.Tags = [];
10311
+ }
10219
10312
  Object.entries(memberEntries).forEach(([key, value]) => {
10220
10313
  const loc = `Tags.${key}`;
10221
10314
  entries[loc] = value;
@@ -10230,6 +10323,9 @@ const serializeAws_queryTagUserRequest = (input, context) => {
10230
10323
  }
10231
10324
  if (input.Tags != null) {
10232
10325
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10326
+ if (input.Tags?.length === 0) {
10327
+ entries.Tags = [];
10328
+ }
10233
10329
  Object.entries(memberEntries).forEach(([key, value]) => {
10234
10330
  const loc = `Tags.${key}`;
10235
10331
  entries[loc] = value;
@@ -10256,6 +10352,9 @@ const serializeAws_queryUntagInstanceProfileRequest = (input, context) => {
10256
10352
  }
10257
10353
  if (input.TagKeys != null) {
10258
10354
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10355
+ if (input.TagKeys?.length === 0) {
10356
+ entries.TagKeys = [];
10357
+ }
10259
10358
  Object.entries(memberEntries).forEach(([key, value]) => {
10260
10359
  const loc = `TagKeys.${key}`;
10261
10360
  entries[loc] = value;
@@ -10270,6 +10369,9 @@ const serializeAws_queryUntagMFADeviceRequest = (input, context) => {
10270
10369
  }
10271
10370
  if (input.TagKeys != null) {
10272
10371
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10372
+ if (input.TagKeys?.length === 0) {
10373
+ entries.TagKeys = [];
10374
+ }
10273
10375
  Object.entries(memberEntries).forEach(([key, value]) => {
10274
10376
  const loc = `TagKeys.${key}`;
10275
10377
  entries[loc] = value;
@@ -10284,6 +10386,9 @@ const serializeAws_queryUntagOpenIDConnectProviderRequest = (input, context) =>
10284
10386
  }
10285
10387
  if (input.TagKeys != null) {
10286
10388
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10389
+ if (input.TagKeys?.length === 0) {
10390
+ entries.TagKeys = [];
10391
+ }
10287
10392
  Object.entries(memberEntries).forEach(([key, value]) => {
10288
10393
  const loc = `TagKeys.${key}`;
10289
10394
  entries[loc] = value;
@@ -10298,6 +10403,9 @@ const serializeAws_queryUntagPolicyRequest = (input, context) => {
10298
10403
  }
10299
10404
  if (input.TagKeys != null) {
10300
10405
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10406
+ if (input.TagKeys?.length === 0) {
10407
+ entries.TagKeys = [];
10408
+ }
10301
10409
  Object.entries(memberEntries).forEach(([key, value]) => {
10302
10410
  const loc = `TagKeys.${key}`;
10303
10411
  entries[loc] = value;
@@ -10312,6 +10420,9 @@ const serializeAws_queryUntagRoleRequest = (input, context) => {
10312
10420
  }
10313
10421
  if (input.TagKeys != null) {
10314
10422
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10423
+ if (input.TagKeys?.length === 0) {
10424
+ entries.TagKeys = [];
10425
+ }
10315
10426
  Object.entries(memberEntries).forEach(([key, value]) => {
10316
10427
  const loc = `TagKeys.${key}`;
10317
10428
  entries[loc] = value;
@@ -10326,6 +10437,9 @@ const serializeAws_queryUntagSAMLProviderRequest = (input, context) => {
10326
10437
  }
10327
10438
  if (input.TagKeys != null) {
10328
10439
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10440
+ if (input.TagKeys?.length === 0) {
10441
+ entries.TagKeys = [];
10442
+ }
10329
10443
  Object.entries(memberEntries).forEach(([key, value]) => {
10330
10444
  const loc = `TagKeys.${key}`;
10331
10445
  entries[loc] = value;
@@ -10340,6 +10454,9 @@ const serializeAws_queryUntagServerCertificateRequest = (input, context) => {
10340
10454
  }
10341
10455
  if (input.TagKeys != null) {
10342
10456
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10457
+ if (input.TagKeys?.length === 0) {
10458
+ entries.TagKeys = [];
10459
+ }
10343
10460
  Object.entries(memberEntries).forEach(([key, value]) => {
10344
10461
  const loc = `TagKeys.${key}`;
10345
10462
  entries[loc] = value;
@@ -10354,6 +10471,9 @@ const serializeAws_queryUntagUserRequest = (input, context) => {
10354
10471
  }
10355
10472
  if (input.TagKeys != null) {
10356
10473
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10474
+ if (input.TagKeys?.length === 0) {
10475
+ entries.TagKeys = [];
10476
+ }
10357
10477
  Object.entries(memberEntries).forEach(([key, value]) => {
10358
10478
  const loc = `TagKeys.${key}`;
10359
10479
  entries[loc] = value;
@@ -10448,6 +10568,9 @@ const serializeAws_queryUpdateOpenIDConnectProviderThumbprintRequest = (input, c
10448
10568
  }
10449
10569
  if (input.ThumbprintList != null) {
10450
10570
  const memberEntries = serializeAws_querythumbprintListType(input.ThumbprintList, context);
10571
+ if (input.ThumbprintList?.length === 0) {
10572
+ entries.ThumbprintList = [];
10573
+ }
10451
10574
  Object.entries(memberEntries).forEach(([key, value]) => {
10452
10575
  const loc = `ThumbprintList.${key}`;
10453
10576
  entries[loc] = value;
@@ -10572,6 +10695,9 @@ const serializeAws_queryUploadServerCertificateRequest = (input, context) => {
10572
10695
  }
10573
10696
  if (input.Tags != null) {
10574
10697
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10698
+ if (input.Tags?.length === 0) {
10699
+ entries.Tags = [];
10700
+ }
10575
10701
  Object.entries(memberEntries).forEach(([key, value]) => {
10576
10702
  const loc = `Tags.${key}`;
10577
10703
  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: "2010-05-08",
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 ?? {},