@aws-sdk/client-iam 3.354.0 → 3.357.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.
@@ -1745,7 +1745,7 @@ const de_AddClientIDToOpenIDConnectProviderCommand = async (output, context) =>
1745
1745
  if (output.statusCode >= 300) {
1746
1746
  return de_AddClientIDToOpenIDConnectProviderCommandError(output, context);
1747
1747
  }
1748
- await collectBody(output.body, context);
1748
+ await (0, smithy_client_1.collectBody)(output.body, context);
1749
1749
  const response = {
1750
1750
  $metadata: deserializeMetadata(output),
1751
1751
  };
@@ -1784,7 +1784,7 @@ const de_AddRoleToInstanceProfileCommand = async (output, context) => {
1784
1784
  if (output.statusCode >= 300) {
1785
1785
  return de_AddRoleToInstanceProfileCommandError(output, context);
1786
1786
  }
1787
- await collectBody(output.body, context);
1787
+ await (0, smithy_client_1.collectBody)(output.body, context);
1788
1788
  const response = {
1789
1789
  $metadata: deserializeMetadata(output),
1790
1790
  };
@@ -1826,7 +1826,7 @@ const de_AddUserToGroupCommand = async (output, context) => {
1826
1826
  if (output.statusCode >= 300) {
1827
1827
  return de_AddUserToGroupCommandError(output, context);
1828
1828
  }
1829
- await collectBody(output.body, context);
1829
+ await (0, smithy_client_1.collectBody)(output.body, context);
1830
1830
  const response = {
1831
1831
  $metadata: deserializeMetadata(output),
1832
1832
  };
@@ -1862,7 +1862,7 @@ const de_AttachGroupPolicyCommand = async (output, context) => {
1862
1862
  if (output.statusCode >= 300) {
1863
1863
  return de_AttachGroupPolicyCommandError(output, context);
1864
1864
  }
1865
- await collectBody(output.body, context);
1865
+ await (0, smithy_client_1.collectBody)(output.body, context);
1866
1866
  const response = {
1867
1867
  $metadata: deserializeMetadata(output),
1868
1868
  };
@@ -1904,7 +1904,7 @@ const de_AttachRolePolicyCommand = async (output, context) => {
1904
1904
  if (output.statusCode >= 300) {
1905
1905
  return de_AttachRolePolicyCommandError(output, context);
1906
1906
  }
1907
- await collectBody(output.body, context);
1907
+ await (0, smithy_client_1.collectBody)(output.body, context);
1908
1908
  const response = {
1909
1909
  $metadata: deserializeMetadata(output),
1910
1910
  };
@@ -1949,7 +1949,7 @@ const de_AttachUserPolicyCommand = async (output, context) => {
1949
1949
  if (output.statusCode >= 300) {
1950
1950
  return de_AttachUserPolicyCommandError(output, context);
1951
1951
  }
1952
- await collectBody(output.body, context);
1952
+ await (0, smithy_client_1.collectBody)(output.body, context);
1953
1953
  const response = {
1954
1954
  $metadata: deserializeMetadata(output),
1955
1955
  };
@@ -1991,7 +1991,7 @@ const de_ChangePasswordCommand = async (output, context) => {
1991
1991
  if (output.statusCode >= 300) {
1992
1992
  return de_ChangePasswordCommandError(output, context);
1993
1993
  }
1994
- await collectBody(output.body, context);
1994
+ await (0, smithy_client_1.collectBody)(output.body, context);
1995
1995
  const response = {
1996
1996
  $metadata: deserializeMetadata(output),
1997
1997
  };
@@ -2075,7 +2075,7 @@ const de_CreateAccountAliasCommand = async (output, context) => {
2075
2075
  if (output.statusCode >= 300) {
2076
2076
  return de_CreateAccountAliasCommandError(output, context);
2077
2077
  }
2078
- await collectBody(output.body, context);
2078
+ await (0, smithy_client_1.collectBody)(output.body, context);
2079
2079
  const response = {
2080
2080
  $metadata: deserializeMetadata(output),
2081
2081
  };
@@ -2651,7 +2651,7 @@ const de_DeactivateMFADeviceCommand = async (output, context) => {
2651
2651
  if (output.statusCode >= 300) {
2652
2652
  return de_DeactivateMFADeviceCommandError(output, context);
2653
2653
  }
2654
- await collectBody(output.body, context);
2654
+ await (0, smithy_client_1.collectBody)(output.body, context);
2655
2655
  const response = {
2656
2656
  $metadata: deserializeMetadata(output),
2657
2657
  };
@@ -2693,7 +2693,7 @@ const de_DeleteAccessKeyCommand = async (output, context) => {
2693
2693
  if (output.statusCode >= 300) {
2694
2694
  return de_DeleteAccessKeyCommandError(output, context);
2695
2695
  }
2696
- await collectBody(output.body, context);
2696
+ await (0, smithy_client_1.collectBody)(output.body, context);
2697
2697
  const response = {
2698
2698
  $metadata: deserializeMetadata(output),
2699
2699
  };
@@ -2729,7 +2729,7 @@ const de_DeleteAccountAliasCommand = async (output, context) => {
2729
2729
  if (output.statusCode >= 300) {
2730
2730
  return de_DeleteAccountAliasCommandError(output, context);
2731
2731
  }
2732
- await collectBody(output.body, context);
2732
+ await (0, smithy_client_1.collectBody)(output.body, context);
2733
2733
  const response = {
2734
2734
  $metadata: deserializeMetadata(output),
2735
2735
  };
@@ -2768,7 +2768,7 @@ const de_DeleteAccountPasswordPolicyCommand = async (output, context) => {
2768
2768
  if (output.statusCode >= 300) {
2769
2769
  return de_DeleteAccountPasswordPolicyCommandError(output, context);
2770
2770
  }
2771
- await collectBody(output.body, context);
2771
+ await (0, smithy_client_1.collectBody)(output.body, context);
2772
2772
  const response = {
2773
2773
  $metadata: deserializeMetadata(output),
2774
2774
  };
@@ -2804,7 +2804,7 @@ const de_DeleteGroupCommand = async (output, context) => {
2804
2804
  if (output.statusCode >= 300) {
2805
2805
  return de_DeleteGroupCommandError(output, context);
2806
2806
  }
2807
- await collectBody(output.body, context);
2807
+ await (0, smithy_client_1.collectBody)(output.body, context);
2808
2808
  const response = {
2809
2809
  $metadata: deserializeMetadata(output),
2810
2810
  };
@@ -2843,7 +2843,7 @@ const de_DeleteGroupPolicyCommand = async (output, context) => {
2843
2843
  if (output.statusCode >= 300) {
2844
2844
  return de_DeleteGroupPolicyCommandError(output, context);
2845
2845
  }
2846
- await collectBody(output.body, context);
2846
+ await (0, smithy_client_1.collectBody)(output.body, context);
2847
2847
  const response = {
2848
2848
  $metadata: deserializeMetadata(output),
2849
2849
  };
@@ -2879,7 +2879,7 @@ const de_DeleteInstanceProfileCommand = async (output, context) => {
2879
2879
  if (output.statusCode >= 300) {
2880
2880
  return de_DeleteInstanceProfileCommandError(output, context);
2881
2881
  }
2882
- await collectBody(output.body, context);
2882
+ await (0, smithy_client_1.collectBody)(output.body, context);
2883
2883
  const response = {
2884
2884
  $metadata: deserializeMetadata(output),
2885
2885
  };
@@ -2918,7 +2918,7 @@ const de_DeleteLoginProfileCommand = async (output, context) => {
2918
2918
  if (output.statusCode >= 300) {
2919
2919
  return de_DeleteLoginProfileCommandError(output, context);
2920
2920
  }
2921
- await collectBody(output.body, context);
2921
+ await (0, smithy_client_1.collectBody)(output.body, context);
2922
2922
  const response = {
2923
2923
  $metadata: deserializeMetadata(output),
2924
2924
  };
@@ -2957,7 +2957,7 @@ const de_DeleteOpenIDConnectProviderCommand = async (output, context) => {
2957
2957
  if (output.statusCode >= 300) {
2958
2958
  return de_DeleteOpenIDConnectProviderCommandError(output, context);
2959
2959
  }
2960
- await collectBody(output.body, context);
2960
+ await (0, smithy_client_1.collectBody)(output.body, context);
2961
2961
  const response = {
2962
2962
  $metadata: deserializeMetadata(output),
2963
2963
  };
@@ -2993,7 +2993,7 @@ const de_DeletePolicyCommand = async (output, context) => {
2993
2993
  if (output.statusCode >= 300) {
2994
2994
  return de_DeletePolicyCommandError(output, context);
2995
2995
  }
2996
- await collectBody(output.body, context);
2996
+ await (0, smithy_client_1.collectBody)(output.body, context);
2997
2997
  const response = {
2998
2998
  $metadata: deserializeMetadata(output),
2999
2999
  };
@@ -3035,7 +3035,7 @@ const de_DeletePolicyVersionCommand = async (output, context) => {
3035
3035
  if (output.statusCode >= 300) {
3036
3036
  return de_DeletePolicyVersionCommandError(output, context);
3037
3037
  }
3038
- await collectBody(output.body, context);
3038
+ await (0, smithy_client_1.collectBody)(output.body, context);
3039
3039
  const response = {
3040
3040
  $metadata: deserializeMetadata(output),
3041
3041
  };
@@ -3077,7 +3077,7 @@ const de_DeleteRoleCommand = async (output, context) => {
3077
3077
  if (output.statusCode >= 300) {
3078
3078
  return de_DeleteRoleCommandError(output, context);
3079
3079
  }
3080
- await collectBody(output.body, context);
3080
+ await (0, smithy_client_1.collectBody)(output.body, context);
3081
3081
  const response = {
3082
3082
  $metadata: deserializeMetadata(output),
3083
3083
  };
@@ -3122,7 +3122,7 @@ const de_DeleteRolePermissionsBoundaryCommand = async (output, context) => {
3122
3122
  if (output.statusCode >= 300) {
3123
3123
  return de_DeleteRolePermissionsBoundaryCommandError(output, context);
3124
3124
  }
3125
- await collectBody(output.body, context);
3125
+ await (0, smithy_client_1.collectBody)(output.body, context);
3126
3126
  const response = {
3127
3127
  $metadata: deserializeMetadata(output),
3128
3128
  };
@@ -3158,7 +3158,7 @@ const de_DeleteRolePolicyCommand = async (output, context) => {
3158
3158
  if (output.statusCode >= 300) {
3159
3159
  return de_DeleteRolePolicyCommandError(output, context);
3160
3160
  }
3161
- await collectBody(output.body, context);
3161
+ await (0, smithy_client_1.collectBody)(output.body, context);
3162
3162
  const response = {
3163
3163
  $metadata: deserializeMetadata(output),
3164
3164
  };
@@ -3197,7 +3197,7 @@ const de_DeleteSAMLProviderCommand = async (output, context) => {
3197
3197
  if (output.statusCode >= 300) {
3198
3198
  return de_DeleteSAMLProviderCommandError(output, context);
3199
3199
  }
3200
- await collectBody(output.body, context);
3200
+ await (0, smithy_client_1.collectBody)(output.body, context);
3201
3201
  const response = {
3202
3202
  $metadata: deserializeMetadata(output),
3203
3203
  };
@@ -3236,7 +3236,7 @@ const de_DeleteServerCertificateCommand = async (output, context) => {
3236
3236
  if (output.statusCode >= 300) {
3237
3237
  return de_DeleteServerCertificateCommandError(output, context);
3238
3238
  }
3239
- await collectBody(output.body, context);
3239
+ await (0, smithy_client_1.collectBody)(output.body, context);
3240
3240
  const response = {
3241
3241
  $metadata: deserializeMetadata(output),
3242
3242
  };
@@ -3314,7 +3314,7 @@ const de_DeleteServiceSpecificCredentialCommand = async (output, context) => {
3314
3314
  if (output.statusCode >= 300) {
3315
3315
  return de_DeleteServiceSpecificCredentialCommandError(output, context);
3316
3316
  }
3317
- await collectBody(output.body, context);
3317
+ await (0, smithy_client_1.collectBody)(output.body, context);
3318
3318
  const response = {
3319
3319
  $metadata: deserializeMetadata(output),
3320
3320
  };
@@ -3344,7 +3344,7 @@ const de_DeleteSigningCertificateCommand = async (output, context) => {
3344
3344
  if (output.statusCode >= 300) {
3345
3345
  return de_DeleteSigningCertificateCommandError(output, context);
3346
3346
  }
3347
- await collectBody(output.body, context);
3347
+ await (0, smithy_client_1.collectBody)(output.body, context);
3348
3348
  const response = {
3349
3349
  $metadata: deserializeMetadata(output),
3350
3350
  };
@@ -3383,7 +3383,7 @@ const de_DeleteSSHPublicKeyCommand = async (output, context) => {
3383
3383
  if (output.statusCode >= 300) {
3384
3384
  return de_DeleteSSHPublicKeyCommandError(output, context);
3385
3385
  }
3386
- await collectBody(output.body, context);
3386
+ await (0, smithy_client_1.collectBody)(output.body, context);
3387
3387
  const response = {
3388
3388
  $metadata: deserializeMetadata(output),
3389
3389
  };
@@ -3413,7 +3413,7 @@ const de_DeleteUserCommand = async (output, context) => {
3413
3413
  if (output.statusCode >= 300) {
3414
3414
  return de_DeleteUserCommandError(output, context);
3415
3415
  }
3416
- await collectBody(output.body, context);
3416
+ await (0, smithy_client_1.collectBody)(output.body, context);
3417
3417
  const response = {
3418
3418
  $metadata: deserializeMetadata(output),
3419
3419
  };
@@ -3455,7 +3455,7 @@ const de_DeleteUserPermissionsBoundaryCommand = async (output, context) => {
3455
3455
  if (output.statusCode >= 300) {
3456
3456
  return de_DeleteUserPermissionsBoundaryCommandError(output, context);
3457
3457
  }
3458
- await collectBody(output.body, context);
3458
+ await (0, smithy_client_1.collectBody)(output.body, context);
3459
3459
  const response = {
3460
3460
  $metadata: deserializeMetadata(output),
3461
3461
  };
@@ -3488,7 +3488,7 @@ const de_DeleteUserPolicyCommand = async (output, context) => {
3488
3488
  if (output.statusCode >= 300) {
3489
3489
  return de_DeleteUserPolicyCommandError(output, context);
3490
3490
  }
3491
- await collectBody(output.body, context);
3491
+ await (0, smithy_client_1.collectBody)(output.body, context);
3492
3492
  const response = {
3493
3493
  $metadata: deserializeMetadata(output),
3494
3494
  };
@@ -3524,7 +3524,7 @@ const de_DeleteVirtualMFADeviceCommand = async (output, context) => {
3524
3524
  if (output.statusCode >= 300) {
3525
3525
  return de_DeleteVirtualMFADeviceCommandError(output, context);
3526
3526
  }
3527
- await collectBody(output.body, context);
3527
+ await (0, smithy_client_1.collectBody)(output.body, context);
3528
3528
  const response = {
3529
3529
  $metadata: deserializeMetadata(output),
3530
3530
  };
@@ -3566,7 +3566,7 @@ const de_DetachGroupPolicyCommand = async (output, context) => {
3566
3566
  if (output.statusCode >= 300) {
3567
3567
  return de_DetachGroupPolicyCommandError(output, context);
3568
3568
  }
3569
- await collectBody(output.body, context);
3569
+ await (0, smithy_client_1.collectBody)(output.body, context);
3570
3570
  const response = {
3571
3571
  $metadata: deserializeMetadata(output),
3572
3572
  };
@@ -3605,7 +3605,7 @@ const de_DetachRolePolicyCommand = async (output, context) => {
3605
3605
  if (output.statusCode >= 300) {
3606
3606
  return de_DetachRolePolicyCommandError(output, context);
3607
3607
  }
3608
- await collectBody(output.body, context);
3608
+ await (0, smithy_client_1.collectBody)(output.body, context);
3609
3609
  const response = {
3610
3610
  $metadata: deserializeMetadata(output),
3611
3611
  };
@@ -3647,7 +3647,7 @@ const de_DetachUserPolicyCommand = async (output, context) => {
3647
3647
  if (output.statusCode >= 300) {
3648
3648
  return de_DetachUserPolicyCommandError(output, context);
3649
3649
  }
3650
- await collectBody(output.body, context);
3650
+ await (0, smithy_client_1.collectBody)(output.body, context);
3651
3651
  const response = {
3652
3652
  $metadata: deserializeMetadata(output),
3653
3653
  };
@@ -3686,7 +3686,7 @@ const de_EnableMFADeviceCommand = async (output, context) => {
3686
3686
  if (output.statusCode >= 300) {
3687
3687
  return de_EnableMFADeviceCommandError(output, context);
3688
3688
  }
3689
- await collectBody(output.body, context);
3689
+ await (0, smithy_client_1.collectBody)(output.body, context);
3690
3690
  const response = {
3691
3691
  $metadata: deserializeMetadata(output),
3692
3692
  };
@@ -5957,7 +5957,7 @@ const de_PutGroupPolicyCommand = async (output, context) => {
5957
5957
  if (output.statusCode >= 300) {
5958
5958
  return de_PutGroupPolicyCommandError(output, context);
5959
5959
  }
5960
- await collectBody(output.body, context);
5960
+ await (0, smithy_client_1.collectBody)(output.body, context);
5961
5961
  const response = {
5962
5962
  $metadata: deserializeMetadata(output),
5963
5963
  };
@@ -5996,7 +5996,7 @@ const de_PutRolePermissionsBoundaryCommand = async (output, context) => {
5996
5996
  if (output.statusCode >= 300) {
5997
5997
  return de_PutRolePermissionsBoundaryCommandError(output, context);
5998
5998
  }
5999
- await collectBody(output.body, context);
5999
+ await (0, smithy_client_1.collectBody)(output.body, context);
6000
6000
  const response = {
6001
6001
  $metadata: deserializeMetadata(output),
6002
6002
  };
@@ -6038,7 +6038,7 @@ const de_PutRolePolicyCommand = async (output, context) => {
6038
6038
  if (output.statusCode >= 300) {
6039
6039
  return de_PutRolePolicyCommandError(output, context);
6040
6040
  }
6041
- await collectBody(output.body, context);
6041
+ await (0, smithy_client_1.collectBody)(output.body, context);
6042
6042
  const response = {
6043
6043
  $metadata: deserializeMetadata(output),
6044
6044
  };
@@ -6080,7 +6080,7 @@ const de_PutUserPermissionsBoundaryCommand = async (output, context) => {
6080
6080
  if (output.statusCode >= 300) {
6081
6081
  return de_PutUserPermissionsBoundaryCommandError(output, context);
6082
6082
  }
6083
- await collectBody(output.body, context);
6083
+ await (0, smithy_client_1.collectBody)(output.body, context);
6084
6084
  const response = {
6085
6085
  $metadata: deserializeMetadata(output),
6086
6086
  };
@@ -6119,7 +6119,7 @@ const de_PutUserPolicyCommand = async (output, context) => {
6119
6119
  if (output.statusCode >= 300) {
6120
6120
  return de_PutUserPolicyCommandError(output, context);
6121
6121
  }
6122
- await collectBody(output.body, context);
6122
+ await (0, smithy_client_1.collectBody)(output.body, context);
6123
6123
  const response = {
6124
6124
  $metadata: deserializeMetadata(output),
6125
6125
  };
@@ -6158,7 +6158,7 @@ const de_RemoveClientIDFromOpenIDConnectProviderCommand = async (output, context
6158
6158
  if (output.statusCode >= 300) {
6159
6159
  return de_RemoveClientIDFromOpenIDConnectProviderCommandError(output, context);
6160
6160
  }
6161
- await collectBody(output.body, context);
6161
+ await (0, smithy_client_1.collectBody)(output.body, context);
6162
6162
  const response = {
6163
6163
  $metadata: deserializeMetadata(output),
6164
6164
  };
@@ -6194,7 +6194,7 @@ const de_RemoveRoleFromInstanceProfileCommand = async (output, context) => {
6194
6194
  if (output.statusCode >= 300) {
6195
6195
  return de_RemoveRoleFromInstanceProfileCommandError(output, context);
6196
6196
  }
6197
- await collectBody(output.body, context);
6197
+ await (0, smithy_client_1.collectBody)(output.body, context);
6198
6198
  const response = {
6199
6199
  $metadata: deserializeMetadata(output),
6200
6200
  };
@@ -6233,7 +6233,7 @@ const de_RemoveUserFromGroupCommand = async (output, context) => {
6233
6233
  if (output.statusCode >= 300) {
6234
6234
  return de_RemoveUserFromGroupCommandError(output, context);
6235
6235
  }
6236
- await collectBody(output.body, context);
6236
+ await (0, smithy_client_1.collectBody)(output.body, context);
6237
6237
  const response = {
6238
6238
  $metadata: deserializeMetadata(output),
6239
6239
  };
@@ -6302,7 +6302,7 @@ const de_ResyncMFADeviceCommand = async (output, context) => {
6302
6302
  if (output.statusCode >= 300) {
6303
6303
  return de_ResyncMFADeviceCommandError(output, context);
6304
6304
  }
6305
- await collectBody(output.body, context);
6305
+ await (0, smithy_client_1.collectBody)(output.body, context);
6306
6306
  const response = {
6307
6307
  $metadata: deserializeMetadata(output),
6308
6308
  };
@@ -6344,7 +6344,7 @@ const de_SetDefaultPolicyVersionCommand = async (output, context) => {
6344
6344
  if (output.statusCode >= 300) {
6345
6345
  return de_SetDefaultPolicyVersionCommandError(output, context);
6346
6346
  }
6347
- await collectBody(output.body, context);
6347
+ await (0, smithy_client_1.collectBody)(output.body, context);
6348
6348
  const response = {
6349
6349
  $metadata: deserializeMetadata(output),
6350
6350
  };
@@ -6383,7 +6383,7 @@ const de_SetSecurityTokenServicePreferencesCommand = async (output, context) =>
6383
6383
  if (output.statusCode >= 300) {
6384
6384
  return de_SetSecurityTokenServicePreferencesCommandError(output, context);
6385
6385
  }
6386
- await collectBody(output.body, context);
6386
+ await (0, smithy_client_1.collectBody)(output.body, context);
6387
6387
  const response = {
6388
6388
  $metadata: deserializeMetadata(output),
6389
6389
  };
@@ -6488,7 +6488,7 @@ const de_TagInstanceProfileCommand = async (output, context) => {
6488
6488
  if (output.statusCode >= 300) {
6489
6489
  return de_TagInstanceProfileCommandError(output, context);
6490
6490
  }
6491
- await collectBody(output.body, context);
6491
+ await (0, smithy_client_1.collectBody)(output.body, context);
6492
6492
  const response = {
6493
6493
  $metadata: deserializeMetadata(output),
6494
6494
  };
@@ -6530,7 +6530,7 @@ const de_TagMFADeviceCommand = async (output, context) => {
6530
6530
  if (output.statusCode >= 300) {
6531
6531
  return de_TagMFADeviceCommandError(output, context);
6532
6532
  }
6533
- await collectBody(output.body, context);
6533
+ await (0, smithy_client_1.collectBody)(output.body, context);
6534
6534
  const response = {
6535
6535
  $metadata: deserializeMetadata(output),
6536
6536
  };
@@ -6572,7 +6572,7 @@ const de_TagOpenIDConnectProviderCommand = async (output, context) => {
6572
6572
  if (output.statusCode >= 300) {
6573
6573
  return de_TagOpenIDConnectProviderCommandError(output, context);
6574
6574
  }
6575
- await collectBody(output.body, context);
6575
+ await (0, smithy_client_1.collectBody)(output.body, context);
6576
6576
  const response = {
6577
6577
  $metadata: deserializeMetadata(output),
6578
6578
  };
@@ -6614,7 +6614,7 @@ const de_TagPolicyCommand = async (output, context) => {
6614
6614
  if (output.statusCode >= 300) {
6615
6615
  return de_TagPolicyCommandError(output, context);
6616
6616
  }
6617
- await collectBody(output.body, context);
6617
+ await (0, smithy_client_1.collectBody)(output.body, context);
6618
6618
  const response = {
6619
6619
  $metadata: deserializeMetadata(output),
6620
6620
  };
@@ -6656,7 +6656,7 @@ const de_TagRoleCommand = async (output, context) => {
6656
6656
  if (output.statusCode >= 300) {
6657
6657
  return de_TagRoleCommandError(output, context);
6658
6658
  }
6659
- await collectBody(output.body, context);
6659
+ await (0, smithy_client_1.collectBody)(output.body, context);
6660
6660
  const response = {
6661
6661
  $metadata: deserializeMetadata(output),
6662
6662
  };
@@ -6698,7 +6698,7 @@ const de_TagSAMLProviderCommand = async (output, context) => {
6698
6698
  if (output.statusCode >= 300) {
6699
6699
  return de_TagSAMLProviderCommandError(output, context);
6700
6700
  }
6701
- await collectBody(output.body, context);
6701
+ await (0, smithy_client_1.collectBody)(output.body, context);
6702
6702
  const response = {
6703
6703
  $metadata: deserializeMetadata(output),
6704
6704
  };
@@ -6740,7 +6740,7 @@ const de_TagServerCertificateCommand = async (output, context) => {
6740
6740
  if (output.statusCode >= 300) {
6741
6741
  return de_TagServerCertificateCommandError(output, context);
6742
6742
  }
6743
- await collectBody(output.body, context);
6743
+ await (0, smithy_client_1.collectBody)(output.body, context);
6744
6744
  const response = {
6745
6745
  $metadata: deserializeMetadata(output),
6746
6746
  };
@@ -6782,7 +6782,7 @@ const de_TagUserCommand = async (output, context) => {
6782
6782
  if (output.statusCode >= 300) {
6783
6783
  return de_TagUserCommandError(output, context);
6784
6784
  }
6785
- await collectBody(output.body, context);
6785
+ await (0, smithy_client_1.collectBody)(output.body, context);
6786
6786
  const response = {
6787
6787
  $metadata: deserializeMetadata(output),
6788
6788
  };
@@ -6824,7 +6824,7 @@ const de_UntagInstanceProfileCommand = async (output, context) => {
6824
6824
  if (output.statusCode >= 300) {
6825
6825
  return de_UntagInstanceProfileCommandError(output, context);
6826
6826
  }
6827
- await collectBody(output.body, context);
6827
+ await (0, smithy_client_1.collectBody)(output.body, context);
6828
6828
  const response = {
6829
6829
  $metadata: deserializeMetadata(output),
6830
6830
  };
@@ -6863,7 +6863,7 @@ const de_UntagMFADeviceCommand = async (output, context) => {
6863
6863
  if (output.statusCode >= 300) {
6864
6864
  return de_UntagMFADeviceCommandError(output, context);
6865
6865
  }
6866
- await collectBody(output.body, context);
6866
+ await (0, smithy_client_1.collectBody)(output.body, context);
6867
6867
  const response = {
6868
6868
  $metadata: deserializeMetadata(output),
6869
6869
  };
@@ -6902,7 +6902,7 @@ const de_UntagOpenIDConnectProviderCommand = async (output, context) => {
6902
6902
  if (output.statusCode >= 300) {
6903
6903
  return de_UntagOpenIDConnectProviderCommandError(output, context);
6904
6904
  }
6905
- await collectBody(output.body, context);
6905
+ await (0, smithy_client_1.collectBody)(output.body, context);
6906
6906
  const response = {
6907
6907
  $metadata: deserializeMetadata(output),
6908
6908
  };
@@ -6941,7 +6941,7 @@ const de_UntagPolicyCommand = async (output, context) => {
6941
6941
  if (output.statusCode >= 300) {
6942
6942
  return de_UntagPolicyCommandError(output, context);
6943
6943
  }
6944
- await collectBody(output.body, context);
6944
+ await (0, smithy_client_1.collectBody)(output.body, context);
6945
6945
  const response = {
6946
6946
  $metadata: deserializeMetadata(output),
6947
6947
  };
@@ -6980,7 +6980,7 @@ const de_UntagRoleCommand = async (output, context) => {
6980
6980
  if (output.statusCode >= 300) {
6981
6981
  return de_UntagRoleCommandError(output, context);
6982
6982
  }
6983
- await collectBody(output.body, context);
6983
+ await (0, smithy_client_1.collectBody)(output.body, context);
6984
6984
  const response = {
6985
6985
  $metadata: deserializeMetadata(output),
6986
6986
  };
@@ -7016,7 +7016,7 @@ const de_UntagSAMLProviderCommand = async (output, context) => {
7016
7016
  if (output.statusCode >= 300) {
7017
7017
  return de_UntagSAMLProviderCommandError(output, context);
7018
7018
  }
7019
- await collectBody(output.body, context);
7019
+ await (0, smithy_client_1.collectBody)(output.body, context);
7020
7020
  const response = {
7021
7021
  $metadata: deserializeMetadata(output),
7022
7022
  };
@@ -7055,7 +7055,7 @@ const de_UntagServerCertificateCommand = async (output, context) => {
7055
7055
  if (output.statusCode >= 300) {
7056
7056
  return de_UntagServerCertificateCommandError(output, context);
7057
7057
  }
7058
- await collectBody(output.body, context);
7058
+ await (0, smithy_client_1.collectBody)(output.body, context);
7059
7059
  const response = {
7060
7060
  $metadata: deserializeMetadata(output),
7061
7061
  };
@@ -7094,7 +7094,7 @@ const de_UntagUserCommand = async (output, context) => {
7094
7094
  if (output.statusCode >= 300) {
7095
7095
  return de_UntagUserCommandError(output, context);
7096
7096
  }
7097
- await collectBody(output.body, context);
7097
+ await (0, smithy_client_1.collectBody)(output.body, context);
7098
7098
  const response = {
7099
7099
  $metadata: deserializeMetadata(output),
7100
7100
  };
@@ -7130,7 +7130,7 @@ const de_UpdateAccessKeyCommand = async (output, context) => {
7130
7130
  if (output.statusCode >= 300) {
7131
7131
  return de_UpdateAccessKeyCommandError(output, context);
7132
7132
  }
7133
- await collectBody(output.body, context);
7133
+ await (0, smithy_client_1.collectBody)(output.body, context);
7134
7134
  const response = {
7135
7135
  $metadata: deserializeMetadata(output),
7136
7136
  };
@@ -7166,7 +7166,7 @@ const de_UpdateAccountPasswordPolicyCommand = async (output, context) => {
7166
7166
  if (output.statusCode >= 300) {
7167
7167
  return de_UpdateAccountPasswordPolicyCommandError(output, context);
7168
7168
  }
7169
- await collectBody(output.body, context);
7169
+ await (0, smithy_client_1.collectBody)(output.body, context);
7170
7170
  const response = {
7171
7171
  $metadata: deserializeMetadata(output),
7172
7172
  };
@@ -7205,7 +7205,7 @@ const de_UpdateAssumeRolePolicyCommand = async (output, context) => {
7205
7205
  if (output.statusCode >= 300) {
7206
7206
  return de_UpdateAssumeRolePolicyCommandError(output, context);
7207
7207
  }
7208
- await collectBody(output.body, context);
7208
+ await (0, smithy_client_1.collectBody)(output.body, context);
7209
7209
  const response = {
7210
7210
  $metadata: deserializeMetadata(output),
7211
7211
  };
@@ -7247,7 +7247,7 @@ const de_UpdateGroupCommand = async (output, context) => {
7247
7247
  if (output.statusCode >= 300) {
7248
7248
  return de_UpdateGroupCommandError(output, context);
7249
7249
  }
7250
- await collectBody(output.body, context);
7250
+ await (0, smithy_client_1.collectBody)(output.body, context);
7251
7251
  const response = {
7252
7252
  $metadata: deserializeMetadata(output),
7253
7253
  };
@@ -7286,7 +7286,7 @@ const de_UpdateLoginProfileCommand = async (output, context) => {
7286
7286
  if (output.statusCode >= 300) {
7287
7287
  return de_UpdateLoginProfileCommandError(output, context);
7288
7288
  }
7289
- await collectBody(output.body, context);
7289
+ await (0, smithy_client_1.collectBody)(output.body, context);
7290
7290
  const response = {
7291
7291
  $metadata: deserializeMetadata(output),
7292
7292
  };
@@ -7328,7 +7328,7 @@ const de_UpdateOpenIDConnectProviderThumbprintCommand = async (output, context)
7328
7328
  if (output.statusCode >= 300) {
7329
7329
  return de_UpdateOpenIDConnectProviderThumbprintCommandError(output, context);
7330
7330
  }
7331
- await collectBody(output.body, context);
7331
+ await (0, smithy_client_1.collectBody)(output.body, context);
7332
7332
  const response = {
7333
7333
  $metadata: deserializeMetadata(output),
7334
7334
  };
@@ -7484,7 +7484,7 @@ const de_UpdateServerCertificateCommand = async (output, context) => {
7484
7484
  if (output.statusCode >= 300) {
7485
7485
  return de_UpdateServerCertificateCommandError(output, context);
7486
7486
  }
7487
- await collectBody(output.body, context);
7487
+ await (0, smithy_client_1.collectBody)(output.body, context);
7488
7488
  const response = {
7489
7489
  $metadata: deserializeMetadata(output),
7490
7490
  };
@@ -7523,7 +7523,7 @@ const de_UpdateServiceSpecificCredentialCommand = async (output, context) => {
7523
7523
  if (output.statusCode >= 300) {
7524
7524
  return de_UpdateServiceSpecificCredentialCommandError(output, context);
7525
7525
  }
7526
- await collectBody(output.body, context);
7526
+ await (0, smithy_client_1.collectBody)(output.body, context);
7527
7527
  const response = {
7528
7528
  $metadata: deserializeMetadata(output),
7529
7529
  };
@@ -7553,7 +7553,7 @@ const de_UpdateSigningCertificateCommand = async (output, context) => {
7553
7553
  if (output.statusCode >= 300) {
7554
7554
  return de_UpdateSigningCertificateCommandError(output, context);
7555
7555
  }
7556
- await collectBody(output.body, context);
7556
+ await (0, smithy_client_1.collectBody)(output.body, context);
7557
7557
  const response = {
7558
7558
  $metadata: deserializeMetadata(output),
7559
7559
  };
@@ -7589,7 +7589,7 @@ const de_UpdateSSHPublicKeyCommand = async (output, context) => {
7589
7589
  if (output.statusCode >= 300) {
7590
7590
  return de_UpdateSSHPublicKeyCommandError(output, context);
7591
7591
  }
7592
- await collectBody(output.body, context);
7592
+ await (0, smithy_client_1.collectBody)(output.body, context);
7593
7593
  const response = {
7594
7594
  $metadata: deserializeMetadata(output),
7595
7595
  };
@@ -7619,7 +7619,7 @@ const de_UpdateUserCommand = async (output, context) => {
7619
7619
  if (output.statusCode >= 300) {
7620
7620
  return de_UpdateUserCommandError(output, context);
7621
7621
  }
7622
- await collectBody(output.body, context);
7622
+ await (0, smithy_client_1.collectBody)(output.body, context);
7623
7623
  const response = {
7624
7624
  $metadata: deserializeMetadata(output),
7625
7625
  };
@@ -12886,13 +12886,7 @@ const deserializeMetadata = (output) => ({
12886
12886
  extendedRequestId: output.headers["x-amz-id-2"],
12887
12887
  cfId: output.headers["x-amz-cf-id"],
12888
12888
  });
12889
- const collectBody = (streamBody = new Uint8Array(), context) => {
12890
- if (streamBody instanceof Uint8Array) {
12891
- return Promise.resolve(streamBody);
12892
- }
12893
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
12894
- };
12895
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
12889
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
12896
12890
  const throwDefaultError = (0, smithy_client_1.withBaseException)(IAMServiceException_1.IAMServiceException);
12897
12891
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
12898
12892
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1,4 +1,4 @@
1
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { IAMServiceException as __BaseException } from "../models/IAMServiceException";
@@ -12561,12 +12561,6 @@ const deserializeMetadata = (output) => ({
12561
12561
  extendedRequestId: output.headers["x-amz-id-2"],
12562
12562
  cfId: output.headers["x-amz-cf-id"],
12563
12563
  });
12564
- const collectBody = (streamBody = new Uint8Array(), context) => {
12565
- if (streamBody instanceof Uint8Array) {
12566
- return Promise.resolve(streamBody);
12567
- }
12568
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
12569
- };
12570
12564
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
12571
12565
  const throwDefaultError = withBaseException(__BaseException);
12572
12566
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -231,7 +231,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
231
231
  */
232
232
  runtime?: string;
233
233
  /**
234
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
234
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
235
235
  * trait of an operation.
236
236
  */
237
237
  disableHostPrefix?: boolean;
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.354.0",
4
+ "version": "3.357.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",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.354.0",
25
- "@aws-sdk/config-resolver": "3.354.0",
26
- "@aws-sdk/credential-provider-node": "3.354.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.354.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.354.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.354.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.354.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.354.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
- "@aws-sdk/util-waiter": "3.347.0",
55
+ "@aws-sdk/util-waiter": "3.357.0",
56
56
  "@smithy/protocol-http": "^1.0.1",
57
57
  "@smithy/types": "^1.0.0",
58
58
  "fast-xml-parser": "4.2.4",