@aws-sdk/client-iam 3.288.0 → 3.290.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 (159) hide show
  1. package/dist-types/commands/AddClientIDToOpenIDConnectProviderCommand.d.ts +29 -0
  2. package/dist-types/commands/AddRoleToInstanceProfileCommand.d.ts +35 -0
  3. package/dist-types/commands/AddUserToGroupCommand.d.ts +25 -0
  4. package/dist-types/commands/AttachGroupPolicyCommand.d.ts +33 -0
  5. package/dist-types/commands/AttachRolePolicyCommand.d.ts +39 -0
  6. package/dist-types/commands/AttachUserPolicyCommand.d.ts +33 -0
  7. package/dist-types/commands/ChangePasswordCommand.d.ts +39 -0
  8. package/dist-types/commands/CreateAccessKeyCommand.d.ts +35 -0
  9. package/dist-types/commands/CreateAccountAliasCommand.d.ts +24 -0
  10. package/dist-types/commands/CreateGroupCommand.d.ts +39 -0
  11. package/dist-types/commands/CreateInstanceProfileCommand.d.ts +44 -0
  12. package/dist-types/commands/CreateLoginProfileCommand.d.ts +43 -0
  13. package/dist-types/commands/CreateOpenIDConnectProviderCommand.d.ts +43 -0
  14. package/dist-types/commands/CreatePolicyCommand.d.ts +25 -0
  15. package/dist-types/commands/CreatePolicyVersionCommand.d.ts +21 -0
  16. package/dist-types/commands/CreateRoleCommand.d.ts +50 -0
  17. package/dist-types/commands/CreateSAMLProviderCommand.d.ts +21 -0
  18. package/dist-types/commands/CreateServiceLinkedRoleCommand.d.ts +17 -0
  19. package/dist-types/commands/CreateServiceSpecificCredentialCommand.d.ts +12 -0
  20. package/dist-types/commands/CreateUserCommand.d.ts +47 -0
  21. package/dist-types/commands/CreateVirtualMFADeviceCommand.d.ts +21 -0
  22. package/dist-types/commands/DeactivateMFADeviceCommand.d.ts +19 -0
  23. package/dist-types/commands/DeleteAccessKeyCommand.d.ts +25 -0
  24. package/dist-types/commands/DeleteAccountAliasCommand.d.ts +24 -0
  25. package/dist-types/commands/DeleteAccountPasswordPolicyCommand.d.ts +22 -0
  26. package/dist-types/commands/DeleteGroupCommand.d.ts +17 -0
  27. package/dist-types/commands/DeleteGroupPolicyCommand.d.ts +25 -0
  28. package/dist-types/commands/DeleteInstanceProfileCommand.d.ts +28 -0
  29. package/dist-types/commands/DeleteLoginProfileCommand.d.ts +30 -0
  30. package/dist-types/commands/DeleteOpenIDConnectProviderCommand.d.ts +13 -0
  31. package/dist-types/commands/DeletePolicyCommand.d.ts +21 -0
  32. package/dist-types/commands/DeletePolicyVersionCommand.d.ts +21 -0
  33. package/dist-types/commands/DeleteRoleCommand.d.ts +38 -0
  34. package/dist-types/commands/DeleteRolePermissionsBoundaryCommand.d.ts +15 -0
  35. package/dist-types/commands/DeleteRolePolicyCommand.d.ts +31 -0
  36. package/dist-types/commands/DeleteSAMLProviderCommand.d.ts +17 -0
  37. package/dist-types/commands/DeleteSSHPublicKeyCommand.d.ts +5 -0
  38. package/dist-types/commands/DeleteServerCertificateCommand.d.ts +17 -0
  39. package/dist-types/commands/DeleteServiceLinkedRoleCommand.d.ts +13 -0
  40. package/dist-types/commands/DeleteServiceSpecificCredentialCommand.d.ts +5 -0
  41. package/dist-types/commands/DeleteSigningCertificateCommand.d.ts +25 -0
  42. package/dist-types/commands/DeleteUserCommand.d.ts +32 -0
  43. package/dist-types/commands/DeleteUserPermissionsBoundaryCommand.d.ts +9 -0
  44. package/dist-types/commands/DeleteUserPolicyCommand.d.ts +25 -0
  45. package/dist-types/commands/DeleteVirtualMFADeviceCommand.d.ts +28 -0
  46. package/dist-types/commands/DetachGroupPolicyCommand.d.ts +17 -0
  47. package/dist-types/commands/DetachRolePolicyCommand.d.ts +23 -0
  48. package/dist-types/commands/DetachUserPolicyCommand.d.ts +17 -0
  49. package/dist-types/commands/EnableMFADeviceCommand.d.ts +27 -0
  50. package/dist-types/commands/GenerateCredentialReportCommand.d.ts +9 -0
  51. package/dist-types/commands/GenerateOrganizationsAccessReportCommand.d.ts +21 -0
  52. package/dist-types/commands/GenerateServiceLastAccessedDetailsCommand.d.ts +25 -0
  53. package/dist-types/commands/GetAccessKeyLastUsedCommand.d.ts +5 -0
  54. package/dist-types/commands/GetAccountAuthorizationDetailsCommand.d.ts +5 -0
  55. package/dist-types/commands/GetAccountPasswordPolicyCommand.d.ts +34 -0
  56. package/dist-types/commands/GetAccountSummaryCommand.d.ts +46 -0
  57. package/dist-types/commands/GetContextKeysForCustomPolicyCommand.d.ts +5 -0
  58. package/dist-types/commands/GetContextKeysForPrincipalPolicyCommand.d.ts +9 -0
  59. package/dist-types/commands/GetCredentialReportCommand.d.ts +18 -0
  60. package/dist-types/commands/GetGroupCommand.d.ts +9 -0
  61. package/dist-types/commands/GetGroupPolicyCommand.d.ts +9 -0
  62. package/dist-types/commands/GetInstanceProfileCommand.d.ts +41 -0
  63. package/dist-types/commands/GetLoginProfileCommand.d.ts +28 -0
  64. package/dist-types/commands/GetOpenIDConnectProviderCommand.d.ts +13 -0
  65. package/dist-types/commands/GetOrganizationsAccessReportCommand.d.ts +49 -0
  66. package/dist-types/commands/GetPolicyCommand.d.ts +13 -0
  67. package/dist-types/commands/GetPolicyVersionCommand.d.ts +13 -0
  68. package/dist-types/commands/GetRoleCommand.d.ts +37 -0
  69. package/dist-types/commands/GetRolePolicyCommand.d.ts +9 -0
  70. package/dist-types/commands/GetSAMLProviderCommand.d.ts +13 -0
  71. package/dist-types/commands/GetSSHPublicKeyCommand.d.ts +9 -0
  72. package/dist-types/commands/GetServerCertificateCommand.d.ts +9 -0
  73. package/dist-types/commands/GetServiceLastAccessedDetailsCommand.d.ts +42 -0
  74. package/dist-types/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.d.ts +50 -0
  75. package/dist-types/commands/GetServiceLinkedRoleDeletionStatusCommand.d.ts +13 -0
  76. package/dist-types/commands/GetUserCommand.d.ts +31 -0
  77. package/dist-types/commands/GetUserPolicyCommand.d.ts +9 -0
  78. package/dist-types/commands/ListAccessKeysCommand.d.ts +38 -0
  79. package/dist-types/commands/ListAccountAliasesCommand.d.ts +21 -0
  80. package/dist-types/commands/ListAttachedGroupPoliciesCommand.d.ts +13 -0
  81. package/dist-types/commands/ListAttachedRolePoliciesCommand.d.ts +13 -0
  82. package/dist-types/commands/ListAttachedUserPoliciesCommand.d.ts +13 -0
  83. package/dist-types/commands/ListEntitiesForPolicyCommand.d.ts +13 -0
  84. package/dist-types/commands/ListGroupPoliciesCommand.d.ts +28 -0
  85. package/dist-types/commands/ListGroupsCommand.d.ts +41 -0
  86. package/dist-types/commands/ListGroupsForUserCommand.d.ts +40 -0
  87. package/dist-types/commands/ListInstanceProfileTagsCommand.d.ts +9 -0
  88. package/dist-types/commands/ListInstanceProfilesCommand.d.ts +5 -0
  89. package/dist-types/commands/ListInstanceProfilesForRoleCommand.d.ts +9 -0
  90. package/dist-types/commands/ListMFADeviceTagsCommand.d.ts +13 -0
  91. package/dist-types/commands/ListMFADevicesCommand.d.ts +9 -0
  92. package/dist-types/commands/ListOpenIDConnectProviderTagsCommand.d.ts +13 -0
  93. package/dist-types/commands/ListOpenIDConnectProvidersCommand.d.ts +5 -0
  94. package/dist-types/commands/ListPoliciesCommand.d.ts +5 -0
  95. package/dist-types/commands/ListPoliciesGrantingServiceAccessCommand.d.ts +57 -0
  96. package/dist-types/commands/ListPolicyTagsCommand.d.ts +13 -0
  97. package/dist-types/commands/ListPolicyVersionsCommand.d.ts +13 -0
  98. package/dist-types/commands/ListRolePoliciesCommand.d.ts +9 -0
  99. package/dist-types/commands/ListRoleTagsCommand.d.ts +35 -0
  100. package/dist-types/commands/ListRolesCommand.d.ts +5 -0
  101. package/dist-types/commands/ListSAMLProviderTagsCommand.d.ts +13 -0
  102. package/dist-types/commands/ListSAMLProvidersCommand.d.ts +5 -0
  103. package/dist-types/commands/ListSSHPublicKeysCommand.d.ts +5 -0
  104. package/dist-types/commands/ListServerCertificateTagsCommand.d.ts +9 -0
  105. package/dist-types/commands/ListServerCertificatesCommand.d.ts +5 -0
  106. package/dist-types/commands/ListServiceSpecificCredentialsCommand.d.ts +8 -0
  107. package/dist-types/commands/ListSigningCertificatesCommand.d.ts +33 -0
  108. package/dist-types/commands/ListUserPoliciesCommand.d.ts +9 -0
  109. package/dist-types/commands/ListUserTagsCommand.d.ts +35 -0
  110. package/dist-types/commands/ListUsersCommand.d.ts +36 -0
  111. package/dist-types/commands/ListVirtualMFADevicesCommand.d.ts +22 -0
  112. package/dist-types/commands/PutGroupPolicyCommand.d.ts +30 -0
  113. package/dist-types/commands/PutRolePermissionsBoundaryCommand.d.ts +23 -0
  114. package/dist-types/commands/PutRolePolicyCommand.d.ts +36 -0
  115. package/dist-types/commands/PutUserPermissionsBoundaryCommand.d.ts +17 -0
  116. package/dist-types/commands/PutUserPolicyCommand.d.ts +30 -0
  117. package/dist-types/commands/RemoveClientIDFromOpenIDConnectProviderCommand.d.ts +13 -0
  118. package/dist-types/commands/RemoveRoleFromInstanceProfileCommand.d.ts +31 -0
  119. package/dist-types/commands/RemoveUserFromGroupCommand.d.ts +25 -0
  120. package/dist-types/commands/ResetServiceSpecificCredentialCommand.d.ts +5 -0
  121. package/dist-types/commands/ResyncMFADeviceCommand.d.ts +17 -0
  122. package/dist-types/commands/SetDefaultPolicyVersionCommand.d.ts +17 -0
  123. package/dist-types/commands/SetSecurityTokenServicePreferencesCommand.d.ts +16 -0
  124. package/dist-types/commands/SimulateCustomPolicyCommand.d.ts +9 -0
  125. package/dist-types/commands/SimulatePrincipalPolicyCommand.d.ts +13 -0
  126. package/dist-types/commands/TagInstanceProfileCommand.d.ts +21 -0
  127. package/dist-types/commands/TagMFADeviceCommand.d.ts +21 -0
  128. package/dist-types/commands/TagOpenIDConnectProviderCommand.d.ts +21 -0
  129. package/dist-types/commands/TagPolicyCommand.d.ts +21 -0
  130. package/dist-types/commands/TagRoleCommand.d.ts +42 -0
  131. package/dist-types/commands/TagSAMLProviderCommand.d.ts +21 -0
  132. package/dist-types/commands/TagServerCertificateCommand.d.ts +21 -0
  133. package/dist-types/commands/TagUserCommand.d.ts +42 -0
  134. package/dist-types/commands/UntagInstanceProfileCommand.d.ts +17 -0
  135. package/dist-types/commands/UntagMFADeviceCommand.d.ts +17 -0
  136. package/dist-types/commands/UntagOpenIDConnectProviderCommand.d.ts +17 -0
  137. package/dist-types/commands/UntagPolicyCommand.d.ts +17 -0
  138. package/dist-types/commands/UntagRoleCommand.d.ts +27 -0
  139. package/dist-types/commands/UntagSAMLProviderCommand.d.ts +17 -0
  140. package/dist-types/commands/UntagServerCertificateCommand.d.ts +17 -0
  141. package/dist-types/commands/UntagUserCommand.d.ts +27 -0
  142. package/dist-types/commands/UpdateAccessKeyCommand.d.ts +26 -0
  143. package/dist-types/commands/UpdateAccountPasswordPolicyCommand.d.ts +29 -0
  144. package/dist-types/commands/UpdateAssumeRolePolicyCommand.d.ts +35 -0
  145. package/dist-types/commands/UpdateGroupCommand.d.ts +29 -0
  146. package/dist-types/commands/UpdateLoginProfileCommand.d.ts +35 -0
  147. package/dist-types/commands/UpdateOpenIDConnectProviderThumbprintCommand.d.ts +13 -0
  148. package/dist-types/commands/UpdateRoleCommand.d.ts +15 -0
  149. package/dist-types/commands/UpdateRoleDescriptionCommand.d.ts +15 -0
  150. package/dist-types/commands/UpdateSAMLProviderCommand.d.ts +17 -0
  151. package/dist-types/commands/UpdateSSHPublicKeyCommand.d.ts +5 -0
  152. package/dist-types/commands/UpdateServerCertificateCommand.d.ts +17 -0
  153. package/dist-types/commands/UpdateServiceSpecificCredentialCommand.d.ts +5 -0
  154. package/dist-types/commands/UpdateSigningCertificateCommand.d.ts +26 -0
  155. package/dist-types/commands/UpdateUserCommand.d.ts +39 -0
  156. package/dist-types/commands/UploadSSHPublicKeyCommand.d.ts +20 -0
  157. package/dist-types/commands/UploadServerCertificateCommand.d.ts +55 -0
  158. package/dist-types/commands/UploadSigningCertificateCommand.d.ts +51 -0
  159. package/package.json +30 -30
@@ -30,6 +30,41 @@ export interface ListUserTagsCommandOutput extends ListUserTagsResponse, __Metad
30
30
  * @see {@link ListUserTagsCommandOutput} for command's `response` shape.
31
31
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
32
32
  *
33
+ * @throws {@link NoSuchEntityException} (client fault)
34
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
35
+ * error message describes the resource.</p>
36
+ *
37
+ * @throws {@link ServiceFailureException} (server fault)
38
+ * <p>The request processing has failed because of an unknown error, exception or
39
+ * failure.</p>
40
+ *
41
+ *
42
+ * @example To list the tags attached to an IAM user
43
+ * ```javascript
44
+ * // The following example shows how to list the tags attached to a user.
45
+ * const input = {
46
+ * "UserName": "anika"
47
+ * };
48
+ * const command = new ListUserTagsCommand(input);
49
+ * const response = await client.send(command);
50
+ * /* response ==
51
+ * {
52
+ * "IsTruncated": false,
53
+ * "Tags": [
54
+ * {
55
+ * "Key": "Dept",
56
+ * "Value": "12345"
57
+ * },
58
+ * {
59
+ * "Key": "Team",
60
+ * "Value": "Accounting"
61
+ * }
62
+ * ]
63
+ * }
64
+ * *\/
65
+ * // example id: to-list-the-tags-attached-to-an-iam-user-1506719473186
66
+ * ```
67
+ *
33
68
  */
34
69
  export declare class ListUserTagsCommand extends $Command<ListUserTagsCommandInput, ListUserTagsCommandOutput, IAMClientResolvedConfig> {
35
70
  readonly input: ListUserTagsCommandInput;
@@ -37,6 +37,42 @@ export interface ListUsersCommandOutput extends ListUsersResponse, __MetadataBea
37
37
  * @see {@link ListUsersCommandOutput} for command's `response` shape.
38
38
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
39
39
  *
40
+ * @throws {@link ServiceFailureException} (server fault)
41
+ * <p>The request processing has failed because of an unknown error, exception or
42
+ * failure.</p>
43
+ *
44
+ *
45
+ * @example To list IAM users
46
+ * ```javascript
47
+ * // The following command lists the IAM users in the current account.
48
+ * const input = {};
49
+ * const command = new ListUsersCommand(input);
50
+ * const response = await client.send(command);
51
+ * /* response ==
52
+ * {
53
+ * "Users": [
54
+ * {
55
+ * "Arn": "arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/engineering/Juan",
56
+ * "CreateDate": "2012-09-05T19:38:48Z",
57
+ * "PasswordLastUsed": "2016-09-08T21:47:36Z",
58
+ * "Path": "/division_abc/subdivision_xyz/engineering/",
59
+ * "UserId": "AID2MAB8DPLSRHEXAMPLE",
60
+ * "UserName": "Juan"
61
+ * },
62
+ * {
63
+ * "Arn": "arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/engineering/Anika",
64
+ * "CreateDate": "2014-04-09T15:43:45Z",
65
+ * "PasswordLastUsed": "2016-09-24T16:18:07Z",
66
+ * "Path": "/division_abc/subdivision_xyz/engineering/",
67
+ * "UserId": "AIDIODR4TAW7CSEXAMPLE",
68
+ * "UserName": "Anika"
69
+ * }
70
+ * ]
71
+ * }
72
+ * *\/
73
+ * // example id: 9edfbd73-03d8-4d8a-9a79-76c85e8c8298
74
+ * ```
75
+ *
40
76
  */
41
77
  export declare class ListUsersCommand extends $Command<ListUsersCommandInput, ListUsersCommandOutput, IAMClientResolvedConfig> {
42
78
  readonly input: ListUsersCommandInput;
@@ -38,6 +38,28 @@ export interface ListVirtualMFADevicesCommandOutput extends ListVirtualMFADevice
38
38
  * @see {@link ListVirtualMFADevicesCommandOutput} for command's `response` shape.
39
39
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
40
40
  *
41
+ *
42
+ * @example To list virtual MFA devices
43
+ * ```javascript
44
+ * // The following command lists the virtual MFA devices that have been configured for the current account.
45
+ * const input = {};
46
+ * const command = new ListVirtualMFADevicesCommand(input);
47
+ * const response = await client.send(command);
48
+ * /* response ==
49
+ * {
50
+ * "VirtualMFADevices": [
51
+ * {
52
+ * "SerialNumber": "arn:aws:iam::123456789012:mfa/ExampleMFADevice"
53
+ * },
54
+ * {
55
+ * "SerialNumber": "arn:aws:iam::123456789012:mfa/Juan"
56
+ * }
57
+ * ]
58
+ * }
59
+ * *\/
60
+ * // example id: 54f9ac18-5100-4070-bec4-fe5f612710d5
61
+ * ```
62
+ *
41
63
  */
42
64
  export declare class ListVirtualMFADevicesCommand extends $Command<ListVirtualMFADevicesCommandInput, ListVirtualMFADevicesCommandOutput, IAMClientResolvedConfig> {
43
65
  readonly input: ListVirtualMFADevicesCommandInput;
@@ -43,6 +43,36 @@ export interface PutGroupPolicyCommandOutput extends __MetadataBearer {
43
43
  * @see {@link PutGroupPolicyCommandOutput} for command's `response` shape.
44
44
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
45
45
  *
46
+ * @throws {@link LimitExceededException} (client fault)
47
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
48
+ * account limits. The error message describes the limit exceeded.</p>
49
+ *
50
+ * @throws {@link MalformedPolicyDocumentException} (client fault)
51
+ * <p>The request was rejected because the policy document was malformed. The error message
52
+ * describes the specific error.</p>
53
+ *
54
+ * @throws {@link NoSuchEntityException} (client fault)
55
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
56
+ * error message describes the resource.</p>
57
+ *
58
+ * @throws {@link ServiceFailureException} (server fault)
59
+ * <p>The request processing has failed because of an unknown error, exception or
60
+ * failure.</p>
61
+ *
62
+ *
63
+ * @example To add a policy to a group
64
+ * ```javascript
65
+ * // The following command adds a policy named AllPerms to the IAM group named Admins.
66
+ * const input = {
67
+ * "GroupName": "Admins",
68
+ * "PolicyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"*\",\"Resource\":\"*\"}}",
69
+ * "PolicyName": "AllPerms"
70
+ * };
71
+ * const command = new PutGroupPolicyCommand(input);
72
+ * await client.send(command);
73
+ * // example id: 4bc17418-758f-4d0f-ab0c-4d00265fec2e
74
+ * ```
75
+ *
46
76
  */
47
77
  export declare class PutGroupPolicyCommand extends $Command<PutGroupPolicyCommandInput, PutGroupPolicyCommandOutput, IAMClientResolvedConfig> {
48
78
  readonly input: PutGroupPolicyCommandInput;
@@ -40,6 +40,29 @@ export interface PutRolePermissionsBoundaryCommandOutput extends __MetadataBeare
40
40
  * @see {@link PutRolePermissionsBoundaryCommandOutput} for command's `response` shape.
41
41
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
42
42
  *
43
+ * @throws {@link InvalidInputException} (client fault)
44
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
45
+ * input parameter.</p>
46
+ *
47
+ * @throws {@link NoSuchEntityException} (client fault)
48
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
49
+ * error message describes the resource.</p>
50
+ *
51
+ * @throws {@link PolicyNotAttachableException} (client fault)
52
+ * <p>The request failed because Amazon Web Services service role policies can only be attached to the
53
+ * service-linked role for that service.</p>
54
+ *
55
+ * @throws {@link ServiceFailureException} (server fault)
56
+ * <p>The request processing has failed because of an unknown error, exception or
57
+ * failure.</p>
58
+ *
59
+ * @throws {@link UnmodifiableEntityException} (client fault)
60
+ * <p>The request was rejected because only the service that depends on the service-linked role
61
+ * can modify or delete the role on your behalf. The error message includes the name of the
62
+ * service that depends on this service-linked role. You must request the change through that
63
+ * service.</p>
64
+ *
65
+ *
43
66
  */
44
67
  export declare class PutRolePermissionsBoundaryCommand extends $Command<PutRolePermissionsBoundaryCommandInput, PutRolePermissionsBoundaryCommandOutput, IAMClientResolvedConfig> {
45
68
  readonly input: PutRolePermissionsBoundaryCommandInput;
@@ -48,6 +48,42 @@ export interface PutRolePolicyCommandOutput extends __MetadataBearer {
48
48
  * @see {@link PutRolePolicyCommandOutput} for command's `response` shape.
49
49
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
50
50
  *
51
+ * @throws {@link LimitExceededException} (client fault)
52
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
53
+ * account limits. The error message describes the limit exceeded.</p>
54
+ *
55
+ * @throws {@link MalformedPolicyDocumentException} (client fault)
56
+ * <p>The request was rejected because the policy document was malformed. The error message
57
+ * describes the specific error.</p>
58
+ *
59
+ * @throws {@link NoSuchEntityException} (client fault)
60
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
61
+ * error message describes the resource.</p>
62
+ *
63
+ * @throws {@link ServiceFailureException} (server fault)
64
+ * <p>The request processing has failed because of an unknown error, exception or
65
+ * failure.</p>
66
+ *
67
+ * @throws {@link UnmodifiableEntityException} (client fault)
68
+ * <p>The request was rejected because only the service that depends on the service-linked role
69
+ * can modify or delete the role on your behalf. The error message includes the name of the
70
+ * service that depends on this service-linked role. You must request the change through that
71
+ * service.</p>
72
+ *
73
+ *
74
+ * @example To attach a permissions policy to an IAM role
75
+ * ```javascript
76
+ * // The following command adds a permissions policy to the role named Test-Role.
77
+ * const input = {
78
+ * "PolicyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"s3:*\",\"Resource\":\"*\"}}",
79
+ * "PolicyName": "S3AccessPolicy",
80
+ * "RoleName": "S3Access"
81
+ * };
82
+ * const command = new PutRolePolicyCommand(input);
83
+ * await client.send(command);
84
+ * // example id: de62fd00-46c7-4601-9e0d-71d5fbb11ecb
85
+ * ```
86
+ *
51
87
  */
52
88
  export declare class PutRolePolicyCommand extends $Command<PutRolePolicyCommandInput, PutRolePolicyCommandOutput, IAMClientResolvedConfig> {
53
89
  readonly input: PutRolePolicyCommandInput;
@@ -39,6 +39,23 @@ export interface PutUserPermissionsBoundaryCommandOutput extends __MetadataBeare
39
39
  * @see {@link PutUserPermissionsBoundaryCommandOutput} for command's `response` shape.
40
40
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
41
41
  *
42
+ * @throws {@link InvalidInputException} (client fault)
43
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
44
+ * input parameter.</p>
45
+ *
46
+ * @throws {@link NoSuchEntityException} (client fault)
47
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
48
+ * error message describes the resource.</p>
49
+ *
50
+ * @throws {@link PolicyNotAttachableException} (client fault)
51
+ * <p>The request failed because Amazon Web Services service role policies can only be attached to the
52
+ * service-linked role for that service.</p>
53
+ *
54
+ * @throws {@link ServiceFailureException} (server fault)
55
+ * <p>The request processing has failed because of an unknown error, exception or
56
+ * failure.</p>
57
+ *
58
+ *
42
59
  */
43
60
  export declare class PutUserPermissionsBoundaryCommand extends $Command<PutUserPermissionsBoundaryCommandInput, PutUserPermissionsBoundaryCommandOutput, IAMClientResolvedConfig> {
44
61
  readonly input: PutUserPermissionsBoundaryCommandInput;
@@ -43,6 +43,36 @@ export interface PutUserPolicyCommandOutput extends __MetadataBearer {
43
43
  * @see {@link PutUserPolicyCommandOutput} for command's `response` shape.
44
44
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
45
45
  *
46
+ * @throws {@link LimitExceededException} (client fault)
47
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
48
+ * account limits. The error message describes the limit exceeded.</p>
49
+ *
50
+ * @throws {@link MalformedPolicyDocumentException} (client fault)
51
+ * <p>The request was rejected because the policy document was malformed. The error message
52
+ * describes the specific error.</p>
53
+ *
54
+ * @throws {@link NoSuchEntityException} (client fault)
55
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
56
+ * error message describes the resource.</p>
57
+ *
58
+ * @throws {@link ServiceFailureException} (server fault)
59
+ * <p>The request processing has failed because of an unknown error, exception or
60
+ * failure.</p>
61
+ *
62
+ *
63
+ * @example To attach a policy to an IAM user
64
+ * ```javascript
65
+ * // The following command attaches a policy to the IAM user named Bob.
66
+ * const input = {
67
+ * "PolicyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"*\",\"Resource\":\"*\"}}",
68
+ * "PolicyName": "AllAccessPolicy",
69
+ * "UserName": "Bob"
70
+ * };
71
+ * const command = new PutUserPolicyCommand(input);
72
+ * await client.send(command);
73
+ * // example id: 2551ffc6-3576-4d39-823f-30b60bffc2c7
74
+ * ```
75
+ *
46
76
  */
47
77
  export declare class PutUserPolicyCommand extends $Command<PutUserPolicyCommandInput, PutUserPolicyCommandOutput, IAMClientResolvedConfig> {
48
78
  readonly input: PutUserPolicyCommandInput;
@@ -33,6 +33,19 @@ export interface RemoveClientIDFromOpenIDConnectProviderCommandOutput extends __
33
33
  * @see {@link RemoveClientIDFromOpenIDConnectProviderCommandOutput} for command's `response` shape.
34
34
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
35
35
  *
36
+ * @throws {@link InvalidInputException} (client fault)
37
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
38
+ * input parameter.</p>
39
+ *
40
+ * @throws {@link NoSuchEntityException} (client fault)
41
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
42
+ * error message describes the resource.</p>
43
+ *
44
+ * @throws {@link ServiceFailureException} (server fault)
45
+ * <p>The request processing has failed because of an unknown error, exception or
46
+ * failure.</p>
47
+ *
48
+ *
36
49
  */
37
50
  export declare class RemoveClientIDFromOpenIDConnectProviderCommand extends $Command<RemoveClientIDFromOpenIDConnectProviderCommandInput, RemoveClientIDFromOpenIDConnectProviderCommandOutput, IAMClientResolvedConfig> {
38
51
  readonly input: RemoveClientIDFromOpenIDConnectProviderCommandInput;
@@ -38,6 +38,37 @@ export interface RemoveRoleFromInstanceProfileCommandOutput extends __MetadataBe
38
38
  * @see {@link RemoveRoleFromInstanceProfileCommandOutput} for command's `response` shape.
39
39
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
40
40
  *
41
+ * @throws {@link LimitExceededException} (client fault)
42
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
43
+ * account limits. The error message describes the limit exceeded.</p>
44
+ *
45
+ * @throws {@link NoSuchEntityException} (client fault)
46
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
47
+ * error message describes the resource.</p>
48
+ *
49
+ * @throws {@link ServiceFailureException} (server fault)
50
+ * <p>The request processing has failed because of an unknown error, exception or
51
+ * failure.</p>
52
+ *
53
+ * @throws {@link UnmodifiableEntityException} (client fault)
54
+ * <p>The request was rejected because only the service that depends on the service-linked role
55
+ * can modify or delete the role on your behalf. The error message includes the name of the
56
+ * service that depends on this service-linked role. You must request the change through that
57
+ * service.</p>
58
+ *
59
+ *
60
+ * @example To remove a role from an instance profile
61
+ * ```javascript
62
+ * // The following command removes the role named Test-Role from the instance profile named ExampleInstanceProfile.
63
+ * const input = {
64
+ * "InstanceProfileName": "ExampleInstanceProfile",
65
+ * "RoleName": "Test-Role"
66
+ * };
67
+ * const command = new RemoveRoleFromInstanceProfileCommand(input);
68
+ * await client.send(command);
69
+ * // example id: 6d9f46f1-9f4a-4873-b403-51a85c5c627c
70
+ * ```
71
+ *
41
72
  */
42
73
  export declare class RemoveRoleFromInstanceProfileCommand extends $Command<RemoveRoleFromInstanceProfileCommandInput, RemoveRoleFromInstanceProfileCommandOutput, IAMClientResolvedConfig> {
43
74
  readonly input: RemoveRoleFromInstanceProfileCommandInput;
@@ -29,6 +29,31 @@ export interface RemoveUserFromGroupCommandOutput extends __MetadataBearer {
29
29
  * @see {@link RemoveUserFromGroupCommandOutput} for command's `response` shape.
30
30
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
31
31
  *
32
+ * @throws {@link LimitExceededException} (client fault)
33
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
34
+ * account limits. The error message describes the limit exceeded.</p>
35
+ *
36
+ * @throws {@link NoSuchEntityException} (client fault)
37
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
38
+ * error message describes the resource.</p>
39
+ *
40
+ * @throws {@link ServiceFailureException} (server fault)
41
+ * <p>The request processing has failed because of an unknown error, exception or
42
+ * failure.</p>
43
+ *
44
+ *
45
+ * @example To remove a user from an IAM group
46
+ * ```javascript
47
+ * // The following command removes the user named Bob from the IAM group named Admins.
48
+ * const input = {
49
+ * "GroupName": "Admins",
50
+ * "UserName": "Bob"
51
+ * };
52
+ * const command = new RemoveUserFromGroupCommand(input);
53
+ * await client.send(command);
54
+ * // example id: fb54d5b4-0caf-41d8-af0e-10a84413f174
55
+ * ```
56
+ *
32
57
  */
33
58
  export declare class RemoveUserFromGroupCommand extends $Command<RemoveUserFromGroupCommandInput, RemoveUserFromGroupCommandOutput, IAMClientResolvedConfig> {
34
59
  readonly input: RemoveUserFromGroupCommandInput;
@@ -32,6 +32,11 @@ export interface ResetServiceSpecificCredentialCommandOutput extends ResetServic
32
32
  * @see {@link ResetServiceSpecificCredentialCommandOutput} for command's `response` shape.
33
33
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
34
34
  *
35
+ * @throws {@link NoSuchEntityException} (client fault)
36
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
37
+ * error message describes the resource.</p>
38
+ *
39
+ *
35
40
  */
36
41
  export declare class ResetServiceSpecificCredentialCommand extends $Command<ResetServiceSpecificCredentialCommandInput, ResetServiceSpecificCredentialCommandOutput, IAMClientResolvedConfig> {
37
42
  readonly input: ResetServiceSpecificCredentialCommandInput;
@@ -32,6 +32,23 @@ export interface ResyncMFADeviceCommandOutput extends __MetadataBearer {
32
32
  * @see {@link ResyncMFADeviceCommandOutput} for command's `response` shape.
33
33
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
34
34
  *
35
+ * @throws {@link InvalidAuthenticationCodeException} (client fault)
36
+ * <p>The request was rejected because the authentication code was not recognized. The error
37
+ * message describes the specific error.</p>
38
+ *
39
+ * @throws {@link LimitExceededException} (client fault)
40
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
41
+ * account limits. The error message describes the limit exceeded.</p>
42
+ *
43
+ * @throws {@link NoSuchEntityException} (client fault)
44
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
45
+ * error message describes the resource.</p>
46
+ *
47
+ * @throws {@link ServiceFailureException} (server fault)
48
+ * <p>The request processing has failed because of an unknown error, exception or
49
+ * failure.</p>
50
+ *
51
+ *
35
52
  */
36
53
  export declare class ResyncMFADeviceCommand extends $Command<ResyncMFADeviceCommandInput, ResyncMFADeviceCommandOutput, IAMClientResolvedConfig> {
37
54
  readonly input: ResyncMFADeviceCommandInput;
@@ -34,6 +34,23 @@ export interface SetDefaultPolicyVersionCommandOutput extends __MetadataBearer {
34
34
  * @see {@link SetDefaultPolicyVersionCommandOutput} for command's `response` shape.
35
35
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
36
36
  *
37
+ * @throws {@link InvalidInputException} (client fault)
38
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
39
+ * input parameter.</p>
40
+ *
41
+ * @throws {@link LimitExceededException} (client fault)
42
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
43
+ * account limits. The error message describes the limit exceeded.</p>
44
+ *
45
+ * @throws {@link NoSuchEntityException} (client fault)
46
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
47
+ * error message describes the resource.</p>
48
+ *
49
+ * @throws {@link ServiceFailureException} (server fault)
50
+ * <p>The request processing has failed because of an unknown error, exception or
51
+ * failure.</p>
52
+ *
53
+ *
37
54
  */
38
55
  export declare class SetDefaultPolicyVersionCommand extends $Command<SetDefaultPolicyVersionCommandInput, SetDefaultPolicyVersionCommandOutput, IAMClientResolvedConfig> {
39
56
  readonly input: SetDefaultPolicyVersionCommandInput;
@@ -47,6 +47,22 @@ export interface SetSecurityTokenServicePreferencesCommandOutput extends __Metad
47
47
  * @see {@link SetSecurityTokenServicePreferencesCommandOutput} for command's `response` shape.
48
48
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
49
49
  *
50
+ * @throws {@link ServiceFailureException} (server fault)
51
+ * <p>The request processing has failed because of an unknown error, exception or
52
+ * failure.</p>
53
+ *
54
+ *
55
+ * @example To delete an access key for an IAM user
56
+ * ```javascript
57
+ * // The following command sets the STS global endpoint token to version 2. Version 2 tokens are valid in all Regions.
58
+ * const input = {
59
+ * "GlobalEndpointTokenVersion": "v2Token"
60
+ * };
61
+ * const command = new SetSecurityTokenServicePreferencesCommand(input);
62
+ * await client.send(command);
63
+ * // example id: 61a785a7-d30a-415a-ae18-ab9236e56871
64
+ * ```
65
+ *
50
66
  */
51
67
  export declare class SetSecurityTokenServicePreferencesCommand extends $Command<SetSecurityTokenServicePreferencesCommandInput, SetSecurityTokenServicePreferencesCommandOutput, IAMClientResolvedConfig> {
52
68
  readonly input: SetSecurityTokenServicePreferencesCommandInput;
@@ -52,6 +52,15 @@ export interface SimulateCustomPolicyCommandOutput extends SimulatePolicyRespons
52
52
  * @see {@link SimulateCustomPolicyCommandOutput} for command's `response` shape.
53
53
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
54
54
  *
55
+ * @throws {@link InvalidInputException} (client fault)
56
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
57
+ * input parameter.</p>
58
+ *
59
+ * @throws {@link PolicyEvaluationException} (server fault)
60
+ * <p>The request failed because a provided policy could not be successfully evaluated. An
61
+ * additional detailed message indicates the source of the failure.</p>
62
+ *
63
+ *
55
64
  */
56
65
  export declare class SimulateCustomPolicyCommand extends $Command<SimulateCustomPolicyCommandInput, SimulateCustomPolicyCommandOutput, IAMClientResolvedConfig> {
57
66
  readonly input: SimulateCustomPolicyCommandInput;
@@ -61,6 +61,19 @@ export interface SimulatePrincipalPolicyCommandOutput extends SimulatePolicyResp
61
61
  * @see {@link SimulatePrincipalPolicyCommandOutput} for command's `response` shape.
62
62
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
63
63
  *
64
+ * @throws {@link InvalidInputException} (client fault)
65
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
66
+ * input parameter.</p>
67
+ *
68
+ * @throws {@link NoSuchEntityException} (client fault)
69
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
70
+ * error message describes the resource.</p>
71
+ *
72
+ * @throws {@link PolicyEvaluationException} (server fault)
73
+ * <p>The request failed because a provided policy could not be successfully evaluated. An
74
+ * additional detailed message indicates the source of the failure.</p>
75
+ *
76
+ *
64
77
  */
65
78
  export declare class SimulatePrincipalPolicyCommand extends $Command<SimulatePrincipalPolicyCommandInput, SimulatePrincipalPolicyCommandOutput, IAMClientResolvedConfig> {
66
79
  readonly input: SimulatePrincipalPolicyCommandInput;
@@ -64,6 +64,27 @@ export interface TagInstanceProfileCommandOutput extends __MetadataBearer {
64
64
  * @see {@link TagInstanceProfileCommandOutput} for command's `response` shape.
65
65
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
66
66
  *
67
+ * @throws {@link ConcurrentModificationException} (client fault)
68
+ * <p>The request was rejected because multiple requests to change this object were submitted
69
+ * simultaneously. Wait a few minutes and submit your request again.</p>
70
+ *
71
+ * @throws {@link InvalidInputException} (client fault)
72
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
73
+ * input parameter.</p>
74
+ *
75
+ * @throws {@link LimitExceededException} (client fault)
76
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
77
+ * account limits. The error message describes the limit exceeded.</p>
78
+ *
79
+ * @throws {@link NoSuchEntityException} (client fault)
80
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
81
+ * error message describes the resource.</p>
82
+ *
83
+ * @throws {@link ServiceFailureException} (server fault)
84
+ * <p>The request processing has failed because of an unknown error, exception or
85
+ * failure.</p>
86
+ *
87
+ *
67
88
  */
68
89
  export declare class TagInstanceProfileCommand extends $Command<TagInstanceProfileCommandInput, TagInstanceProfileCommandOutput, IAMClientResolvedConfig> {
69
90
  readonly input: TagInstanceProfileCommandInput;
@@ -65,6 +65,27 @@ export interface TagMFADeviceCommandOutput extends __MetadataBearer {
65
65
  * @see {@link TagMFADeviceCommandOutput} for command's `response` shape.
66
66
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
67
67
  *
68
+ * @throws {@link ConcurrentModificationException} (client fault)
69
+ * <p>The request was rejected because multiple requests to change this object were submitted
70
+ * simultaneously. Wait a few minutes and submit your request again.</p>
71
+ *
72
+ * @throws {@link InvalidInputException} (client fault)
73
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
74
+ * input parameter.</p>
75
+ *
76
+ * @throws {@link LimitExceededException} (client fault)
77
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
78
+ * account limits. The error message describes the limit exceeded.</p>
79
+ *
80
+ * @throws {@link NoSuchEntityException} (client fault)
81
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
82
+ * error message describes the resource.</p>
83
+ *
84
+ * @throws {@link ServiceFailureException} (server fault)
85
+ * <p>The request processing has failed because of an unknown error, exception or
86
+ * failure.</p>
87
+ *
88
+ *
68
89
  */
69
90
  export declare class TagMFADeviceCommand extends $Command<TagMFADeviceCommandInput, TagMFADeviceCommandOutput, IAMClientResolvedConfig> {
70
91
  readonly input: TagMFADeviceCommandInput;
@@ -66,6 +66,27 @@ export interface TagOpenIDConnectProviderCommandOutput extends __MetadataBearer
66
66
  * @see {@link TagOpenIDConnectProviderCommandOutput} for command's `response` shape.
67
67
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
68
68
  *
69
+ * @throws {@link ConcurrentModificationException} (client fault)
70
+ * <p>The request was rejected because multiple requests to change this object were submitted
71
+ * simultaneously. Wait a few minutes and submit your request again.</p>
72
+ *
73
+ * @throws {@link InvalidInputException} (client fault)
74
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
75
+ * input parameter.</p>
76
+ *
77
+ * @throws {@link LimitExceededException} (client fault)
78
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
79
+ * account limits. The error message describes the limit exceeded.</p>
80
+ *
81
+ * @throws {@link NoSuchEntityException} (client fault)
82
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
83
+ * error message describes the resource.</p>
84
+ *
85
+ * @throws {@link ServiceFailureException} (server fault)
86
+ * <p>The request processing has failed because of an unknown error, exception or
87
+ * failure.</p>
88
+ *
89
+ *
69
90
  */
70
91
  export declare class TagOpenIDConnectProviderCommand extends $Command<TagOpenIDConnectProviderCommandInput, TagOpenIDConnectProviderCommandOutput, IAMClientResolvedConfig> {
71
92
  readonly input: TagOpenIDConnectProviderCommandInput;
@@ -64,6 +64,27 @@ export interface TagPolicyCommandOutput extends __MetadataBearer {
64
64
  * @see {@link TagPolicyCommandOutput} for command's `response` shape.
65
65
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
66
66
  *
67
+ * @throws {@link ConcurrentModificationException} (client fault)
68
+ * <p>The request was rejected because multiple requests to change this object were submitted
69
+ * simultaneously. Wait a few minutes and submit your request again.</p>
70
+ *
71
+ * @throws {@link InvalidInputException} (client fault)
72
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
73
+ * input parameter.</p>
74
+ *
75
+ * @throws {@link LimitExceededException} (client fault)
76
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
77
+ * account limits. The error message describes the limit exceeded.</p>
78
+ *
79
+ * @throws {@link NoSuchEntityException} (client fault)
80
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
81
+ * error message describes the resource.</p>
82
+ *
83
+ * @throws {@link ServiceFailureException} (server fault)
84
+ * <p>The request processing has failed because of an unknown error, exception or
85
+ * failure.</p>
86
+ *
87
+ *
67
88
  */
68
89
  export declare class TagPolicyCommand extends $Command<TagPolicyCommandInput, TagPolicyCommandOutput, IAMClientResolvedConfig> {
69
90
  readonly input: TagPolicyCommandInput;