@aws-sdk/client-iam 3.774.0 → 3.777.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 (175) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
  2. package/dist-cjs/endpoint/ruleset.js +3 -3
  3. package/dist-cjs/index.js +17 -18
  4. package/dist-es/IAMClient.js +2 -1
  5. package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
  6. package/dist-es/endpoint/EndpointParameters.js +2 -3
  7. package/dist-es/endpoint/ruleset.js +3 -3
  8. package/dist-es/runtimeExtensions.js +2 -14
  9. package/dist-types/commands/AddClientIDToOpenIDConnectProviderCommand.d.ts +8 -5
  10. package/dist-types/commands/AddRoleToInstanceProfileCommand.d.ts +8 -5
  11. package/dist-types/commands/AddUserToGroupCommand.d.ts +8 -5
  12. package/dist-types/commands/AttachGroupPolicyCommand.d.ts +8 -5
  13. package/dist-types/commands/AttachRolePolicyCommand.d.ts +8 -5
  14. package/dist-types/commands/AttachUserPolicyCommand.d.ts +8 -5
  15. package/dist-types/commands/ChangePasswordCommand.d.ts +8 -5
  16. package/dist-types/commands/CreateAccessKeyCommand.d.ts +10 -10
  17. package/dist-types/commands/CreateAccountAliasCommand.d.ts +7 -4
  18. package/dist-types/commands/CreateGroupCommand.d.ts +10 -10
  19. package/dist-types/commands/CreateInstanceProfileCommand.d.ts +11 -11
  20. package/dist-types/commands/CreateLoginProfileCommand.d.ts +10 -10
  21. package/dist-types/commands/CreateOpenIDConnectProviderCommand.d.ts +7 -7
  22. package/dist-types/commands/CreatePolicyCommand.d.ts +1 -0
  23. package/dist-types/commands/CreatePolicyVersionCommand.d.ts +1 -0
  24. package/dist-types/commands/CreateRoleCommand.d.ts +13 -13
  25. package/dist-types/commands/CreateSAMLProviderCommand.d.ts +1 -0
  26. package/dist-types/commands/CreateServiceLinkedRoleCommand.d.ts +1 -0
  27. package/dist-types/commands/CreateServiceSpecificCredentialCommand.d.ts +1 -0
  28. package/dist-types/commands/CreateUserCommand.d.ts +10 -10
  29. package/dist-types/commands/CreateVirtualMFADeviceCommand.d.ts +1 -0
  30. package/dist-types/commands/DeactivateMFADeviceCommand.d.ts +1 -0
  31. package/dist-types/commands/DeleteAccessKeyCommand.d.ts +8 -5
  32. package/dist-types/commands/DeleteAccountAliasCommand.d.ts +7 -4
  33. package/dist-types/commands/DeleteAccountPasswordPolicyCommand.d.ts +7 -4
  34. package/dist-types/commands/DeleteGroupCommand.d.ts +1 -0
  35. package/dist-types/commands/DeleteGroupPolicyCommand.d.ts +8 -5
  36. package/dist-types/commands/DeleteInstanceProfileCommand.d.ts +7 -4
  37. package/dist-types/commands/DeleteLoginProfileCommand.d.ts +7 -4
  38. package/dist-types/commands/DeleteOpenIDConnectProviderCommand.d.ts +1 -0
  39. package/dist-types/commands/DeletePolicyCommand.d.ts +1 -0
  40. package/dist-types/commands/DeletePolicyVersionCommand.d.ts +1 -0
  41. package/dist-types/commands/DeleteRoleCommand.d.ts +7 -4
  42. package/dist-types/commands/DeleteRolePermissionsBoundaryCommand.d.ts +1 -0
  43. package/dist-types/commands/DeleteRolePolicyCommand.d.ts +8 -5
  44. package/dist-types/commands/DeleteSAMLProviderCommand.d.ts +1 -0
  45. package/dist-types/commands/DeleteSSHPublicKeyCommand.d.ts +1 -0
  46. package/dist-types/commands/DeleteServerCertificateCommand.d.ts +1 -0
  47. package/dist-types/commands/DeleteServiceLinkedRoleCommand.d.ts +1 -0
  48. package/dist-types/commands/DeleteServiceSpecificCredentialCommand.d.ts +1 -0
  49. package/dist-types/commands/DeleteSigningCertificateCommand.d.ts +8 -5
  50. package/dist-types/commands/DeleteUserCommand.d.ts +7 -4
  51. package/dist-types/commands/DeleteUserPermissionsBoundaryCommand.d.ts +1 -0
  52. package/dist-types/commands/DeleteUserPolicyCommand.d.ts +8 -5
  53. package/dist-types/commands/DeleteVirtualMFADeviceCommand.d.ts +7 -4
  54. package/dist-types/commands/DetachGroupPolicyCommand.d.ts +1 -0
  55. package/dist-types/commands/DetachRolePolicyCommand.d.ts +1 -0
  56. package/dist-types/commands/DetachUserPolicyCommand.d.ts +1 -0
  57. package/dist-types/commands/DisableOrganizationsRootCredentialsManagementCommand.d.ts +6 -6
  58. package/dist-types/commands/DisableOrganizationsRootSessionsCommand.d.ts +6 -6
  59. package/dist-types/commands/EnableMFADeviceCommand.d.ts +1 -0
  60. package/dist-types/commands/EnableOrganizationsRootCredentialsManagementCommand.d.ts +6 -6
  61. package/dist-types/commands/EnableOrganizationsRootSessionsCommand.d.ts +6 -6
  62. package/dist-types/commands/GenerateCredentialReportCommand.d.ts +1 -0
  63. package/dist-types/commands/GenerateOrganizationsAccessReportCommand.d.ts +5 -5
  64. package/dist-types/commands/GenerateServiceLastAccessedDetailsCommand.d.ts +5 -5
  65. package/dist-types/commands/GetAccessKeyLastUsedCommand.d.ts +1 -0
  66. package/dist-types/commands/GetAccountAuthorizationDetailsCommand.d.ts +1 -0
  67. package/dist-types/commands/GetAccountPasswordPolicyCommand.d.ts +15 -15
  68. package/dist-types/commands/GetAccountSummaryCommand.d.ts +31 -31
  69. package/dist-types/commands/GetContextKeysForCustomPolicyCommand.d.ts +1 -0
  70. package/dist-types/commands/GetContextKeysForPrincipalPolicyCommand.d.ts +1 -0
  71. package/dist-types/commands/GetCredentialReportCommand.d.ts +1 -0
  72. package/dist-types/commands/GetGroupCommand.d.ts +1 -0
  73. package/dist-types/commands/GetGroupPolicyCommand.d.ts +1 -0
  74. package/dist-types/commands/GetInstanceProfileCommand.d.ts +17 -17
  75. package/dist-types/commands/GetLoginProfileCommand.d.ts +7 -7
  76. package/dist-types/commands/GetMFADeviceCommand.d.ts +1 -0
  77. package/dist-types/commands/GetOpenIDConnectProviderCommand.d.ts +1 -0
  78. package/dist-types/commands/GetOrganizationsAccessReportCommand.d.ts +26 -26
  79. package/dist-types/commands/GetPolicyCommand.d.ts +1 -0
  80. package/dist-types/commands/GetPolicyVersionCommand.d.ts +1 -0
  81. package/dist-types/commands/GetRoleCommand.d.ts +15 -15
  82. package/dist-types/commands/GetRolePolicyCommand.d.ts +1 -0
  83. package/dist-types/commands/GetSAMLProviderCommand.d.ts +1 -0
  84. package/dist-types/commands/GetSSHPublicKeyCommand.d.ts +1 -0
  85. package/dist-types/commands/GetServerCertificateCommand.d.ts +1 -0
  86. package/dist-types/commands/GetServiceLastAccessedDetailsCommand.d.ts +17 -17
  87. package/dist-types/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.d.ts +23 -23
  88. package/dist-types/commands/GetServiceLinkedRoleDeletionStatusCommand.d.ts +1 -0
  89. package/dist-types/commands/GetUserCommand.d.ts +10 -10
  90. package/dist-types/commands/GetUserPolicyCommand.d.ts +1 -0
  91. package/dist-types/commands/ListAccessKeysCommand.d.ts +13 -13
  92. package/dist-types/commands/ListAccountAliasesCommand.d.ts +5 -5
  93. package/dist-types/commands/ListAttachedGroupPoliciesCommand.d.ts +1 -0
  94. package/dist-types/commands/ListAttachedRolePoliciesCommand.d.ts +1 -0
  95. package/dist-types/commands/ListAttachedUserPoliciesCommand.d.ts +1 -0
  96. package/dist-types/commands/ListEntitiesForPolicyCommand.d.ts +1 -0
  97. package/dist-types/commands/ListGroupPoliciesCommand.d.ts +5 -5
  98. package/dist-types/commands/ListGroupsCommand.d.ts +20 -20
  99. package/dist-types/commands/ListGroupsForUserCommand.d.ts +15 -15
  100. package/dist-types/commands/ListInstanceProfileTagsCommand.d.ts +1 -0
  101. package/dist-types/commands/ListInstanceProfilesCommand.d.ts +1 -0
  102. package/dist-types/commands/ListInstanceProfilesForRoleCommand.d.ts +1 -0
  103. package/dist-types/commands/ListMFADeviceTagsCommand.d.ts +1 -0
  104. package/dist-types/commands/ListMFADevicesCommand.d.ts +1 -0
  105. package/dist-types/commands/ListOpenIDConnectProviderTagsCommand.d.ts +1 -0
  106. package/dist-types/commands/ListOpenIDConnectProvidersCommand.d.ts +1 -0
  107. package/dist-types/commands/ListOrganizationsFeaturesCommand.d.ts +6 -6
  108. package/dist-types/commands/ListPoliciesCommand.d.ts +1 -0
  109. package/dist-types/commands/ListPoliciesGrantingServiceAccessCommand.d.ts +21 -21
  110. package/dist-types/commands/ListPolicyTagsCommand.d.ts +1 -0
  111. package/dist-types/commands/ListPolicyVersionsCommand.d.ts +1 -0
  112. package/dist-types/commands/ListRolePoliciesCommand.d.ts +1 -0
  113. package/dist-types/commands/ListRoleTagsCommand.d.ts +10 -10
  114. package/dist-types/commands/ListRolesCommand.d.ts +1 -0
  115. package/dist-types/commands/ListSAMLProviderTagsCommand.d.ts +1 -0
  116. package/dist-types/commands/ListSAMLProvidersCommand.d.ts +1 -0
  117. package/dist-types/commands/ListSSHPublicKeysCommand.d.ts +1 -0
  118. package/dist-types/commands/ListServerCertificateTagsCommand.d.ts +1 -0
  119. package/dist-types/commands/ListServerCertificatesCommand.d.ts +1 -0
  120. package/dist-types/commands/ListServiceSpecificCredentialsCommand.d.ts +1 -0
  121. package/dist-types/commands/ListSigningCertificatesCommand.d.ts +10 -10
  122. package/dist-types/commands/ListUserPoliciesCommand.d.ts +1 -0
  123. package/dist-types/commands/ListUserTagsCommand.d.ts +10 -10
  124. package/dist-types/commands/ListUsersCommand.d.ts +17 -17
  125. package/dist-types/commands/ListVirtualMFADevicesCommand.d.ts +7 -7
  126. package/dist-types/commands/PutGroupPolicyCommand.d.ts +9 -6
  127. package/dist-types/commands/PutRolePermissionsBoundaryCommand.d.ts +1 -0
  128. package/dist-types/commands/PutRolePolicyCommand.d.ts +9 -6
  129. package/dist-types/commands/PutUserPermissionsBoundaryCommand.d.ts +1 -0
  130. package/dist-types/commands/PutUserPolicyCommand.d.ts +9 -6
  131. package/dist-types/commands/RemoveClientIDFromOpenIDConnectProviderCommand.d.ts +1 -0
  132. package/dist-types/commands/RemoveRoleFromInstanceProfileCommand.d.ts +8 -5
  133. package/dist-types/commands/RemoveUserFromGroupCommand.d.ts +8 -5
  134. package/dist-types/commands/ResetServiceSpecificCredentialCommand.d.ts +1 -0
  135. package/dist-types/commands/ResyncMFADeviceCommand.d.ts +1 -0
  136. package/dist-types/commands/SetDefaultPolicyVersionCommand.d.ts +1 -0
  137. package/dist-types/commands/SetSecurityTokenServicePreferencesCommand.d.ts +7 -4
  138. package/dist-types/commands/SimulateCustomPolicyCommand.d.ts +1 -0
  139. package/dist-types/commands/SimulatePrincipalPolicyCommand.d.ts +1 -0
  140. package/dist-types/commands/TagInstanceProfileCommand.d.ts +1 -0
  141. package/dist-types/commands/TagMFADeviceCommand.d.ts +1 -0
  142. package/dist-types/commands/TagOpenIDConnectProviderCommand.d.ts +1 -0
  143. package/dist-types/commands/TagPolicyCommand.d.ts +1 -0
  144. package/dist-types/commands/TagRoleCommand.d.ts +12 -9
  145. package/dist-types/commands/TagSAMLProviderCommand.d.ts +1 -0
  146. package/dist-types/commands/TagServerCertificateCommand.d.ts +1 -0
  147. package/dist-types/commands/TagUserCommand.d.ts +12 -9
  148. package/dist-types/commands/UntagInstanceProfileCommand.d.ts +1 -0
  149. package/dist-types/commands/UntagMFADeviceCommand.d.ts +1 -0
  150. package/dist-types/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -0
  151. package/dist-types/commands/UntagPolicyCommand.d.ts +1 -0
  152. package/dist-types/commands/UntagRoleCommand.d.ts +8 -5
  153. package/dist-types/commands/UntagSAMLProviderCommand.d.ts +1 -0
  154. package/dist-types/commands/UntagServerCertificateCommand.d.ts +1 -0
  155. package/dist-types/commands/UntagUserCommand.d.ts +8 -5
  156. package/dist-types/commands/UpdateAccessKeyCommand.d.ts +9 -6
  157. package/dist-types/commands/UpdateAccountPasswordPolicyCommand.d.ts +8 -5
  158. package/dist-types/commands/UpdateAssumeRolePolicyCommand.d.ts +8 -5
  159. package/dist-types/commands/UpdateGroupCommand.d.ts +8 -5
  160. package/dist-types/commands/UpdateLoginProfileCommand.d.ts +8 -5
  161. package/dist-types/commands/UpdateOpenIDConnectProviderThumbprintCommand.d.ts +1 -0
  162. package/dist-types/commands/UpdateRoleCommand.d.ts +1 -0
  163. package/dist-types/commands/UpdateRoleDescriptionCommand.d.ts +1 -0
  164. package/dist-types/commands/UpdateSAMLProviderCommand.d.ts +1 -0
  165. package/dist-types/commands/UpdateSSHPublicKeyCommand.d.ts +1 -0
  166. package/dist-types/commands/UpdateServerCertificateCommand.d.ts +1 -0
  167. package/dist-types/commands/UpdateServiceSpecificCredentialCommand.d.ts +1 -0
  168. package/dist-types/commands/UpdateSigningCertificateCommand.d.ts +9 -6
  169. package/dist-types/commands/UpdateUserCommand.d.ts +8 -5
  170. package/dist-types/commands/UploadSSHPublicKeyCommand.d.ts +1 -0
  171. package/dist-types/commands/UploadServerCertificateCommand.d.ts +14 -14
  172. package/dist-types/commands/UploadSigningCertificateCommand.d.ts +11 -11
  173. package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
  174. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +2 -2
  175. package/package.json +34 -34
@@ -40,8 +40,6 @@ const defaultIAMHttpAuthSchemeProvider = (authParameters) => {
40
40
  exports.defaultIAMHttpAuthSchemeProvider = defaultIAMHttpAuthSchemeProvider;
41
41
  const resolveHttpAuthSchemeConfig = (config) => {
42
42
  const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
43
- return {
44
- ...config_0,
45
- };
43
+ return Object.assign(config_0, {});
46
44
  };
47
45
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const C = "required", D = "fn", E = "argv", F = "ref", G = "authSchemes", H = "signingName", I = "signingRegion";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = "iam", k = { [C]: false, "type": "String" }, l = { [C]: true, "default": false, "type": "Boolean" }, m = { [F]: "Endpoint" }, n = { [D]: c, [E]: [{ [F]: "UseFIPS" }, true] }, o = { [D]: c, [E]: [{ [F]: "UseDualStack" }, true] }, p = {}, q = { [D]: h, [E]: [{ [D]: "getAttr", [E]: [{ [F]: g }, "name"] }, "aws"] }, r = { [D]: "getAttr", [E]: [{ [F]: g }, "name"] }, s = { [D]: c, [E]: [{ [F]: "UseFIPS" }, false] }, t = { [D]: c, [E]: [{ [F]: "UseDualStack" }, false] }, u = { [G]: [{ "name": i, [H]: j, [I]: "us-east-1" }] }, v = { [D]: h, [E]: [r, "aws-us-gov"] }, w = { "url": "https://iam.us-gov.amazonaws.com", "properties": { [G]: [{ "name": i, [H]: j, [I]: "us-gov-west-1" }] }, "headers": {} }, x = { [D]: "getAttr", [E]: [{ [F]: g }, "supportsFIPS"] }, y = { [D]: c, [E]: [true, { [D]: "getAttr", [E]: [{ [F]: g }, "supportsDualStack"] }] }, z = [n], A = [o], B = [{ [F]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: k, UseDualStack: l, UseFIPS: l, Endpoint: k }, rules: [{ conditions: [{ [D]: b, [E]: [m] }], rules: [{ conditions: z, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: A, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: m, properties: p, headers: p }, type: e }], type: f }, { conditions: [{ [D]: b, [E]: B }], rules: [{ conditions: [{ [D]: "aws.partition", [E]: B, assign: g }], rules: [{ conditions: [q, s, t], endpoint: { url: "https://iam.amazonaws.com", properties: u, headers: p }, type: e }, { conditions: [q, n, t], endpoint: { url: "https://iam-fips.amazonaws.com", properties: u, headers: p }, type: e }, { conditions: [{ [D]: h, [E]: [r, "aws-cn"] }, s, t], endpoint: { url: "https://iam.cn-north-1.amazonaws.com.cn", properties: { [G]: [{ name: i, [H]: j, [I]: "cn-north-1" }] }, headers: p }, type: e }, { conditions: [v, s, t], endpoint: w, type: e }, { conditions: [v, n, t], endpoint: w, type: e }, { conditions: [{ [D]: h, [E]: [r, "aws-iso"] }, s, t], endpoint: { url: "https://iam.us-iso-east-1.c2s.ic.gov", properties: { [G]: [{ name: i, [H]: j, [I]: "us-iso-east-1" }] }, headers: p }, type: e }, { conditions: [{ [D]: h, [E]: [r, "aws-iso-b"] }, s, t], endpoint: { url: "https://iam.us-isob-east-1.sc2s.sgov.gov", properties: { [G]: [{ name: i, [H]: j, [I]: "us-isob-east-1" }] }, headers: p }, type: e }, { conditions: [{ [D]: h, [E]: [r, "aws-iso-e"] }, s, t], endpoint: { url: "https://iam.eu-isoe-west-1.cloud.adc-e.uk", properties: { [G]: [{ name: i, [H]: j, [I]: "eu-isoe-west-1" }] }, headers: p }, type: e }, { conditions: [{ [D]: h, [E]: [r, "aws-iso-f"] }, s, t], endpoint: { url: "https://iam.us-isof-south-1.csp.hci.ic.gov", properties: { [G]: [{ name: i, [H]: j, [I]: "us-isof-south-1" }] }, headers: p }, type: e }, { conditions: [n, o], rules: [{ conditions: [{ [D]: c, [E]: [a, x] }, y], rules: [{ endpoint: { url: "https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: z, rules: [{ conditions: [{ [D]: c, [E]: [x, a] }], rules: [{ endpoint: { url: "https://iam-fips.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: A, rules: [{ conditions: [y], rules: [{ endpoint: { url: "https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://iam.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
+ const H = "required", I = "fn", J = "argv", K = "ref", L = "properties", M = "headers", N = "authSchemes", O = "name", P = "signingRegion";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = { [H]: true, "default": false, "type": "Boolean" }, k = { [H]: false, "type": "String" }, l = { [K]: "Endpoint" }, m = { [I]: c, [J]: [{ [K]: "UseFIPS" }, true] }, n = { [I]: c, [J]: [{ [K]: "UseDualStack" }, true] }, o = {}, p = { [I]: h, [J]: [{ [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, "aws"] }, q = { [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, r = { [I]: c, [J]: [{ [K]: "UseFIPS" }, false] }, s = { [N]: [{ [O]: i, [P]: "us-east-1" }] }, t = { [I]: h, [J]: [q, "aws-cn"] }, u = { [N]: [{ [O]: i, [P]: "cn-north-1" }] }, v = { [I]: c, [J]: [{ [K]: "UseDualStack" }, false] }, w = { [I]: h, [J]: [q, "aws-us-gov"] }, x = { "url": "https://iam.us-gov.api.aws", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, y = { "url": "https://iam.us-gov.amazonaws.com", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, z = { [I]: h, [J]: [q, "aws-iso"] }, A = { [N]: [{ [O]: i, [P]: "us-iso-east-1" }] }, B = { [I]: h, [J]: [q, "aws-iso-b"] }, C = { [N]: [{ [O]: i, [P]: "us-isob-east-1" }] }, D = { [I]: "getAttr", [J]: [{ [K]: g }, "supportsFIPS"] }, E = { [I]: c, [J]: [true, { [I]: "getAttr", [J]: [{ [K]: g }, "supportsDualStack"] }] }, F = { [N]: [{ [O]: i, [P]: "{PartitionResult#implicitGlobalRegion}" }] }, G = [{ [K]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { UseDualStack: j, UseFIPS: j, Endpoint: k, Region: k }, rules: [{ conditions: [{ [I]: b, [J]: [l] }], rules: [{ conditions: [m], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [n], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: l, [L]: o, [M]: o }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [I]: b, [J]: G }], rules: [{ conditions: [{ [I]: "aws.partition", [J]: G, assign: g }], rules: [{ conditions: [p, r, n], endpoint: { url: "https://iam.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [p, m, n], endpoint: { url: "https://iam-fips.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [t, r, n], endpoint: { url: "https://iam.global.api.amazonwebservices.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [t, r, v], endpoint: { url: "https://iam.cn-north-1.amazonaws.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [w, r, n], endpoint: x, type: e }, { conditions: [w, m, n], endpoint: x, type: e }, { conditions: [w, r, v], endpoint: y, type: e }, { conditions: [w, m, v], endpoint: y, type: e }, { conditions: [z, r, v], endpoint: { url: "https://iam.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [z, m, v], endpoint: { url: "https://iam-fips.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [B, r, v], endpoint: { url: "https://iam.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [B, m, v], endpoint: { url: "https://iam-fips.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-e"] }, r, v], endpoint: { url: "https://iam.eu-isoe-west-1.cloud.adc-e.uk", [L]: { [N]: [{ [O]: i, [P]: "eu-isoe-west-1" }] }, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-f"] }, r, v], endpoint: { url: "https://iam.us-isof-south-1.csp.hci.ic.gov", [L]: { [N]: [{ [O]: i, [P]: "us-isof-south-1" }] }, [M]: o }, type: e }, { conditions: [m, n], rules: [{ conditions: [{ [I]: c, [J]: [a, D] }, E], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [m, v], rules: [{ conditions: [{ [I]: c, [J]: [D, a] }], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [r, n], rules: [{ conditions: [E], rules: [{ endpoint: { url: "https://iam.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://iam.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
7
7
  exports.ruleSet = _data;
package/dist-cjs/index.js CHANGED
@@ -318,12 +318,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
318
318
 
319
319
  // src/endpoint/EndpointParameters.ts
320
320
  var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
321
- return {
322
- ...options,
321
+ return Object.assign(options, {
323
322
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
324
323
  useFipsEndpoint: options.useFipsEndpoint ?? false,
325
324
  defaultSigningName: "iam"
326
- };
325
+ });
327
326
  }, "resolveClientEndpointParameters");
328
327
  var commonParams = {
329
328
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -380,22 +379,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
380
379
  }, "resolveHttpAuthRuntimeConfig");
381
380
 
382
381
  // src/runtimeExtensions.ts
383
- var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
384
382
  var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
385
- const extensionConfiguration = {
386
- ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
387
- ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
388
- ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
389
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
390
- };
383
+ const extensionConfiguration = Object.assign(
384
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
385
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
386
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
387
+ getHttpAuthExtensionConfiguration(runtimeConfig)
388
+ );
391
389
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
392
- return {
393
- ...runtimeConfig,
394
- ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
395
- ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
396
- ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
397
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
398
- };
390
+ return Object.assign(
391
+ runtimeConfig,
392
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
393
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
394
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
395
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
396
+ );
399
397
  }, "resolveRuntimeExtensions");
400
398
 
401
399
  // src/IAMClient.ts
@@ -409,6 +407,8 @@ var IAMClient = class extends import_smithy_client.Client {
409
407
  config;
410
408
  constructor(...[configuration]) {
411
409
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
410
+ super(_config_0);
411
+ this.initConfig = _config_0;
412
412
  const _config_1 = resolveClientEndpointParameters(_config_0);
413
413
  const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
414
414
  const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
@@ -417,7 +417,6 @@ var IAMClient = class extends import_smithy_client.Client {
417
417
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
418
418
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
419
419
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
420
- super(_config_8);
421
420
  this.config = _config_8;
422
421
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
423
422
  this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
@@ -17,6 +17,8 @@ export class IAMClient extends __Client {
17
17
  config;
18
18
  constructor(...[configuration]) {
19
19
  const _config_0 = __getRuntimeConfig(configuration || {});
20
+ super(_config_0);
21
+ this.initConfig = _config_0;
20
22
  const _config_1 = resolveClientEndpointParameters(_config_0);
21
23
  const _config_2 = resolveUserAgentConfig(_config_1);
22
24
  const _config_3 = resolveRetryConfig(_config_2);
@@ -25,7 +27,6 @@ export class IAMClient extends __Client {
25
27
  const _config_6 = resolveEndpointConfig(_config_5);
26
28
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
27
29
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
28
- super(_config_8);
29
30
  this.config = _config_8;
30
31
  this.middlewareStack.use(getUserAgentPlugin(this.config));
31
32
  this.middlewareStack.use(getRetryPlugin(this.config));
@@ -35,7 +35,5 @@ export const defaultIAMHttpAuthSchemeProvider = (authParameters) => {
35
35
  };
36
36
  export const resolveHttpAuthSchemeConfig = (config) => {
37
37
  const config_0 = resolveAwsSdkSigV4Config(config);
38
- return {
39
- ...config_0,
40
- };
38
+ return Object.assign(config_0, {});
41
39
  };
@@ -1,10 +1,9 @@
1
1
  export const resolveClientEndpointParameters = (options) => {
2
- return {
3
- ...options,
2
+ return Object.assign(options, {
4
3
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
4
  useFipsEndpoint: options.useFipsEndpoint ?? false,
6
5
  defaultSigningName: "iam",
7
- };
6
+ });
8
7
  };
9
8
  export const commonParams = {
10
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -1,4 +1,4 @@
1
- const C = "required", D = "fn", E = "argv", F = "ref", G = "authSchemes", H = "signingName", I = "signingRegion";
2
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = "iam", k = { [C]: false, "type": "String" }, l = { [C]: true, "default": false, "type": "Boolean" }, m = { [F]: "Endpoint" }, n = { [D]: c, [E]: [{ [F]: "UseFIPS" }, true] }, o = { [D]: c, [E]: [{ [F]: "UseDualStack" }, true] }, p = {}, q = { [D]: h, [E]: [{ [D]: "getAttr", [E]: [{ [F]: g }, "name"] }, "aws"] }, r = { [D]: "getAttr", [E]: [{ [F]: g }, "name"] }, s = { [D]: c, [E]: [{ [F]: "UseFIPS" }, false] }, t = { [D]: c, [E]: [{ [F]: "UseDualStack" }, false] }, u = { [G]: [{ "name": i, [H]: j, [I]: "us-east-1" }] }, v = { [D]: h, [E]: [r, "aws-us-gov"] }, w = { "url": "https://iam.us-gov.amazonaws.com", "properties": { [G]: [{ "name": i, [H]: j, [I]: "us-gov-west-1" }] }, "headers": {} }, x = { [D]: "getAttr", [E]: [{ [F]: g }, "supportsFIPS"] }, y = { [D]: c, [E]: [true, { [D]: "getAttr", [E]: [{ [F]: g }, "supportsDualStack"] }] }, z = [n], A = [o], B = [{ [F]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: k, UseDualStack: l, UseFIPS: l, Endpoint: k }, rules: [{ conditions: [{ [D]: b, [E]: [m] }], rules: [{ conditions: z, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: A, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: m, properties: p, headers: p }, type: e }], type: f }, { conditions: [{ [D]: b, [E]: B }], rules: [{ conditions: [{ [D]: "aws.partition", [E]: B, assign: g }], rules: [{ conditions: [q, s, t], endpoint: { url: "https://iam.amazonaws.com", properties: u, headers: p }, type: e }, { conditions: [q, n, t], endpoint: { url: "https://iam-fips.amazonaws.com", properties: u, headers: p }, type: e }, { conditions: [{ [D]: h, [E]: [r, "aws-cn"] }, s, t], endpoint: { url: "https://iam.cn-north-1.amazonaws.com.cn", properties: { [G]: [{ name: i, [H]: j, [I]: "cn-north-1" }] }, headers: p }, type: e }, { conditions: [v, s, t], endpoint: w, type: e }, { conditions: [v, n, t], endpoint: w, type: e }, { conditions: [{ [D]: h, [E]: [r, "aws-iso"] }, s, t], endpoint: { url: "https://iam.us-iso-east-1.c2s.ic.gov", properties: { [G]: [{ name: i, [H]: j, [I]: "us-iso-east-1" }] }, headers: p }, type: e }, { conditions: [{ [D]: h, [E]: [r, "aws-iso-b"] }, s, t], endpoint: { url: "https://iam.us-isob-east-1.sc2s.sgov.gov", properties: { [G]: [{ name: i, [H]: j, [I]: "us-isob-east-1" }] }, headers: p }, type: e }, { conditions: [{ [D]: h, [E]: [r, "aws-iso-e"] }, s, t], endpoint: { url: "https://iam.eu-isoe-west-1.cloud.adc-e.uk", properties: { [G]: [{ name: i, [H]: j, [I]: "eu-isoe-west-1" }] }, headers: p }, type: e }, { conditions: [{ [D]: h, [E]: [r, "aws-iso-f"] }, s, t], endpoint: { url: "https://iam.us-isof-south-1.csp.hci.ic.gov", properties: { [G]: [{ name: i, [H]: j, [I]: "us-isof-south-1" }] }, headers: p }, type: e }, { conditions: [n, o], rules: [{ conditions: [{ [D]: c, [E]: [a, x] }, y], rules: [{ endpoint: { url: "https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: z, rules: [{ conditions: [{ [D]: c, [E]: [x, a] }], rules: [{ endpoint: { url: "https://iam-fips.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: A, rules: [{ conditions: [y], rules: [{ endpoint: { url: "https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://iam.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
1
+ const H = "required", I = "fn", J = "argv", K = "ref", L = "properties", M = "headers", N = "authSchemes", O = "name", P = "signingRegion";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = { [H]: true, "default": false, "type": "Boolean" }, k = { [H]: false, "type": "String" }, l = { [K]: "Endpoint" }, m = { [I]: c, [J]: [{ [K]: "UseFIPS" }, true] }, n = { [I]: c, [J]: [{ [K]: "UseDualStack" }, true] }, o = {}, p = { [I]: h, [J]: [{ [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, "aws"] }, q = { [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, r = { [I]: c, [J]: [{ [K]: "UseFIPS" }, false] }, s = { [N]: [{ [O]: i, [P]: "us-east-1" }] }, t = { [I]: h, [J]: [q, "aws-cn"] }, u = { [N]: [{ [O]: i, [P]: "cn-north-1" }] }, v = { [I]: c, [J]: [{ [K]: "UseDualStack" }, false] }, w = { [I]: h, [J]: [q, "aws-us-gov"] }, x = { "url": "https://iam.us-gov.api.aws", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, y = { "url": "https://iam.us-gov.amazonaws.com", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, z = { [I]: h, [J]: [q, "aws-iso"] }, A = { [N]: [{ [O]: i, [P]: "us-iso-east-1" }] }, B = { [I]: h, [J]: [q, "aws-iso-b"] }, C = { [N]: [{ [O]: i, [P]: "us-isob-east-1" }] }, D = { [I]: "getAttr", [J]: [{ [K]: g }, "supportsFIPS"] }, E = { [I]: c, [J]: [true, { [I]: "getAttr", [J]: [{ [K]: g }, "supportsDualStack"] }] }, F = { [N]: [{ [O]: i, [P]: "{PartitionResult#implicitGlobalRegion}" }] }, G = [{ [K]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseDualStack: j, UseFIPS: j, Endpoint: k, Region: k }, rules: [{ conditions: [{ [I]: b, [J]: [l] }], rules: [{ conditions: [m], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [n], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: l, [L]: o, [M]: o }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [I]: b, [J]: G }], rules: [{ conditions: [{ [I]: "aws.partition", [J]: G, assign: g }], rules: [{ conditions: [p, r, n], endpoint: { url: "https://iam.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [p, m, n], endpoint: { url: "https://iam-fips.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [t, r, n], endpoint: { url: "https://iam.global.api.amazonwebservices.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [t, r, v], endpoint: { url: "https://iam.cn-north-1.amazonaws.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [w, r, n], endpoint: x, type: e }, { conditions: [w, m, n], endpoint: x, type: e }, { conditions: [w, r, v], endpoint: y, type: e }, { conditions: [w, m, v], endpoint: y, type: e }, { conditions: [z, r, v], endpoint: { url: "https://iam.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [z, m, v], endpoint: { url: "https://iam-fips.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [B, r, v], endpoint: { url: "https://iam.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [B, m, v], endpoint: { url: "https://iam-fips.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-e"] }, r, v], endpoint: { url: "https://iam.eu-isoe-west-1.cloud.adc-e.uk", [L]: { [N]: [{ [O]: i, [P]: "eu-isoe-west-1" }] }, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-f"] }, r, v], endpoint: { url: "https://iam.us-isof-south-1.csp.hci.ic.gov", [L]: { [N]: [{ [O]: i, [P]: "us-isof-south-1" }] }, [M]: o }, type: e }, { conditions: [m, n], rules: [{ conditions: [{ [I]: c, [J]: [a, D] }, E], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [m, v], rules: [{ conditions: [{ [I]: c, [J]: [D, a] }], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [r, n], rules: [{ conditions: [E], rules: [{ endpoint: { url: "https://iam.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://iam.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
4
  export const ruleSet = _data;
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
2
2
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
3
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
4
  import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
- const asPartial = (t) => t;
6
5
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
- const extensionConfiguration = {
8
- ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
9
- ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
10
- ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
12
- };
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
13
7
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
14
- return {
15
- ...runtimeConfig,
16
- ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
17
- ...resolveDefaultRuntimeConfig(extensionConfiguration),
18
- ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
20
- };
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
21
9
  };
@@ -72,19 +72,22 @@ declare const AddClientIDToOpenIDConnectProviderCommand_base: {
72
72
  * @throws {@link IAMServiceException}
73
73
  * <p>Base exception class for all service exceptions from IAM service.</p>
74
74
  *
75
- * @public
75
+ *
76
76
  * @example To add a client ID (audience) to an Open-ID Connect (OIDC) provider
77
77
  * ```javascript
78
78
  * // The following add-client-id-to-open-id-connect-provider command adds the client ID my-application-ID to the OIDC provider named server.example.com:
79
79
  * const input = {
80
- * "ClientID": "my-application-ID",
81
- * "OpenIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/server.example.com"
80
+ * ClientID: "my-application-ID",
81
+ * OpenIDConnectProviderArn: "arn:aws:iam::123456789012:oidc-provider/server.example.com"
82
82
  * };
83
83
  * const command = new AddClientIDToOpenIDConnectProviderCommand(input);
84
- * await client.send(command);
85
- * // example id: 028e91f4-e2a6-4d59-9e3b-4965a3fb19be
84
+ * const response = await client.send(command);
85
+ * /* response is
86
+ * { /* metadata only *\/ }
87
+ * *\/
86
88
  * ```
87
89
  *
90
+ * @public
88
91
  */
89
92
  export declare class AddClientIDToOpenIDConnectProviderCommand extends AddClientIDToOpenIDConnectProviderCommand_base {
90
93
  /** @internal type navigation helper, not in runtime. */
@@ -95,19 +95,22 @@ declare const AddRoleToInstanceProfileCommand_base: {
95
95
  * @throws {@link IAMServiceException}
96
96
  * <p>Base exception class for all service exceptions from IAM service.</p>
97
97
  *
98
- * @public
98
+ *
99
99
  * @example To add a role to an instance profile
100
100
  * ```javascript
101
101
  * // The following command adds the role named S3Access to the instance profile named Webserver:
102
102
  * const input = {
103
- * "InstanceProfileName": "Webserver",
104
- * "RoleName": "S3Access"
103
+ * InstanceProfileName: "Webserver",
104
+ * RoleName: "S3Access"
105
105
  * };
106
106
  * const command = new AddRoleToInstanceProfileCommand(input);
107
- * await client.send(command);
108
- * // example id: c107fac3-edb6-4827-8a71-8863ec91c81f
107
+ * const response = await client.send(command);
108
+ * /* response is
109
+ * { /* metadata only *\/ }
110
+ * *\/
109
111
  * ```
110
112
  *
113
+ * @public
111
114
  */
112
115
  export declare class AddRoleToInstanceProfileCommand extends AddRoleToInstanceProfileCommand_base {
113
116
  /** @internal type navigation helper, not in runtime. */
@@ -65,19 +65,22 @@ declare const AddUserToGroupCommand_base: {
65
65
  * @throws {@link IAMServiceException}
66
66
  * <p>Base exception class for all service exceptions from IAM service.</p>
67
67
  *
68
- * @public
68
+ *
69
69
  * @example To add a user to an IAM group
70
70
  * ```javascript
71
71
  * // The following command adds an IAM user named Bob to the IAM group named Admins:
72
72
  * const input = {
73
- * "GroupName": "Admins",
74
- * "UserName": "Bob"
73
+ * GroupName: "Admins",
74
+ * UserName: "Bob"
75
75
  * };
76
76
  * const command = new AddUserToGroupCommand(input);
77
- * await client.send(command);
78
- * // example id: 619c7e6b-09f8-4036-857b-51a6ea5027ca
77
+ * const response = await client.send(command);
78
+ * /* response is
79
+ * { /* metadata only *\/ }
80
+ * *\/
79
81
  * ```
80
82
  *
83
+ * @public
81
84
  */
82
85
  export declare class AddUserToGroupCommand extends AddUserToGroupCommand_base {
83
86
  /** @internal type navigation helper, not in runtime. */
@@ -82,19 +82,22 @@ declare const AttachGroupPolicyCommand_base: {
82
82
  * @throws {@link IAMServiceException}
83
83
  * <p>Base exception class for all service exceptions from IAM service.</p>
84
84
  *
85
- * @public
85
+ *
86
86
  * @example To attach a managed policy to an IAM group
87
87
  * ```javascript
88
88
  * // The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM group named Finance.
89
89
  * const input = {
90
- * "GroupName": "Finance",
91
- * "PolicyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
90
+ * GroupName: "Finance",
91
+ * PolicyArn: "arn:aws:iam::aws:policy/ReadOnlyAccess"
92
92
  * };
93
93
  * const command = new AttachGroupPolicyCommand(input);
94
- * await client.send(command);
95
- * // example id: 87551489-86f0-45db-9889-759936778f2b
94
+ * const response = await client.send(command);
95
+ * /* response is
96
+ * { /* metadata only *\/ }
97
+ * *\/
96
98
  * ```
97
99
  *
100
+ * @public
98
101
  */
99
102
  export declare class AttachGroupPolicyCommand extends AttachGroupPolicyCommand_base {
100
103
  /** @internal type navigation helper, not in runtime. */
@@ -99,19 +99,22 @@ declare const AttachRolePolicyCommand_base: {
99
99
  * @throws {@link IAMServiceException}
100
100
  * <p>Base exception class for all service exceptions from IAM service.</p>
101
101
  *
102
- * @public
102
+ *
103
103
  * @example To attach a managed policy to an IAM role
104
104
  * ```javascript
105
105
  * // The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM role named ReadOnlyRole.
106
106
  * const input = {
107
- * "PolicyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess",
108
- * "RoleName": "ReadOnlyRole"
107
+ * PolicyArn: "arn:aws:iam::aws:policy/ReadOnlyAccess",
108
+ * RoleName: "ReadOnlyRole"
109
109
  * };
110
110
  * const command = new AttachRolePolicyCommand(input);
111
- * await client.send(command);
112
- * // example id: 3e1b8c7c-99c8-4fc4-a20c-131fe3f22c7e
111
+ * const response = await client.send(command);
112
+ * /* response is
113
+ * { /* metadata only *\/ }
114
+ * *\/
113
115
  * ```
114
116
  *
117
+ * @public
115
118
  */
116
119
  export declare class AttachRolePolicyCommand extends AttachRolePolicyCommand_base {
117
120
  /** @internal type navigation helper, not in runtime. */
@@ -82,19 +82,22 @@ declare const AttachUserPolicyCommand_base: {
82
82
  * @throws {@link IAMServiceException}
83
83
  * <p>Base exception class for all service exceptions from IAM service.</p>
84
84
  *
85
- * @public
85
+ *
86
86
  * @example To attach a managed policy to an IAM user
87
87
  * ```javascript
88
88
  * // The following command attaches the AWS managed policy named AdministratorAccess to the IAM user named Alice.
89
89
  * const input = {
90
- * "PolicyArn": "arn:aws:iam::aws:policy/AdministratorAccess",
91
- * "UserName": "Alice"
90
+ * PolicyArn: "arn:aws:iam::aws:policy/AdministratorAccess",
91
+ * UserName: "Alice"
92
92
  * };
93
93
  * const command = new AttachUserPolicyCommand(input);
94
- * await client.send(command);
95
- * // example id: 1372ebd8-9475-4b1a-a479-23b6fd4b8b3e
94
+ * const response = await client.send(command);
95
+ * /* response is
96
+ * { /* metadata only *\/ }
97
+ * *\/
96
98
  * ```
97
99
  *
100
+ * @public
98
101
  */
99
102
  export declare class AttachUserPolicyCommand extends AttachUserPolicyCommand_base {
100
103
  /** @internal type navigation helper, not in runtime. */
@@ -86,19 +86,22 @@ declare const ChangePasswordCommand_base: {
86
86
  * @throws {@link IAMServiceException}
87
87
  * <p>Base exception class for all service exceptions from IAM service.</p>
88
88
  *
89
- * @public
89
+ *
90
90
  * @example To change the password for your IAM user
91
91
  * ```javascript
92
92
  * // The following command changes the password for the current IAM user.
93
93
  * const input = {
94
- * "NewPassword": "]35d/{pB9Fo9wJ",
95
- * "OldPassword": "3s0K_;xh4~8XXI"
94
+ * NewPassword: "]35d/{pB9Fo9wJ",
95
+ * OldPassword: "3s0K_;xh4~8XXI"
96
96
  * };
97
97
  * const command = new ChangePasswordCommand(input);
98
- * await client.send(command);
99
- * // example id: 3a80c66f-bffb-46df-947c-1e8fa583b470
98
+ * const response = await client.send(command);
99
+ * /* response is
100
+ * { /* metadata only *\/ }
101
+ * *\/
100
102
  * ```
101
103
  *
104
+ * @public
102
105
  */
103
106
  export declare class ChangePasswordCommand extends ChangePasswordCommand_base {
104
107
  /** @internal type navigation helper, not in runtime. */
@@ -85,29 +85,29 @@ declare const CreateAccessKeyCommand_base: {
85
85
  * @throws {@link IAMServiceException}
86
86
  * <p>Base exception class for all service exceptions from IAM service.</p>
87
87
  *
88
- * @public
88
+ *
89
89
  * @example To create an access key for an IAM user
90
90
  * ```javascript
91
91
  * // The following command creates an access key (access key ID and secret access key) for the IAM user named Bob.
92
92
  * const input = {
93
- * "UserName": "Bob"
93
+ * UserName: "Bob"
94
94
  * };
95
95
  * const command = new CreateAccessKeyCommand(input);
96
96
  * const response = await client.send(command);
97
- * /* response ==
97
+ * /* response is
98
98
  * {
99
- * "AccessKey": {
100
- * "AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
101
- * "CreateDate": "2015-03-09T18:39:23.411Z",
102
- * "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
103
- * "Status": "Active",
104
- * "UserName": "Bob"
99
+ * AccessKey: {
100
+ * AccessKeyId: "AKIAIOSFODNN7EXAMPLE",
101
+ * CreateDate: "2015-03-09T18:39:23.411Z",
102
+ * SecretAccessKey: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
103
+ * Status: "Active",
104
+ * UserName: "Bob"
105
105
  * }
106
106
  * }
107
107
  * *\/
108
- * // example id: 1fbb3211-4cf2-41db-8c20-ba58d9f5802d
109
108
  * ```
110
109
  *
110
+ * @public
111
111
  */
112
112
  export declare class CreateAccessKeyCommand extends CreateAccessKeyCommand_base {
113
113
  /** @internal type navigation helper, not in runtime. */
@@ -71,18 +71,21 @@ declare const CreateAccountAliasCommand_base: {
71
71
  * @throws {@link IAMServiceException}
72
72
  * <p>Base exception class for all service exceptions from IAM service.</p>
73
73
  *
74
- * @public
74
+ *
75
75
  * @example To create an account alias
76
76
  * ```javascript
77
77
  * // The following command associates the alias examplecorp to your AWS account.
78
78
  * const input = {
79
- * "AccountAlias": "examplecorp"
79
+ * AccountAlias: "examplecorp"
80
80
  * };
81
81
  * const command = new CreateAccountAliasCommand(input);
82
- * await client.send(command);
83
- * // example id: 5adaf6fb-94fc-4ca2-b825-2fbc2062add1
82
+ * const response = await client.send(command);
83
+ * /* response is
84
+ * { /* metadata only *\/ }
85
+ * *\/
84
86
  * ```
85
87
  *
88
+ * @public
86
89
  */
87
90
  export declare class CreateAccountAliasCommand extends CreateAccountAliasCommand_base {
88
91
  /** @internal type navigation helper, not in runtime. */
@@ -79,29 +79,29 @@ declare const CreateGroupCommand_base: {
79
79
  * @throws {@link IAMServiceException}
80
80
  * <p>Base exception class for all service exceptions from IAM service.</p>
81
81
  *
82
- * @public
82
+ *
83
83
  * @example To create an IAM group
84
84
  * ```javascript
85
85
  * // The following command creates an IAM group named Admins.
86
86
  * const input = {
87
- * "GroupName": "Admins"
87
+ * GroupName: "Admins"
88
88
  * };
89
89
  * const command = new CreateGroupCommand(input);
90
90
  * const response = await client.send(command);
91
- * /* response ==
91
+ * /* response is
92
92
  * {
93
- * "Group": {
94
- * "Arn": "arn:aws:iam::123456789012:group/Admins",
95
- * "CreateDate": "2015-03-09T20:30:24.940Z",
96
- * "GroupId": "AIDGPMS9RO4H3FEXAMPLE",
97
- * "GroupName": "Admins",
98
- * "Path": "/"
93
+ * Group: {
94
+ * Arn: "arn:aws:iam::123456789012:group/Admins",
95
+ * CreateDate: "2015-03-09T20:30:24.940Z",
96
+ * GroupId: "AIDGPMS9RO4H3FEXAMPLE",
97
+ * GroupName: "Admins",
98
+ * Path: "/"
99
99
  * }
100
100
  * }
101
101
  * *\/
102
- * // example id: d5da2a90-5e69-4ef7-8ae8-4c33dc21fd21
103
102
  * ```
104
103
  *
104
+ * @public
105
105
  */
106
106
  export declare class CreateGroupCommand extends CreateGroupCommand_base {
107
107
  /** @internal type navigation helper, not in runtime. */
@@ -123,30 +123,30 @@ declare const CreateInstanceProfileCommand_base: {
123
123
  * @throws {@link IAMServiceException}
124
124
  * <p>Base exception class for all service exceptions from IAM service.</p>
125
125
  *
126
- * @public
126
+ *
127
127
  * @example To create an instance profile
128
128
  * ```javascript
129
129
  * // The following command creates an instance profile named Webserver that is ready to have a role attached and then be associated with an EC2 instance.
130
130
  * const input = {
131
- * "InstanceProfileName": "Webserver"
131
+ * InstanceProfileName: "Webserver"
132
132
  * };
133
133
  * const command = new CreateInstanceProfileCommand(input);
134
134
  * const response = await client.send(command);
135
- * /* response ==
135
+ * /* response is
136
136
  * {
137
- * "InstanceProfile": {
138
- * "Arn": "arn:aws:iam::123456789012:instance-profile/Webserver",
139
- * "CreateDate": "2015-03-09T20:33:19.626Z",
140
- * "InstanceProfileId": "AIPAJMBYC7DLSPEXAMPLE",
141
- * "InstanceProfileName": "Webserver",
142
- * "Path": "/",
143
- * "Roles": []
137
+ * InstanceProfile: {
138
+ * Arn: "arn:aws:iam::123456789012:instance-profile/Webserver",
139
+ * CreateDate: "2015-03-09T20:33:19.626Z",
140
+ * InstanceProfileId: "AIPAJMBYC7DLSPEXAMPLE",
141
+ * InstanceProfileName: "Webserver",
142
+ * Path: "/",
143
+ * Roles: []
144
144
  * }
145
145
  * }
146
146
  * *\/
147
- * // example id: 5d84e6ae-5921-4e39-8454-10232cd9ff9a
148
147
  * ```
149
148
  *
149
+ * @public
150
150
  */
151
151
  export declare class CreateInstanceProfileCommand extends CreateInstanceProfileCommand_base {
152
152
  /** @internal type navigation helper, not in runtime. */
@@ -85,29 +85,29 @@ declare const CreateLoginProfileCommand_base: {
85
85
  * @throws {@link IAMServiceException}
86
86
  * <p>Base exception class for all service exceptions from IAM service.</p>
87
87
  *
88
- * @public
88
+ *
89
89
  * @example To create an instance profile
90
90
  * ```javascript
91
91
  * // The following command changes IAM user Bob's password and sets the flag that required Bob to change the password the next time he signs in.
92
92
  * const input = {
93
- * "Password": "h]6EszR}vJ*m",
94
- * "PasswordResetRequired": true,
95
- * "UserName": "Bob"
93
+ * Password: "h]6EszR}vJ*m",
94
+ * PasswordResetRequired: true,
95
+ * UserName: "Bob"
96
96
  * };
97
97
  * const command = new CreateLoginProfileCommand(input);
98
98
  * const response = await client.send(command);
99
- * /* response ==
99
+ * /* response is
100
100
  * {
101
- * "LoginProfile": {
102
- * "CreateDate": "2015-03-10T20:55:40.274Z",
103
- * "PasswordResetRequired": true,
104
- * "UserName": "Bob"
101
+ * LoginProfile: {
102
+ * CreateDate: "2015-03-10T20:55:40.274Z",
103
+ * PasswordResetRequired: true,
104
+ * UserName: "Bob"
105
105
  * }
106
106
  * }
107
107
  * *\/
108
- * // example id: c63795bc-3444-40b3-89df-83c474ef88be
109
108
  * ```
110
109
  *
110
+ * @public
111
111
  */
112
112
  export declare class CreateLoginProfileCommand extends CreateLoginProfileCommand_base {
113
113
  /** @internal type navigation helper, not in runtime. */