@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
@@ -32,6 +32,35 @@ export interface AddClientIDToOpenIDConnectProviderCommandOutput extends __Metad
32
32
  * @see {@link AddClientIDToOpenIDConnectProviderCommandOutput} for command's `response` shape.
33
33
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
34
34
  *
35
+ * @throws {@link InvalidInputException} (client fault)
36
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
37
+ * input parameter.</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
+ *
52
+ * @example To add a client ID (audience) to an Open-ID Connect (OIDC) provider
53
+ * ```javascript
54
+ * // 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:
55
+ * const input = {
56
+ * "ClientID": "my-application-ID",
57
+ * "OpenIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/server.example.com"
58
+ * };
59
+ * const command = new AddClientIDToOpenIDConnectProviderCommand(input);
60
+ * await client.send(command);
61
+ * // example id: 028e91f4-e2a6-4d59-9e3b-4965a3fb19be
62
+ * ```
63
+ *
35
64
  */
36
65
  export declare class AddClientIDToOpenIDConnectProviderCommand extends $Command<AddClientIDToOpenIDConnectProviderCommandInput, AddClientIDToOpenIDConnectProviderCommandOutput, IAMClientResolvedConfig> {
37
66
  readonly input: AddClientIDToOpenIDConnectProviderCommandInput;
@@ -41,6 +41,41 @@ export interface AddRoleToInstanceProfileCommandOutput extends __MetadataBearer
41
41
  * @see {@link AddRoleToInstanceProfileCommandOutput} for command's `response` shape.
42
42
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
43
43
  *
44
+ * @throws {@link EntityAlreadyExistsException} (client fault)
45
+ * <p>The request was rejected because it attempted to create a resource that already
46
+ * exists.</p>
47
+ *
48
+ * @throws {@link LimitExceededException} (client fault)
49
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
50
+ * account limits. The error message describes the limit exceeded.</p>
51
+ *
52
+ * @throws {@link NoSuchEntityException} (client fault)
53
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
54
+ * error message describes the resource.</p>
55
+ *
56
+ * @throws {@link ServiceFailureException} (server fault)
57
+ * <p>The request processing has failed because of an unknown error, exception or
58
+ * failure.</p>
59
+ *
60
+ * @throws {@link UnmodifiableEntityException} (client fault)
61
+ * <p>The request was rejected because only the service that depends on the service-linked role
62
+ * can modify or delete the role on your behalf. The error message includes the name of the
63
+ * service that depends on this service-linked role. You must request the change through that
64
+ * service.</p>
65
+ *
66
+ *
67
+ * @example To add a role to an instance profile
68
+ * ```javascript
69
+ * // The following command adds the role named S3Access to the instance profile named Webserver:
70
+ * const input = {
71
+ * "InstanceProfileName": "Webserver",
72
+ * "RoleName": "S3Access"
73
+ * };
74
+ * const command = new AddRoleToInstanceProfileCommand(input);
75
+ * await client.send(command);
76
+ * // example id: c107fac3-edb6-4827-8a71-8863ec91c81f
77
+ * ```
78
+ *
44
79
  */
45
80
  export declare class AddRoleToInstanceProfileCommand extends $Command<AddRoleToInstanceProfileCommandInput, AddRoleToInstanceProfileCommandOutput, IAMClientResolvedConfig> {
46
81
  readonly input: AddRoleToInstanceProfileCommandInput;
@@ -29,6 +29,31 @@ export interface AddUserToGroupCommandOutput extends __MetadataBearer {
29
29
  * @see {@link AddUserToGroupCommandOutput} 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 add a user to an IAM group
46
+ * ```javascript
47
+ * // The following command adds an IAM user named Bob to the IAM group named Admins:
48
+ * const input = {
49
+ * "GroupName": "Admins",
50
+ * "UserName": "Bob"
51
+ * };
52
+ * const command = new AddUserToGroupCommand(input);
53
+ * await client.send(command);
54
+ * // example id: 619c7e6b-09f8-4036-857b-51a6ea5027ca
55
+ * ```
56
+ *
32
57
  */
33
58
  export declare class AddUserToGroupCommand extends $Command<AddUserToGroupCommandInput, AddUserToGroupCommandOutput, IAMClientResolvedConfig> {
34
59
  readonly input: AddUserToGroupCommandInput;
@@ -36,6 +36,39 @@ export interface AttachGroupPolicyCommandOutput extends __MetadataBearer {
36
36
  * @see {@link AttachGroupPolicyCommandOutput} for command's `response` shape.
37
37
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
38
38
  *
39
+ * @throws {@link InvalidInputException} (client fault)
40
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
41
+ * input parameter.</p>
42
+ *
43
+ * @throws {@link LimitExceededException} (client fault)
44
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
45
+ * account limits. The error message describes the limit exceeded.</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
+ *
60
+ * @example To attach a managed policy to an IAM group
61
+ * ```javascript
62
+ * // The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM group named Finance.
63
+ * const input = {
64
+ * "GroupName": "Finance",
65
+ * "PolicyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess"
66
+ * };
67
+ * const command = new AttachGroupPolicyCommand(input);
68
+ * await client.send(command);
69
+ * // example id: 87551489-86f0-45db-9889-759936778f2b
70
+ * ```
71
+ *
39
72
  */
40
73
  export declare class AttachGroupPolicyCommand extends $Command<AttachGroupPolicyCommandInput, AttachGroupPolicyCommandOutput, IAMClientResolvedConfig> {
41
74
  readonly input: AttachGroupPolicyCommandInput;
@@ -43,6 +43,45 @@ export interface AttachRolePolicyCommandOutput extends __MetadataBearer {
43
43
  * @see {@link AttachRolePolicyCommandOutput} for command's `response` shape.
44
44
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
45
45
  *
46
+ * @throws {@link InvalidInputException} (client fault)
47
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
48
+ * input parameter.</p>
49
+ *
50
+ * @throws {@link LimitExceededException} (client fault)
51
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
52
+ * account limits. The error message describes the limit exceeded.</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 PolicyNotAttachableException} (client fault)
59
+ * <p>The request failed because Amazon Web Services service role policies can only be attached to the
60
+ * service-linked role for that service.</p>
61
+ *
62
+ * @throws {@link ServiceFailureException} (server fault)
63
+ * <p>The request processing has failed because of an unknown error, exception or
64
+ * failure.</p>
65
+ *
66
+ * @throws {@link UnmodifiableEntityException} (client fault)
67
+ * <p>The request was rejected because only the service that depends on the service-linked role
68
+ * can modify or delete the role on your behalf. The error message includes the name of the
69
+ * service that depends on this service-linked role. You must request the change through that
70
+ * service.</p>
71
+ *
72
+ *
73
+ * @example To attach a managed policy to an IAM role
74
+ * ```javascript
75
+ * // The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM role named ReadOnlyRole.
76
+ * const input = {
77
+ * "PolicyArn": "arn:aws:iam::aws:policy/ReadOnlyAccess",
78
+ * "RoleName": "ReadOnlyRole"
79
+ * };
80
+ * const command = new AttachRolePolicyCommand(input);
81
+ * await client.send(command);
82
+ * // example id: 3e1b8c7c-99c8-4fc4-a20c-131fe3f22c7e
83
+ * ```
84
+ *
46
85
  */
47
86
  export declare class AttachRolePolicyCommand extends $Command<AttachRolePolicyCommandInput, AttachRolePolicyCommandOutput, IAMClientResolvedConfig> {
48
87
  readonly input: AttachRolePolicyCommandInput;
@@ -36,6 +36,39 @@ export interface AttachUserPolicyCommandOutput extends __MetadataBearer {
36
36
  * @see {@link AttachUserPolicyCommandOutput} for command's `response` shape.
37
37
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
38
38
  *
39
+ * @throws {@link InvalidInputException} (client fault)
40
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
41
+ * input parameter.</p>
42
+ *
43
+ * @throws {@link LimitExceededException} (client fault)
44
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
45
+ * account limits. The error message describes the limit exceeded.</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
+ *
60
+ * @example To attach a managed policy to an IAM user
61
+ * ```javascript
62
+ * // The following command attaches the AWS managed policy named AdministratorAccess to the IAM user named Alice.
63
+ * const input = {
64
+ * "PolicyArn": "arn:aws:iam::aws:policy/AdministratorAccess",
65
+ * "UserName": "Alice"
66
+ * };
67
+ * const command = new AttachUserPolicyCommand(input);
68
+ * await client.send(command);
69
+ * // example id: 1372ebd8-9475-4b1a-a479-23b6fd4b8b3e
70
+ * ```
71
+ *
39
72
  */
40
73
  export declare class AttachUserPolicyCommand extends $Command<AttachUserPolicyCommandInput, AttachUserPolicyCommandOutput, IAMClientResolvedConfig> {
41
74
  readonly input: AttachUserPolicyCommandInput;
@@ -36,6 +36,45 @@ export interface ChangePasswordCommandOutput extends __MetadataBearer {
36
36
  * @see {@link ChangePasswordCommandOutput} for command's `response` shape.
37
37
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
38
38
  *
39
+ * @throws {@link EntityTemporarilyUnmodifiableException} (client fault)
40
+ * <p>The request was rejected because it referenced an entity that is temporarily unmodifiable,
41
+ * such as a user name that was deleted and then recreated. The error indicates that the request
42
+ * is likely to succeed if you try again after waiting several minutes. The error message
43
+ * describes the entity.</p>
44
+ *
45
+ * @throws {@link InvalidUserTypeException} (client fault)
46
+ * <p>The request was rejected because the type of user for the transaction was
47
+ * incorrect.</p>
48
+ *
49
+ * @throws {@link LimitExceededException} (client fault)
50
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
51
+ * account limits. The error message describes the limit exceeded.</p>
52
+ *
53
+ * @throws {@link NoSuchEntityException} (client fault)
54
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
55
+ * error message describes the resource.</p>
56
+ *
57
+ * @throws {@link PasswordPolicyViolationException} (client fault)
58
+ * <p>The request was rejected because the provided password did not meet the requirements
59
+ * imposed by the account password policy.</p>
60
+ *
61
+ * @throws {@link ServiceFailureException} (server fault)
62
+ * <p>The request processing has failed because of an unknown error, exception or
63
+ * failure.</p>
64
+ *
65
+ *
66
+ * @example To change the password for your IAM user
67
+ * ```javascript
68
+ * // The following command changes the password for the current IAM user.
69
+ * const input = {
70
+ * "NewPassword": "]35d/{pB9Fo9wJ",
71
+ * "OldPassword": "3s0K_;xh4~8XXI"
72
+ * };
73
+ * const command = new ChangePasswordCommand(input);
74
+ * await client.send(command);
75
+ * // example id: 3a80c66f-bffb-46df-947c-1e8fa583b470
76
+ * ```
77
+ *
39
78
  */
40
79
  export declare class ChangePasswordCommand extends $Command<ChangePasswordCommandInput, ChangePasswordCommandOutput, IAMClientResolvedConfig> {
41
80
  readonly input: ChangePasswordCommandInput;
@@ -42,6 +42,41 @@ export interface CreateAccessKeyCommandOutput extends CreateAccessKeyResponse, _
42
42
  * @see {@link CreateAccessKeyCommandOutput} for command's `response` shape.
43
43
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
44
44
  *
45
+ * @throws {@link LimitExceededException} (client fault)
46
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
47
+ * account limits. The error message describes the limit exceeded.</p>
48
+ *
49
+ * @throws {@link NoSuchEntityException} (client fault)
50
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
51
+ * error message describes the resource.</p>
52
+ *
53
+ * @throws {@link ServiceFailureException} (server fault)
54
+ * <p>The request processing has failed because of an unknown error, exception or
55
+ * failure.</p>
56
+ *
57
+ *
58
+ * @example To create an access key for an IAM user
59
+ * ```javascript
60
+ * // The following command creates an access key (access key ID and secret access key) for the IAM user named Bob.
61
+ * const input = {
62
+ * "UserName": "Bob"
63
+ * };
64
+ * const command = new CreateAccessKeyCommand(input);
65
+ * const response = await client.send(command);
66
+ * /* response ==
67
+ * {
68
+ * "AccessKey": {
69
+ * "AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
70
+ * "CreateDate": "2015-03-09T18:39:23.411Z",
71
+ * "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
72
+ * "Status": "Active",
73
+ * "UserName": "Bob"
74
+ * }
75
+ * }
76
+ * *\/
77
+ * // example id: 1fbb3211-4cf2-41db-8c20-ba58d9f5802d
78
+ * ```
79
+ *
45
80
  */
46
81
  export declare class CreateAccessKeyCommand extends $Command<CreateAccessKeyCommandInput, CreateAccessKeyCommandOutput, IAMClientResolvedConfig> {
47
82
  readonly input: CreateAccessKeyCommandInput;
@@ -32,6 +32,30 @@ export interface CreateAccountAliasCommandOutput extends __MetadataBearer {
32
32
  * @see {@link CreateAccountAliasCommandOutput} for command's `response` shape.
33
33
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
34
34
  *
35
+ * @throws {@link EntityAlreadyExistsException} (client fault)
36
+ * <p>The request was rejected because it attempted to create a resource that already
37
+ * exists.</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 ServiceFailureException} (server fault)
44
+ * <p>The request processing has failed because of an unknown error, exception or
45
+ * failure.</p>
46
+ *
47
+ *
48
+ * @example To create an account alias
49
+ * ```javascript
50
+ * // The following command associates the alias examplecorp to your AWS account.
51
+ * const input = {
52
+ * "AccountAlias": "examplecorp"
53
+ * };
54
+ * const command = new CreateAccountAliasCommand(input);
55
+ * await client.send(command);
56
+ * // example id: 5adaf6fb-94fc-4ca2-b825-2fbc2062add1
57
+ * ```
58
+ *
35
59
  */
36
60
  export declare class CreateAccountAliasCommand extends $Command<CreateAccountAliasCommandInput, CreateAccountAliasCommandOutput, IAMClientResolvedConfig> {
37
61
  readonly input: CreateAccountAliasCommandInput;
@@ -31,6 +31,45 @@ export interface CreateGroupCommandOutput extends CreateGroupResponse, __Metadat
31
31
  * @see {@link CreateGroupCommandOutput} for command's `response` shape.
32
32
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
33
33
  *
34
+ * @throws {@link EntityAlreadyExistsException} (client fault)
35
+ * <p>The request was rejected because it attempted to create a resource that already
36
+ * exists.</p>
37
+ *
38
+ * @throws {@link LimitExceededException} (client fault)
39
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
40
+ * account limits. The error message describes the limit exceeded.</p>
41
+ *
42
+ * @throws {@link NoSuchEntityException} (client fault)
43
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
44
+ * error message describes the resource.</p>
45
+ *
46
+ * @throws {@link ServiceFailureException} (server fault)
47
+ * <p>The request processing has failed because of an unknown error, exception or
48
+ * failure.</p>
49
+ *
50
+ *
51
+ * @example To create an IAM group
52
+ * ```javascript
53
+ * // The following command creates an IAM group named Admins.
54
+ * const input = {
55
+ * "GroupName": "Admins"
56
+ * };
57
+ * const command = new CreateGroupCommand(input);
58
+ * const response = await client.send(command);
59
+ * /* response ==
60
+ * {
61
+ * "Group": {
62
+ * "Arn": "arn:aws:iam::123456789012:group/Admins",
63
+ * "CreateDate": "2015-03-09T20:30:24.940Z",
64
+ * "GroupId": "AIDGPMS9RO4H3FEXAMPLE",
65
+ * "GroupName": "Admins",
66
+ * "Path": "/"
67
+ * }
68
+ * }
69
+ * *\/
70
+ * // example id: d5da2a90-5e69-4ef7-8ae8-4c33dc21fd21
71
+ * ```
72
+ *
34
73
  */
35
74
  export declare class CreateGroupCommand extends $Command<CreateGroupCommandInput, CreateGroupCommandOutput, IAMClientResolvedConfig> {
36
75
  readonly input: CreateGroupCommandInput;
@@ -33,6 +33,50 @@ export interface CreateInstanceProfileCommandOutput extends CreateInstanceProfil
33
33
  * @see {@link CreateInstanceProfileCommandOutput} for command's `response` shape.
34
34
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
35
35
  *
36
+ * @throws {@link ConcurrentModificationException} (client fault)
37
+ * <p>The request was rejected because multiple requests to change this object were submitted
38
+ * simultaneously. Wait a few minutes and submit your request again.</p>
39
+ *
40
+ * @throws {@link EntityAlreadyExistsException} (client fault)
41
+ * <p>The request was rejected because it attempted to create a resource that already
42
+ * exists.</p>
43
+ *
44
+ * @throws {@link InvalidInputException} (client fault)
45
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
46
+ * input parameter.</p>
47
+ *
48
+ * @throws {@link LimitExceededException} (client fault)
49
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
50
+ * account limits. The error message describes the limit exceeded.</p>
51
+ *
52
+ * @throws {@link ServiceFailureException} (server fault)
53
+ * <p>The request processing has failed because of an unknown error, exception or
54
+ * failure.</p>
55
+ *
56
+ *
57
+ * @example To create an instance profile
58
+ * ```javascript
59
+ * // 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.
60
+ * const input = {
61
+ * "InstanceProfileName": "Webserver"
62
+ * };
63
+ * const command = new CreateInstanceProfileCommand(input);
64
+ * const response = await client.send(command);
65
+ * /* response ==
66
+ * {
67
+ * "InstanceProfile": {
68
+ * "Arn": "arn:aws:iam::123456789012:instance-profile/Webserver",
69
+ * "CreateDate": "2015-03-09T20:33:19.626Z",
70
+ * "InstanceProfileId": "AIPAJMBYC7DLSPEXAMPLE",
71
+ * "InstanceProfileName": "Webserver",
72
+ * "Path": "/",
73
+ * "Roles": []
74
+ * }
75
+ * }
76
+ * *\/
77
+ * // example id: 5d84e6ae-5921-4e39-8454-10232cd9ff9a
78
+ * ```
79
+ *
36
80
  */
37
81
  export declare class CreateInstanceProfileCommand extends $Command<CreateInstanceProfileCommandInput, CreateInstanceProfileCommandOutput, IAMClientResolvedConfig> {
38
82
  readonly input: CreateInstanceProfileCommandInput;
@@ -34,6 +34,49 @@ export interface CreateLoginProfileCommandOutput extends CreateLoginProfileRespo
34
34
  * @see {@link CreateLoginProfileCommandOutput} for command's `response` shape.
35
35
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
36
36
  *
37
+ * @throws {@link EntityAlreadyExistsException} (client fault)
38
+ * <p>The request was rejected because it attempted to create a resource that already
39
+ * exists.</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 PasswordPolicyViolationException} (client fault)
50
+ * <p>The request was rejected because the provided password did not meet the requirements
51
+ * imposed by the account password policy.</p>
52
+ *
53
+ * @throws {@link ServiceFailureException} (server fault)
54
+ * <p>The request processing has failed because of an unknown error, exception or
55
+ * failure.</p>
56
+ *
57
+ *
58
+ * @example To create an instance profile
59
+ * ```javascript
60
+ * // 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.
61
+ * const input = {
62
+ * "Password": "h]6EszR}vJ*m",
63
+ * "PasswordResetRequired": true,
64
+ * "UserName": "Bob"
65
+ * };
66
+ * const command = new CreateLoginProfileCommand(input);
67
+ * const response = await client.send(command);
68
+ * /* response ==
69
+ * {
70
+ * "LoginProfile": {
71
+ * "CreateDate": "2015-03-10T20:55:40.274Z",
72
+ * "PasswordResetRequired": true,
73
+ * "UserName": "Bob"
74
+ * }
75
+ * }
76
+ * *\/
77
+ * // example id: c63795bc-3444-40b3-89df-83c474ef88be
78
+ * ```
79
+ *
37
80
  */
38
81
  export declare class CreateLoginProfileCommand extends $Command<CreateLoginProfileCommandInput, CreateLoginProfileCommandOutput, IAMClientResolvedConfig> {
39
82
  readonly input: CreateLoginProfileCommandInput;
@@ -67,6 +67,49 @@ export interface CreateOpenIDConnectProviderCommandOutput extends CreateOpenIDCo
67
67
  * @see {@link CreateOpenIDConnectProviderCommandOutput} for command's `response` shape.
68
68
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
69
69
  *
70
+ * @throws {@link ConcurrentModificationException} (client fault)
71
+ * <p>The request was rejected because multiple requests to change this object were submitted
72
+ * simultaneously. Wait a few minutes and submit your request again.</p>
73
+ *
74
+ * @throws {@link EntityAlreadyExistsException} (client fault)
75
+ * <p>The request was rejected because it attempted to create a resource that already
76
+ * exists.</p>
77
+ *
78
+ * @throws {@link InvalidInputException} (client fault)
79
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
80
+ * input parameter.</p>
81
+ *
82
+ * @throws {@link LimitExceededException} (client fault)
83
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
84
+ * account limits. The error message describes the limit exceeded.</p>
85
+ *
86
+ * @throws {@link ServiceFailureException} (server fault)
87
+ * <p>The request processing has failed because of an unknown error, exception or
88
+ * failure.</p>
89
+ *
90
+ *
91
+ * @example To create an instance profile
92
+ * ```javascript
93
+ * // The following example defines a new OIDC provider in IAM with a client ID of my-application-id and pointing at the server with a URL of https://server.example.com.
94
+ * const input = {
95
+ * "ClientIDList": [
96
+ * "my-application-id"
97
+ * ],
98
+ * "ThumbprintList": [
99
+ * "3768084dfb3d2b68b7897bf5f565da8efEXAMPLE"
100
+ * ],
101
+ * "Url": "https://server.example.com"
102
+ * };
103
+ * const command = new CreateOpenIDConnectProviderCommand(input);
104
+ * const response = await client.send(command);
105
+ * /* response ==
106
+ * {
107
+ * "OpenIDConnectProviderArn": "arn:aws:iam::123456789012:oidc-provider/server.example.com"
108
+ * }
109
+ * *\/
110
+ * // example id: 4e4a6bff-cc97-4406-922e-0ab4a82cdb63
111
+ * ```
112
+ *
70
113
  */
71
114
  export declare class CreateOpenIDConnectProviderCommand extends $Command<CreateOpenIDConnectProviderCommandInput, CreateOpenIDConnectProviderCommandOutput, IAMClientResolvedConfig> {
72
115
  readonly input: CreateOpenIDConnectProviderCommandInput;
@@ -39,6 +39,31 @@ export interface CreatePolicyCommandOutput extends CreatePolicyResponse, __Metad
39
39
  * @see {@link CreatePolicyCommandOutput} for command's `response` shape.
40
40
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
41
41
  *
42
+ * @throws {@link ConcurrentModificationException} (client fault)
43
+ * <p>The request was rejected because multiple requests to change this object were submitted
44
+ * simultaneously. Wait a few minutes and submit your request again.</p>
45
+ *
46
+ * @throws {@link EntityAlreadyExistsException} (client fault)
47
+ * <p>The request was rejected because it attempted to create a resource that already
48
+ * exists.</p>
49
+ *
50
+ * @throws {@link InvalidInputException} (client fault)
51
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
52
+ * input parameter.</p>
53
+ *
54
+ * @throws {@link LimitExceededException} (client fault)
55
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
56
+ * account limits. The error message describes the limit exceeded.</p>
57
+ *
58
+ * @throws {@link MalformedPolicyDocumentException} (client fault)
59
+ * <p>The request was rejected because the policy document was malformed. The error message
60
+ * describes the specific error.</p>
61
+ *
62
+ * @throws {@link ServiceFailureException} (server fault)
63
+ * <p>The request processing has failed because of an unknown error, exception or
64
+ * failure.</p>
65
+ *
66
+ *
42
67
  */
43
68
  export declare class CreatePolicyCommand extends $Command<CreatePolicyCommandInput, CreatePolicyCommandOutput, IAMClientResolvedConfig> {
44
69
  readonly input: CreatePolicyCommandInput;
@@ -36,6 +36,27 @@ export interface CreatePolicyVersionCommandOutput extends CreatePolicyVersionRes
36
36
  * @see {@link CreatePolicyVersionCommandOutput} for command's `response` shape.
37
37
  * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
38
38
  *
39
+ * @throws {@link InvalidInputException} (client fault)
40
+ * <p>The request was rejected because an invalid or out-of-range value was supplied for an
41
+ * input parameter.</p>
42
+ *
43
+ * @throws {@link LimitExceededException} (client fault)
44
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
45
+ * account limits. The error message describes the limit exceeded.</p>
46
+ *
47
+ * @throws {@link MalformedPolicyDocumentException} (client fault)
48
+ * <p>The request was rejected because the policy document was malformed. The error message
49
+ * describes the specific error.</p>
50
+ *
51
+ * @throws {@link NoSuchEntityException} (client fault)
52
+ * <p>The request was rejected because it referenced a resource entity that does not exist. The
53
+ * error message describes the resource.</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
+ *
39
60
  */
40
61
  export declare class CreatePolicyVersionCommand extends $Command<CreatePolicyVersionCommandInput, CreatePolicyVersionCommandOutput, IAMClientResolvedConfig> {
41
62
  readonly input: CreatePolicyVersionCommandInput;