@aws-sdk/client-iam 3.691.0 → 3.692.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.
Files changed (63) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +510 -10
  3. package/dist-es/IAM.js +10 -0
  4. package/dist-es/commands/DisableOrganizationsRootCredentialsManagementCommand.js +22 -0
  5. package/dist-es/commands/DisableOrganizationsRootSessionsCommand.js +22 -0
  6. package/dist-es/commands/EnableOrganizationsRootCredentialsManagementCommand.js +22 -0
  7. package/dist-es/commands/EnableOrganizationsRootSessionsCommand.js +22 -0
  8. package/dist-es/commands/ListOrganizationsFeaturesCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +70 -9
  11. package/dist-es/models/models_1.js +9 -0
  12. package/dist-es/protocols/Aws_query.js +310 -1
  13. package/dist-types/IAM.d.ts +43 -0
  14. package/dist-types/IAMClient.d.ts +7 -2
  15. package/dist-types/commands/CreateLoginProfileCommand.d.ts +3 -3
  16. package/dist-types/commands/DeactivateMFADeviceCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteLoginProfileCommand.d.ts +2 -2
  18. package/dist-types/commands/DisableOrganizationsRootCredentialsManagementCommand.d.ts +91 -0
  19. package/dist-types/commands/DisableOrganizationsRootSessionsCommand.d.ts +91 -0
  20. package/dist-types/commands/EnableOrganizationsRootCredentialsManagementCommand.d.ts +107 -0
  21. package/dist-types/commands/EnableOrganizationsRootSessionsCommand.d.ts +106 -0
  22. package/dist-types/commands/GetLoginProfileCommand.d.ts +2 -2
  23. package/dist-types/commands/ListAccountAliasesCommand.d.ts +3 -3
  24. package/dist-types/commands/ListOrganizationsFeaturesCommand.d.ts +89 -0
  25. package/dist-types/commands/SimulateCustomPolicyCommand.d.ts +2 -1
  26. package/dist-types/commands/SimulatePrincipalPolicyCommand.d.ts +1 -1
  27. package/dist-types/commands/TagInstanceProfileCommand.d.ts +1 -1
  28. package/dist-types/commands/TagMFADeviceCommand.d.ts +1 -1
  29. package/dist-types/commands/TagOpenIDConnectProviderCommand.d.ts +1 -1
  30. package/dist-types/commands/TagPolicyCommand.d.ts +1 -1
  31. package/dist-types/commands/TagRoleCommand.d.ts +1 -1
  32. package/dist-types/commands/TagSAMLProviderCommand.d.ts +1 -1
  33. package/dist-types/commands/TagServerCertificateCommand.d.ts +1 -1
  34. package/dist-types/commands/TagUserCommand.d.ts +1 -1
  35. package/dist-types/commands/index.d.ts +5 -0
  36. package/dist-types/models/models_0.d.ts +203 -615
  37. package/dist-types/models/models_1.d.ts +611 -1
  38. package/dist-types/protocols/Aws_query.d.ts +45 -0
  39. package/dist-types/ts3.4/IAM.d.ts +105 -0
  40. package/dist-types/ts3.4/IAMClient.d.ts +30 -0
  41. package/dist-types/ts3.4/commands/CreateLoginProfileCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/DeleteLoginProfileCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/DisableOrganizationsRootCredentialsManagementCommand.d.ts +51 -0
  44. package/dist-types/ts3.4/commands/DisableOrganizationsRootSessionsCommand.d.ts +51 -0
  45. package/dist-types/ts3.4/commands/EnableOrganizationsRootCredentialsManagementCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/EnableOrganizationsRootSessionsCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/GetLoginProfileCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/ListOrganizationsFeaturesCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/SimulateCustomPolicyCommand.d.ts +2 -4
  50. package/dist-types/ts3.4/commands/SimulatePrincipalPolicyCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/TagInstanceProfileCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/TagMFADeviceCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/TagOpenIDConnectProviderCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/TagPolicyCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/TagRoleCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/TagSAMLProviderCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/TagServerCertificateCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/TagUserCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  60. package/dist-types/ts3.4/models/models_0.d.ts +88 -106
  61. package/dist-types/ts3.4/models/models_1.d.ts +104 -0
  62. package/dist-types/ts3.4/protocols/Aws_query.d.ts +60 -0
  63. package/package.json +36 -36
@@ -2,7 +2,7 @@ import { parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@smithy/smithy-client";
4
4
  import { IAMServiceException as __BaseException } from "../models/IAMServiceException";
5
- import { ConcurrentModificationException, CredentialReportExpiredException, CredentialReportNotPresentException, CredentialReportNotReadyException, DeleteConflictException, EntityAlreadyExistsException, EntityTemporarilyUnmodifiableException, InvalidAuthenticationCodeException, InvalidInputException, InvalidUserTypeException, LimitExceededException, MalformedPolicyDocumentException, NoSuchEntityException, OpenIdIdpCommunicationErrorException, PasswordPolicyViolationException, PolicyEvaluationException, PolicyNotAttachableException, ReportGenerationLimitExceededException, ServiceFailureException, ServiceNotSupportedException, UnmodifiableEntityException, UnrecognizedPublicKeyEncodingException, } from "../models/models_0";
5
+ import { AccountNotManagementOrDelegatedAdministratorException, CallerIsNotManagementAccountException, ConcurrentModificationException, CredentialReportExpiredException, CredentialReportNotPresentException, CredentialReportNotReadyException, DeleteConflictException, EntityAlreadyExistsException, EntityTemporarilyUnmodifiableException, InvalidAuthenticationCodeException, InvalidInputException, InvalidUserTypeException, LimitExceededException, MalformedPolicyDocumentException, NoSuchEntityException, OpenIdIdpCommunicationErrorException, OrganizationNotFoundException, OrganizationNotInAllFeaturesModeException, PasswordPolicyViolationException, PolicyEvaluationException, PolicyNotAttachableException, ReportGenerationLimitExceededException, ServiceAccessNotEnabledException, ServiceFailureException, ServiceNotSupportedException, UnmodifiableEntityException, UnrecognizedPublicKeyEncodingException, } from "../models/models_0";
6
6
  import { DuplicateCertificateException, DuplicateSSHPublicKeyException, InvalidCertificateException, InvalidPublicKeyException, KeyPairMismatchException, MalformedCertificateException, } from "../models/models_1";
7
7
  export const se_AddClientIDToOpenIDConnectProviderCommand = async (input, context) => {
8
8
  const headers = SHARED_HEADERS;
@@ -482,6 +482,26 @@ export const se_DetachUserPolicyCommand = async (input, context) => {
482
482
  });
483
483
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
484
484
  };
485
+ export const se_DisableOrganizationsRootCredentialsManagementCommand = async (input, context) => {
486
+ const headers = SHARED_HEADERS;
487
+ let body;
488
+ body = buildFormUrlencodedString({
489
+ ...se_DisableOrganizationsRootCredentialsManagementRequest(input, context),
490
+ [_A]: _DORCM,
491
+ [_V]: _,
492
+ });
493
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
494
+ };
495
+ export const se_DisableOrganizationsRootSessionsCommand = async (input, context) => {
496
+ const headers = SHARED_HEADERS;
497
+ let body;
498
+ body = buildFormUrlencodedString({
499
+ ...se_DisableOrganizationsRootSessionsRequest(input, context),
500
+ [_A]: _DORS,
501
+ [_V]: _,
502
+ });
503
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
504
+ };
485
505
  export const se_EnableMFADeviceCommand = async (input, context) => {
486
506
  const headers = SHARED_HEADERS;
487
507
  let body;
@@ -492,6 +512,26 @@ export const se_EnableMFADeviceCommand = async (input, context) => {
492
512
  });
493
513
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
494
514
  };
515
+ export const se_EnableOrganizationsRootCredentialsManagementCommand = async (input, context) => {
516
+ const headers = SHARED_HEADERS;
517
+ let body;
518
+ body = buildFormUrlencodedString({
519
+ ...se_EnableOrganizationsRootCredentialsManagementRequest(input, context),
520
+ [_A]: _EORCM,
521
+ [_V]: _,
522
+ });
523
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
524
+ };
525
+ export const se_EnableOrganizationsRootSessionsCommand = async (input, context) => {
526
+ const headers = SHARED_HEADERS;
527
+ let body;
528
+ body = buildFormUrlencodedString({
529
+ ...se_EnableOrganizationsRootSessionsRequest(input, context),
530
+ [_A]: _EORS,
531
+ [_V]: _,
532
+ });
533
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
+ };
495
535
  export const se_GenerateCredentialReportCommand = async (input, context) => {
496
536
  const headers = SHARED_HEADERS;
497
537
  const body = buildFormUrlencodedString({
@@ -934,6 +974,16 @@ export const se_ListOpenIDConnectProviderTagsCommand = async (input, context) =>
934
974
  });
935
975
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
936
976
  };
977
+ export const se_ListOrganizationsFeaturesCommand = async (input, context) => {
978
+ const headers = SHARED_HEADERS;
979
+ let body;
980
+ body = buildFormUrlencodedString({
981
+ ...se_ListOrganizationsFeaturesRequest(input, context),
982
+ [_A]: _LOF,
983
+ [_V]: _,
984
+ });
985
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
986
+ };
937
987
  export const se_ListPoliciesCommand = async (input, context) => {
938
988
  const headers = SHARED_HEADERS;
939
989
  let body;
@@ -2106,6 +2156,32 @@ export const de_DetachUserPolicyCommand = async (output, context) => {
2106
2156
  };
2107
2157
  return response;
2108
2158
  };
2159
+ export const de_DisableOrganizationsRootCredentialsManagementCommand = async (output, context) => {
2160
+ if (output.statusCode >= 300) {
2161
+ return de_CommandError(output, context);
2162
+ }
2163
+ const data = await parseBody(output.body, context);
2164
+ let contents = {};
2165
+ contents = de_DisableOrganizationsRootCredentialsManagementResponse(data.DisableOrganizationsRootCredentialsManagementResult, context);
2166
+ const response = {
2167
+ $metadata: deserializeMetadata(output),
2168
+ ...contents,
2169
+ };
2170
+ return response;
2171
+ };
2172
+ export const de_DisableOrganizationsRootSessionsCommand = async (output, context) => {
2173
+ if (output.statusCode >= 300) {
2174
+ return de_CommandError(output, context);
2175
+ }
2176
+ const data = await parseBody(output.body, context);
2177
+ let contents = {};
2178
+ contents = de_DisableOrganizationsRootSessionsResponse(data.DisableOrganizationsRootSessionsResult, context);
2179
+ const response = {
2180
+ $metadata: deserializeMetadata(output),
2181
+ ...contents,
2182
+ };
2183
+ return response;
2184
+ };
2109
2185
  export const de_EnableMFADeviceCommand = async (output, context) => {
2110
2186
  if (output.statusCode >= 300) {
2111
2187
  return de_CommandError(output, context);
@@ -2116,6 +2192,32 @@ export const de_EnableMFADeviceCommand = async (output, context) => {
2116
2192
  };
2117
2193
  return response;
2118
2194
  };
2195
+ export const de_EnableOrganizationsRootCredentialsManagementCommand = async (output, context) => {
2196
+ if (output.statusCode >= 300) {
2197
+ return de_CommandError(output, context);
2198
+ }
2199
+ const data = await parseBody(output.body, context);
2200
+ let contents = {};
2201
+ contents = de_EnableOrganizationsRootCredentialsManagementResponse(data.EnableOrganizationsRootCredentialsManagementResult, context);
2202
+ const response = {
2203
+ $metadata: deserializeMetadata(output),
2204
+ ...contents,
2205
+ };
2206
+ return response;
2207
+ };
2208
+ export const de_EnableOrganizationsRootSessionsCommand = async (output, context) => {
2209
+ if (output.statusCode >= 300) {
2210
+ return de_CommandError(output, context);
2211
+ }
2212
+ const data = await parseBody(output.body, context);
2213
+ let contents = {};
2214
+ contents = de_EnableOrganizationsRootSessionsResponse(data.EnableOrganizationsRootSessionsResult, context);
2215
+ const response = {
2216
+ $metadata: deserializeMetadata(output),
2217
+ ...contents,
2218
+ };
2219
+ return response;
2220
+ };
2119
2221
  export const de_GenerateCredentialReportCommand = async (output, context) => {
2120
2222
  if (output.statusCode >= 300) {
2121
2223
  return de_CommandError(output, context);
@@ -2701,6 +2803,19 @@ export const de_ListOpenIDConnectProviderTagsCommand = async (output, context) =
2701
2803
  };
2702
2804
  return response;
2703
2805
  };
2806
+ export const de_ListOrganizationsFeaturesCommand = async (output, context) => {
2807
+ if (output.statusCode >= 300) {
2808
+ return de_CommandError(output, context);
2809
+ }
2810
+ const data = await parseBody(output.body, context);
2811
+ let contents = {};
2812
+ contents = de_ListOrganizationsFeaturesResponse(data.ListOrganizationsFeaturesResult, context);
2813
+ const response = {
2814
+ $metadata: deserializeMetadata(output),
2815
+ ...contents,
2816
+ };
2817
+ return response;
2818
+ };
2704
2819
  export const de_ListPoliciesCommand = async (output, context) => {
2705
2820
  if (output.statusCode >= 300) {
2706
2821
  return de_CommandError(output, context);
@@ -3484,9 +3599,24 @@ const de_CommandError = async (output, context) => {
3484
3599
  case "DeleteConflict":
3485
3600
  case "com.amazonaws.iam#DeleteConflictException":
3486
3601
  throw await de_DeleteConflictExceptionRes(parsedOutput, context);
3602
+ case "AccountNotManagementOrDelegatedAdministratorException":
3603
+ case "com.amazonaws.iam#AccountNotManagementOrDelegatedAdministratorException":
3604
+ throw await de_AccountNotManagementOrDelegatedAdministratorExceptionRes(parsedOutput, context);
3605
+ case "OrganizationNotFoundException":
3606
+ case "com.amazonaws.iam#OrganizationNotFoundException":
3607
+ throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
3608
+ case "OrganizationNotInAllFeaturesModeException":
3609
+ case "com.amazonaws.iam#OrganizationNotInAllFeaturesModeException":
3610
+ throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
3611
+ case "ServiceAccessNotEnabledException":
3612
+ case "com.amazonaws.iam#ServiceAccessNotEnabledException":
3613
+ throw await de_ServiceAccessNotEnabledExceptionRes(parsedOutput, context);
3487
3614
  case "InvalidAuthenticationCode":
3488
3615
  case "com.amazonaws.iam#InvalidAuthenticationCodeException":
3489
3616
  throw await de_InvalidAuthenticationCodeExceptionRes(parsedOutput, context);
3617
+ case "CallerIsNotManagementAccountException":
3618
+ case "com.amazonaws.iam#CallerIsNotManagementAccountException":
3619
+ throw await de_CallerIsNotManagementAccountExceptionRes(parsedOutput, context);
3490
3620
  case "ReportGenerationLimitExceeded":
3491
3621
  case "com.amazonaws.iam#ReportGenerationLimitExceededException":
3492
3622
  throw await de_ReportGenerationLimitExceededExceptionRes(parsedOutput, context);
@@ -3532,6 +3662,24 @@ const de_CommandError = async (output, context) => {
3532
3662
  });
3533
3663
  }
3534
3664
  };
3665
+ const de_AccountNotManagementOrDelegatedAdministratorExceptionRes = async (parsedOutput, context) => {
3666
+ const body = parsedOutput.body;
3667
+ const deserialized = de_AccountNotManagementOrDelegatedAdministratorException(body.Error, context);
3668
+ const exception = new AccountNotManagementOrDelegatedAdministratorException({
3669
+ $metadata: deserializeMetadata(parsedOutput),
3670
+ ...deserialized,
3671
+ });
3672
+ return __decorateServiceException(exception, body);
3673
+ };
3674
+ const de_CallerIsNotManagementAccountExceptionRes = async (parsedOutput, context) => {
3675
+ const body = parsedOutput.body;
3676
+ const deserialized = de_CallerIsNotManagementAccountException(body.Error, context);
3677
+ const exception = new CallerIsNotManagementAccountException({
3678
+ $metadata: deserializeMetadata(parsedOutput),
3679
+ ...deserialized,
3680
+ });
3681
+ return __decorateServiceException(exception, body);
3682
+ };
3535
3683
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
3536
3684
  const body = parsedOutput.body;
3537
3685
  const deserialized = de_ConcurrentModificationException(body.Error, context);
@@ -3712,6 +3860,24 @@ const de_OpenIdIdpCommunicationErrorExceptionRes = async (parsedOutput, context)
3712
3860
  });
3713
3861
  return __decorateServiceException(exception, body);
3714
3862
  };
3863
+ const de_OrganizationNotFoundExceptionRes = async (parsedOutput, context) => {
3864
+ const body = parsedOutput.body;
3865
+ const deserialized = de_OrganizationNotFoundException(body.Error, context);
3866
+ const exception = new OrganizationNotFoundException({
3867
+ $metadata: deserializeMetadata(parsedOutput),
3868
+ ...deserialized,
3869
+ });
3870
+ return __decorateServiceException(exception, body);
3871
+ };
3872
+ const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, context) => {
3873
+ const body = parsedOutput.body;
3874
+ const deserialized = de_OrganizationNotInAllFeaturesModeException(body.Error, context);
3875
+ const exception = new OrganizationNotInAllFeaturesModeException({
3876
+ $metadata: deserializeMetadata(parsedOutput),
3877
+ ...deserialized,
3878
+ });
3879
+ return __decorateServiceException(exception, body);
3880
+ };
3715
3881
  const de_PasswordPolicyViolationExceptionRes = async (parsedOutput, context) => {
3716
3882
  const body = parsedOutput.body;
3717
3883
  const deserialized = de_PasswordPolicyViolationException(body.Error, context);
@@ -3748,6 +3914,15 @@ const de_ReportGenerationLimitExceededExceptionRes = async (parsedOutput, contex
3748
3914
  });
3749
3915
  return __decorateServiceException(exception, body);
3750
3916
  };
3917
+ const de_ServiceAccessNotEnabledExceptionRes = async (parsedOutput, context) => {
3918
+ const body = parsedOutput.body;
3919
+ const deserialized = de_ServiceAccessNotEnabledException(body.Error, context);
3920
+ const exception = new ServiceAccessNotEnabledException({
3921
+ $metadata: deserializeMetadata(parsedOutput),
3922
+ ...deserialized,
3923
+ });
3924
+ return __decorateServiceException(exception, body);
3925
+ };
3751
3926
  const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
3752
3927
  const body = parsedOutput.body;
3753
3928
  const deserialized = de_ServiceFailureException(body.Error, context);
@@ -4394,6 +4569,14 @@ const se_DetachUserPolicyRequest = (input, context) => {
4394
4569
  }
4395
4570
  return entries;
4396
4571
  };
4572
+ const se_DisableOrganizationsRootCredentialsManagementRequest = (input, context) => {
4573
+ const entries = {};
4574
+ return entries;
4575
+ };
4576
+ const se_DisableOrganizationsRootSessionsRequest = (input, context) => {
4577
+ const entries = {};
4578
+ return entries;
4579
+ };
4397
4580
  const se_EnableMFADeviceRequest = (input, context) => {
4398
4581
  const entries = {};
4399
4582
  if (input[_UN] != null) {
@@ -4410,6 +4593,14 @@ const se_EnableMFADeviceRequest = (input, context) => {
4410
4593
  }
4411
4594
  return entries;
4412
4595
  };
4596
+ const se_EnableOrganizationsRootCredentialsManagementRequest = (input, context) => {
4597
+ const entries = {};
4598
+ return entries;
4599
+ };
4600
+ const se_EnableOrganizationsRootSessionsRequest = (input, context) => {
4601
+ const entries = {};
4602
+ return entries;
4603
+ };
4413
4604
  const se_entityListType = (input, context) => {
4414
4605
  const entries = {};
4415
4606
  let counter = 1;
@@ -4898,6 +5089,10 @@ const se_ListOpenIDConnectProviderTagsRequest = (input, context) => {
4898
5089
  }
4899
5090
  return entries;
4900
5091
  };
5092
+ const se_ListOrganizationsFeaturesRequest = (input, context) => {
5093
+ const entries = {};
5094
+ return entries;
5095
+ };
4901
5096
  const se_ListPoliciesGrantingServiceAccessRequest = (input, context) => {
4902
5097
  const entries = {};
4903
5098
  if (input[_M] != null) {
@@ -6107,6 +6302,13 @@ const de_accountAliasListType = (output, context) => {
6107
6302
  return __expectString(entry);
6108
6303
  });
6109
6304
  };
6305
+ const de_AccountNotManagementOrDelegatedAdministratorException = (output, context) => {
6306
+ const contents = {};
6307
+ if (output[_Me] != null) {
6308
+ contents[_Me] = __expectString(output[_Me]);
6309
+ }
6310
+ return contents;
6311
+ };
6110
6312
  const de_ArnListType = (output, context) => {
6111
6313
  return (output || [])
6112
6314
  .filter((e) => e != null)
@@ -6141,6 +6343,13 @@ const de_AttachedPolicy = (output, context) => {
6141
6343
  }
6142
6344
  return contents;
6143
6345
  };
6346
+ const de_CallerIsNotManagementAccountException = (output, context) => {
6347
+ const contents = {};
6348
+ if (output[_Me] != null) {
6349
+ contents[_Me] = __expectString(output[_Me]);
6350
+ }
6351
+ return contents;
6352
+ };
6144
6353
  const de_certificateListType = (output, context) => {
6145
6354
  return (output || [])
6146
6355
  .filter((e) => e != null)
@@ -6329,6 +6538,32 @@ const de_DeletionTaskFailureReasonType = (output, context) => {
6329
6538
  }
6330
6539
  return contents;
6331
6540
  };
6541
+ const de_DisableOrganizationsRootCredentialsManagementResponse = (output, context) => {
6542
+ const contents = {};
6543
+ if (output[_OI] != null) {
6544
+ contents[_OI] = __expectString(output[_OI]);
6545
+ }
6546
+ if (output.EnabledFeatures === "") {
6547
+ contents[_EFn] = [];
6548
+ }
6549
+ else if (output[_EFn] != null && output[_EFn][_me] != null) {
6550
+ contents[_EFn] = de_FeaturesListType(__getArrayIfSingleItem(output[_EFn][_me]), context);
6551
+ }
6552
+ return contents;
6553
+ };
6554
+ const de_DisableOrganizationsRootSessionsResponse = (output, context) => {
6555
+ const contents = {};
6556
+ if (output[_OI] != null) {
6557
+ contents[_OI] = __expectString(output[_OI]);
6558
+ }
6559
+ if (output.EnabledFeatures === "") {
6560
+ contents[_EFn] = [];
6561
+ }
6562
+ else if (output[_EFn] != null && output[_EFn][_me] != null) {
6563
+ contents[_EFn] = de_FeaturesListType(__getArrayIfSingleItem(output[_EFn][_me]), context);
6564
+ }
6565
+ return contents;
6566
+ };
6332
6567
  const de_DuplicateCertificateException = (output, context) => {
6333
6568
  const contents = {};
6334
6569
  if (output[_m] != null) {
@@ -6343,6 +6578,32 @@ const de_DuplicateSSHPublicKeyException = (output, context) => {
6343
6578
  }
6344
6579
  return contents;
6345
6580
  };
6581
+ const de_EnableOrganizationsRootCredentialsManagementResponse = (output, context) => {
6582
+ const contents = {};
6583
+ if (output[_OI] != null) {
6584
+ contents[_OI] = __expectString(output[_OI]);
6585
+ }
6586
+ if (output.EnabledFeatures === "") {
6587
+ contents[_EFn] = [];
6588
+ }
6589
+ else if (output[_EFn] != null && output[_EFn][_me] != null) {
6590
+ contents[_EFn] = de_FeaturesListType(__getArrayIfSingleItem(output[_EFn][_me]), context);
6591
+ }
6592
+ return contents;
6593
+ };
6594
+ const de_EnableOrganizationsRootSessionsResponse = (output, context) => {
6595
+ const contents = {};
6596
+ if (output[_OI] != null) {
6597
+ contents[_OI] = __expectString(output[_OI]);
6598
+ }
6599
+ if (output.EnabledFeatures === "") {
6600
+ contents[_EFn] = [];
6601
+ }
6602
+ else if (output[_EFn] != null && output[_EFn][_me] != null) {
6603
+ contents[_EFn] = de_FeaturesListType(__getArrayIfSingleItem(output[_EFn][_me]), context);
6604
+ }
6605
+ return contents;
6606
+ };
6346
6607
  const de_EntityAlreadyExistsException = (output, context) => {
6347
6608
  const contents = {};
6348
6609
  if (output[_m] != null) {
@@ -6462,6 +6723,13 @@ const de_EvaluationResultsListType = (output, context) => {
6462
6723
  return de_EvaluationResult(entry, context);
6463
6724
  });
6464
6725
  };
6726
+ const de_FeaturesListType = (output, context) => {
6727
+ return (output || [])
6728
+ .filter((e) => e != null)
6729
+ .map((entry) => {
6730
+ return __expectString(entry);
6731
+ });
6732
+ };
6465
6733
  const de_GenerateCredentialReportResponse = (output, context) => {
6466
6734
  const contents = {};
6467
6735
  if (output[_Sta] != null) {
@@ -7273,6 +7541,19 @@ const de_ListOpenIDConnectProviderTagsResponse = (output, context) => {
7273
7541
  }
7274
7542
  return contents;
7275
7543
  };
7544
+ const de_ListOrganizationsFeaturesResponse = (output, context) => {
7545
+ const contents = {};
7546
+ if (output[_OI] != null) {
7547
+ contents[_OI] = __expectString(output[_OI]);
7548
+ }
7549
+ if (output.EnabledFeatures === "") {
7550
+ contents[_EFn] = [];
7551
+ }
7552
+ else if (output[_EFn] != null && output[_EFn][_me] != null) {
7553
+ contents[_EFn] = de_FeaturesListType(__getArrayIfSingleItem(output[_EFn][_me]), context);
7554
+ }
7555
+ return contents;
7556
+ };
7276
7557
  const de_ListPoliciesGrantingServiceAccessEntry = (output, context) => {
7277
7558
  const contents = {};
7278
7559
  if (output[_SNer] != null) {
@@ -7694,6 +7975,20 @@ const de_OpenIdIdpCommunicationErrorException = (output, context) => {
7694
7975
  }
7695
7976
  return contents;
7696
7977
  };
7978
+ const de_OrganizationNotFoundException = (output, context) => {
7979
+ const contents = {};
7980
+ if (output[_Me] != null) {
7981
+ contents[_Me] = __expectString(output[_Me]);
7982
+ }
7983
+ return contents;
7984
+ };
7985
+ const de_OrganizationNotInAllFeaturesModeException = (output, context) => {
7986
+ const contents = {};
7987
+ if (output[_Me] != null) {
7988
+ contents[_Me] = __expectString(output[_Me]);
7989
+ }
7990
+ return contents;
7991
+ };
7697
7992
  const de_OrganizationsDecisionDetail = (output, context) => {
7698
7993
  const contents = {};
7699
7994
  if (output[_ABO] != null) {
@@ -8203,6 +8498,13 @@ const de_serverCertificateMetadataListType = (output, context) => {
8203
8498
  return de_ServerCertificateMetadata(entry, context);
8204
8499
  });
8205
8500
  };
8501
+ const de_ServiceAccessNotEnabledException = (output, context) => {
8502
+ const contents = {};
8503
+ if (output[_Me] != null) {
8504
+ contents[_Me] = __expectString(output[_Me]);
8505
+ }
8506
+ return contents;
8507
+ };
8206
8508
  const de_ServiceFailureException = (output, context) => {
8207
8509
  const contents = {};
8208
8510
  if (output[_m] != null) {
@@ -8751,6 +9053,8 @@ const _DIP = "DeleteInstanceProfile";
8751
9053
  const _DLP = "DeleteLoginProfile";
8752
9054
  const _DMFAD = "DeactivateMFADevice";
8753
9055
  const _DOIDCP = "DeleteOpenIDConnectProvider";
9056
+ const _DORCM = "DisableOrganizationsRootCredentialsManagement";
9057
+ const _DORS = "DisableOrganizationsRootSessions";
8754
9058
  const _DP = "DeletePolicy";
8755
9059
  const _DPV = "DeletePolicyVersion";
8756
9060
  const _DR = "DeleteRole";
@@ -8779,9 +9083,12 @@ const _EDL = "EntityDetailsList";
8779
9083
  const _EDn = "EnableDate";
8780
9084
  const _EDr = "ErrorDetails";
8781
9085
  const _EF = "EntityFilter";
9086
+ const _EFn = "EnabledFeatures";
8782
9087
  const _EI = "EntityInfo";
8783
9088
  const _EMFAD = "EnableMFADevice";
8784
9089
  const _EN = "EntityName";
9090
+ const _EORCM = "EnableOrganizationsRootCredentialsManagement";
9091
+ const _EORS = "EnableOrganizationsRootSessions";
8785
9092
  const _EP = "EntityPath";
8786
9093
  const _EPn = "EndPosition";
8787
9094
  const _EPx = "ExpirePasswords";
@@ -8870,6 +9177,7 @@ const _LIPFR = "ListInstanceProfilesForRole";
8870
9177
  const _LIPT = "ListInstanceProfileTags";
8871
9178
  const _LMFAD = "ListMFADevices";
8872
9179
  const _LMFADT = "ListMFADeviceTags";
9180
+ const _LOF = "ListOrganizationsFeatures";
8873
9181
  const _LOIDCP = "ListOpenIDConnectProviders";
8874
9182
  const _LOIDCPT = "ListOpenIDConnectProviderTags";
8875
9183
  const _LP = "ListPolicies";
@@ -8911,6 +9219,7 @@ const _NSCN = "NewServerCertificateName";
8911
9219
  const _NUN = "NewUserName";
8912
9220
  const _OA = "OnlyAttached";
8913
9221
  const _ODD = "OrganizationsDecisionDetail";
9222
+ const _OI = "OrganizationId";
8914
9223
  const _OIDCPA = "OpenIDConnectProviderArn";
8915
9224
  const _OIDCPL = "OpenIDConnectProviderList";
8916
9225
  const _OP = "OldPassword";
@@ -47,7 +47,11 @@ import { DeleteVirtualMFADeviceCommandInput, DeleteVirtualMFADeviceCommandOutput
47
47
  import { DetachGroupPolicyCommandInput, DetachGroupPolicyCommandOutput } from "./commands/DetachGroupPolicyCommand";
48
48
  import { DetachRolePolicyCommandInput, DetachRolePolicyCommandOutput } from "./commands/DetachRolePolicyCommand";
49
49
  import { DetachUserPolicyCommandInput, DetachUserPolicyCommandOutput } from "./commands/DetachUserPolicyCommand";
50
+ import { DisableOrganizationsRootCredentialsManagementCommandInput, DisableOrganizationsRootCredentialsManagementCommandOutput } from "./commands/DisableOrganizationsRootCredentialsManagementCommand";
51
+ import { DisableOrganizationsRootSessionsCommandInput, DisableOrganizationsRootSessionsCommandOutput } from "./commands/DisableOrganizationsRootSessionsCommand";
50
52
  import { EnableMFADeviceCommandInput, EnableMFADeviceCommandOutput } from "./commands/EnableMFADeviceCommand";
53
+ import { EnableOrganizationsRootCredentialsManagementCommandInput, EnableOrganizationsRootCredentialsManagementCommandOutput } from "./commands/EnableOrganizationsRootCredentialsManagementCommand";
54
+ import { EnableOrganizationsRootSessionsCommandInput, EnableOrganizationsRootSessionsCommandOutput } from "./commands/EnableOrganizationsRootSessionsCommand";
51
55
  import { GenerateCredentialReportCommandInput, GenerateCredentialReportCommandOutput } from "./commands/GenerateCredentialReportCommand";
52
56
  import { GenerateOrganizationsAccessReportCommandInput, GenerateOrganizationsAccessReportCommandOutput } from "./commands/GenerateOrganizationsAccessReportCommand";
53
57
  import { GenerateServiceLastAccessedDetailsCommandInput, GenerateServiceLastAccessedDetailsCommandOutput } from "./commands/GenerateServiceLastAccessedDetailsCommand";
@@ -93,6 +97,7 @@ import { ListMFADevicesCommandInput, ListMFADevicesCommandOutput } from "./comma
93
97
  import { ListMFADeviceTagsCommandInput, ListMFADeviceTagsCommandOutput } from "./commands/ListMFADeviceTagsCommand";
94
98
  import { ListOpenIDConnectProvidersCommandInput, ListOpenIDConnectProvidersCommandOutput } from "./commands/ListOpenIDConnectProvidersCommand";
95
99
  import { ListOpenIDConnectProviderTagsCommandInput, ListOpenIDConnectProviderTagsCommandOutput } from "./commands/ListOpenIDConnectProviderTagsCommand";
100
+ import { ListOrganizationsFeaturesCommandInput, ListOrganizationsFeaturesCommandOutput } from "./commands/ListOrganizationsFeaturesCommand";
96
101
  import { ListPoliciesCommandInput, ListPoliciesCommandOutput } from "./commands/ListPoliciesCommand";
97
102
  import { ListPoliciesGrantingServiceAccessCommandInput, ListPoliciesGrantingServiceAccessCommandOutput } from "./commands/ListPoliciesGrantingServiceAccessCommand";
98
103
  import { ListPolicyTagsCommandInput, ListPolicyTagsCommandOutput } from "./commands/ListPolicyTagsCommand";
@@ -230,6 +235,7 @@ export interface IAM {
230
235
  /**
231
236
  * @see {@link CreateLoginProfileCommand}
232
237
  */
238
+ createLoginProfile(): Promise<CreateLoginProfileCommandOutput>;
233
239
  createLoginProfile(args: CreateLoginProfileCommandInput, options?: __HttpHandlerOptions): Promise<CreateLoginProfileCommandOutput>;
234
240
  createLoginProfile(args: CreateLoginProfileCommandInput, cb: (err: any, data?: CreateLoginProfileCommandOutput) => void): void;
235
241
  createLoginProfile(args: CreateLoginProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLoginProfileCommandOutput) => void): void;
@@ -333,6 +339,7 @@ export interface IAM {
333
339
  /**
334
340
  * @see {@link DeleteLoginProfileCommand}
335
341
  */
342
+ deleteLoginProfile(): Promise<DeleteLoginProfileCommandOutput>;
336
343
  deleteLoginProfile(args: DeleteLoginProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLoginProfileCommandOutput>;
337
344
  deleteLoginProfile(args: DeleteLoginProfileCommandInput, cb: (err: any, data?: DeleteLoginProfileCommandOutput) => void): void;
338
345
  deleteLoginProfile(args: DeleteLoginProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLoginProfileCommandOutput) => void): void;
@@ -450,12 +457,40 @@ export interface IAM {
450
457
  detachUserPolicy(args: DetachUserPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DetachUserPolicyCommandOutput>;
451
458
  detachUserPolicy(args: DetachUserPolicyCommandInput, cb: (err: any, data?: DetachUserPolicyCommandOutput) => void): void;
452
459
  detachUserPolicy(args: DetachUserPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetachUserPolicyCommandOutput) => void): void;
460
+ /**
461
+ * @see {@link DisableOrganizationsRootCredentialsManagementCommand}
462
+ */
463
+ disableOrganizationsRootCredentialsManagement(): Promise<DisableOrganizationsRootCredentialsManagementCommandOutput>;
464
+ disableOrganizationsRootCredentialsManagement(args: DisableOrganizationsRootCredentialsManagementCommandInput, options?: __HttpHandlerOptions): Promise<DisableOrganizationsRootCredentialsManagementCommandOutput>;
465
+ disableOrganizationsRootCredentialsManagement(args: DisableOrganizationsRootCredentialsManagementCommandInput, cb: (err: any, data?: DisableOrganizationsRootCredentialsManagementCommandOutput) => void): void;
466
+ disableOrganizationsRootCredentialsManagement(args: DisableOrganizationsRootCredentialsManagementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableOrganizationsRootCredentialsManagementCommandOutput) => void): void;
467
+ /**
468
+ * @see {@link DisableOrganizationsRootSessionsCommand}
469
+ */
470
+ disableOrganizationsRootSessions(): Promise<DisableOrganizationsRootSessionsCommandOutput>;
471
+ disableOrganizationsRootSessions(args: DisableOrganizationsRootSessionsCommandInput, options?: __HttpHandlerOptions): Promise<DisableOrganizationsRootSessionsCommandOutput>;
472
+ disableOrganizationsRootSessions(args: DisableOrganizationsRootSessionsCommandInput, cb: (err: any, data?: DisableOrganizationsRootSessionsCommandOutput) => void): void;
473
+ disableOrganizationsRootSessions(args: DisableOrganizationsRootSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableOrganizationsRootSessionsCommandOutput) => void): void;
453
474
  /**
454
475
  * @see {@link EnableMFADeviceCommand}
455
476
  */
456
477
  enableMFADevice(args: EnableMFADeviceCommandInput, options?: __HttpHandlerOptions): Promise<EnableMFADeviceCommandOutput>;
457
478
  enableMFADevice(args: EnableMFADeviceCommandInput, cb: (err: any, data?: EnableMFADeviceCommandOutput) => void): void;
458
479
  enableMFADevice(args: EnableMFADeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableMFADeviceCommandOutput) => void): void;
480
+ /**
481
+ * @see {@link EnableOrganizationsRootCredentialsManagementCommand}
482
+ */
483
+ enableOrganizationsRootCredentialsManagement(): Promise<EnableOrganizationsRootCredentialsManagementCommandOutput>;
484
+ enableOrganizationsRootCredentialsManagement(args: EnableOrganizationsRootCredentialsManagementCommandInput, options?: __HttpHandlerOptions): Promise<EnableOrganizationsRootCredentialsManagementCommandOutput>;
485
+ enableOrganizationsRootCredentialsManagement(args: EnableOrganizationsRootCredentialsManagementCommandInput, cb: (err: any, data?: EnableOrganizationsRootCredentialsManagementCommandOutput) => void): void;
486
+ enableOrganizationsRootCredentialsManagement(args: EnableOrganizationsRootCredentialsManagementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableOrganizationsRootCredentialsManagementCommandOutput) => void): void;
487
+ /**
488
+ * @see {@link EnableOrganizationsRootSessionsCommand}
489
+ */
490
+ enableOrganizationsRootSessions(): Promise<EnableOrganizationsRootSessionsCommandOutput>;
491
+ enableOrganizationsRootSessions(args: EnableOrganizationsRootSessionsCommandInput, options?: __HttpHandlerOptions): Promise<EnableOrganizationsRootSessionsCommandOutput>;
492
+ enableOrganizationsRootSessions(args: EnableOrganizationsRootSessionsCommandInput, cb: (err: any, data?: EnableOrganizationsRootSessionsCommandOutput) => void): void;
493
+ enableOrganizationsRootSessions(args: EnableOrganizationsRootSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableOrganizationsRootSessionsCommandOutput) => void): void;
459
494
  /**
460
495
  * @see {@link GenerateCredentialReportCommand}
461
496
  */
@@ -542,6 +577,7 @@ export interface IAM {
542
577
  /**
543
578
  * @see {@link GetLoginProfileCommand}
544
579
  */
580
+ getLoginProfile(): Promise<GetLoginProfileCommandOutput>;
545
581
  getLoginProfile(args: GetLoginProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetLoginProfileCommandOutput>;
546
582
  getLoginProfile(args: GetLoginProfileCommandInput, cb: (err: any, data?: GetLoginProfileCommandOutput) => void): void;
547
583
  getLoginProfile(args: GetLoginProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLoginProfileCommandOutput) => void): void;
@@ -738,6 +774,13 @@ export interface IAM {
738
774
  listOpenIDConnectProviderTags(args: ListOpenIDConnectProviderTagsCommandInput, options?: __HttpHandlerOptions): Promise<ListOpenIDConnectProviderTagsCommandOutput>;
739
775
  listOpenIDConnectProviderTags(args: ListOpenIDConnectProviderTagsCommandInput, cb: (err: any, data?: ListOpenIDConnectProviderTagsCommandOutput) => void): void;
740
776
  listOpenIDConnectProviderTags(args: ListOpenIDConnectProviderTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOpenIDConnectProviderTagsCommandOutput) => void): void;
777
+ /**
778
+ * @see {@link ListOrganizationsFeaturesCommand}
779
+ */
780
+ listOrganizationsFeatures(): Promise<ListOrganizationsFeaturesCommandOutput>;
781
+ listOrganizationsFeatures(args: ListOrganizationsFeaturesCommandInput, options?: __HttpHandlerOptions): Promise<ListOrganizationsFeaturesCommandOutput>;
782
+ listOrganizationsFeatures(args: ListOrganizationsFeaturesCommandInput, cb: (err: any, data?: ListOrganizationsFeaturesCommandOutput) => void): void;
783
+ listOrganizationsFeatures(args: ListOrganizationsFeaturesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOrganizationsFeaturesCommandOutput) => void): void;
741
784
  /**
742
785
  * @see {@link ListPoliciesCommand}
743
786
  */