@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.
@@ -8279,6 +8279,9 @@ const serializeAws_queryContextEntry = (input, context) => {
8279
8279
  }
8280
8280
  if (input.ContextKeyValues != null) {
8281
8281
  const memberEntries = serializeAws_queryContextKeyValueListType(input.ContextKeyValues, context);
8282
+ if (input.ContextKeyValues?.length === 0) {
8283
+ entries.ContextKeyValues = [];
8284
+ }
8282
8285
  Object.entries(memberEntries).forEach(([key, value]) => {
8283
8286
  const loc = `ContextKeyValues.${key}`;
8284
8287
  entries[loc] = value;
@@ -8350,6 +8353,9 @@ const serializeAws_queryCreateInstanceProfileRequest = (input, context) => {
8350
8353
  }
8351
8354
  if (input.Tags != null) {
8352
8355
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8356
+ if (input.Tags?.length === 0) {
8357
+ entries.Tags = [];
8358
+ }
8353
8359
  Object.entries(memberEntries).forEach(([key, value]) => {
8354
8360
  const loc = `Tags.${key}`;
8355
8361
  entries[loc] = value;
@@ -8377,6 +8383,9 @@ const serializeAws_queryCreateOpenIDConnectProviderRequest = (input, context) =>
8377
8383
  }
8378
8384
  if (input.ClientIDList != null) {
8379
8385
  const memberEntries = serializeAws_queryclientIDListType(input.ClientIDList, context);
8386
+ if (input.ClientIDList?.length === 0) {
8387
+ entries.ClientIDList = [];
8388
+ }
8380
8389
  Object.entries(memberEntries).forEach(([key, value]) => {
8381
8390
  const loc = `ClientIDList.${key}`;
8382
8391
  entries[loc] = value;
@@ -8384,6 +8393,9 @@ const serializeAws_queryCreateOpenIDConnectProviderRequest = (input, context) =>
8384
8393
  }
8385
8394
  if (input.ThumbprintList != null) {
8386
8395
  const memberEntries = serializeAws_querythumbprintListType(input.ThumbprintList, context);
8396
+ if (input.ThumbprintList?.length === 0) {
8397
+ entries.ThumbprintList = [];
8398
+ }
8387
8399
  Object.entries(memberEntries).forEach(([key, value]) => {
8388
8400
  const loc = `ThumbprintList.${key}`;
8389
8401
  entries[loc] = value;
@@ -8391,6 +8403,9 @@ const serializeAws_queryCreateOpenIDConnectProviderRequest = (input, context) =>
8391
8403
  }
8392
8404
  if (input.Tags != null) {
8393
8405
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8406
+ if (input.Tags?.length === 0) {
8407
+ entries.Tags = [];
8408
+ }
8394
8409
  Object.entries(memberEntries).forEach(([key, value]) => {
8395
8410
  const loc = `Tags.${key}`;
8396
8411
  entries[loc] = value;
@@ -8414,6 +8429,9 @@ const serializeAws_queryCreatePolicyRequest = (input, context) => {
8414
8429
  }
8415
8430
  if (input.Tags != null) {
8416
8431
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8432
+ if (input.Tags?.length === 0) {
8433
+ entries.Tags = [];
8434
+ }
8417
8435
  Object.entries(memberEntries).forEach(([key, value]) => {
8418
8436
  const loc = `Tags.${key}`;
8419
8437
  entries[loc] = value;
@@ -8456,6 +8474,9 @@ const serializeAws_queryCreateRoleRequest = (input, context) => {
8456
8474
  }
8457
8475
  if (input.Tags != null) {
8458
8476
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8477
+ if (input.Tags?.length === 0) {
8478
+ entries.Tags = [];
8479
+ }
8459
8480
  Object.entries(memberEntries).forEach(([key, value]) => {
8460
8481
  const loc = `Tags.${key}`;
8461
8482
  entries[loc] = value;
@@ -8473,6 +8494,9 @@ const serializeAws_queryCreateSAMLProviderRequest = (input, context) => {
8473
8494
  }
8474
8495
  if (input.Tags != null) {
8475
8496
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8497
+ if (input.Tags?.length === 0) {
8498
+ entries.Tags = [];
8499
+ }
8476
8500
  Object.entries(memberEntries).forEach(([key, value]) => {
8477
8501
  const loc = `Tags.${key}`;
8478
8502
  entries[loc] = value;
@@ -8516,6 +8540,9 @@ const serializeAws_queryCreateUserRequest = (input, context) => {
8516
8540
  }
8517
8541
  if (input.Tags != null) {
8518
8542
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8543
+ if (input.Tags?.length === 0) {
8544
+ entries.Tags = [];
8545
+ }
8519
8546
  Object.entries(memberEntries).forEach(([key, value]) => {
8520
8547
  const loc = `Tags.${key}`;
8521
8548
  entries[loc] = value;
@@ -8533,6 +8560,9 @@ const serializeAws_queryCreateVirtualMFADeviceRequest = (input, context) => {
8533
8560
  }
8534
8561
  if (input.Tags != null) {
8535
8562
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
8563
+ if (input.Tags?.length === 0) {
8564
+ entries.Tags = [];
8565
+ }
8536
8566
  Object.entries(memberEntries).forEach(([key, value]) => {
8537
8567
  const loc = `Tags.${key}`;
8538
8568
  entries[loc] = value;
@@ -8817,6 +8847,9 @@ const serializeAws_queryGetAccountAuthorizationDetailsRequest = (input, context)
8817
8847
  const entries = {};
8818
8848
  if (input.Filter != null) {
8819
8849
  const memberEntries = serializeAws_queryentityListType(input.Filter, context);
8850
+ if (input.Filter?.length === 0) {
8851
+ entries.Filter = [];
8852
+ }
8820
8853
  Object.entries(memberEntries).forEach(([key, value]) => {
8821
8854
  const loc = `Filter.${key}`;
8822
8855
  entries[loc] = value;
@@ -8834,6 +8867,9 @@ const serializeAws_queryGetContextKeysForCustomPolicyRequest = (input, context)
8834
8867
  const entries = {};
8835
8868
  if (input.PolicyInputList != null) {
8836
8869
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PolicyInputList, context);
8870
+ if (input.PolicyInputList?.length === 0) {
8871
+ entries.PolicyInputList = [];
8872
+ }
8837
8873
  Object.entries(memberEntries).forEach(([key, value]) => {
8838
8874
  const loc = `PolicyInputList.${key}`;
8839
8875
  entries[loc] = value;
@@ -8848,6 +8884,9 @@ const serializeAws_queryGetContextKeysForPrincipalPolicyRequest = (input, contex
8848
8884
  }
8849
8885
  if (input.PolicyInputList != null) {
8850
8886
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PolicyInputList, context);
8887
+ if (input.PolicyInputList?.length === 0) {
8888
+ entries.PolicyInputList = [];
8889
+ }
8851
8890
  Object.entries(memberEntries).forEach(([key, value]) => {
8852
8891
  const loc = `PolicyInputList.${key}`;
8853
8892
  entries[loc] = value;
@@ -9253,6 +9292,9 @@ const serializeAws_queryListPoliciesGrantingServiceAccessRequest = (input, conte
9253
9292
  }
9254
9293
  if (input.ServiceNamespaces != null) {
9255
9294
  const memberEntries = serializeAws_queryserviceNamespaceListType(input.ServiceNamespaces, context);
9295
+ if (input.ServiceNamespaces?.length === 0) {
9296
+ entries.ServiceNamespaces = [];
9297
+ }
9256
9298
  Object.entries(memberEntries).forEach(([key, value]) => {
9257
9299
  const loc = `ServiceNamespaces.${key}`;
9258
9300
  entries[loc] = value;
@@ -9638,6 +9680,9 @@ const serializeAws_querySimulateCustomPolicyRequest = (input, context) => {
9638
9680
  const entries = {};
9639
9681
  if (input.PolicyInputList != null) {
9640
9682
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PolicyInputList, context);
9683
+ if (input.PolicyInputList?.length === 0) {
9684
+ entries.PolicyInputList = [];
9685
+ }
9641
9686
  Object.entries(memberEntries).forEach(([key, value]) => {
9642
9687
  const loc = `PolicyInputList.${key}`;
9643
9688
  entries[loc] = value;
@@ -9645,6 +9690,9 @@ const serializeAws_querySimulateCustomPolicyRequest = (input, context) => {
9645
9690
  }
9646
9691
  if (input.PermissionsBoundaryPolicyInputList != null) {
9647
9692
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PermissionsBoundaryPolicyInputList, context);
9693
+ if (input.PermissionsBoundaryPolicyInputList?.length === 0) {
9694
+ entries.PermissionsBoundaryPolicyInputList = [];
9695
+ }
9648
9696
  Object.entries(memberEntries).forEach(([key, value]) => {
9649
9697
  const loc = `PermissionsBoundaryPolicyInputList.${key}`;
9650
9698
  entries[loc] = value;
@@ -9652,6 +9700,9 @@ const serializeAws_querySimulateCustomPolicyRequest = (input, context) => {
9652
9700
  }
9653
9701
  if (input.ActionNames != null) {
9654
9702
  const memberEntries = serializeAws_queryActionNameListType(input.ActionNames, context);
9703
+ if (input.ActionNames?.length === 0) {
9704
+ entries.ActionNames = [];
9705
+ }
9655
9706
  Object.entries(memberEntries).forEach(([key, value]) => {
9656
9707
  const loc = `ActionNames.${key}`;
9657
9708
  entries[loc] = value;
@@ -9659,6 +9710,9 @@ const serializeAws_querySimulateCustomPolicyRequest = (input, context) => {
9659
9710
  }
9660
9711
  if (input.ResourceArns != null) {
9661
9712
  const memberEntries = serializeAws_queryResourceNameListType(input.ResourceArns, context);
9713
+ if (input.ResourceArns?.length === 0) {
9714
+ entries.ResourceArns = [];
9715
+ }
9662
9716
  Object.entries(memberEntries).forEach(([key, value]) => {
9663
9717
  const loc = `ResourceArns.${key}`;
9664
9718
  entries[loc] = value;
@@ -9675,6 +9729,9 @@ const serializeAws_querySimulateCustomPolicyRequest = (input, context) => {
9675
9729
  }
9676
9730
  if (input.ContextEntries != null) {
9677
9731
  const memberEntries = serializeAws_queryContextEntryListType(input.ContextEntries, context);
9732
+ if (input.ContextEntries?.length === 0) {
9733
+ entries.ContextEntries = [];
9734
+ }
9678
9735
  Object.entries(memberEntries).forEach(([key, value]) => {
9679
9736
  const loc = `ContextEntries.${key}`;
9680
9737
  entries[loc] = value;
@@ -9698,6 +9755,9 @@ const serializeAws_querySimulatePrincipalPolicyRequest = (input, context) => {
9698
9755
  }
9699
9756
  if (input.PolicyInputList != null) {
9700
9757
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PolicyInputList, context);
9758
+ if (input.PolicyInputList?.length === 0) {
9759
+ entries.PolicyInputList = [];
9760
+ }
9701
9761
  Object.entries(memberEntries).forEach(([key, value]) => {
9702
9762
  const loc = `PolicyInputList.${key}`;
9703
9763
  entries[loc] = value;
@@ -9705,6 +9765,9 @@ const serializeAws_querySimulatePrincipalPolicyRequest = (input, context) => {
9705
9765
  }
9706
9766
  if (input.PermissionsBoundaryPolicyInputList != null) {
9707
9767
  const memberEntries = serializeAws_querySimulationPolicyListType(input.PermissionsBoundaryPolicyInputList, context);
9768
+ if (input.PermissionsBoundaryPolicyInputList?.length === 0) {
9769
+ entries.PermissionsBoundaryPolicyInputList = [];
9770
+ }
9708
9771
  Object.entries(memberEntries).forEach(([key, value]) => {
9709
9772
  const loc = `PermissionsBoundaryPolicyInputList.${key}`;
9710
9773
  entries[loc] = value;
@@ -9712,6 +9775,9 @@ const serializeAws_querySimulatePrincipalPolicyRequest = (input, context) => {
9712
9775
  }
9713
9776
  if (input.ActionNames != null) {
9714
9777
  const memberEntries = serializeAws_queryActionNameListType(input.ActionNames, context);
9778
+ if (input.ActionNames?.length === 0) {
9779
+ entries.ActionNames = [];
9780
+ }
9715
9781
  Object.entries(memberEntries).forEach(([key, value]) => {
9716
9782
  const loc = `ActionNames.${key}`;
9717
9783
  entries[loc] = value;
@@ -9719,6 +9785,9 @@ const serializeAws_querySimulatePrincipalPolicyRequest = (input, context) => {
9719
9785
  }
9720
9786
  if (input.ResourceArns != null) {
9721
9787
  const memberEntries = serializeAws_queryResourceNameListType(input.ResourceArns, context);
9788
+ if (input.ResourceArns?.length === 0) {
9789
+ entries.ResourceArns = [];
9790
+ }
9722
9791
  Object.entries(memberEntries).forEach(([key, value]) => {
9723
9792
  const loc = `ResourceArns.${key}`;
9724
9793
  entries[loc] = value;
@@ -9735,6 +9804,9 @@ const serializeAws_querySimulatePrincipalPolicyRequest = (input, context) => {
9735
9804
  }
9736
9805
  if (input.ContextEntries != null) {
9737
9806
  const memberEntries = serializeAws_queryContextEntryListType(input.ContextEntries, context);
9807
+ if (input.ContextEntries?.length === 0) {
9808
+ entries.ContextEntries = [];
9809
+ }
9738
9810
  Object.entries(memberEntries).forEach(([key, value]) => {
9739
9811
  const loc = `ContextEntries.${key}`;
9740
9812
  entries[loc] = value;
@@ -9780,6 +9852,9 @@ const serializeAws_queryTagInstanceProfileRequest = (input, context) => {
9780
9852
  }
9781
9853
  if (input.Tags != null) {
9782
9854
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
9855
+ if (input.Tags?.length === 0) {
9856
+ entries.Tags = [];
9857
+ }
9783
9858
  Object.entries(memberEntries).forEach(([key, value]) => {
9784
9859
  const loc = `Tags.${key}`;
9785
9860
  entries[loc] = value;
@@ -9821,6 +9896,9 @@ const serializeAws_queryTagMFADeviceRequest = (input, context) => {
9821
9896
  }
9822
9897
  if (input.Tags != null) {
9823
9898
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
9899
+ if (input.Tags?.length === 0) {
9900
+ entries.Tags = [];
9901
+ }
9824
9902
  Object.entries(memberEntries).forEach(([key, value]) => {
9825
9903
  const loc = `Tags.${key}`;
9826
9904
  entries[loc] = value;
@@ -9835,6 +9913,9 @@ const serializeAws_queryTagOpenIDConnectProviderRequest = (input, context) => {
9835
9913
  }
9836
9914
  if (input.Tags != null) {
9837
9915
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
9916
+ if (input.Tags?.length === 0) {
9917
+ entries.Tags = [];
9918
+ }
9838
9919
  Object.entries(memberEntries).forEach(([key, value]) => {
9839
9920
  const loc = `Tags.${key}`;
9840
9921
  entries[loc] = value;
@@ -9849,6 +9930,9 @@ const serializeAws_queryTagPolicyRequest = (input, context) => {
9849
9930
  }
9850
9931
  if (input.Tags != null) {
9851
9932
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
9933
+ if (input.Tags?.length === 0) {
9934
+ entries.Tags = [];
9935
+ }
9852
9936
  Object.entries(memberEntries).forEach(([key, value]) => {
9853
9937
  const loc = `Tags.${key}`;
9854
9938
  entries[loc] = value;
@@ -9863,6 +9947,9 @@ const serializeAws_queryTagRoleRequest = (input, context) => {
9863
9947
  }
9864
9948
  if (input.Tags != null) {
9865
9949
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
9950
+ if (input.Tags?.length === 0) {
9951
+ entries.Tags = [];
9952
+ }
9866
9953
  Object.entries(memberEntries).forEach(([key, value]) => {
9867
9954
  const loc = `Tags.${key}`;
9868
9955
  entries[loc] = value;
@@ -9877,6 +9964,9 @@ const serializeAws_queryTagSAMLProviderRequest = (input, context) => {
9877
9964
  }
9878
9965
  if (input.Tags != null) {
9879
9966
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
9967
+ if (input.Tags?.length === 0) {
9968
+ entries.Tags = [];
9969
+ }
9880
9970
  Object.entries(memberEntries).forEach(([key, value]) => {
9881
9971
  const loc = `Tags.${key}`;
9882
9972
  entries[loc] = value;
@@ -9891,6 +9981,9 @@ const serializeAws_queryTagServerCertificateRequest = (input, context) => {
9891
9981
  }
9892
9982
  if (input.Tags != null) {
9893
9983
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
9984
+ if (input.Tags?.length === 0) {
9985
+ entries.Tags = [];
9986
+ }
9894
9987
  Object.entries(memberEntries).forEach(([key, value]) => {
9895
9988
  const loc = `Tags.${key}`;
9896
9989
  entries[loc] = value;
@@ -9905,6 +9998,9 @@ const serializeAws_queryTagUserRequest = (input, context) => {
9905
9998
  }
9906
9999
  if (input.Tags != null) {
9907
10000
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10001
+ if (input.Tags?.length === 0) {
10002
+ entries.Tags = [];
10003
+ }
9908
10004
  Object.entries(memberEntries).forEach(([key, value]) => {
9909
10005
  const loc = `Tags.${key}`;
9910
10006
  entries[loc] = value;
@@ -9931,6 +10027,9 @@ const serializeAws_queryUntagInstanceProfileRequest = (input, context) => {
9931
10027
  }
9932
10028
  if (input.TagKeys != null) {
9933
10029
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10030
+ if (input.TagKeys?.length === 0) {
10031
+ entries.TagKeys = [];
10032
+ }
9934
10033
  Object.entries(memberEntries).forEach(([key, value]) => {
9935
10034
  const loc = `TagKeys.${key}`;
9936
10035
  entries[loc] = value;
@@ -9945,6 +10044,9 @@ const serializeAws_queryUntagMFADeviceRequest = (input, context) => {
9945
10044
  }
9946
10045
  if (input.TagKeys != null) {
9947
10046
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10047
+ if (input.TagKeys?.length === 0) {
10048
+ entries.TagKeys = [];
10049
+ }
9948
10050
  Object.entries(memberEntries).forEach(([key, value]) => {
9949
10051
  const loc = `TagKeys.${key}`;
9950
10052
  entries[loc] = value;
@@ -9959,6 +10061,9 @@ const serializeAws_queryUntagOpenIDConnectProviderRequest = (input, context) =>
9959
10061
  }
9960
10062
  if (input.TagKeys != null) {
9961
10063
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10064
+ if (input.TagKeys?.length === 0) {
10065
+ entries.TagKeys = [];
10066
+ }
9962
10067
  Object.entries(memberEntries).forEach(([key, value]) => {
9963
10068
  const loc = `TagKeys.${key}`;
9964
10069
  entries[loc] = value;
@@ -9973,6 +10078,9 @@ const serializeAws_queryUntagPolicyRequest = (input, context) => {
9973
10078
  }
9974
10079
  if (input.TagKeys != null) {
9975
10080
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10081
+ if (input.TagKeys?.length === 0) {
10082
+ entries.TagKeys = [];
10083
+ }
9976
10084
  Object.entries(memberEntries).forEach(([key, value]) => {
9977
10085
  const loc = `TagKeys.${key}`;
9978
10086
  entries[loc] = value;
@@ -9987,6 +10095,9 @@ const serializeAws_queryUntagRoleRequest = (input, context) => {
9987
10095
  }
9988
10096
  if (input.TagKeys != null) {
9989
10097
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10098
+ if (input.TagKeys?.length === 0) {
10099
+ entries.TagKeys = [];
10100
+ }
9990
10101
  Object.entries(memberEntries).forEach(([key, value]) => {
9991
10102
  const loc = `TagKeys.${key}`;
9992
10103
  entries[loc] = value;
@@ -10001,6 +10112,9 @@ const serializeAws_queryUntagSAMLProviderRequest = (input, context) => {
10001
10112
  }
10002
10113
  if (input.TagKeys != null) {
10003
10114
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10115
+ if (input.TagKeys?.length === 0) {
10116
+ entries.TagKeys = [];
10117
+ }
10004
10118
  Object.entries(memberEntries).forEach(([key, value]) => {
10005
10119
  const loc = `TagKeys.${key}`;
10006
10120
  entries[loc] = value;
@@ -10015,6 +10129,9 @@ const serializeAws_queryUntagServerCertificateRequest = (input, context) => {
10015
10129
  }
10016
10130
  if (input.TagKeys != null) {
10017
10131
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10132
+ if (input.TagKeys?.length === 0) {
10133
+ entries.TagKeys = [];
10134
+ }
10018
10135
  Object.entries(memberEntries).forEach(([key, value]) => {
10019
10136
  const loc = `TagKeys.${key}`;
10020
10137
  entries[loc] = value;
@@ -10029,6 +10146,9 @@ const serializeAws_queryUntagUserRequest = (input, context) => {
10029
10146
  }
10030
10147
  if (input.TagKeys != null) {
10031
10148
  const memberEntries = serializeAws_querytagKeyListType(input.TagKeys, context);
10149
+ if (input.TagKeys?.length === 0) {
10150
+ entries.TagKeys = [];
10151
+ }
10032
10152
  Object.entries(memberEntries).forEach(([key, value]) => {
10033
10153
  const loc = `TagKeys.${key}`;
10034
10154
  entries[loc] = value;
@@ -10123,6 +10243,9 @@ const serializeAws_queryUpdateOpenIDConnectProviderThumbprintRequest = (input, c
10123
10243
  }
10124
10244
  if (input.ThumbprintList != null) {
10125
10245
  const memberEntries = serializeAws_querythumbprintListType(input.ThumbprintList, context);
10246
+ if (input.ThumbprintList?.length === 0) {
10247
+ entries.ThumbprintList = [];
10248
+ }
10126
10249
  Object.entries(memberEntries).forEach(([key, value]) => {
10127
10250
  const loc = `ThumbprintList.${key}`;
10128
10251
  entries[loc] = value;
@@ -10247,6 +10370,9 @@ const serializeAws_queryUploadServerCertificateRequest = (input, context) => {
10247
10370
  }
10248
10371
  if (input.Tags != null) {
10249
10372
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
10373
+ if (input.Tags?.length === 0) {
10374
+ entries.Tags = [];
10375
+ }
10250
10376
  Object.entries(memberEntries).forEach(([key, value]) => {
10251
10377
  const loc = `Tags.${key}`;
10252
10378
  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 ??
@@ -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: "2010-05-08",
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 ?? {},
@@ -6,8 +6,6 @@ import { IAMClientConfig } from "./IAMClient";
6
6
  export declare const getRuntimeConfig: (config: IAMClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
- base64Decoder: import("@aws-sdk/types").Decoder;
10
- base64Encoder: import("@aws-sdk/types").Encoder;
11
9
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
@@ -23,6 +21,8 @@ export declare const getRuntimeConfig: (config: IAMClientConfig) => {
23
21
  utf8Encoder: import("@aws-sdk/types").Encoder;
24
22
  apiVersion: string;
25
23
  urlParser: import("@aws-sdk/types").UrlParser;
24
+ base64Decoder: import("@aws-sdk/types").Decoder;
25
+ base64Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
@@ -6,8 +6,6 @@ import { IAMClientConfig } from "./IAMClient";
6
6
  export declare const getRuntimeConfig: (config: IAMClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
- base64Decoder: import("@aws-sdk/types").Decoder;
10
- base64Encoder: import("@aws-sdk/types").Encoder;
11
9
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
@@ -23,6 +21,8 @@ export declare const getRuntimeConfig: (config: IAMClientConfig) => {
23
21
  utf8Encoder: import("@aws-sdk/types").Encoder;
24
22
  apiVersion: string;
25
23
  urlParser: import("@aws-sdk/types").UrlParser;
24
+ base64Decoder: import("@aws-sdk/types").Decoder;
25
+ base64Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
@@ -5,6 +5,8 @@ import { IAMClientConfig } from "./IAMClient";
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: IAMClientConfig) => {
7
7
  apiVersion: string;
8
+ base64Decoder: import("@aws-sdk/types").Decoder;
9
+ base64Encoder: import("@aws-sdk/types").Encoder;
8
10
  disableHostPrefix: boolean;
9
11
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
10
12
  logger?: __Logger | undefined;
@@ -5,8 +5,6 @@ export declare const getRuntimeConfig: (config: IAMClientConfig) => {
5
5
  defaultsMode: import("@aws-sdk/types").Provider<
6
6
  import("@aws-sdk/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
- base64Decoder: import("@aws-sdk/types").Decoder;
9
- base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
11
9
  credentialDefaultProvider: (
12
10
  input: any
@@ -33,6 +31,8 @@ export declare const getRuntimeConfig: (config: IAMClientConfig) => {
33
31
  utf8Encoder: import("@aws-sdk/types").Encoder;
34
32
  apiVersion: string;
35
33
  urlParser: import("@aws-sdk/types").UrlParser;
34
+ base64Decoder: import("@aws-sdk/types").Decoder;
35
+ base64Encoder: import("@aws-sdk/types").Encoder;
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
@@ -5,8 +5,6 @@ export declare const getRuntimeConfig: (config: IAMClientConfig) => {
5
5
  defaultsMode: import("@aws-sdk/types").Provider<
6
6
  import("@aws-sdk/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
- base64Decoder: import("@aws-sdk/types").Decoder;
9
- base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
11
9
  credentialDefaultProvider: (
12
10
  input: any
@@ -33,6 +31,8 @@ export declare const getRuntimeConfig: (config: IAMClientConfig) => {
33
31
  utf8Encoder: import("@aws-sdk/types").Encoder;
34
32
  apiVersion: string;
35
33
  urlParser: import("@aws-sdk/types").UrlParser;
34
+ base64Decoder: import("@aws-sdk/types").Decoder;
35
+ base64Encoder: import("@aws-sdk/types").Encoder;
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
@@ -2,6 +2,8 @@ import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { IAMClientConfig } from "./IAMClient";
3
3
  export declare const getRuntimeConfig: (config: IAMClientConfig) => {
4
4
  apiVersion: string;
5
+ base64Decoder: import("@aws-sdk/types").Decoder;
6
+ base64Encoder: import("@aws-sdk/types").Encoder;
5
7
  disableHostPrefix: boolean;
6
8
  endpointProvider: (
7
9
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iam",
3
3
  "description": "AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native",
4
- "version": "3.201.0",
4
+ "version": "3.204.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,10 +19,10 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.201.0",
22
+ "@aws-sdk/client-sts": "3.204.0",
23
23
  "@aws-sdk/config-resolver": "3.201.0",
24
- "@aws-sdk/credential-provider-node": "3.201.0",
25
- "@aws-sdk/fetch-http-handler": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.204.0",
25
+ "@aws-sdk/fetch-http-handler": "3.204.0",
26
26
  "@aws-sdk/hash-node": "3.201.0",
27
27
  "@aws-sdk/invalid-dependency": "3.201.0",
28
28
  "@aws-sdk/middleware-content-length": "3.201.0",
@@ -41,13 +41,14 @@
41
41
  "@aws-sdk/smithy-client": "3.201.0",
42
42
  "@aws-sdk/types": "3.201.0",
43
43
  "@aws-sdk/url-parser": "3.201.0",
44
+ "@aws-sdk/util-base64": "3.202.0",
44
45
  "@aws-sdk/util-base64-browser": "3.188.0",
45
46
  "@aws-sdk/util-base64-node": "3.201.0",
46
47
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
48
  "@aws-sdk/util-body-length-node": "3.201.0",
48
49
  "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
50
  "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
- "@aws-sdk/util-endpoints": "3.201.0",
51
+ "@aws-sdk/util-endpoints": "3.202.0",
51
52
  "@aws-sdk/util-user-agent-browser": "3.201.0",
52
53
  "@aws-sdk/util-user-agent-node": "3.201.0",
53
54
  "@aws-sdk/util-utf8-browser": "3.188.0",