public class AmazonIdentityManagementAsyncClient extends AmazonIdentityManagementClient implements AmazonIdentityManagementAsync
AWS Identity and Access Management (IAM) is a web service that you can use to manage users and user permissions under your AWS account. This guide provides descriptions of IAM actions that you can call programmatically. For general information about IAM, see AWS Identity and Access Management (IAM) . For the user guide for IAM, see Using IAM .
NOTE:AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to IAM and AWS. For example, the SDKs take care of tasks such as cryptographically signing requests (see below), managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page.
We recommend that you use the AWS SDKs to make programmatic API calls to IAM. However, you can also use the IAM Query API to make direct calls to the IAM web service. To learn more about the IAM Query API, see Making Query Requests in the Using IAM guide. IAM supports GET and POST requests for all actions. That is, the API does not require you to use GET for some actions and POST for others. However, GET requests are subject to the limitation size of a URL. Therefore, for operations that require larger sizes, use a POST request.
Signing Requests
Requests must be signed using an access key ID and a secret access key. We strongly recommend that you do not use your AWS account access key ID and secret access key for everyday work with IAM. You can use the access key ID and secret access key for an IAM user or you can use the AWS Security Token Service to generate temporary security credentials and use those to sign requests.
To sign requests, we recommend that you use Signature Version 4 . If you have an existing application that uses Signature Version 2, you do not have to update it to use Signature Version 4. However, some operations now require Signature Version 4. The documentation for operations that require version 4 indicate this requirement.
Additional Resources
For more information, see the following:
exceptionUnmarshallers
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AmazonIdentityManagementAsyncClient()
Constructs a new asynchronous client to invoke service methods on
AmazonIdentityManagement.
|
AmazonIdentityManagementAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
AmazonIdentityManagement using the specified AWS account credentials.
|
AmazonIdentityManagementAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonIdentityManagement using the specified AWS account credentials,
executor service, and client configuration options.
|
AmazonIdentityManagementAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonIdentityManagement using the specified AWS account credentials
and executor service.
|
AmazonIdentityManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
AmazonIdentityManagement using the specified AWS account credentials provider.
|
AmazonIdentityManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonIdentityManagement using the specified AWS account credentials
provider and client configuration options.
|
AmazonIdentityManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonIdentityManagement using the specified AWS account credentials
provider, executor service, and client configuration options.
|
AmazonIdentityManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonIdentityManagement using the specified AWS account credentials provider
and executor service.
|
AmazonIdentityManagementAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonIdentityManagement.
|
Modifier and Type | Method and Description |
---|---|
Future<Void> |
addClientIDToOpenIDConnectProviderAsync(AddClientIDToOpenIDConnectProviderRequest addClientIDToOpenIDConnectProviderRequest)
Adds a new client ID (also known as audience) to the list of client
IDs already registered for the specified IAM OpenID Connect provider.
|
Future<Void> |
addClientIDToOpenIDConnectProviderAsync(AddClientIDToOpenIDConnectProviderRequest addClientIDToOpenIDConnectProviderRequest,
AsyncHandler<AddClientIDToOpenIDConnectProviderRequest,Void> asyncHandler)
Adds a new client ID (also known as audience) to the list of client
IDs already registered for the specified IAM OpenID Connect provider.
|
Future<Void> |
addRoleToInstanceProfileAsync(AddRoleToInstanceProfileRequest addRoleToInstanceProfileRequest)
Adds the specified role to the specified instance profile.
|
Future<Void> |
addRoleToInstanceProfileAsync(AddRoleToInstanceProfileRequest addRoleToInstanceProfileRequest,
AsyncHandler<AddRoleToInstanceProfileRequest,Void> asyncHandler)
Adds the specified role to the specified instance profile.
|
Future<Void> |
addUserToGroupAsync(AddUserToGroupRequest addUserToGroupRequest)
Adds the specified user to the specified group.
|
Future<Void> |
addUserToGroupAsync(AddUserToGroupRequest addUserToGroupRequest,
AsyncHandler<AddUserToGroupRequest,Void> asyncHandler)
Adds the specified user to the specified group.
|
Future<Void> |
attachGroupPolicyAsync(AttachGroupPolicyRequest attachGroupPolicyRequest)
Attaches the specified managed policy to the specified group.
|
Future<Void> |
attachGroupPolicyAsync(AttachGroupPolicyRequest attachGroupPolicyRequest,
AsyncHandler<AttachGroupPolicyRequest,Void> asyncHandler)
Attaches the specified managed policy to the specified group.
|
Future<Void> |
attachRolePolicyAsync(AttachRolePolicyRequest attachRolePolicyRequest)
Attaches the specified managed policy to the specified role.
|
Future<Void> |
attachRolePolicyAsync(AttachRolePolicyRequest attachRolePolicyRequest,
AsyncHandler<AttachRolePolicyRequest,Void> asyncHandler)
Attaches the specified managed policy to the specified role.
|
Future<Void> |
attachUserPolicyAsync(AttachUserPolicyRequest attachUserPolicyRequest)
Attaches the specified managed policy to the specified user.
|
Future<Void> |
attachUserPolicyAsync(AttachUserPolicyRequest attachUserPolicyRequest,
AsyncHandler<AttachUserPolicyRequest,Void> asyncHandler)
Attaches the specified managed policy to the specified user.
|
Future<Void> |
changePasswordAsync(ChangePasswordRequest changePasswordRequest)
Changes the password of the IAM user who is calling this action.
|
Future<Void> |
changePasswordAsync(ChangePasswordRequest changePasswordRequest,
AsyncHandler<ChangePasswordRequest,Void> asyncHandler)
Changes the password of the IAM user who is calling this action.
|
Future<CreateAccessKeyResult> |
createAccessKeyAsync(CreateAccessKeyRequest createAccessKeyRequest)
Creates a new AWS secret access key and corresponding AWS access key
ID for the specified user.
|
Future<CreateAccessKeyResult> |
createAccessKeyAsync(CreateAccessKeyRequest createAccessKeyRequest,
AsyncHandler<CreateAccessKeyRequest,CreateAccessKeyResult> asyncHandler)
Creates a new AWS secret access key and corresponding AWS access key
ID for the specified user.
|
Future<Void> |
createAccountAliasAsync(CreateAccountAliasRequest createAccountAliasRequest)
Creates an alias for your AWS account.
|
Future<Void> |
createAccountAliasAsync(CreateAccountAliasRequest createAccountAliasRequest,
AsyncHandler<CreateAccountAliasRequest,Void> asyncHandler)
Creates an alias for your AWS account.
|
Future<CreateGroupResult> |
createGroupAsync(CreateGroupRequest createGroupRequest)
Creates a new group.
|
Future<CreateGroupResult> |
createGroupAsync(CreateGroupRequest createGroupRequest,
AsyncHandler<CreateGroupRequest,CreateGroupResult> asyncHandler)
Creates a new group.
|
Future<CreateInstanceProfileResult> |
createInstanceProfileAsync(CreateInstanceProfileRequest createInstanceProfileRequest)
Creates a new instance profile.
|
Future<CreateInstanceProfileResult> |
createInstanceProfileAsync(CreateInstanceProfileRequest createInstanceProfileRequest,
AsyncHandler<CreateInstanceProfileRequest,CreateInstanceProfileResult> asyncHandler)
Creates a new instance profile.
|
Future<CreateLoginProfileResult> |
createLoginProfileAsync(CreateLoginProfileRequest createLoginProfileRequest)
Creates a password for the specified user, giving the user the
ability to access AWS services through the AWS Management Console.
|
Future<CreateLoginProfileResult> |
createLoginProfileAsync(CreateLoginProfileRequest createLoginProfileRequest,
AsyncHandler<CreateLoginProfileRequest,CreateLoginProfileResult> asyncHandler)
Creates a password for the specified user, giving the user the
ability to access AWS services through the AWS Management Console.
|
Future<CreateOpenIDConnectProviderResult> |
createOpenIDConnectProviderAsync(CreateOpenIDConnectProviderRequest createOpenIDConnectProviderRequest)
Creates an IAM entity to describe an identity provider (IdP) that
supports
OpenID Connect (OIDC)
.
|
Future<CreateOpenIDConnectProviderResult> |
createOpenIDConnectProviderAsync(CreateOpenIDConnectProviderRequest createOpenIDConnectProviderRequest,
AsyncHandler<CreateOpenIDConnectProviderRequest,CreateOpenIDConnectProviderResult> asyncHandler)
Creates an IAM entity to describe an identity provider (IdP) that
supports
OpenID Connect (OIDC)
.
|
Future<CreatePolicyResult> |
createPolicyAsync(CreatePolicyRequest createPolicyRequest)
Creates a new managed policy for your AWS account.
|
Future<CreatePolicyResult> |
createPolicyAsync(CreatePolicyRequest createPolicyRequest,
AsyncHandler<CreatePolicyRequest,CreatePolicyResult> asyncHandler)
Creates a new managed policy for your AWS account.
|
Future<CreatePolicyVersionResult> |
createPolicyVersionAsync(CreatePolicyVersionRequest createPolicyVersionRequest)
Creates a new version of the specified managed policy.
|
Future<CreatePolicyVersionResult> |
createPolicyVersionAsync(CreatePolicyVersionRequest createPolicyVersionRequest,
AsyncHandler<CreatePolicyVersionRequest,CreatePolicyVersionResult> asyncHandler)
Creates a new version of the specified managed policy.
|
Future<CreateRoleResult> |
createRoleAsync(CreateRoleRequest createRoleRequest)
Creates a new role for your AWS account.
|
Future<CreateRoleResult> |
createRoleAsync(CreateRoleRequest createRoleRequest,
AsyncHandler<CreateRoleRequest,CreateRoleResult> asyncHandler)
Creates a new role for your AWS account.
|
Future<CreateSAMLProviderResult> |
createSAMLProviderAsync(CreateSAMLProviderRequest createSAMLProviderRequest)
Creates an IAM entity to describe an identity provider (IdP) that
supports SAML 2.0.
|
Future<CreateSAMLProviderResult> |
createSAMLProviderAsync(CreateSAMLProviderRequest createSAMLProviderRequest,
AsyncHandler<CreateSAMLProviderRequest,CreateSAMLProviderResult> asyncHandler)
Creates an IAM entity to describe an identity provider (IdP) that
supports SAML 2.0.
|
Future<CreateUserResult> |
createUserAsync(CreateUserRequest createUserRequest)
Creates a new user for your AWS account.
|
Future<CreateUserResult> |
createUserAsync(CreateUserRequest createUserRequest,
AsyncHandler<CreateUserRequest,CreateUserResult> asyncHandler)
Creates a new user for your AWS account.
|
Future<CreateVirtualMFADeviceResult> |
createVirtualMFADeviceAsync(CreateVirtualMFADeviceRequest createVirtualMFADeviceRequest)
Creates a new virtual MFA device for the AWS account.
|
Future<CreateVirtualMFADeviceResult> |
createVirtualMFADeviceAsync(CreateVirtualMFADeviceRequest createVirtualMFADeviceRequest,
AsyncHandler<CreateVirtualMFADeviceRequest,CreateVirtualMFADeviceResult> asyncHandler)
Creates a new virtual MFA device for the AWS account.
|
Future<Void> |
deactivateMFADeviceAsync(DeactivateMFADeviceRequest deactivateMFADeviceRequest)
Deactivates the specified MFA device and removes it from association
with the user name for which it was originally enabled.
|
Future<Void> |
deactivateMFADeviceAsync(DeactivateMFADeviceRequest deactivateMFADeviceRequest,
AsyncHandler<DeactivateMFADeviceRequest,Void> asyncHandler)
Deactivates the specified MFA device and removes it from association
with the user name for which it was originally enabled.
|
Future<Void> |
deleteAccessKeyAsync(DeleteAccessKeyRequest deleteAccessKeyRequest)
Deletes the access key associated with the specified user.
|
Future<Void> |
deleteAccessKeyAsync(DeleteAccessKeyRequest deleteAccessKeyRequest,
AsyncHandler<DeleteAccessKeyRequest,Void> asyncHandler)
Deletes the access key associated with the specified user.
|
Future<Void> |
deleteAccountAliasAsync(DeleteAccountAliasRequest deleteAccountAliasRequest)
Deletes the specified AWS account alias.
|
Future<Void> |
deleteAccountAliasAsync(DeleteAccountAliasRequest deleteAccountAliasRequest,
AsyncHandler<DeleteAccountAliasRequest,Void> asyncHandler)
Deletes the specified AWS account alias.
|
Future<Void> |
deleteAccountPasswordPolicyAsync(DeleteAccountPasswordPolicyRequest deleteAccountPasswordPolicyRequest)
Deletes the password policy for the AWS account.
|
Future<Void> |
deleteAccountPasswordPolicyAsync(DeleteAccountPasswordPolicyRequest deleteAccountPasswordPolicyRequest,
AsyncHandler<DeleteAccountPasswordPolicyRequest,Void> asyncHandler)
Deletes the password policy for the AWS account.
|
Future<Void> |
deleteGroupAsync(DeleteGroupRequest deleteGroupRequest)
Deletes the specified group.
|
Future<Void> |
deleteGroupAsync(DeleteGroupRequest deleteGroupRequest,
AsyncHandler<DeleteGroupRequest,Void> asyncHandler)
Deletes the specified group.
|
Future<Void> |
deleteGroupPolicyAsync(DeleteGroupPolicyRequest deleteGroupPolicyRequest)
Deletes the specified inline policy that is embedded in the specified
group.
|
Future<Void> |
deleteGroupPolicyAsync(DeleteGroupPolicyRequest deleteGroupPolicyRequest,
AsyncHandler<DeleteGroupPolicyRequest,Void> asyncHandler)
Deletes the specified inline policy that is embedded in the specified
group.
|
Future<Void> |
deleteInstanceProfileAsync(DeleteInstanceProfileRequest deleteInstanceProfileRequest)
Deletes the specified instance profile.
|
Future<Void> |
deleteInstanceProfileAsync(DeleteInstanceProfileRequest deleteInstanceProfileRequest,
AsyncHandler<DeleteInstanceProfileRequest,Void> asyncHandler)
Deletes the specified instance profile.
|
Future<Void> |
deleteLoginProfileAsync(DeleteLoginProfileRequest deleteLoginProfileRequest)
Deletes the password for the specified user, which terminates the
user's ability to access AWS services through the AWS Management
Console.
|
Future<Void> |
deleteLoginProfileAsync(DeleteLoginProfileRequest deleteLoginProfileRequest,
AsyncHandler<DeleteLoginProfileRequest,Void> asyncHandler)
Deletes the password for the specified user, which terminates the
user's ability to access AWS services through the AWS Management
Console.
|
Future<Void> |
deleteOpenIDConnectProviderAsync(DeleteOpenIDConnectProviderRequest deleteOpenIDConnectProviderRequest)
Deletes an IAM OpenID Connect identity provider.
|
Future<Void> |
deleteOpenIDConnectProviderAsync(DeleteOpenIDConnectProviderRequest deleteOpenIDConnectProviderRequest,
AsyncHandler<DeleteOpenIDConnectProviderRequest,Void> asyncHandler)
Deletes an IAM OpenID Connect identity provider.
|
Future<Void> |
deletePolicyAsync(DeletePolicyRequest deletePolicyRequest)
Deletes the specified managed policy.
|
Future<Void> |
deletePolicyAsync(DeletePolicyRequest deletePolicyRequest,
AsyncHandler<DeletePolicyRequest,Void> asyncHandler)
Deletes the specified managed policy.
|
Future<Void> |
deletePolicyVersionAsync(DeletePolicyVersionRequest deletePolicyVersionRequest)
Deletes the specified version of the specified managed policy.
|
Future<Void> |
deletePolicyVersionAsync(DeletePolicyVersionRequest deletePolicyVersionRequest,
AsyncHandler<DeletePolicyVersionRequest,Void> asyncHandler)
Deletes the specified version of the specified managed policy.
|
Future<Void> |
deleteRoleAsync(DeleteRoleRequest deleteRoleRequest)
Deletes the specified role.
|
Future<Void> |
deleteRoleAsync(DeleteRoleRequest deleteRoleRequest,
AsyncHandler<DeleteRoleRequest,Void> asyncHandler)
Deletes the specified role.
|
Future<Void> |
deleteRolePolicyAsync(DeleteRolePolicyRequest deleteRolePolicyRequest)
Deletes the specified inline policy that is embedded in the specified
role.
|
Future<Void> |
deleteRolePolicyAsync(DeleteRolePolicyRequest deleteRolePolicyRequest,
AsyncHandler<DeleteRolePolicyRequest,Void> asyncHandler)
Deletes the specified inline policy that is embedded in the specified
role.
|
Future<Void> |
deleteSAMLProviderAsync(DeleteSAMLProviderRequest deleteSAMLProviderRequest)
Deletes a SAML provider.
|
Future<Void> |
deleteSAMLProviderAsync(DeleteSAMLProviderRequest deleteSAMLProviderRequest,
AsyncHandler<DeleteSAMLProviderRequest,Void> asyncHandler)
Deletes a SAML provider.
|
Future<Void> |
deleteServerCertificateAsync(DeleteServerCertificateRequest deleteServerCertificateRequest)
Deletes the specified server certificate.
|
Future<Void> |
deleteServerCertificateAsync(DeleteServerCertificateRequest deleteServerCertificateRequest,
AsyncHandler<DeleteServerCertificateRequest,Void> asyncHandler)
Deletes the specified server certificate.
|
Future<Void> |
deleteSigningCertificateAsync(DeleteSigningCertificateRequest deleteSigningCertificateRequest)
Deletes the specified signing certificate associated with the
specified user.
|
Future<Void> |
deleteSigningCertificateAsync(DeleteSigningCertificateRequest deleteSigningCertificateRequest,
AsyncHandler<DeleteSigningCertificateRequest,Void> asyncHandler)
Deletes the specified signing certificate associated with the
specified user.
|
Future<Void> |
deleteSSHPublicKeyAsync(DeleteSSHPublicKeyRequest deleteSSHPublicKeyRequest)
Deletes the specified SSH public key.
|
Future<Void> |
deleteSSHPublicKeyAsync(DeleteSSHPublicKeyRequest deleteSSHPublicKeyRequest,
AsyncHandler<DeleteSSHPublicKeyRequest,Void> asyncHandler)
Deletes the specified SSH public key.
|
Future<Void> |
deleteUserAsync(DeleteUserRequest deleteUserRequest)
Deletes the specified user.
|
Future<Void> |
deleteUserAsync(DeleteUserRequest deleteUserRequest,
AsyncHandler<DeleteUserRequest,Void> asyncHandler)
Deletes the specified user.
|
Future<Void> |
deleteUserPolicyAsync(DeleteUserPolicyRequest deleteUserPolicyRequest)
Deletes the specified inline policy that is embedded in the specified
user.
|
Future<Void> |
deleteUserPolicyAsync(DeleteUserPolicyRequest deleteUserPolicyRequest,
AsyncHandler<DeleteUserPolicyRequest,Void> asyncHandler)
Deletes the specified inline policy that is embedded in the specified
user.
|
Future<Void> |
deleteVirtualMFADeviceAsync(DeleteVirtualMFADeviceRequest deleteVirtualMFADeviceRequest)
Deletes a virtual MFA device.
|
Future<Void> |
deleteVirtualMFADeviceAsync(DeleteVirtualMFADeviceRequest deleteVirtualMFADeviceRequest,
AsyncHandler<DeleteVirtualMFADeviceRequest,Void> asyncHandler)
Deletes a virtual MFA device.
|
Future<Void> |
detachGroupPolicyAsync(DetachGroupPolicyRequest detachGroupPolicyRequest)
Removes the specified managed policy from the specified group.
|
Future<Void> |
detachGroupPolicyAsync(DetachGroupPolicyRequest detachGroupPolicyRequest,
AsyncHandler<DetachGroupPolicyRequest,Void> asyncHandler)
Removes the specified managed policy from the specified group.
|
Future<Void> |
detachRolePolicyAsync(DetachRolePolicyRequest detachRolePolicyRequest)
Removes the specified managed policy from the specified role.
|
Future<Void> |
detachRolePolicyAsync(DetachRolePolicyRequest detachRolePolicyRequest,
AsyncHandler<DetachRolePolicyRequest,Void> asyncHandler)
Removes the specified managed policy from the specified role.
|
Future<Void> |
detachUserPolicyAsync(DetachUserPolicyRequest detachUserPolicyRequest)
Removes the specified managed policy from the specified user.
|
Future<Void> |
detachUserPolicyAsync(DetachUserPolicyRequest detachUserPolicyRequest,
AsyncHandler<DetachUserPolicyRequest,Void> asyncHandler)
Removes the specified managed policy from the specified user.
|
Future<Void> |
enableMFADeviceAsync(EnableMFADeviceRequest enableMFADeviceRequest)
Enables the specified MFA device and associates it with the specified
user name.
|
Future<Void> |
enableMFADeviceAsync(EnableMFADeviceRequest enableMFADeviceRequest,
AsyncHandler<EnableMFADeviceRequest,Void> asyncHandler)
Enables the specified MFA device and associates it with the specified
user name.
|
Future<GenerateCredentialReportResult> |
generateCredentialReportAsync(GenerateCredentialReportRequest generateCredentialReportRequest)
Generates a credential report for the AWS account.
|
Future<GenerateCredentialReportResult> |
generateCredentialReportAsync(GenerateCredentialReportRequest generateCredentialReportRequest,
AsyncHandler<GenerateCredentialReportRequest,GenerateCredentialReportResult> asyncHandler)
Generates a credential report for the AWS account.
|
Future<GetAccessKeyLastUsedResult> |
getAccessKeyLastUsedAsync(GetAccessKeyLastUsedRequest getAccessKeyLastUsedRequest)
Retrieves information about when the specified access key was last
used.
|
Future<GetAccessKeyLastUsedResult> |
getAccessKeyLastUsedAsync(GetAccessKeyLastUsedRequest getAccessKeyLastUsedRequest,
AsyncHandler<GetAccessKeyLastUsedRequest,GetAccessKeyLastUsedResult> asyncHandler)
Retrieves information about when the specified access key was last
used.
|
Future<GetAccountAuthorizationDetailsResult> |
getAccountAuthorizationDetailsAsync(GetAccountAuthorizationDetailsRequest getAccountAuthorizationDetailsRequest)
Retrieves information about all IAM users, groups, roles, and
policies in your account, including their relationships to one
another.
|
Future<GetAccountAuthorizationDetailsResult> |
getAccountAuthorizationDetailsAsync(GetAccountAuthorizationDetailsRequest getAccountAuthorizationDetailsRequest,
AsyncHandler<GetAccountAuthorizationDetailsRequest,GetAccountAuthorizationDetailsResult> asyncHandler)
Retrieves information about all IAM users, groups, roles, and
policies in your account, including their relationships to one
another.
|
Future<GetAccountPasswordPolicyResult> |
getAccountPasswordPolicyAsync(GetAccountPasswordPolicyRequest getAccountPasswordPolicyRequest)
Retrieves the password policy for the AWS account.
|
Future<GetAccountPasswordPolicyResult> |
getAccountPasswordPolicyAsync(GetAccountPasswordPolicyRequest getAccountPasswordPolicyRequest,
AsyncHandler<GetAccountPasswordPolicyRequest,GetAccountPasswordPolicyResult> asyncHandler)
Retrieves the password policy for the AWS account.
|
Future<GetAccountSummaryResult> |
getAccountSummaryAsync(GetAccountSummaryRequest getAccountSummaryRequest)
Retrieves information about IAM entity usage and IAM quotas in the
AWS account.
|
Future<GetAccountSummaryResult> |
getAccountSummaryAsync(GetAccountSummaryRequest getAccountSummaryRequest,
AsyncHandler<GetAccountSummaryRequest,GetAccountSummaryResult> asyncHandler)
Retrieves information about IAM entity usage and IAM quotas in the
AWS account.
|
Future<GetContextKeysForCustomPolicyResult> |
getContextKeysForCustomPolicyAsync(GetContextKeysForCustomPolicyRequest getContextKeysForCustomPolicyRequest)
Gets a list of all of the context keys referenced in
Condition elements in the input policies. |
Future<GetContextKeysForCustomPolicyResult> |
getContextKeysForCustomPolicyAsync(GetContextKeysForCustomPolicyRequest getContextKeysForCustomPolicyRequest,
AsyncHandler<GetContextKeysForCustomPolicyRequest,GetContextKeysForCustomPolicyResult> asyncHandler)
Gets a list of all of the context keys referenced in
Condition elements in the input policies. |
Future<GetContextKeysForPrincipalPolicyResult> |
getContextKeysForPrincipalPolicyAsync(GetContextKeysForPrincipalPolicyRequest getContextKeysForPrincipalPolicyRequest)
Gets a list of all of the context keys referenced in
Condition elements in all of the IAM policies attached to
the specified IAM entity. |
Future<GetContextKeysForPrincipalPolicyResult> |
getContextKeysForPrincipalPolicyAsync(GetContextKeysForPrincipalPolicyRequest getContextKeysForPrincipalPolicyRequest,
AsyncHandler<GetContextKeysForPrincipalPolicyRequest,GetContextKeysForPrincipalPolicyResult> asyncHandler)
Gets a list of all of the context keys referenced in
Condition elements in all of the IAM policies attached to
the specified IAM entity. |
Future<GetCredentialReportResult> |
getCredentialReportAsync(GetCredentialReportRequest getCredentialReportRequest)
Retrieves a credential report for the AWS account.
|
Future<GetCredentialReportResult> |
getCredentialReportAsync(GetCredentialReportRequest getCredentialReportRequest,
AsyncHandler<GetCredentialReportRequest,GetCredentialReportResult> asyncHandler)
Retrieves a credential report for the AWS account.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this async client to execute
requests.
|
Future<GetGroupResult> |
getGroupAsync(GetGroupRequest getGroupRequest)
Returns a list of users that are in the specified group.
|
Future<GetGroupResult> |
getGroupAsync(GetGroupRequest getGroupRequest,
AsyncHandler<GetGroupRequest,GetGroupResult> asyncHandler)
Returns a list of users that are in the specified group.
|
Future<GetGroupPolicyResult> |
getGroupPolicyAsync(GetGroupPolicyRequest getGroupPolicyRequest)
Retrieves the specified inline policy document that is embedded in
the specified group.
|
Future<GetGroupPolicyResult> |
getGroupPolicyAsync(GetGroupPolicyRequest getGroupPolicyRequest,
AsyncHandler<GetGroupPolicyRequest,GetGroupPolicyResult> asyncHandler)
Retrieves the specified inline policy document that is embedded in
the specified group.
|
Future<GetInstanceProfileResult> |
getInstanceProfileAsync(GetInstanceProfileRequest getInstanceProfileRequest)
Retrieves information about the specified instance profile, including
the instance profile's path, GUID, ARN, and role.
|
Future<GetInstanceProfileResult> |
getInstanceProfileAsync(GetInstanceProfileRequest getInstanceProfileRequest,
AsyncHandler<GetInstanceProfileRequest,GetInstanceProfileResult> asyncHandler)
Retrieves information about the specified instance profile, including
the instance profile's path, GUID, ARN, and role.
|
Future<GetLoginProfileResult> |
getLoginProfileAsync(GetLoginProfileRequest getLoginProfileRequest)
Retrieves the user name and password-creation date for the specified
user.
|
Future<GetLoginProfileResult> |
getLoginProfileAsync(GetLoginProfileRequest getLoginProfileRequest,
AsyncHandler<GetLoginProfileRequest,GetLoginProfileResult> asyncHandler)
Retrieves the user name and password-creation date for the specified
user.
|
Future<GetOpenIDConnectProviderResult> |
getOpenIDConnectProviderAsync(GetOpenIDConnectProviderRequest getOpenIDConnectProviderRequest)
Returns information about the specified OpenID Connect provider.
|
Future<GetOpenIDConnectProviderResult> |
getOpenIDConnectProviderAsync(GetOpenIDConnectProviderRequest getOpenIDConnectProviderRequest,
AsyncHandler<GetOpenIDConnectProviderRequest,GetOpenIDConnectProviderResult> asyncHandler)
Returns information about the specified OpenID Connect provider.
|
Future<GetPolicyResult> |
getPolicyAsync(GetPolicyRequest getPolicyRequest)
Retrieves information about the specified managed policy, including
the policy's default version and the total number of users, groups,
and roles that the policy is attached to.
|
Future<GetPolicyResult> |
getPolicyAsync(GetPolicyRequest getPolicyRequest,
AsyncHandler<GetPolicyRequest,GetPolicyResult> asyncHandler)
Retrieves information about the specified managed policy, including
the policy's default version and the total number of users, groups,
and roles that the policy is attached to.
|
Future<GetPolicyVersionResult> |
getPolicyVersionAsync(GetPolicyVersionRequest getPolicyVersionRequest)
Retrieves information about the specified version of the specified
managed policy, including the policy document.
|
Future<GetPolicyVersionResult> |
getPolicyVersionAsync(GetPolicyVersionRequest getPolicyVersionRequest,
AsyncHandler<GetPolicyVersionRequest,GetPolicyVersionResult> asyncHandler)
Retrieves information about the specified version of the specified
managed policy, including the policy document.
|
Future<GetRoleResult> |
getRoleAsync(GetRoleRequest getRoleRequest)
Retrieves information about the specified role, including the role's
path, GUID, ARN, and the policy granting permission to assume the
role.
|
Future<GetRoleResult> |
getRoleAsync(GetRoleRequest getRoleRequest,
AsyncHandler<GetRoleRequest,GetRoleResult> asyncHandler)
Retrieves information about the specified role, including the role's
path, GUID, ARN, and the policy granting permission to assume the
role.
|
Future<GetRolePolicyResult> |
getRolePolicyAsync(GetRolePolicyRequest getRolePolicyRequest)
Retrieves the specified inline policy document that is embedded with
the specified role.
|
Future<GetRolePolicyResult> |
getRolePolicyAsync(GetRolePolicyRequest getRolePolicyRequest,
AsyncHandler<GetRolePolicyRequest,GetRolePolicyResult> asyncHandler)
Retrieves the specified inline policy document that is embedded with
the specified role.
|
Future<GetSAMLProviderResult> |
getSAMLProviderAsync(GetSAMLProviderRequest getSAMLProviderRequest)
Returns the SAML provider metadocument that was uploaded when the
provider was created or updated.
|
Future<GetSAMLProviderResult> |
getSAMLProviderAsync(GetSAMLProviderRequest getSAMLProviderRequest,
AsyncHandler<GetSAMLProviderRequest,GetSAMLProviderResult> asyncHandler)
Returns the SAML provider metadocument that was uploaded when the
provider was created or updated.
|
Future<GetServerCertificateResult> |
getServerCertificateAsync(GetServerCertificateRequest getServerCertificateRequest)
Retrieves information about the specified server certificate.
|
Future<GetServerCertificateResult> |
getServerCertificateAsync(GetServerCertificateRequest getServerCertificateRequest,
AsyncHandler<GetServerCertificateRequest,GetServerCertificateResult> asyncHandler)
Retrieves information about the specified server certificate.
|
Future<GetSSHPublicKeyResult> |
getSSHPublicKeyAsync(GetSSHPublicKeyRequest getSSHPublicKeyRequest)
Retrieves the specified SSH public key, including metadata about the
key.
|
Future<GetSSHPublicKeyResult> |
getSSHPublicKeyAsync(GetSSHPublicKeyRequest getSSHPublicKeyRequest,
AsyncHandler<GetSSHPublicKeyRequest,GetSSHPublicKeyResult> asyncHandler)
Retrieves the specified SSH public key, including metadata about the
key.
|
Future<GetUserResult> |
getUserAsync(GetUserRequest getUserRequest)
Retrieves information about the specified user, including the user's
creation date, path, unique ID, and ARN.
|
Future<GetUserResult> |
getUserAsync(GetUserRequest getUserRequest,
AsyncHandler<GetUserRequest,GetUserResult> asyncHandler)
Retrieves information about the specified user, including the user's
creation date, path, unique ID, and ARN.
|
Future<GetUserPolicyResult> |
getUserPolicyAsync(GetUserPolicyRequest getUserPolicyRequest)
Retrieves the specified inline policy document that is embedded in
the specified user.
|
Future<GetUserPolicyResult> |
getUserPolicyAsync(GetUserPolicyRequest getUserPolicyRequest,
AsyncHandler<GetUserPolicyRequest,GetUserPolicyResult> asyncHandler)
Retrieves the specified inline policy document that is embedded in
the specified user.
|
Future<ListAccessKeysResult> |
listAccessKeysAsync(ListAccessKeysRequest listAccessKeysRequest)
Returns information about the access key IDs associated with the
specified user.
|
Future<ListAccessKeysResult> |
listAccessKeysAsync(ListAccessKeysRequest listAccessKeysRequest,
AsyncHandler<ListAccessKeysRequest,ListAccessKeysResult> asyncHandler)
Returns information about the access key IDs associated with the
specified user.
|
Future<ListAccountAliasesResult> |
listAccountAliasesAsync(ListAccountAliasesRequest listAccountAliasesRequest)
Lists the account aliases associated with the account.
|
Future<ListAccountAliasesResult> |
listAccountAliasesAsync(ListAccountAliasesRequest listAccountAliasesRequest,
AsyncHandler<ListAccountAliasesRequest,ListAccountAliasesResult> asyncHandler)
Lists the account aliases associated with the account.
|
Future<ListAttachedGroupPoliciesResult> |
listAttachedGroupPoliciesAsync(ListAttachedGroupPoliciesRequest listAttachedGroupPoliciesRequest)
Lists all managed policies that are attached to the specified group.
|
Future<ListAttachedGroupPoliciesResult> |
listAttachedGroupPoliciesAsync(ListAttachedGroupPoliciesRequest listAttachedGroupPoliciesRequest,
AsyncHandler<ListAttachedGroupPoliciesRequest,ListAttachedGroupPoliciesResult> asyncHandler)
Lists all managed policies that are attached to the specified group.
|
Future<ListAttachedRolePoliciesResult> |
listAttachedRolePoliciesAsync(ListAttachedRolePoliciesRequest listAttachedRolePoliciesRequest)
Lists all managed policies that are attached to the specified role.
|
Future<ListAttachedRolePoliciesResult> |
listAttachedRolePoliciesAsync(ListAttachedRolePoliciesRequest listAttachedRolePoliciesRequest,
AsyncHandler<ListAttachedRolePoliciesRequest,ListAttachedRolePoliciesResult> asyncHandler)
Lists all managed policies that are attached to the specified role.
|
Future<ListAttachedUserPoliciesResult> |
listAttachedUserPoliciesAsync(ListAttachedUserPoliciesRequest listAttachedUserPoliciesRequest)
Lists all managed policies that are attached to the specified user.
|
Future<ListAttachedUserPoliciesResult> |
listAttachedUserPoliciesAsync(ListAttachedUserPoliciesRequest listAttachedUserPoliciesRequest,
AsyncHandler<ListAttachedUserPoliciesRequest,ListAttachedUserPoliciesResult> asyncHandler)
Lists all managed policies that are attached to the specified user.
|
Future<ListEntitiesForPolicyResult> |
listEntitiesForPolicyAsync(ListEntitiesForPolicyRequest listEntitiesForPolicyRequest)
Lists all users, groups, and roles that the specified managed policy
is attached to.
|
Future<ListEntitiesForPolicyResult> |
listEntitiesForPolicyAsync(ListEntitiesForPolicyRequest listEntitiesForPolicyRequest,
AsyncHandler<ListEntitiesForPolicyRequest,ListEntitiesForPolicyResult> asyncHandler)
Lists all users, groups, and roles that the specified managed policy
is attached to.
|
Future<ListGroupPoliciesResult> |
listGroupPoliciesAsync(ListGroupPoliciesRequest listGroupPoliciesRequest)
Lists the names of the inline policies that are embedded in the
specified group.
|
Future<ListGroupPoliciesResult> |
listGroupPoliciesAsync(ListGroupPoliciesRequest listGroupPoliciesRequest,
AsyncHandler<ListGroupPoliciesRequest,ListGroupPoliciesResult> asyncHandler)
Lists the names of the inline policies that are embedded in the
specified group.
|
Future<ListGroupsResult> |
listGroupsAsync(ListGroupsRequest listGroupsRequest)
Lists the groups that have the specified path prefix.
|
Future<ListGroupsResult> |
listGroupsAsync(ListGroupsRequest listGroupsRequest,
AsyncHandler<ListGroupsRequest,ListGroupsResult> asyncHandler)
Lists the groups that have the specified path prefix.
|
Future<ListGroupsForUserResult> |
listGroupsForUserAsync(ListGroupsForUserRequest listGroupsForUserRequest)
Lists the groups the specified user belongs to.
|
Future<ListGroupsForUserResult> |
listGroupsForUserAsync(ListGroupsForUserRequest listGroupsForUserRequest,
AsyncHandler<ListGroupsForUserRequest,ListGroupsForUserResult> asyncHandler)
Lists the groups the specified user belongs to.
|
Future<ListInstanceProfilesResult> |
listInstanceProfilesAsync(ListInstanceProfilesRequest listInstanceProfilesRequest)
Lists the instance profiles that have the specified path prefix.
|
Future<ListInstanceProfilesResult> |
listInstanceProfilesAsync(ListInstanceProfilesRequest listInstanceProfilesRequest,
AsyncHandler<ListInstanceProfilesRequest,ListInstanceProfilesResult> asyncHandler)
Lists the instance profiles that have the specified path prefix.
|
Future<ListInstanceProfilesForRoleResult> |
listInstanceProfilesForRoleAsync(ListInstanceProfilesForRoleRequest listInstanceProfilesForRoleRequest)
Lists the instance profiles that have the specified associated role.
|
Future<ListInstanceProfilesForRoleResult> |
listInstanceProfilesForRoleAsync(ListInstanceProfilesForRoleRequest listInstanceProfilesForRoleRequest,
AsyncHandler<ListInstanceProfilesForRoleRequest,ListInstanceProfilesForRoleResult> asyncHandler)
Lists the instance profiles that have the specified associated role.
|
Future<ListMFADevicesResult> |
listMFADevicesAsync(ListMFADevicesRequest listMFADevicesRequest)
Lists the MFA devices.
|
Future<ListMFADevicesResult> |
listMFADevicesAsync(ListMFADevicesRequest listMFADevicesRequest,
AsyncHandler<ListMFADevicesRequest,ListMFADevicesResult> asyncHandler)
Lists the MFA devices.
|
Future<ListOpenIDConnectProvidersResult> |
listOpenIDConnectProvidersAsync(ListOpenIDConnectProvidersRequest listOpenIDConnectProvidersRequest)
Lists information about the OpenID Connect providers in the AWS
account.
|
Future<ListOpenIDConnectProvidersResult> |
listOpenIDConnectProvidersAsync(ListOpenIDConnectProvidersRequest listOpenIDConnectProvidersRequest,
AsyncHandler<ListOpenIDConnectProvidersRequest,ListOpenIDConnectProvidersResult> asyncHandler)
Lists information about the OpenID Connect providers in the AWS
account.
|
Future<ListPoliciesResult> |
listPoliciesAsync(ListPoliciesRequest listPoliciesRequest)
Lists all the managed policies that are available to your account,
including your own customer managed policies and all AWS managed
policies.
|
Future<ListPoliciesResult> |
listPoliciesAsync(ListPoliciesRequest listPoliciesRequest,
AsyncHandler<ListPoliciesRequest,ListPoliciesResult> asyncHandler)
Lists all the managed policies that are available to your account,
including your own customer managed policies and all AWS managed
policies.
|
Future<ListPolicyVersionsResult> |
listPolicyVersionsAsync(ListPolicyVersionsRequest listPolicyVersionsRequest)
Lists information about the versions of the specified managed policy,
including the version that is set as the policy's default version.
|
Future<ListPolicyVersionsResult> |
listPolicyVersionsAsync(ListPolicyVersionsRequest listPolicyVersionsRequest,
AsyncHandler<ListPolicyVersionsRequest,ListPolicyVersionsResult> asyncHandler)
Lists information about the versions of the specified managed policy,
including the version that is set as the policy's default version.
|
Future<ListRolePoliciesResult> |
listRolePoliciesAsync(ListRolePoliciesRequest listRolePoliciesRequest)
Lists the names of the inline policies that are embedded in the
specified role.
|
Future<ListRolePoliciesResult> |
listRolePoliciesAsync(ListRolePoliciesRequest listRolePoliciesRequest,
AsyncHandler<ListRolePoliciesRequest,ListRolePoliciesResult> asyncHandler)
Lists the names of the inline policies that are embedded in the
specified role.
|
Future<ListRolesResult> |
listRolesAsync(ListRolesRequest listRolesRequest)
Lists the roles that have the specified path prefix.
|
Future<ListRolesResult> |
listRolesAsync(ListRolesRequest listRolesRequest,
AsyncHandler<ListRolesRequest,ListRolesResult> asyncHandler)
Lists the roles that have the specified path prefix.
|
Future<ListSAMLProvidersResult> |
listSAMLProvidersAsync(ListSAMLProvidersRequest listSAMLProvidersRequest)
Lists the SAML providers in the account.
|
Future<ListSAMLProvidersResult> |
listSAMLProvidersAsync(ListSAMLProvidersRequest listSAMLProvidersRequest,
AsyncHandler<ListSAMLProvidersRequest,ListSAMLProvidersResult> asyncHandler)
Lists the SAML providers in the account.
|
Future<ListServerCertificatesResult> |
listServerCertificatesAsync(ListServerCertificatesRequest listServerCertificatesRequest)
Lists the server certificates that have the specified path prefix.
|
Future<ListServerCertificatesResult> |
listServerCertificatesAsync(ListServerCertificatesRequest listServerCertificatesRequest,
AsyncHandler<ListServerCertificatesRequest,ListServerCertificatesResult> asyncHandler)
Lists the server certificates that have the specified path prefix.
|
Future<ListSigningCertificatesResult> |
listSigningCertificatesAsync(ListSigningCertificatesRequest listSigningCertificatesRequest)
Returns information about the signing certificates associated with
the specified user.
|
Future<ListSigningCertificatesResult> |
listSigningCertificatesAsync(ListSigningCertificatesRequest listSigningCertificatesRequest,
AsyncHandler<ListSigningCertificatesRequest,ListSigningCertificatesResult> asyncHandler)
Returns information about the signing certificates associated with
the specified user.
|
Future<ListSSHPublicKeysResult> |
listSSHPublicKeysAsync(ListSSHPublicKeysRequest listSSHPublicKeysRequest)
Returns information about the SSH public keys associated with the
specified IAM user.
|
Future<ListSSHPublicKeysResult> |
listSSHPublicKeysAsync(ListSSHPublicKeysRequest listSSHPublicKeysRequest,
AsyncHandler<ListSSHPublicKeysRequest,ListSSHPublicKeysResult> asyncHandler)
Returns information about the SSH public keys associated with the
specified IAM user.
|
Future<ListUserPoliciesResult> |
listUserPoliciesAsync(ListUserPoliciesRequest listUserPoliciesRequest)
Lists the names of the inline policies embedded in the specified
user.
|
Future<ListUserPoliciesResult> |
listUserPoliciesAsync(ListUserPoliciesRequest listUserPoliciesRequest,
AsyncHandler<ListUserPoliciesRequest,ListUserPoliciesResult> asyncHandler)
Lists the names of the inline policies embedded in the specified
user.
|
Future<ListUsersResult> |
listUsersAsync(ListUsersRequest listUsersRequest)
Lists the IAM users that have the specified path prefix.
|
Future<ListUsersResult> |
listUsersAsync(ListUsersRequest listUsersRequest,
AsyncHandler<ListUsersRequest,ListUsersResult> asyncHandler)
Lists the IAM users that have the specified path prefix.
|
Future<ListVirtualMFADevicesResult> |
listVirtualMFADevicesAsync(ListVirtualMFADevicesRequest listVirtualMFADevicesRequest)
Lists the virtual MFA devices under the AWS account by assignment
status.
|
Future<ListVirtualMFADevicesResult> |
listVirtualMFADevicesAsync(ListVirtualMFADevicesRequest listVirtualMFADevicesRequest,
AsyncHandler<ListVirtualMFADevicesRequest,ListVirtualMFADevicesResult> asyncHandler)
Lists the virtual MFA devices under the AWS account by assignment
status.
|
Future<Void> |
putGroupPolicyAsync(PutGroupPolicyRequest putGroupPolicyRequest)
Adds (or updates) an inline policy document that is embedded in the
specified group.
|
Future<Void> |
putGroupPolicyAsync(PutGroupPolicyRequest putGroupPolicyRequest,
AsyncHandler<PutGroupPolicyRequest,Void> asyncHandler)
Adds (or updates) an inline policy document that is embedded in the
specified group.
|
Future<Void> |
putRolePolicyAsync(PutRolePolicyRequest putRolePolicyRequest)
Adds (or updates) an inline policy document that is embedded in the
specified role.
|
Future<Void> |
putRolePolicyAsync(PutRolePolicyRequest putRolePolicyRequest,
AsyncHandler<PutRolePolicyRequest,Void> asyncHandler)
Adds (or updates) an inline policy document that is embedded in the
specified role.
|
Future<Void> |
putUserPolicyAsync(PutUserPolicyRequest putUserPolicyRequest)
Adds (or updates) an inline policy document that is embedded in the
specified user.
|
Future<Void> |
putUserPolicyAsync(PutUserPolicyRequest putUserPolicyRequest,
AsyncHandler<PutUserPolicyRequest,Void> asyncHandler)
Adds (or updates) an inline policy document that is embedded in the
specified user.
|
Future<Void> |
removeClientIDFromOpenIDConnectProviderAsync(RemoveClientIDFromOpenIDConnectProviderRequest removeClientIDFromOpenIDConnectProviderRequest)
Removes the specified client ID (also known as audience) from the
list of client IDs registered for the specified IAM OpenID Connect
provider.
|
Future<Void> |
removeClientIDFromOpenIDConnectProviderAsync(RemoveClientIDFromOpenIDConnectProviderRequest removeClientIDFromOpenIDConnectProviderRequest,
AsyncHandler<RemoveClientIDFromOpenIDConnectProviderRequest,Void> asyncHandler)
Removes the specified client ID (also known as audience) from the
list of client IDs registered for the specified IAM OpenID Connect
provider.
|
Future<Void> |
removeRoleFromInstanceProfileAsync(RemoveRoleFromInstanceProfileRequest removeRoleFromInstanceProfileRequest)
Removes the specified role from the specified instance profile.
|
Future<Void> |
removeRoleFromInstanceProfileAsync(RemoveRoleFromInstanceProfileRequest removeRoleFromInstanceProfileRequest,
AsyncHandler<RemoveRoleFromInstanceProfileRequest,Void> asyncHandler)
Removes the specified role from the specified instance profile.
|
Future<Void> |
removeUserFromGroupAsync(RemoveUserFromGroupRequest removeUserFromGroupRequest)
Removes the specified user from the specified group.
|
Future<Void> |
removeUserFromGroupAsync(RemoveUserFromGroupRequest removeUserFromGroupRequest,
AsyncHandler<RemoveUserFromGroupRequest,Void> asyncHandler)
Removes the specified user from the specified group.
|
Future<Void> |
resyncMFADeviceAsync(ResyncMFADeviceRequest resyncMFADeviceRequest)
Synchronizes the specified MFA device with AWS servers.
|
Future<Void> |
resyncMFADeviceAsync(ResyncMFADeviceRequest resyncMFADeviceRequest,
AsyncHandler<ResyncMFADeviceRequest,Void> asyncHandler)
Synchronizes the specified MFA device with AWS servers.
|
Future<Void> |
setDefaultPolicyVersionAsync(SetDefaultPolicyVersionRequest setDefaultPolicyVersionRequest)
Sets the specified version of the specified policy as the policy's
default (operative) version.
|
Future<Void> |
setDefaultPolicyVersionAsync(SetDefaultPolicyVersionRequest setDefaultPolicyVersionRequest,
AsyncHandler<SetDefaultPolicyVersionRequest,Void> asyncHandler)
Sets the specified version of the specified policy as the policy's
default (operative) version.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<SimulateCustomPolicyResult> |
simulateCustomPolicyAsync(SimulateCustomPolicyRequest simulateCustomPolicyRequest)
Simulate a set of IAM policies against a list of API actions and AWS
resources to determine the policies' effective permissions.
|
Future<SimulateCustomPolicyResult> |
simulateCustomPolicyAsync(SimulateCustomPolicyRequest simulateCustomPolicyRequest,
AsyncHandler<SimulateCustomPolicyRequest,SimulateCustomPolicyResult> asyncHandler)
Simulate a set of IAM policies against a list of API actions and AWS
resources to determine the policies' effective permissions.
|
Future<SimulatePrincipalPolicyResult> |
simulatePrincipalPolicyAsync(SimulatePrincipalPolicyRequest simulatePrincipalPolicyRequest)
Simulate the set of IAM policies attached to an IAM entity against a
list of API actions and AWS resources to determine the policies'
effective permissions.
|
Future<SimulatePrincipalPolicyResult> |
simulatePrincipalPolicyAsync(SimulatePrincipalPolicyRequest simulatePrincipalPolicyRequest,
AsyncHandler<SimulatePrincipalPolicyRequest,SimulatePrincipalPolicyResult> asyncHandler)
Simulate the set of IAM policies attached to an IAM entity against a
list of API actions and AWS resources to determine the policies'
effective permissions.
|
Future<Void> |
updateAccessKeyAsync(UpdateAccessKeyRequest updateAccessKeyRequest)
Changes the status of the specified access key from Active to
Inactive, or vice versa.
|
Future<Void> |
updateAccessKeyAsync(UpdateAccessKeyRequest updateAccessKeyRequest,
AsyncHandler<UpdateAccessKeyRequest,Void> asyncHandler)
Changes the status of the specified access key from Active to
Inactive, or vice versa.
|
Future<Void> |
updateAccountPasswordPolicyAsync(UpdateAccountPasswordPolicyRequest updateAccountPasswordPolicyRequest)
Updates the password policy settings for the AWS account.
|
Future<Void> |
updateAccountPasswordPolicyAsync(UpdateAccountPasswordPolicyRequest updateAccountPasswordPolicyRequest,
AsyncHandler<UpdateAccountPasswordPolicyRequest,Void> asyncHandler)
Updates the password policy settings for the AWS account.
|
Future<Void> |
updateAssumeRolePolicyAsync(UpdateAssumeRolePolicyRequest updateAssumeRolePolicyRequest)
Updates the policy that grants an entity permission to assume a role.
|
Future<Void> |
updateAssumeRolePolicyAsync(UpdateAssumeRolePolicyRequest updateAssumeRolePolicyRequest,
AsyncHandler<UpdateAssumeRolePolicyRequest,Void> asyncHandler)
Updates the policy that grants an entity permission to assume a role.
|
Future<Void> |
updateGroupAsync(UpdateGroupRequest updateGroupRequest)
Updates the name and/or the path of the specified group.
|
Future<Void> |
updateGroupAsync(UpdateGroupRequest updateGroupRequest,
AsyncHandler<UpdateGroupRequest,Void> asyncHandler)
Updates the name and/or the path of the specified group.
|
Future<Void> |
updateLoginProfileAsync(UpdateLoginProfileRequest updateLoginProfileRequest)
Changes the password for the specified user.
|
Future<Void> |
updateLoginProfileAsync(UpdateLoginProfileRequest updateLoginProfileRequest,
AsyncHandler<UpdateLoginProfileRequest,Void> asyncHandler)
Changes the password for the specified user.
|
Future<Void> |
updateOpenIDConnectProviderThumbprintAsync(UpdateOpenIDConnectProviderThumbprintRequest updateOpenIDConnectProviderThumbprintRequest)
Replaces the existing list of server certificate thumbprints with a
new list.
|
Future<Void> |
updateOpenIDConnectProviderThumbprintAsync(UpdateOpenIDConnectProviderThumbprintRequest updateOpenIDConnectProviderThumbprintRequest,
AsyncHandler<UpdateOpenIDConnectProviderThumbprintRequest,Void> asyncHandler)
Replaces the existing list of server certificate thumbprints with a
new list.
|
Future<UpdateSAMLProviderResult> |
updateSAMLProviderAsync(UpdateSAMLProviderRequest updateSAMLProviderRequest)
Updates the metadata document for an existing SAML provider.
|
Future<UpdateSAMLProviderResult> |
updateSAMLProviderAsync(UpdateSAMLProviderRequest updateSAMLProviderRequest,
AsyncHandler<UpdateSAMLProviderRequest,UpdateSAMLProviderResult> asyncHandler)
Updates the metadata document for an existing SAML provider.
|
Future<Void> |
updateServerCertificateAsync(UpdateServerCertificateRequest updateServerCertificateRequest)
Updates the name and/or the path of the specified server certificate.
|
Future<Void> |
updateServerCertificateAsync(UpdateServerCertificateRequest updateServerCertificateRequest,
AsyncHandler<UpdateServerCertificateRequest,Void> asyncHandler)
Updates the name and/or the path of the specified server certificate.
|
Future<Void> |
updateSigningCertificateAsync(UpdateSigningCertificateRequest updateSigningCertificateRequest)
Changes the status of the specified signing certificate from active
to disabled, or vice versa.
|
Future<Void> |
updateSigningCertificateAsync(UpdateSigningCertificateRequest updateSigningCertificateRequest,
AsyncHandler<UpdateSigningCertificateRequest,Void> asyncHandler)
Changes the status of the specified signing certificate from active
to disabled, or vice versa.
|
Future<Void> |
updateSSHPublicKeyAsync(UpdateSSHPublicKeyRequest updateSSHPublicKeyRequest)
Sets the status of the specified SSH public key to active or
inactive.
|
Future<Void> |
updateSSHPublicKeyAsync(UpdateSSHPublicKeyRequest updateSSHPublicKeyRequest,
AsyncHandler<UpdateSSHPublicKeyRequest,Void> asyncHandler)
Sets the status of the specified SSH public key to active or
inactive.
|
Future<Void> |
updateUserAsync(UpdateUserRequest updateUserRequest)
Updates the name and/or the path of the specified user.
|
Future<Void> |
updateUserAsync(UpdateUserRequest updateUserRequest,
AsyncHandler<UpdateUserRequest,Void> asyncHandler)
Updates the name and/or the path of the specified user.
|
Future<UploadServerCertificateResult> |
uploadServerCertificateAsync(UploadServerCertificateRequest uploadServerCertificateRequest)
Uploads a server certificate entity for the AWS account.
|
Future<UploadServerCertificateResult> |
uploadServerCertificateAsync(UploadServerCertificateRequest uploadServerCertificateRequest,
AsyncHandler<UploadServerCertificateRequest,UploadServerCertificateResult> asyncHandler)
Uploads a server certificate entity for the AWS account.
|
Future<UploadSigningCertificateResult> |
uploadSigningCertificateAsync(UploadSigningCertificateRequest uploadSigningCertificateRequest)
Uploads an X.509 signing certificate and associates it with the
specified user.
|
Future<UploadSigningCertificateResult> |
uploadSigningCertificateAsync(UploadSigningCertificateRequest uploadSigningCertificateRequest,
AsyncHandler<UploadSigningCertificateRequest,UploadSigningCertificateResult> asyncHandler)
Uploads an X.509 signing certificate and associates it with the
specified user.
|
Future<UploadSSHPublicKeyResult> |
uploadSSHPublicKeyAsync(UploadSSHPublicKeyRequest uploadSSHPublicKeyRequest)
Uploads an SSH public key and associates it with the specified IAM
user.
|
Future<UploadSSHPublicKeyResult> |
uploadSSHPublicKeyAsync(UploadSSHPublicKeyRequest uploadSSHPublicKeyRequest,
AsyncHandler<UploadSSHPublicKeyRequest,UploadSSHPublicKeyResult> asyncHandler)
Uploads an SSH public key and associates it with the specified IAM
user.
|
addClientIDToOpenIDConnectProvider, addRoleToInstanceProfile, addUserToGroup, attachGroupPolicy, attachRolePolicy, attachUserPolicy, changePassword, createAccessKey, createAccessKey, createAccountAlias, createGroup, createInstanceProfile, createLoginProfile, createOpenIDConnectProvider, createPolicy, createPolicyVersion, createRole, createSAMLProvider, createUser, createVirtualMFADevice, deactivateMFADevice, deleteAccessKey, deleteAccountAlias, deleteAccountPasswordPolicy, deleteAccountPasswordPolicy, deleteGroup, deleteGroupPolicy, deleteInstanceProfile, deleteLoginProfile, deleteOpenIDConnectProvider, deletePolicy, deletePolicyVersion, deleteRole, deleteRolePolicy, deleteSAMLProvider, deleteServerCertificate, deleteSigningCertificate, deleteSSHPublicKey, deleteUser, deleteUserPolicy, deleteVirtualMFADevice, detachGroupPolicy, detachRolePolicy, detachUserPolicy, enableMFADevice, generateCredentialReport, generateCredentialReport, getAccessKeyLastUsed, getAccountAuthorizationDetails, getAccountAuthorizationDetails, getAccountPasswordPolicy, getAccountPasswordPolicy, getAccountSummary, getAccountSummary, getCachedResponseMetadata, getContextKeysForCustomPolicy, getContextKeysForPrincipalPolicy, getCredentialReport, getCredentialReport, getGroup, getGroupPolicy, getInstanceProfile, getLoginProfile, getOpenIDConnectProvider, getPolicy, getPolicyVersion, getRole, getRolePolicy, getSAMLProvider, getServerCertificate, getSSHPublicKey, getUser, getUser, getUserPolicy, listAccessKeys, listAccessKeys, listAccountAliases, listAccountAliases, listAttachedGroupPolicies, listAttachedRolePolicies, listAttachedUserPolicies, listEntitiesForPolicy, listGroupPolicies, listGroups, listGroups, listGroupsForUser, listInstanceProfiles, listInstanceProfiles, listInstanceProfilesForRole, listMFADevices, listMFADevices, listOpenIDConnectProviders, listOpenIDConnectProviders, listPolicies, listPolicies, listPolicyVersions, listRolePolicies, listRoles, listRoles, listSAMLProviders, listSAMLProviders, listServerCertificates, listServerCertificates, listSigningCertificates, listSigningCertificates, listSSHPublicKeys, listSSHPublicKeys, listUserPolicies, listUsers, listUsers, listVirtualMFADevices, listVirtualMFADevices, putGroupPolicy, putRolePolicy, putUserPolicy, removeClientIDFromOpenIDConnectProvider, removeRoleFromInstanceProfile, removeUserFromGroup, resyncMFADevice, setDefaultPolicyVersion, simulateCustomPolicy, simulatePrincipalPolicy, updateAccessKey, updateAccountPasswordPolicy, updateAssumeRolePolicy, updateGroup, updateLoginProfile, updateOpenIDConnectProviderThumbprint, updateSAMLProvider, updateServerCertificate, updateSigningCertificate, updateSSHPublicKey, updateUser, uploadServerCertificate, uploadSigningCertificate, uploadSSHPublicKey
addRequestHandler, addRequestHandler, beforeMarshalling, configSigner, configSigner, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClientIDToOpenIDConnectProvider, addRoleToInstanceProfile, addUserToGroup, attachGroupPolicy, attachRolePolicy, attachUserPolicy, changePassword, createAccessKey, createAccessKey, createAccountAlias, createGroup, createInstanceProfile, createLoginProfile, createOpenIDConnectProvider, createPolicy, createPolicyVersion, createRole, createSAMLProvider, createUser, createVirtualMFADevice, deactivateMFADevice, deleteAccessKey, deleteAccountAlias, deleteAccountPasswordPolicy, deleteAccountPasswordPolicy, deleteGroup, deleteGroupPolicy, deleteInstanceProfile, deleteLoginProfile, deleteOpenIDConnectProvider, deletePolicy, deletePolicyVersion, deleteRole, deleteRolePolicy, deleteSAMLProvider, deleteServerCertificate, deleteSigningCertificate, deleteSSHPublicKey, deleteUser, deleteUserPolicy, deleteVirtualMFADevice, detachGroupPolicy, detachRolePolicy, detachUserPolicy, enableMFADevice, generateCredentialReport, generateCredentialReport, getAccessKeyLastUsed, getAccountAuthorizationDetails, getAccountAuthorizationDetails, getAccountPasswordPolicy, getAccountPasswordPolicy, getAccountSummary, getAccountSummary, getCachedResponseMetadata, getContextKeysForCustomPolicy, getContextKeysForPrincipalPolicy, getCredentialReport, getCredentialReport, getGroup, getGroupPolicy, getInstanceProfile, getLoginProfile, getOpenIDConnectProvider, getPolicy, getPolicyVersion, getRole, getRolePolicy, getSAMLProvider, getServerCertificate, getSSHPublicKey, getUser, getUser, getUserPolicy, listAccessKeys, listAccessKeys, listAccountAliases, listAccountAliases, listAttachedGroupPolicies, listAttachedRolePolicies, listAttachedUserPolicies, listEntitiesForPolicy, listGroupPolicies, listGroups, listGroups, listGroupsForUser, listInstanceProfiles, listInstanceProfiles, listInstanceProfilesForRole, listMFADevices, listMFADevices, listOpenIDConnectProviders, listOpenIDConnectProviders, listPolicies, listPolicies, listPolicyVersions, listRolePolicies, listRoles, listRoles, listSAMLProviders, listSAMLProviders, listServerCertificates, listServerCertificates, listSigningCertificates, listSigningCertificates, listSSHPublicKeys, listSSHPublicKeys, listUserPolicies, listUsers, listUsers, listVirtualMFADevices, listVirtualMFADevices, putGroupPolicy, putRolePolicy, putUserPolicy, removeClientIDFromOpenIDConnectProvider, removeRoleFromInstanceProfile, removeUserFromGroup, resyncMFADevice, setDefaultPolicyVersion, setEndpoint, setRegion, simulateCustomPolicy, simulatePrincipalPolicy, updateAccessKey, updateAccountPasswordPolicy, updateAssumeRolePolicy, updateGroup, updateLoginProfile, updateOpenIDConnectProviderThumbprint, updateSAMLProvider, updateServerCertificate, updateSigningCertificate, updateSSHPublicKey, updateUser, uploadServerCertificate, uploadSigningCertificate, uploadSSHPublicKey
public AmazonIdentityManagementAsyncClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AmazonIdentityManagementAsyncClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this
client connects to AmazonIdentityManagement
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AmazonIdentityManagementAsyncClient(AWSCredentials awsCredentials)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonIdentityManagementAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will
be executed.public AmazonIdentityManagementAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).executorService
- The executor service by which all asynchronous requests will
be executed.public AmazonIdentityManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AmazonIdentityManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will
be executed.public AmazonIdentityManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).public AmazonIdentityManagementAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).executorService
- The executor service by which all asynchronous requests will
be executed.public ExecutorService getExecutorService()
public void shutdown()
shutdown
in interface AmazonIdentityManagement
shutdown
in class AmazonWebServiceClient
public Future<Void> deleteAccountAliasAsync(DeleteAccountAliasRequest deleteAccountAliasRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified AWS account alias. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide .
deleteAccountAliasAsync
in interface AmazonIdentityManagementAsync
deleteAccountAliasRequest
- Container for the necessary
parameters to execute the DeleteAccountAlias operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteAccountAliasAsync(DeleteAccountAliasRequest deleteAccountAliasRequest, AsyncHandler<DeleteAccountAliasRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified AWS account alias. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide .
deleteAccountAliasAsync
in interface AmazonIdentityManagementAsync
deleteAccountAliasRequest
- Container for the necessary
parameters to execute the DeleteAccountAlias operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListGroupsResult> listGroupsAsync(ListGroupsRequest listGroupsRequest) throws AmazonServiceException, AmazonClientException
Lists the groups that have the specified path prefix.
You can paginate the results using the MaxItems
and
Marker
parameters.
listGroupsAsync
in interface AmazonIdentityManagementAsync
listGroupsRequest
- Container for the necessary parameters to
execute the ListGroups operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListGroupsResult> listGroupsAsync(ListGroupsRequest listGroupsRequest, AsyncHandler<ListGroupsRequest,ListGroupsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the groups that have the specified path prefix.
You can paginate the results using the MaxItems
and
Marker
parameters.
listGroupsAsync
in interface AmazonIdentityManagementAsync
listGroupsRequest
- Container for the necessary parameters to
execute the ListGroups operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteVirtualMFADeviceAsync(DeleteVirtualMFADeviceRequest deleteVirtualMFADeviceRequest) throws AmazonServiceException, AmazonClientException
Deletes a virtual MFA device.
NOTE: You must deactivate a user's virtual MFA device before you can delete it. For information about deactivating MFA devices, see DeactivateMFADevice.
deleteVirtualMFADeviceAsync
in interface AmazonIdentityManagementAsync
deleteVirtualMFADeviceRequest
- Container for the necessary
parameters to execute the DeleteVirtualMFADevice operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteVirtualMFADeviceAsync(DeleteVirtualMFADeviceRequest deleteVirtualMFADeviceRequest, AsyncHandler<DeleteVirtualMFADeviceRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes a virtual MFA device.
NOTE: You must deactivate a user's virtual MFA device before you can delete it. For information about deactivating MFA devices, see DeactivateMFADevice.
deleteVirtualMFADeviceAsync
in interface AmazonIdentityManagementAsync
deleteVirtualMFADeviceRequest
- Container for the necessary
parameters to execute the DeleteVirtualMFADevice operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> putUserPolicyAsync(PutUserPolicyRequest putUserPolicyRequest) throws AmazonServiceException, AmazonClientException
Adds (or updates) an inline policy document that is embedded in the specified user.
A user can also have a managed policy attached to it. To attach a managed policy to a user, use AttachUserPolicy. To create a new managed policy, use CreatePolicy. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
For information about limits on the number of inline policies that you can embed in a user, see Limitations on IAM Entities in the IAM User Guide .
NOTE:Because policy documents can be large, you should use POST rather than GET when calling PutUserPolicy. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide.
putUserPolicyAsync
in interface AmazonIdentityManagementAsync
putUserPolicyRequest
- Container for the necessary parameters to
execute the PutUserPolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> putUserPolicyAsync(PutUserPolicyRequest putUserPolicyRequest, AsyncHandler<PutUserPolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Adds (or updates) an inline policy document that is embedded in the specified user.
A user can also have a managed policy attached to it. To attach a managed policy to a user, use AttachUserPolicy. To create a new managed policy, use CreatePolicy. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
For information about limits on the number of inline policies that you can embed in a user, see Limitations on IAM Entities in the IAM User Guide .
NOTE:Because policy documents can be large, you should use POST rather than GET when calling PutUserPolicy. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide.
putUserPolicyAsync
in interface AmazonIdentityManagementAsync
putUserPolicyRequest
- Container for the necessary parameters to
execute the PutUserPolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListSSHPublicKeysResult> listSSHPublicKeysAsync(ListSSHPublicKeysRequest listSSHPublicKeysRequest) throws AmazonServiceException, AmazonClientException
Returns information about the SSH public keys associated with the specified IAM user. If there are none, the action returns an empty list.
The SSH public keys returned by this action are used only for authenticating the IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
Although each user is limited to a small number of keys, you can
still paginate the results using the MaxItems
and
Marker
parameters.
listSSHPublicKeysAsync
in interface AmazonIdentityManagementAsync
listSSHPublicKeysRequest
- Container for the necessary parameters
to execute the ListSSHPublicKeys operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListSSHPublicKeysResult> listSSHPublicKeysAsync(ListSSHPublicKeysRequest listSSHPublicKeysRequest, AsyncHandler<ListSSHPublicKeysRequest,ListSSHPublicKeysResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns information about the SSH public keys associated with the specified IAM user. If there are none, the action returns an empty list.
The SSH public keys returned by this action are used only for authenticating the IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
Although each user is limited to a small number of keys, you can
still paginate the results using the MaxItems
and
Marker
parameters.
listSSHPublicKeysAsync
in interface AmazonIdentityManagementAsync
listSSHPublicKeysRequest
- Container for the necessary parameters
to execute the ListSSHPublicKeys operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListSAMLProvidersResult> listSAMLProvidersAsync(ListSAMLProvidersRequest listSAMLProvidersRequest) throws AmazonServiceException, AmazonClientException
Lists the SAML providers in the account.
NOTE: This operation requires Signature Version 4.
listSAMLProvidersAsync
in interface AmazonIdentityManagementAsync
listSAMLProvidersRequest
- Container for the necessary parameters
to execute the ListSAMLProviders operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListSAMLProvidersResult> listSAMLProvidersAsync(ListSAMLProvidersRequest listSAMLProvidersRequest, AsyncHandler<ListSAMLProvidersRequest,ListSAMLProvidersResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the SAML providers in the account.
NOTE: This operation requires Signature Version 4.
listSAMLProvidersAsync
in interface AmazonIdentityManagementAsync
listSAMLProvidersRequest
- Container for the necessary parameters
to execute the ListSAMLProviders operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetUserPolicyResult> getUserPolicyAsync(GetUserPolicyRequest getUserPolicyRequest) throws AmazonServiceException, AmazonClientException
Retrieves the specified inline policy document that is embedded in the specified user.
A user can also have managed policies attached to it. To retrieve a managed policy document that is attached to a user, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
getUserPolicyAsync
in interface AmazonIdentityManagementAsync
getUserPolicyRequest
- Container for the necessary parameters to
execute the GetUserPolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetUserPolicyResult> getUserPolicyAsync(GetUserPolicyRequest getUserPolicyRequest, AsyncHandler<GetUserPolicyRequest,GetUserPolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves the specified inline policy document that is embedded in the specified user.
A user can also have managed policies attached to it. To retrieve a managed policy document that is attached to a user, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
getUserPolicyAsync
in interface AmazonIdentityManagementAsync
getUserPolicyRequest
- Container for the necessary parameters to
execute the GetUserPolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteOpenIDConnectProviderAsync(DeleteOpenIDConnectProviderRequest deleteOpenIDConnectProviderRequest) throws AmazonServiceException, AmazonClientException
Deletes an IAM OpenID Connect identity provider.
Deleting an OIDC provider does not update any roles that reference the provider as a principal in their trust policies. Any attempt to assume a role that references a provider that has been deleted will fail.
This action is idempotent; it does not fail or return an error if you call the action for a provider that was already deleted.
deleteOpenIDConnectProviderAsync
in interface AmazonIdentityManagementAsync
deleteOpenIDConnectProviderRequest
- Container for the necessary
parameters to execute the DeleteOpenIDConnectProvider operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteOpenIDConnectProviderAsync(DeleteOpenIDConnectProviderRequest deleteOpenIDConnectProviderRequest, AsyncHandler<DeleteOpenIDConnectProviderRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes an IAM OpenID Connect identity provider.
Deleting an OIDC provider does not update any roles that reference the provider as a principal in their trust policies. Any attempt to assume a role that references a provider that has been deleted will fail.
This action is idempotent; it does not fail or return an error if you call the action for a provider that was already deleted.
deleteOpenIDConnectProviderAsync
in interface AmazonIdentityManagementAsync
deleteOpenIDConnectProviderRequest
- Container for the necessary
parameters to execute the DeleteOpenIDConnectProvider operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateSigningCertificateAsync(UpdateSigningCertificateRequest updateSigningCertificateRequest) throws AmazonServiceException, AmazonClientException
Changes the status of the specified signing certificate from active to disabled, or vice versa. This action can be used to disable a user's signing certificate as part of a certificate rotation work flow.
If the UserName
field is not specified, the UserName is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, you can use this action to manage root credentials even if
the AWS account has no associated users.
updateSigningCertificateAsync
in interface AmazonIdentityManagementAsync
updateSigningCertificateRequest
- Container for the necessary
parameters to execute the UpdateSigningCertificate operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateSigningCertificateAsync(UpdateSigningCertificateRequest updateSigningCertificateRequest, AsyncHandler<UpdateSigningCertificateRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Changes the status of the specified signing certificate from active to disabled, or vice versa. This action can be used to disable a user's signing certificate as part of a certificate rotation work flow.
If the UserName
field is not specified, the UserName is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, you can use this action to manage root credentials even if
the AWS account has no associated users.
updateSigningCertificateAsync
in interface AmazonIdentityManagementAsync
updateSigningCertificateRequest
- Container for the necessary
parameters to execute the UpdateSigningCertificate operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListUsersResult> listUsersAsync(ListUsersRequest listUsersRequest) throws AmazonServiceException, AmazonClientException
Lists the IAM users that have the specified path prefix. If no path prefix is specified, the action returns all users in the AWS account. If there are none, the action returns an empty list.
You can paginate the results using the MaxItems
and
Marker
parameters.
listUsersAsync
in interface AmazonIdentityManagementAsync
listUsersRequest
- Container for the necessary parameters to
execute the ListUsers operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListUsersResult> listUsersAsync(ListUsersRequest listUsersRequest, AsyncHandler<ListUsersRequest,ListUsersResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the IAM users that have the specified path prefix. If no path prefix is specified, the action returns all users in the AWS account. If there are none, the action returns an empty list.
You can paginate the results using the MaxItems
and
Marker
parameters.
listUsersAsync
in interface AmazonIdentityManagementAsync
listUsersRequest
- Container for the necessary parameters to
execute the ListUsers operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> attachRolePolicyAsync(AttachRolePolicyRequest attachRolePolicyRequest) throws AmazonServiceException, AmazonClientException
Attaches the specified managed policy to the specified role.
When you attach a managed policy to a role, the managed policy is used as the role's access (permissions) policy. You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy.
Use this API to attach a managed policy to a role. To embed an inline policy in a role, use PutRolePolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
attachRolePolicyAsync
in interface AmazonIdentityManagementAsync
attachRolePolicyRequest
- Container for the necessary parameters
to execute the AttachRolePolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> attachRolePolicyAsync(AttachRolePolicyRequest attachRolePolicyRequest, AsyncHandler<AttachRolePolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Attaches the specified managed policy to the specified role.
When you attach a managed policy to a role, the managed policy is used as the role's access (permissions) policy. You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy.
Use this API to attach a managed policy to a role. To embed an inline policy in a role, use PutRolePolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
attachRolePolicyAsync
in interface AmazonIdentityManagementAsync
attachRolePolicyRequest
- Container for the necessary parameters
to execute the AttachRolePolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetContextKeysForCustomPolicyResult> getContextKeysForCustomPolicyAsync(GetContextKeysForCustomPolicyRequest getContextKeysForCustomPolicyRequest) throws AmazonServiceException, AmazonClientException
Gets a list of all of the context keys referenced in
Condition
elements in the input policies. The policies
are supplied as a list of one or more strings. To get the context keys
from policies associated with an IAM user, group, or role, use
GetContextKeysForPrincipalPolicy.
Context keys are variables maintained by AWS and its services that
provide details about the context of an API query request, and can be
evaluated by using the Condition
element of an IAM
policy. Use GetContextKeysForCustomPolicy to understand what key names
and values you must supply when you call SimulateCustomPolicy. Note
that all parameters are shown in unencoded form here for clarity, but
must be URL encoded to be included as a part of a real HTML request.
getContextKeysForCustomPolicyAsync
in interface AmazonIdentityManagementAsync
getContextKeysForCustomPolicyRequest
- Container for the
necessary parameters to execute the GetContextKeysForCustomPolicy
operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetContextKeysForCustomPolicyResult> getContextKeysForCustomPolicyAsync(GetContextKeysForCustomPolicyRequest getContextKeysForCustomPolicyRequest, AsyncHandler<GetContextKeysForCustomPolicyRequest,GetContextKeysForCustomPolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Gets a list of all of the context keys referenced in
Condition
elements in the input policies. The policies
are supplied as a list of one or more strings. To get the context keys
from policies associated with an IAM user, group, or role, use
GetContextKeysForPrincipalPolicy.
Context keys are variables maintained by AWS and its services that
provide details about the context of an API query request, and can be
evaluated by using the Condition
element of an IAM
policy. Use GetContextKeysForCustomPolicy to understand what key names
and values you must supply when you call SimulateCustomPolicy. Note
that all parameters are shown in unencoded form here for clarity, but
must be URL encoded to be included as a part of a real HTML request.
getContextKeysForCustomPolicyAsync
in interface AmazonIdentityManagementAsync
getContextKeysForCustomPolicyRequest
- Container for the
necessary parameters to execute the GetContextKeysForCustomPolicy
operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetCredentialReportResult> getCredentialReportAsync(GetCredentialReportRequest getCredentialReportRequest) throws AmazonServiceException, AmazonClientException
Retrieves a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports in the IAM User Guide .
getCredentialReportAsync
in interface AmazonIdentityManagementAsync
getCredentialReportRequest
- Container for the necessary
parameters to execute the GetCredentialReport operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetCredentialReportResult> getCredentialReportAsync(GetCredentialReportRequest getCredentialReportRequest, AsyncHandler<GetCredentialReportRequest,GetCredentialReportResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports in the IAM User Guide .
getCredentialReportAsync
in interface AmazonIdentityManagementAsync
getCredentialReportRequest
- Container for the necessary
parameters to execute the GetCredentialReport operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> enableMFADeviceAsync(EnableMFADeviceRequest enableMFADeviceRequest) throws AmazonServiceException, AmazonClientException
Enables the specified MFA device and associates it with the specified user name. When enabled, the MFA device is required for every subsequent login by the user name associated with the device.
enableMFADeviceAsync
in interface AmazonIdentityManagementAsync
enableMFADeviceRequest
- Container for the necessary parameters
to execute the EnableMFADevice operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> enableMFADeviceAsync(EnableMFADeviceRequest enableMFADeviceRequest, AsyncHandler<EnableMFADeviceRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Enables the specified MFA device and associates it with the specified user name. When enabled, the MFA device is required for every subsequent login by the user name associated with the device.
enableMFADeviceAsync
in interface AmazonIdentityManagementAsync
enableMFADeviceRequest
- Container for the necessary parameters
to execute the EnableMFADevice operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteAccountPasswordPolicyAsync(DeleteAccountPasswordPolicyRequest deleteAccountPasswordPolicyRequest) throws AmazonServiceException, AmazonClientException
Deletes the password policy for the AWS account.
deleteAccountPasswordPolicyAsync
in interface AmazonIdentityManagementAsync
deleteAccountPasswordPolicyRequest
- Container for the necessary
parameters to execute the DeleteAccountPasswordPolicy operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteAccountPasswordPolicyAsync(DeleteAccountPasswordPolicyRequest deleteAccountPasswordPolicyRequest, AsyncHandler<DeleteAccountPasswordPolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the password policy for the AWS account.
deleteAccountPasswordPolicyAsync
in interface AmazonIdentityManagementAsync
deleteAccountPasswordPolicyRequest
- Container for the necessary
parameters to execute the DeleteAccountPasswordPolicy operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetLoginProfileResult> getLoginProfileAsync(GetLoginProfileRequest getLoginProfileRequest) throws AmazonServiceException, AmazonClientException
Retrieves the user name and password-creation date for the specified
user. If the user has not been assigned a password, the action returns
a 404 ( NoSuchEntity
) error.
getLoginProfileAsync
in interface AmazonIdentityManagementAsync
getLoginProfileRequest
- Container for the necessary parameters
to execute the GetLoginProfile operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetLoginProfileResult> getLoginProfileAsync(GetLoginProfileRequest getLoginProfileRequest, AsyncHandler<GetLoginProfileRequest,GetLoginProfileResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves the user name and password-creation date for the specified
user. If the user has not been assigned a password, the action returns
a 404 ( NoSuchEntity
) error.
getLoginProfileAsync
in interface AmazonIdentityManagementAsync
getLoginProfileRequest
- Container for the necessary parameters
to execute the GetLoginProfile operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<UpdateSAMLProviderResult> updateSAMLProviderAsync(UpdateSAMLProviderRequest updateSAMLProviderRequest) throws AmazonServiceException, AmazonClientException
Updates the metadata document for an existing SAML provider.
NOTE:This operation requires Signature Version 4.
updateSAMLProviderAsync
in interface AmazonIdentityManagementAsync
updateSAMLProviderRequest
- Container for the necessary
parameters to execute the UpdateSAMLProvider operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<UpdateSAMLProviderResult> updateSAMLProviderAsync(UpdateSAMLProviderRequest updateSAMLProviderRequest, AsyncHandler<UpdateSAMLProviderRequest,UpdateSAMLProviderResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Updates the metadata document for an existing SAML provider.
NOTE:This operation requires Signature Version 4.
updateSAMLProviderAsync
in interface AmazonIdentityManagementAsync
updateSAMLProviderRequest
- Container for the necessary
parameters to execute the UpdateSAMLProvider operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<UploadServerCertificateResult> uploadServerCertificateAsync(UploadServerCertificateRequest uploadServerCertificateRequest) throws AmazonServiceException, AmazonClientException
Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.
For information about the number of server certificates you can upload, see Limitations on IAM Entities in the IAM User Guide .
NOTE:Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling UploadServerCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in the IAM User Guide.
uploadServerCertificateAsync
in interface AmazonIdentityManagementAsync
uploadServerCertificateRequest
- Container for the necessary
parameters to execute the UploadServerCertificate operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<UploadServerCertificateResult> uploadServerCertificateAsync(UploadServerCertificateRequest uploadServerCertificateRequest, AsyncHandler<UploadServerCertificateRequest,UploadServerCertificateResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.
For information about the number of server certificates you can upload, see Limitations on IAM Entities in the IAM User Guide .
NOTE:Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling UploadServerCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in the IAM User Guide.
uploadServerCertificateAsync
in interface AmazonIdentityManagementAsync
uploadServerCertificateRequest
- Container for the necessary
parameters to execute the UploadServerCertificate operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> createAccountAliasAsync(CreateAccountAliasRequest createAccountAliasRequest) throws AmazonServiceException, AmazonClientException
Creates an alias for your AWS account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide .
createAccountAliasAsync
in interface AmazonIdentityManagementAsync
createAccountAliasRequest
- Container for the necessary
parameters to execute the CreateAccountAlias operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> createAccountAliasAsync(CreateAccountAliasRequest createAccountAliasRequest, AsyncHandler<CreateAccountAliasRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates an alias for your AWS account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide .
createAccountAliasAsync
in interface AmazonIdentityManagementAsync
createAccountAliasRequest
- Container for the necessary
parameters to execute the CreateAccountAlias operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListAttachedUserPoliciesResult> listAttachedUserPoliciesAsync(ListAttachedUserPoliciesRequest listAttachedUserPoliciesRequest) throws AmazonServiceException, AmazonClientException
Lists all managed policies that are attached to the specified user.
A user can also have inline policies embedded with it. To list the inline policies for a user, use the ListUserPolicies API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. You can use the
PathPrefix
parameter to limit the list of policies to
only those matching the specified path prefix. If there are no
policies attached to the specified group (or none that match the
specified path prefix), the action returns an empty list.
listAttachedUserPoliciesAsync
in interface AmazonIdentityManagementAsync
listAttachedUserPoliciesRequest
- Container for the necessary
parameters to execute the ListAttachedUserPolicies operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListAttachedUserPoliciesResult> listAttachedUserPoliciesAsync(ListAttachedUserPoliciesRequest listAttachedUserPoliciesRequest, AsyncHandler<ListAttachedUserPoliciesRequest,ListAttachedUserPoliciesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists all managed policies that are attached to the specified user.
A user can also have inline policies embedded with it. To list the inline policies for a user, use the ListUserPolicies API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. You can use the
PathPrefix
parameter to limit the list of policies to
only those matching the specified path prefix. If there are no
policies attached to the specified group (or none that match the
specified path prefix), the action returns an empty list.
listAttachedUserPoliciesAsync
in interface AmazonIdentityManagementAsync
listAttachedUserPoliciesRequest
- Container for the necessary
parameters to execute the ListAttachedUserPolicies operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deletePolicyAsync(DeletePolicyRequest deletePolicyRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified managed policy.
Before you can delete a managed policy, you must detach the policy from all users, groups, and roles that it is attached to, and you must delete all of the policy's versions. The following steps describe the process for deleting a managed policy:
For information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
deletePolicyAsync
in interface AmazonIdentityManagementAsync
deletePolicyRequest
- Container for the necessary parameters to
execute the DeletePolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deletePolicyAsync(DeletePolicyRequest deletePolicyRequest, AsyncHandler<DeletePolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified managed policy.
Before you can delete a managed policy, you must detach the policy from all users, groups, and roles that it is attached to, and you must delete all of the policy's versions. The following steps describe the process for deleting a managed policy:
For information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
deletePolicyAsync
in interface AmazonIdentityManagementAsync
deletePolicyRequest
- Container for the necessary parameters to
execute the DeletePolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<SimulateCustomPolicyResult> simulateCustomPolicyAsync(SimulateCustomPolicyRequest simulateCustomPolicyRequest) throws AmazonServiceException, AmazonClientException
Simulate a set of IAM policies against a list of API actions and AWS resources to determine the policies' effective permissions. The policies are provided as a list of strings.
The simulation does not perform the API actions, it only checks the authorization to determine if the simulated policies allow or deny the actions.
If you want to simulate existing policies attached to an IAM user, group, or role, use SimulatePrincipalPolicy instead.
Context keys are variables maintained by AWS and its services that
provide details about the context of an API query request, and can be
evaluated by using the Condition
element of an IAM
policy. To get the list of context keys required by the policies to
simulate them correctly, use GetContextKeysForCustomPolicy.
If the output is long, you can paginate the results using the
MaxItems
and Marker
parameters.
simulateCustomPolicyAsync
in interface AmazonIdentityManagementAsync
simulateCustomPolicyRequest
- Container for the necessary
parameters to execute the SimulateCustomPolicy operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<SimulateCustomPolicyResult> simulateCustomPolicyAsync(SimulateCustomPolicyRequest simulateCustomPolicyRequest, AsyncHandler<SimulateCustomPolicyRequest,SimulateCustomPolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Simulate a set of IAM policies against a list of API actions and AWS resources to determine the policies' effective permissions. The policies are provided as a list of strings.
The simulation does not perform the API actions, it only checks the authorization to determine if the simulated policies allow or deny the actions.
If you want to simulate existing policies attached to an IAM user, group, or role, use SimulatePrincipalPolicy instead.
Context keys are variables maintained by AWS and its services that
provide details about the context of an API query request, and can be
evaluated by using the Condition
element of an IAM
policy. To get the list of context keys required by the policies to
simulate them correctly, use GetContextKeysForCustomPolicy.
If the output is long, you can paginate the results using the
MaxItems
and Marker
parameters.
simulateCustomPolicyAsync
in interface AmazonIdentityManagementAsync
simulateCustomPolicyRequest
- Container for the necessary
parameters to execute the SimulateCustomPolicy operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteRoleAsync(DeleteRoleRequest deleteRoleRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified role. The role must not have any policies attached. For more information about roles, go to Working with Roles .
IMPORTANT:Make sure you do not have any Amazon EC2 instances running with the role you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.
deleteRoleAsync
in interface AmazonIdentityManagementAsync
deleteRoleRequest
- Container for the necessary parameters to
execute the DeleteRole operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteRoleAsync(DeleteRoleRequest deleteRoleRequest, AsyncHandler<DeleteRoleRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified role. The role must not have any policies attached. For more information about roles, go to Working with Roles .
IMPORTANT:Make sure you do not have any Amazon EC2 instances running with the role you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.
deleteRoleAsync
in interface AmazonIdentityManagementAsync
deleteRoleRequest
- Container for the necessary parameters to
execute the DeleteRole operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateAccessKeyResult> createAccessKeyAsync(CreateAccessKeyRequest createAccessKeyRequest) throws AmazonServiceException, AmazonClientException
Creates a new AWS secret access key and corresponding AWS access key
ID for the specified user. The default status for new keys is
Active
.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
For information about limits on the number of keys you can create, see Limitations on IAM Entities in the IAM User Guide .
IMPORTANT: To ensure the security of your AWS account, the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys.
createAccessKeyAsync
in interface AmazonIdentityManagementAsync
createAccessKeyRequest
- Container for the necessary parameters
to execute the CreateAccessKey operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateAccessKeyResult> createAccessKeyAsync(CreateAccessKeyRequest createAccessKeyRequest, AsyncHandler<CreateAccessKeyRequest,CreateAccessKeyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new AWS secret access key and corresponding AWS access key
ID for the specified user. The default status for new keys is
Active
.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
For information about limits on the number of keys you can create, see Limitations on IAM Entities in the IAM User Guide .
IMPORTANT: To ensure the security of your AWS account, the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys.
createAccessKeyAsync
in interface AmazonIdentityManagementAsync
createAccessKeyRequest
- Container for the necessary parameters
to execute the CreateAccessKey operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetUserResult> getUserAsync(GetUserRequest getUserRequest) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified user, including the user's creation date, path, unique ID, and ARN.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID used to sign the request.
getUserAsync
in interface AmazonIdentityManagementAsync
getUserRequest
- Container for the necessary parameters to
execute the GetUser operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetUserResult> getUserAsync(GetUserRequest getUserRequest, AsyncHandler<GetUserRequest,GetUserResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified user, including the user's creation date, path, unique ID, and ARN.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID used to sign the request.
getUserAsync
in interface AmazonIdentityManagementAsync
getUserRequest
- Container for the necessary parameters to
execute the GetUser operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListAttachedGroupPoliciesResult> listAttachedGroupPoliciesAsync(ListAttachedGroupPoliciesRequest listAttachedGroupPoliciesRequest) throws AmazonServiceException, AmazonClientException
Lists all managed policies that are attached to the specified group.
A group can also have inline policies embedded with it. To list the inline policies for a group, use the ListGroupPolicies API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. You can use the
PathPrefix
parameter to limit the list of policies to
only those matching the specified path prefix. If there are no
policies attached to the specified group (or none that match the
specified path prefix), the action returns an empty list.
listAttachedGroupPoliciesAsync
in interface AmazonIdentityManagementAsync
listAttachedGroupPoliciesRequest
- Container for the necessary
parameters to execute the ListAttachedGroupPolicies operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListAttachedGroupPoliciesResult> listAttachedGroupPoliciesAsync(ListAttachedGroupPoliciesRequest listAttachedGroupPoliciesRequest, AsyncHandler<ListAttachedGroupPoliciesRequest,ListAttachedGroupPoliciesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists all managed policies that are attached to the specified group.
A group can also have inline policies embedded with it. To list the inline policies for a group, use the ListGroupPolicies API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. You can use the
PathPrefix
parameter to limit the list of policies to
only those matching the specified path prefix. If there are no
policies attached to the specified group (or none that match the
specified path prefix), the action returns an empty list.
listAttachedGroupPoliciesAsync
in interface AmazonIdentityManagementAsync
listAttachedGroupPoliciesRequest
- Container for the necessary
parameters to execute the ListAttachedGroupPolicies operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> resyncMFADeviceAsync(ResyncMFADeviceRequest resyncMFADeviceRequest) throws AmazonServiceException, AmazonClientException
Synchronizes the specified MFA device with AWS servers.
For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.
resyncMFADeviceAsync
in interface AmazonIdentityManagementAsync
resyncMFADeviceRequest
- Container for the necessary parameters
to execute the ResyncMFADevice operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> resyncMFADeviceAsync(ResyncMFADeviceRequest resyncMFADeviceRequest, AsyncHandler<ResyncMFADeviceRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Synchronizes the specified MFA device with AWS servers.
For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.
resyncMFADeviceAsync
in interface AmazonIdentityManagementAsync
resyncMFADeviceRequest
- Container for the necessary parameters
to execute the ResyncMFADevice operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListMFADevicesResult> listMFADevicesAsync(ListMFADevicesRequest listMFADevicesRequest) throws AmazonServiceException, AmazonClientException
Lists the MFA devices. If the request includes the user name, then this action lists all the MFA devices associated with the specified user name. If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request.
You can paginate the results using the MaxItems
and
Marker
parameters.
listMFADevicesAsync
in interface AmazonIdentityManagementAsync
listMFADevicesRequest
- Container for the necessary parameters to
execute the ListMFADevices operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListMFADevicesResult> listMFADevicesAsync(ListMFADevicesRequest listMFADevicesRequest, AsyncHandler<ListMFADevicesRequest,ListMFADevicesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the MFA devices. If the request includes the user name, then this action lists all the MFA devices associated with the specified user name. If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request.
You can paginate the results using the MaxItems
and
Marker
parameters.
listMFADevicesAsync
in interface AmazonIdentityManagementAsync
listMFADevicesRequest
- Container for the necessary parameters to
execute the ListMFADevices operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateVirtualMFADeviceResult> createVirtualMFADeviceAsync(CreateVirtualMFADeviceRequest createVirtualMFADeviceRequest) throws AmazonServiceException, AmazonClientException
Creates a new virtual MFA device for the AWS account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.
For information about limits on the number of MFA devices you can create, see Limitations on Entities in the Using IAM guide.
IMPORTANT:The seed information contained in the QR code and the Base32 string should be treated like any other secret access information, such as your AWS access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures.
createVirtualMFADeviceAsync
in interface AmazonIdentityManagementAsync
createVirtualMFADeviceRequest
- Container for the necessary
parameters to execute the CreateVirtualMFADevice operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateVirtualMFADeviceResult> createVirtualMFADeviceAsync(CreateVirtualMFADeviceRequest createVirtualMFADeviceRequest, AsyncHandler<CreateVirtualMFADeviceRequest,CreateVirtualMFADeviceResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new virtual MFA device for the AWS account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.
For information about limits on the number of MFA devices you can create, see Limitations on Entities in the Using IAM guide.
IMPORTANT:The seed information contained in the QR code and the Base32 string should be treated like any other secret access information, such as your AWS access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures.
createVirtualMFADeviceAsync
in interface AmazonIdentityManagementAsync
createVirtualMFADeviceRequest
- Container for the necessary
parameters to execute the CreateVirtualMFADevice operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deletePolicyVersionAsync(DeletePolicyVersionRequest deletePolicyVersionRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified version of the specified managed policy.
You cannot delete the default version of a policy using this API. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.
For information about versions for managed policies, refer to Versioning for Managed Policies in the IAM User Guide .
deletePolicyVersionAsync
in interface AmazonIdentityManagementAsync
deletePolicyVersionRequest
- Container for the necessary
parameters to execute the DeletePolicyVersion operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deletePolicyVersionAsync(DeletePolicyVersionRequest deletePolicyVersionRequest, AsyncHandler<DeletePolicyVersionRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified version of the specified managed policy.
You cannot delete the default version of a policy using this API. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.
For information about versions for managed policies, refer to Versioning for Managed Policies in the IAM User Guide .
deletePolicyVersionAsync
in interface AmazonIdentityManagementAsync
deletePolicyVersionRequest
- Container for the necessary
parameters to execute the DeletePolicyVersion operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListAccountAliasesResult> listAccountAliasesAsync(ListAccountAliasesRequest listAccountAliasesRequest) throws AmazonServiceException, AmazonClientException
Lists the account aliases associated with the account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters.
listAccountAliasesAsync
in interface AmazonIdentityManagementAsync
listAccountAliasesRequest
- Container for the necessary
parameters to execute the ListAccountAliases operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListAccountAliasesResult> listAccountAliasesAsync(ListAccountAliasesRequest listAccountAliasesRequest, AsyncHandler<ListAccountAliasesRequest,ListAccountAliasesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the account aliases associated with the account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters.
listAccountAliasesAsync
in interface AmazonIdentityManagementAsync
listAccountAliasesRequest
- Container for the necessary
parameters to execute the ListAccountAliases operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateOpenIDConnectProviderResult> createOpenIDConnectProviderAsync(CreateOpenIDConnectProviderRequest createOpenIDConnectProviderRequest) throws AmazonServiceException, AmazonClientException
Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC) .
The OIDC provider that you create with this operation can be used as a principal in a role's trust policy to establish a trust relationship between AWS and the OIDC provider.
When you create the IAM OIDC provider, you specify the URL of the OIDC identity provider (IdP) to trust, a list of client IDs (also known as audiences) that identify the application or applications that are allowed to authenticate using the OIDC provider, and a list of thumbprints of the server certificate(s) that the IdP uses. You get all of this information from the OIDC IdP that you want to use for access to AWS.
NOTE:Because trust for the OIDC provider is ultimately derived from the IAM provider that this action creates, it is a best practice to limit access to the CreateOpenIDConnectProvider action to highly-privileged users.
createOpenIDConnectProviderAsync
in interface AmazonIdentityManagementAsync
createOpenIDConnectProviderRequest
- Container for the necessary
parameters to execute the CreateOpenIDConnectProvider operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateOpenIDConnectProviderResult> createOpenIDConnectProviderAsync(CreateOpenIDConnectProviderRequest createOpenIDConnectProviderRequest, AsyncHandler<CreateOpenIDConnectProviderRequest,CreateOpenIDConnectProviderResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC) .
The OIDC provider that you create with this operation can be used as a principal in a role's trust policy to establish a trust relationship between AWS and the OIDC provider.
When you create the IAM OIDC provider, you specify the URL of the OIDC identity provider (IdP) to trust, a list of client IDs (also known as audiences) that identify the application or applications that are allowed to authenticate using the OIDC provider, and a list of thumbprints of the server certificate(s) that the IdP uses. You get all of this information from the OIDC IdP that you want to use for access to AWS.
NOTE:Because trust for the OIDC provider is ultimately derived from the IAM provider that this action creates, it is a best practice to limit access to the CreateOpenIDConnectProvider action to highly-privileged users.
createOpenIDConnectProviderAsync
in interface AmazonIdentityManagementAsync
createOpenIDConnectProviderRequest
- Container for the necessary
parameters to execute the CreateOpenIDConnectProvider operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetRoleResult> getRoleAsync(GetRoleRequest getRoleRequest) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified role, including the role's path, GUID, ARN, and the policy granting permission to assume the role. For more information about ARNs, go to ARNs . For more information about roles, go to Working with Roles .
getRoleAsync
in interface AmazonIdentityManagementAsync
getRoleRequest
- Container for the necessary parameters to
execute the GetRole operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetRoleResult> getRoleAsync(GetRoleRequest getRoleRequest, AsyncHandler<GetRoleRequest,GetRoleResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified role, including the role's path, GUID, ARN, and the policy granting permission to assume the role. For more information about ARNs, go to ARNs . For more information about roles, go to Working with Roles .
getRoleAsync
in interface AmazonIdentityManagementAsync
getRoleRequest
- Container for the necessary parameters to
execute the GetRole operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListRolePoliciesResult> listRolePoliciesAsync(ListRolePoliciesRequest listRolePoliciesRequest) throws AmazonServiceException, AmazonClientException
Lists the names of the inline policies that are embedded in the specified role.
A role can also have managed policies attached to it. To list the managed policies that are attached to a role, use ListAttachedRolePolicies. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. If there are no inline policies
embedded with the specified role, the action returns an empty list.
listRolePoliciesAsync
in interface AmazonIdentityManagementAsync
listRolePoliciesRequest
- Container for the necessary parameters
to execute the ListRolePolicies operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListRolePoliciesResult> listRolePoliciesAsync(ListRolePoliciesRequest listRolePoliciesRequest, AsyncHandler<ListRolePoliciesRequest,ListRolePoliciesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the names of the inline policies that are embedded in the specified role.
A role can also have managed policies attached to it. To list the managed policies that are attached to a role, use ListAttachedRolePolicies. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. If there are no inline policies
embedded with the specified role, the action returns an empty list.
listRolePoliciesAsync
in interface AmazonIdentityManagementAsync
listRolePoliciesRequest
- Container for the necessary parameters
to execute the ListRolePolicies operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListSigningCertificatesResult> listSigningCertificatesAsync(ListSigningCertificatesRequest listSigningCertificatesRequest) throws AmazonServiceException, AmazonClientException
Returns information about the signing certificates associated with the specified user. If there are none, the action returns an empty list.
Although each user is limited to a small number of signing
certificates, you can still paginate the results using the
MaxItems
and Marker
parameters.
If the UserName
field is not specified, the user name is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, you can use this action to manage root credentials even if
the AWS account has no associated users.
listSigningCertificatesAsync
in interface AmazonIdentityManagementAsync
listSigningCertificatesRequest
- Container for the necessary
parameters to execute the ListSigningCertificates operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListSigningCertificatesResult> listSigningCertificatesAsync(ListSigningCertificatesRequest listSigningCertificatesRequest, AsyncHandler<ListSigningCertificatesRequest,ListSigningCertificatesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns information about the signing certificates associated with the specified user. If there are none, the action returns an empty list.
Although each user is limited to a small number of signing
certificates, you can still paginate the results using the
MaxItems
and Marker
parameters.
If the UserName
field is not specified, the user name is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, you can use this action to manage root credentials even if
the AWS account has no associated users.
listSigningCertificatesAsync
in interface AmazonIdentityManagementAsync
listSigningCertificatesRequest
- Container for the necessary
parameters to execute the ListSigningCertificates operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<UploadSigningCertificateResult> uploadSigningCertificateAsync(UploadSigningCertificateRequest uploadSigningCertificateRequest) throws AmazonServiceException, AmazonClientException
Uploads an X.509 signing certificate and associates it with the
specified user. Some AWS services use X.509 signing certificates to
validate requests that are signed with a corresponding private key.
When you upload the certificate, its default status is
Active
.
If the UserName
field is not specified, the user name is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, you can use this action to manage root credentials even if
the AWS account has no associated users.
NOTE:Because the body of a X.509 certificate can be large, you should use POST rather than GET when calling UploadSigningCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAMguide.
uploadSigningCertificateAsync
in interface AmazonIdentityManagementAsync
uploadSigningCertificateRequest
- Container for the necessary
parameters to execute the UploadSigningCertificate operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<UploadSigningCertificateResult> uploadSigningCertificateAsync(UploadSigningCertificateRequest uploadSigningCertificateRequest, AsyncHandler<UploadSigningCertificateRequest,UploadSigningCertificateResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Uploads an X.509 signing certificate and associates it with the
specified user. Some AWS services use X.509 signing certificates to
validate requests that are signed with a corresponding private key.
When you upload the certificate, its default status is
Active
.
If the UserName
field is not specified, the user name is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, you can use this action to manage root credentials even if
the AWS account has no associated users.
NOTE:Because the body of a X.509 certificate can be large, you should use POST rather than GET when calling UploadSigningCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAMguide.
uploadSigningCertificateAsync
in interface AmazonIdentityManagementAsync
uploadSigningCertificateRequest
- Container for the necessary
parameters to execute the UploadSigningCertificate operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetAccountAuthorizationDetailsResult> getAccountAuthorizationDetailsAsync(GetAccountAuthorizationDetailsRequest getAccountAuthorizationDetailsRequest) throws AmazonServiceException, AmazonClientException
Retrieves information about all IAM users, groups, roles, and policies in your account, including their relationships to one another. Use this API to obtain a snapshot of the configuration of IAM permissions (users, groups, roles, and policies) in your account.
You can optionally filter the results using the Filter
parameter. You can paginate the results using the
MaxItems
and Marker
parameters.
getAccountAuthorizationDetailsAsync
in interface AmazonIdentityManagementAsync
getAccountAuthorizationDetailsRequest
- Container for the
necessary parameters to execute the GetAccountAuthorizationDetails
operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetAccountAuthorizationDetailsResult> getAccountAuthorizationDetailsAsync(GetAccountAuthorizationDetailsRequest getAccountAuthorizationDetailsRequest, AsyncHandler<GetAccountAuthorizationDetailsRequest,GetAccountAuthorizationDetailsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves information about all IAM users, groups, roles, and policies in your account, including their relationships to one another. Use this API to obtain a snapshot of the configuration of IAM permissions (users, groups, roles, and policies) in your account.
You can optionally filter the results using the Filter
parameter. You can paginate the results using the
MaxItems
and Marker
parameters.
getAccountAuthorizationDetailsAsync
in interface AmazonIdentityManagementAsync
getAccountAuthorizationDetailsRequest
- Container for the
necessary parameters to execute the GetAccountAuthorizationDetails
operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> changePasswordAsync(ChangePasswordRequest changePasswordRequest) throws AmazonServiceException, AmazonClientException
Changes the password of the IAM user who is calling this action. The root account password is not affected by this action.
To change the password for a different user, see UpdateLoginProfile. For more information about modifying passwords, see Managing Passwords in the IAM User Guide .
changePasswordAsync
in interface AmazonIdentityManagementAsync
changePasswordRequest
- Container for the necessary parameters to
execute the ChangePassword operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> changePasswordAsync(ChangePasswordRequest changePasswordRequest, AsyncHandler<ChangePasswordRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Changes the password of the IAM user who is calling this action. The root account password is not affected by this action.
To change the password for a different user, see UpdateLoginProfile. For more information about modifying passwords, see Managing Passwords in the IAM User Guide .
changePasswordAsync
in interface AmazonIdentityManagementAsync
changePasswordRequest
- Container for the necessary parameters to
execute the ChangePassword operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> putGroupPolicyAsync(PutGroupPolicyRequest putGroupPolicyRequest) throws AmazonServiceException, AmazonClientException
Adds (or updates) an inline policy document that is embedded in the specified group.
A user can also have managed policies attached to it. To attach a managed policy to a group, use AttachGroupPolicy. To create a new managed policy, use CreatePolicy. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
For information about limits on the number of inline policies that you can embed in a group, see Limitations on IAM Entities in the IAM User Guide .
NOTE:Because policy documents can be large, you should use POST rather than GET when calling PutGroupPolicy. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide.
putGroupPolicyAsync
in interface AmazonIdentityManagementAsync
putGroupPolicyRequest
- Container for the necessary parameters to
execute the PutGroupPolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> putGroupPolicyAsync(PutGroupPolicyRequest putGroupPolicyRequest, AsyncHandler<PutGroupPolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Adds (or updates) an inline policy document that is embedded in the specified group.
A user can also have managed policies attached to it. To attach a managed policy to a group, use AttachGroupPolicy. To create a new managed policy, use CreatePolicy. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
For information about limits on the number of inline policies that you can embed in a group, see Limitations on IAM Entities in the IAM User Guide .
NOTE:Because policy documents can be large, you should use POST rather than GET when calling PutGroupPolicy. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide.
putGroupPolicyAsync
in interface AmazonIdentityManagementAsync
putGroupPolicyRequest
- Container for the necessary parameters to
execute the PutGroupPolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteSigningCertificateAsync(DeleteSigningCertificateRequest deleteSigningCertificateRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified signing certificate associated with the specified user.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
deleteSigningCertificateAsync
in interface AmazonIdentityManagementAsync
deleteSigningCertificateRequest
- Container for the necessary
parameters to execute the DeleteSigningCertificate operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteSigningCertificateAsync(DeleteSigningCertificateRequest deleteSigningCertificateRequest, AsyncHandler<DeleteSigningCertificateRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified signing certificate associated with the specified user.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
deleteSigningCertificateAsync
in interface AmazonIdentityManagementAsync
deleteSigningCertificateRequest
- Container for the necessary
parameters to execute the DeleteSigningCertificate operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListAccessKeysResult> listAccessKeysAsync(ListAccessKeysRequest listAccessKeysRequest) throws AmazonServiceException, AmazonClientException
Returns information about the access key IDs associated with the specified user. If there are none, the action returns an empty list.
Although each user is limited to a small number of keys, you can
still paginate the results using the MaxItems
and
Marker
parameters.
If the UserName
field is not specified, the UserName is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, you can use this action to manage root credentials even if
the AWS account has no associated users.
NOTE:To ensure the security of your AWS account, the secret access key is accessible only during key and user creation.
listAccessKeysAsync
in interface AmazonIdentityManagementAsync
listAccessKeysRequest
- Container for the necessary parameters to
execute the ListAccessKeys operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListAccessKeysResult> listAccessKeysAsync(ListAccessKeysRequest listAccessKeysRequest, AsyncHandler<ListAccessKeysRequest,ListAccessKeysResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns information about the access key IDs associated with the specified user. If there are none, the action returns an empty list.
Although each user is limited to a small number of keys, you can
still paginate the results using the MaxItems
and
Marker
parameters.
If the UserName
field is not specified, the UserName is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, you can use this action to manage root credentials even if
the AWS account has no associated users.
NOTE:To ensure the security of your AWS account, the secret access key is accessible only during key and user creation.
listAccessKeysAsync
in interface AmazonIdentityManagementAsync
listAccessKeysRequest
- Container for the necessary parameters to
execute the ListAccessKeys operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListOpenIDConnectProvidersResult> listOpenIDConnectProvidersAsync(ListOpenIDConnectProvidersRequest listOpenIDConnectProvidersRequest) throws AmazonServiceException, AmazonClientException
Lists information about the OpenID Connect providers in the AWS account.
listOpenIDConnectProvidersAsync
in interface AmazonIdentityManagementAsync
listOpenIDConnectProvidersRequest
- Container for the necessary
parameters to execute the ListOpenIDConnectProviders operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListOpenIDConnectProvidersResult> listOpenIDConnectProvidersAsync(ListOpenIDConnectProvidersRequest listOpenIDConnectProvidersRequest, AsyncHandler<ListOpenIDConnectProvidersRequest,ListOpenIDConnectProvidersResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists information about the OpenID Connect providers in the AWS account.
listOpenIDConnectProvidersAsync
in interface AmazonIdentityManagementAsync
listOpenIDConnectProvidersRequest
- Container for the necessary
parameters to execute the ListOpenIDConnectProviders operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateOpenIDConnectProviderThumbprintAsync(UpdateOpenIDConnectProviderThumbprintRequest updateOpenIDConnectProviderThumbprintRequest) throws AmazonServiceException, AmazonClientException
Replaces the existing list of server certificate thumbprints with a new list.
The list that you pass with this action completely replaces the existing list of thumbprints. (The lists are not merged.)
Typically, you need to update a thumbprint only when the identity provider's certificate changes, which occurs rarely. However, if the provider's certificate does change, any attempt to assume an IAM role that specifies the OIDC provider as a principal will fail until the certificate thumbprint is updated.
NOTE:Because trust for the OpenID Connect provider is ultimately derived from the provider's certificate and is validated by the thumbprint, it is a best practice to limit access to the UpdateOpenIDConnectProviderThumbprint action to highly-privileged users.
updateOpenIDConnectProviderThumbprintAsync
in interface AmazonIdentityManagementAsync
updateOpenIDConnectProviderThumbprintRequest
- Container for the
necessary parameters to execute the
UpdateOpenIDConnectProviderThumbprint operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateOpenIDConnectProviderThumbprintAsync(UpdateOpenIDConnectProviderThumbprintRequest updateOpenIDConnectProviderThumbprintRequest, AsyncHandler<UpdateOpenIDConnectProviderThumbprintRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Replaces the existing list of server certificate thumbprints with a new list.
The list that you pass with this action completely replaces the existing list of thumbprints. (The lists are not merged.)
Typically, you need to update a thumbprint only when the identity provider's certificate changes, which occurs rarely. However, if the provider's certificate does change, any attempt to assume an IAM role that specifies the OIDC provider as a principal will fail until the certificate thumbprint is updated.
NOTE:Because trust for the OpenID Connect provider is ultimately derived from the provider's certificate and is validated by the thumbprint, it is a best practice to limit access to the UpdateOpenIDConnectProviderThumbprint action to highly-privileged users.
updateOpenIDConnectProviderThumbprintAsync
in interface AmazonIdentityManagementAsync
updateOpenIDConnectProviderThumbprintRequest
- Container for the
necessary parameters to execute the
UpdateOpenIDConnectProviderThumbprint operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetSSHPublicKeyResult> getSSHPublicKeyAsync(GetSSHPublicKeyRequest getSSHPublicKeyRequest) throws AmazonServiceException, AmazonClientException
Retrieves the specified SSH public key, including metadata about the key.
The SSH public key retrieved by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
getSSHPublicKeyAsync
in interface AmazonIdentityManagementAsync
getSSHPublicKeyRequest
- Container for the necessary parameters
to execute the GetSSHPublicKey operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetSSHPublicKeyResult> getSSHPublicKeyAsync(GetSSHPublicKeyRequest getSSHPublicKeyRequest, AsyncHandler<GetSSHPublicKeyRequest,GetSSHPublicKeyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves the specified SSH public key, including metadata about the key.
The SSH public key retrieved by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
getSSHPublicKeyAsync
in interface AmazonIdentityManagementAsync
getSSHPublicKeyRequest
- Container for the necessary parameters
to execute the GetSSHPublicKey operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> detachRolePolicyAsync(DetachRolePolicyRequest detachRolePolicyRequest) throws AmazonServiceException, AmazonClientException
Removes the specified managed policy from the specified role.
A role can also have inline policies embedded with it. To delete an inline policy, use the DeleteRolePolicy API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
detachRolePolicyAsync
in interface AmazonIdentityManagementAsync
detachRolePolicyRequest
- Container for the necessary parameters
to execute the DetachRolePolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> detachRolePolicyAsync(DetachRolePolicyRequest detachRolePolicyRequest, AsyncHandler<DetachRolePolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Removes the specified managed policy from the specified role.
A role can also have inline policies embedded with it. To delete an inline policy, use the DeleteRolePolicy API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
detachRolePolicyAsync
in interface AmazonIdentityManagementAsync
detachRolePolicyRequest
- Container for the necessary parameters
to execute the DetachRolePolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreatePolicyResult> createPolicyAsync(CreatePolicyRequest createPolicyRequest) throws AmazonServiceException, AmazonClientException
Creates a new managed policy for your AWS account.
This operation creates a policy version with a version identifier of
v1
and sets v1 as the policy's default version. For more
information about policy versions, see
Versioning for Managed Policies
in the IAM User Guide .
For more information about managed policies in general, refer to Managed Policies and Inline Policies in the IAM User Guide .
createPolicyAsync
in interface AmazonIdentityManagementAsync
createPolicyRequest
- Container for the necessary parameters to
execute the CreatePolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreatePolicyResult> createPolicyAsync(CreatePolicyRequest createPolicyRequest, AsyncHandler<CreatePolicyRequest,CreatePolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new managed policy for your AWS account.
This operation creates a policy version with a version identifier of
v1
and sets v1 as the policy's default version. For more
information about policy versions, see
Versioning for Managed Policies
in the IAM User Guide .
For more information about managed policies in general, refer to Managed Policies and Inline Policies in the IAM User Guide .
createPolicyAsync
in interface AmazonIdentityManagementAsync
createPolicyRequest
- Container for the necessary parameters to
execute the CreatePolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateInstanceProfileResult> createInstanceProfileAsync(CreateInstanceProfileRequest createInstanceProfileRequest) throws AmazonServiceException, AmazonClientException
Creates a new instance profile. For information about instance profiles, go to About Instance Profiles .
For information about the number of instance profiles you can create, see Limitations on IAM Entities in the IAM User Guide .
createInstanceProfileAsync
in interface AmazonIdentityManagementAsync
createInstanceProfileRequest
- Container for the necessary
parameters to execute the CreateInstanceProfile operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateInstanceProfileResult> createInstanceProfileAsync(CreateInstanceProfileRequest createInstanceProfileRequest, AsyncHandler<CreateInstanceProfileRequest,CreateInstanceProfileResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new instance profile. For information about instance profiles, go to About Instance Profiles .
For information about the number of instance profiles you can create, see Limitations on IAM Entities in the IAM User Guide .
createInstanceProfileAsync
in interface AmazonIdentityManagementAsync
createInstanceProfileRequest
- Container for the necessary
parameters to execute the CreateInstanceProfile operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateLoginProfileResult> createLoginProfileAsync(CreateLoginProfileRequest createLoginProfileRequest) throws AmazonServiceException, AmazonClientException
Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console. For more information about managing passwords, see Managing Passwords in the Using IAM guide.
createLoginProfileAsync
in interface AmazonIdentityManagementAsync
createLoginProfileRequest
- Container for the necessary
parameters to execute the CreateLoginProfile operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateLoginProfileResult> createLoginProfileAsync(CreateLoginProfileRequest createLoginProfileRequest, AsyncHandler<CreateLoginProfileRequest,CreateLoginProfileResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console. For more information about managing passwords, see Managing Passwords in the Using IAM guide.
createLoginProfileAsync
in interface AmazonIdentityManagementAsync
createLoginProfileRequest
- Container for the necessary
parameters to execute the CreateLoginProfile operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> removeRoleFromInstanceProfileAsync(RemoveRoleFromInstanceProfileRequest removeRoleFromInstanceProfileRequest) throws AmazonServiceException, AmazonClientException
Removes the specified role from the specified instance profile.
IMPORTANT: Make sure you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance will break any applications running on the instance.
For more information about roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .
removeRoleFromInstanceProfileAsync
in interface AmazonIdentityManagementAsync
removeRoleFromInstanceProfileRequest
- Container for the
necessary parameters to execute the RemoveRoleFromInstanceProfile
operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> removeRoleFromInstanceProfileAsync(RemoveRoleFromInstanceProfileRequest removeRoleFromInstanceProfileRequest, AsyncHandler<RemoveRoleFromInstanceProfileRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Removes the specified role from the specified instance profile.
IMPORTANT: Make sure you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance will break any applications running on the instance.
For more information about roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .
removeRoleFromInstanceProfileAsync
in interface AmazonIdentityManagementAsync
removeRoleFromInstanceProfileRequest
- Container for the
necessary parameters to execute the RemoveRoleFromInstanceProfile
operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateAccountPasswordPolicyAsync(UpdateAccountPasswordPolicyRequest updateAccountPasswordPolicyRequest) throws AmazonServiceException, AmazonClientException
Updates the password policy settings for the AWS account.
NOTE: This action does not support partial updates. No parameters are required, but if you do not specify a parameter, that parameter's value reverts to its default value. See the Request Parameters section for each parameter's default value.
For more information about using a password policy, see Managing an IAM Password Policy in the IAM User Guide .
updateAccountPasswordPolicyAsync
in interface AmazonIdentityManagementAsync
updateAccountPasswordPolicyRequest
- Container for the necessary
parameters to execute the UpdateAccountPasswordPolicy operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateAccountPasswordPolicyAsync(UpdateAccountPasswordPolicyRequest updateAccountPasswordPolicyRequest, AsyncHandler<UpdateAccountPasswordPolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Updates the password policy settings for the AWS account.
NOTE: This action does not support partial updates. No parameters are required, but if you do not specify a parameter, that parameter's value reverts to its default value. See the Request Parameters section for each parameter's default value.
For more information about using a password policy, see Managing an IAM Password Policy in the IAM User Guide .
updateAccountPasswordPolicyAsync
in interface AmazonIdentityManagementAsync
updateAccountPasswordPolicyRequest
- Container for the necessary
parameters to execute the UpdateAccountPasswordPolicy operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateAssumeRolePolicyAsync(UpdateAssumeRolePolicyRequest updateAssumeRolePolicyRequest) throws AmazonServiceException, AmazonClientException
Updates the policy that grants an entity permission to assume a role. For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities .
updateAssumeRolePolicyAsync
in interface AmazonIdentityManagementAsync
updateAssumeRolePolicyRequest
- Container for the necessary
parameters to execute the UpdateAssumeRolePolicy operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateAssumeRolePolicyAsync(UpdateAssumeRolePolicyRequest updateAssumeRolePolicyRequest, AsyncHandler<UpdateAssumeRolePolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Updates the policy that grants an entity permission to assume a role. For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities .
updateAssumeRolePolicyAsync
in interface AmazonIdentityManagementAsync
updateAssumeRolePolicyRequest
- Container for the necessary
parameters to execute the UpdateAssumeRolePolicy operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetInstanceProfileResult> getInstanceProfileAsync(GetInstanceProfileRequest getInstanceProfileRequest) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, go to About Instance Profiles . For more information about ARNs, go to ARNs .
getInstanceProfileAsync
in interface AmazonIdentityManagementAsync
getInstanceProfileRequest
- Container for the necessary
parameters to execute the GetInstanceProfile operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetInstanceProfileResult> getInstanceProfileAsync(GetInstanceProfileRequest getInstanceProfileRequest, AsyncHandler<GetInstanceProfileRequest,GetInstanceProfileResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, go to About Instance Profiles . For more information about ARNs, go to ARNs .
getInstanceProfileAsync
in interface AmazonIdentityManagementAsync
getInstanceProfileRequest
- Container for the necessary
parameters to execute the GetInstanceProfile operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetAccountSummaryResult> getAccountSummaryAsync(GetAccountSummaryRequest getAccountSummaryRequest) throws AmazonServiceException, AmazonClientException
Retrieves information about IAM entity usage and IAM quotas in the AWS account.
For information about limitations on IAM entities, see Limitations on IAM Entities in the IAM User Guide .
getAccountSummaryAsync
in interface AmazonIdentityManagementAsync
getAccountSummaryRequest
- Container for the necessary parameters
to execute the GetAccountSummary operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetAccountSummaryResult> getAccountSummaryAsync(GetAccountSummaryRequest getAccountSummaryRequest, AsyncHandler<GetAccountSummaryRequest,GetAccountSummaryResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves information about IAM entity usage and IAM quotas in the AWS account.
For information about limitations on IAM entities, see Limitations on IAM Entities in the IAM User Guide .
getAccountSummaryAsync
in interface AmazonIdentityManagementAsync
getAccountSummaryRequest
- Container for the necessary parameters
to execute the GetAccountSummary operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateSAMLProviderResult> createSAMLProviderAsync(CreateSAMLProviderRequest createSAMLProviderRequest) throws AmazonServiceException, AmazonClientException
Creates an IAM entity to describe an identity provider (IdP) that supports SAML 2.0.
The SAML provider that you create with this operation can be used as a principal in a role's trust policy to establish a trust relationship between AWS and a SAML identity provider. You can create an IAM role that supports Web-based single sign-on (SSO) to the AWS Management Console or one that supports API access to AWS.
When you create the SAML provider, you upload an a SAML metadata document that you get from your IdP and that includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.
NOTE: This operation requires Signature Version 4.
For more information, see Enabling SAML 2.0 Federated Users to Access the AWS Management Console and About SAML 2.0-based Federation in the IAM User Guide .
createSAMLProviderAsync
in interface AmazonIdentityManagementAsync
createSAMLProviderRequest
- Container for the necessary
parameters to execute the CreateSAMLProvider operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateSAMLProviderResult> createSAMLProviderAsync(CreateSAMLProviderRequest createSAMLProviderRequest, AsyncHandler<CreateSAMLProviderRequest,CreateSAMLProviderResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates an IAM entity to describe an identity provider (IdP) that supports SAML 2.0.
The SAML provider that you create with this operation can be used as a principal in a role's trust policy to establish a trust relationship between AWS and a SAML identity provider. You can create an IAM role that supports Web-based single sign-on (SSO) to the AWS Management Console or one that supports API access to AWS.
When you create the SAML provider, you upload an a SAML metadata document that you get from your IdP and that includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.
NOTE: This operation requires Signature Version 4.
For more information, see Enabling SAML 2.0 Federated Users to Access the AWS Management Console and About SAML 2.0-based Federation in the IAM User Guide .
createSAMLProviderAsync
in interface AmazonIdentityManagementAsync
createSAMLProviderRequest
- Container for the necessary
parameters to execute the CreateSAMLProvider operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetPolicyResult> getPolicyAsync(GetPolicyRequest getPolicyRequest) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified managed policy, including the policy's default version and the total number of users, groups, and roles that the policy is attached to. For a list of the specific users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API. This API returns metadata about the policy. To retrieve the policy document for a specific version of the policy, use GetPolicyVersion.
This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded with a user, group, or role, use the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
getPolicyAsync
in interface AmazonIdentityManagementAsync
getPolicyRequest
- Container for the necessary parameters to
execute the GetPolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetPolicyResult> getPolicyAsync(GetPolicyRequest getPolicyRequest, AsyncHandler<GetPolicyRequest,GetPolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified managed policy, including the policy's default version and the total number of users, groups, and roles that the policy is attached to. For a list of the specific users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API. This API returns metadata about the policy. To retrieve the policy document for a specific version of the policy, use GetPolicyVersion.
This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded with a user, group, or role, use the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
getPolicyAsync
in interface AmazonIdentityManagementAsync
getPolicyRequest
- Container for the necessary parameters to
execute the GetPolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListPolicyVersionsResult> listPolicyVersionsAsync(ListPolicyVersionsRequest listPolicyVersionsRequest) throws AmazonServiceException, AmazonClientException
Lists information about the versions of the specified managed policy, including the version that is set as the policy's default version.
For more information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
listPolicyVersionsAsync
in interface AmazonIdentityManagementAsync
listPolicyVersionsRequest
- Container for the necessary
parameters to execute the ListPolicyVersions operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListPolicyVersionsResult> listPolicyVersionsAsync(ListPolicyVersionsRequest listPolicyVersionsRequest, AsyncHandler<ListPolicyVersionsRequest,ListPolicyVersionsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists information about the versions of the specified managed policy, including the version that is set as the policy's default version.
For more information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
listPolicyVersionsAsync
in interface AmazonIdentityManagementAsync
listPolicyVersionsRequest
- Container for the necessary
parameters to execute the ListPolicyVersions operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteAccessKeyAsync(DeleteAccessKeyRequest deleteAccessKeyRequest) throws AmazonServiceException, AmazonClientException
Deletes the access key associated with the specified user.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
deleteAccessKeyAsync
in interface AmazonIdentityManagementAsync
deleteAccessKeyRequest
- Container for the necessary parameters
to execute the DeleteAccessKey operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteAccessKeyAsync(DeleteAccessKeyRequest deleteAccessKeyRequest, AsyncHandler<DeleteAccessKeyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the access key associated with the specified user.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
deleteAccessKeyAsync
in interface AmazonIdentityManagementAsync
deleteAccessKeyRequest
- Container for the necessary parameters
to execute the DeleteAccessKey operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteUserPolicyAsync(DeleteUserPolicyRequest deleteUserPolicyRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified inline policy that is embedded in the specified user.
A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
deleteUserPolicyAsync
in interface AmazonIdentityManagementAsync
deleteUserPolicyRequest
- Container for the necessary parameters
to execute the DeleteUserPolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteUserPolicyAsync(DeleteUserPolicyRequest deleteUserPolicyRequest, AsyncHandler<DeleteUserPolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified inline policy that is embedded in the specified user.
A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
deleteUserPolicyAsync
in interface AmazonIdentityManagementAsync
deleteUserPolicyRequest
- Container for the necessary parameters
to execute the DeleteUserPolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListServerCertificatesResult> listServerCertificatesAsync(ListServerCertificatesRequest listServerCertificatesRequest) throws AmazonServiceException, AmazonClientException
Lists the server certificates that have the specified path prefix. If none exist, the action returns an empty list.
You can paginate the results using the MaxItems
and
Marker
parameters.
listServerCertificatesAsync
in interface AmazonIdentityManagementAsync
listServerCertificatesRequest
- Container for the necessary
parameters to execute the ListServerCertificates operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListServerCertificatesResult> listServerCertificatesAsync(ListServerCertificatesRequest listServerCertificatesRequest, AsyncHandler<ListServerCertificatesRequest,ListServerCertificatesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the server certificates that have the specified path prefix. If none exist, the action returns an empty list.
You can paginate the results using the MaxItems
and
Marker
parameters.
listServerCertificatesAsync
in interface AmazonIdentityManagementAsync
listServerCertificatesRequest
- Container for the necessary
parameters to execute the ListServerCertificates operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateServerCertificateAsync(UpdateServerCertificateRequest updateServerCertificateRequest) throws AmazonServiceException, AmazonClientException
Updates the name and/or the path of the specified server certificate.
IMPORTANT: You should understand the implications of changing a server certificate's path or name. For more information, see Managing Server Certificates in the IAM User Guide.
NOTE:To change a server certificate name the requester must have appropriate permissions on both the source object and the target object. For example, to change the name from ProductionCert to ProdCert, the entity making the request must have permission on ProductionCert and ProdCert, or must have permission on all (*). For more information about permissions, see Permissions and Policies.
updateServerCertificateAsync
in interface AmazonIdentityManagementAsync
updateServerCertificateRequest
- Container for the necessary
parameters to execute the UpdateServerCertificate operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateServerCertificateAsync(UpdateServerCertificateRequest updateServerCertificateRequest, AsyncHandler<UpdateServerCertificateRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Updates the name and/or the path of the specified server certificate.
IMPORTANT: You should understand the implications of changing a server certificate's path or name. For more information, see Managing Server Certificates in the IAM User Guide.
NOTE:To change a server certificate name the requester must have appropriate permissions on both the source object and the target object. For example, to change the name from ProductionCert to ProdCert, the entity making the request must have permission on ProductionCert and ProdCert, or must have permission on all (*). For more information about permissions, see Permissions and Policies.
updateServerCertificateAsync
in interface AmazonIdentityManagementAsync
updateServerCertificateRequest
- Container for the necessary
parameters to execute the UpdateServerCertificate operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateUserAsync(UpdateUserRequest updateUserRequest) throws AmazonServiceException, AmazonClientException
Updates the name and/or the path of the specified user.
IMPORTANT: You should understand the implications of changing a user's path or name. For more information, see Renaming Users and Groups in the IAM User Guide.
NOTE: To change a user name the requester must have appropriate permissions on both the source object and the target object. For example, to change Bob to Robert, the entity making the request must have permission on Bob and Robert, or must have permission on all (*). For more information about permissions, see Permissions and Policies.
updateUserAsync
in interface AmazonIdentityManagementAsync
updateUserRequest
- Container for the necessary parameters to
execute the UpdateUser operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateUserAsync(UpdateUserRequest updateUserRequest, AsyncHandler<UpdateUserRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Updates the name and/or the path of the specified user.
IMPORTANT: You should understand the implications of changing a user's path or name. For more information, see Renaming Users and Groups in the IAM User Guide.
NOTE: To change a user name the requester must have appropriate permissions on both the source object and the target object. For example, to change Bob to Robert, the entity making the request must have permission on Bob and Robert, or must have permission on all (*). For more information about permissions, see Permissions and Policies.
updateUserAsync
in interface AmazonIdentityManagementAsync
updateUserRequest
- Container for the necessary parameters to
execute the UpdateUser operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteSSHPublicKeyAsync(DeleteSSHPublicKeyRequest deleteSSHPublicKeyRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified SSH public key.
The SSH public key deleted by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
deleteSSHPublicKeyAsync
in interface AmazonIdentityManagementAsync
deleteSSHPublicKeyRequest
- Container for the necessary
parameters to execute the DeleteSSHPublicKey operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteSSHPublicKeyAsync(DeleteSSHPublicKeyRequest deleteSSHPublicKeyRequest, AsyncHandler<DeleteSSHPublicKeyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified SSH public key.
The SSH public key deleted by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
deleteSSHPublicKeyAsync
in interface AmazonIdentityManagementAsync
deleteSSHPublicKeyRequest
- Container for the necessary
parameters to execute the DeleteSSHPublicKey operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> putRolePolicyAsync(PutRolePolicyRequest putRolePolicyRequest) throws AmazonServiceException, AmazonClientException
Adds (or updates) an inline policy document that is embedded in the specified role.
When you embed an inline policy in a role, the inline policy is used as the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities .
A role can also have a managed policy attached to it. To attach a managed policy to a role, use AttachRolePolicy. To create a new managed policy, use CreatePolicy. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
For information about limits on the number of inline policies that you can embed with a role, see Limitations on IAM Entities in the IAM User Guide .
NOTE:Because policy documents can be large, you should use POST rather than GET when calling PutRolePolicy. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide.
putRolePolicyAsync
in interface AmazonIdentityManagementAsync
putRolePolicyRequest
- Container for the necessary parameters to
execute the PutRolePolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> putRolePolicyAsync(PutRolePolicyRequest putRolePolicyRequest, AsyncHandler<PutRolePolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Adds (or updates) an inline policy document that is embedded in the specified role.
When you embed an inline policy in a role, the inline policy is used as the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities .
A role can also have a managed policy attached to it. To attach a managed policy to a role, use AttachRolePolicy. To create a new managed policy, use CreatePolicy. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
For information about limits on the number of inline policies that you can embed with a role, see Limitations on IAM Entities in the IAM User Guide .
NOTE:Because policy documents can be large, you should use POST rather than GET when calling PutRolePolicy. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide.
putRolePolicyAsync
in interface AmazonIdentityManagementAsync
putRolePolicyRequest
- Container for the necessary parameters to
execute the PutRolePolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteGroupPolicyAsync(DeleteGroupPolicyRequest deleteGroupPolicyRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified inline policy that is embedded in the specified group.
A group can also have managed policies attached to it. To detach a managed policy from a group, use DetachGroupPolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
deleteGroupPolicyAsync
in interface AmazonIdentityManagementAsync
deleteGroupPolicyRequest
- Container for the necessary parameters
to execute the DeleteGroupPolicy operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteGroupPolicyAsync(DeleteGroupPolicyRequest deleteGroupPolicyRequest, AsyncHandler<DeleteGroupPolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified inline policy that is embedded in the specified group.
A group can also have managed policies attached to it. To detach a managed policy from a group, use DetachGroupPolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
deleteGroupPolicyAsync
in interface AmazonIdentityManagementAsync
deleteGroupPolicyRequest
- Container for the necessary parameters
to execute the DeleteGroupPolicy operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateGroupAsync(UpdateGroupRequest updateGroupRequest) throws AmazonServiceException, AmazonClientException
Updates the name and/or the path of the specified group.
IMPORTANT: You should understand the implications of changing a group's path or name. For more information, see Renaming Users and Groups in the IAM User Guide.
NOTE:To change a group name the requester must have appropriate permissions on both the source object and the target object. For example, to change Managers to MGRs, the entity making the request must have permission on Managers and MGRs, or must have permission on all (*). For more information about permissions, see Permissions and Policies.
updateGroupAsync
in interface AmazonIdentityManagementAsync
updateGroupRequest
- Container for the necessary parameters to
execute the UpdateGroup operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateGroupAsync(UpdateGroupRequest updateGroupRequest, AsyncHandler<UpdateGroupRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Updates the name and/or the path of the specified group.
IMPORTANT: You should understand the implications of changing a group's path or name. For more information, see Renaming Users and Groups in the IAM User Guide.
NOTE:To change a group name the requester must have appropriate permissions on both the source object and the target object. For example, to change Managers to MGRs, the entity making the request must have permission on Managers and MGRs, or must have permission on all (*). For more information about permissions, see Permissions and Policies.
updateGroupAsync
in interface AmazonIdentityManagementAsync
updateGroupRequest
- Container for the necessary parameters to
execute the UpdateGroup operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateSSHPublicKeyAsync(UpdateSSHPublicKeyRequest updateSSHPublicKeyRequest) throws AmazonServiceException, AmazonClientException
Sets the status of the specified SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This action can be used to disable a user's SSH public key as part of a key rotation work flow.
The SSH public key affected by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
updateSSHPublicKeyAsync
in interface AmazonIdentityManagementAsync
updateSSHPublicKeyRequest
- Container for the necessary
parameters to execute the UpdateSSHPublicKey operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateSSHPublicKeyAsync(UpdateSSHPublicKeyRequest updateSSHPublicKeyRequest, AsyncHandler<UpdateSSHPublicKeyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Sets the status of the specified SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This action can be used to disable a user's SSH public key as part of a key rotation work flow.
The SSH public key affected by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
updateSSHPublicKeyAsync
in interface AmazonIdentityManagementAsync
updateSSHPublicKeyRequest
- Container for the necessary
parameters to execute the UpdateSSHPublicKey operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListPoliciesResult> listPoliciesAsync(ListPoliciesRequest listPoliciesRequest) throws AmazonServiceException, AmazonClientException
Lists all the managed policies that are available to your account, including your own customer managed policies and all AWS managed policies.
You can filter the list of policies that is returned using the
optional OnlyAttached
, Scope
, and
PathPrefix
parameters. For example, to list only the
customer managed policies in your AWS account, set Scope
to Local
. To list only AWS managed policies, set
Scope
to AWS
.
You can paginate the results using the MaxItems
and
Marker
parameters.
For more information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
listPoliciesAsync
in interface AmazonIdentityManagementAsync
listPoliciesRequest
- Container for the necessary parameters to
execute the ListPolicies operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListPoliciesResult> listPoliciesAsync(ListPoliciesRequest listPoliciesRequest, AsyncHandler<ListPoliciesRequest,ListPoliciesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists all the managed policies that are available to your account, including your own customer managed policies and all AWS managed policies.
You can filter the list of policies that is returned using the
optional OnlyAttached
, Scope
, and
PathPrefix
parameters. For example, to list only the
customer managed policies in your AWS account, set Scope
to Local
. To list only AWS managed policies, set
Scope
to AWS
.
You can paginate the results using the MaxItems
and
Marker
parameters.
For more information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
listPoliciesAsync
in interface AmazonIdentityManagementAsync
listPoliciesRequest
- Container for the necessary parameters to
execute the ListPolicies operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateUserResult> createUserAsync(CreateUserRequest createUserRequest) throws AmazonServiceException, AmazonClientException
Creates a new user for your AWS account.
For information about limitations on the number of users you can create, see Limitations on IAM Entities in the IAM User Guide .
createUserAsync
in interface AmazonIdentityManagementAsync
createUserRequest
- Container for the necessary parameters to
execute the CreateUser operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateUserResult> createUserAsync(CreateUserRequest createUserRequest, AsyncHandler<CreateUserRequest,CreateUserResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new user for your AWS account.
For information about limitations on the number of users you can create, see Limitations on IAM Entities in the IAM User Guide .
createUserAsync
in interface AmazonIdentityManagementAsync
createUserRequest
- Container for the necessary parameters to
execute the CreateUser operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> addClientIDToOpenIDConnectProviderAsync(AddClientIDToOpenIDConnectProviderRequest addClientIDToOpenIDConnectProviderRequest) throws AmazonServiceException, AmazonClientException
Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect provider.
This action is idempotent; it does not fail or return an error if you add an existing client ID to the provider.
addClientIDToOpenIDConnectProviderAsync
in interface AmazonIdentityManagementAsync
addClientIDToOpenIDConnectProviderRequest
- Container for the
necessary parameters to execute the AddClientIDToOpenIDConnectProvider
operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> addClientIDToOpenIDConnectProviderAsync(AddClientIDToOpenIDConnectProviderRequest addClientIDToOpenIDConnectProviderRequest, AsyncHandler<AddClientIDToOpenIDConnectProviderRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect provider.
This action is idempotent; it does not fail or return an error if you add an existing client ID to the provider.
addClientIDToOpenIDConnectProviderAsync
in interface AmazonIdentityManagementAsync
addClientIDToOpenIDConnectProviderRequest
- Container for the
necessary parameters to execute the AddClientIDToOpenIDConnectProvider
operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteSAMLProviderAsync(DeleteSAMLProviderRequest deleteSAMLProviderRequest) throws AmazonServiceException, AmazonClientException
Deletes a SAML provider.
Deleting the provider does not update any roles that reference the SAML provider as a principal in their trust policies. Any attempt to assume a role that references a SAML provider that has been deleted will fail.
NOTE: This operation requires Signature Version 4.
deleteSAMLProviderAsync
in interface AmazonIdentityManagementAsync
deleteSAMLProviderRequest
- Container for the necessary
parameters to execute the DeleteSAMLProvider operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteSAMLProviderAsync(DeleteSAMLProviderRequest deleteSAMLProviderRequest, AsyncHandler<DeleteSAMLProviderRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes a SAML provider.
Deleting the provider does not update any roles that reference the SAML provider as a principal in their trust policies. Any attempt to assume a role that references a SAML provider that has been deleted will fail.
NOTE: This operation requires Signature Version 4.
deleteSAMLProviderAsync
in interface AmazonIdentityManagementAsync
deleteSAMLProviderRequest
- Container for the necessary
parameters to execute the DeleteSAMLProvider operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetContextKeysForPrincipalPolicyResult> getContextKeysForPrincipalPolicyAsync(GetContextKeysForPrincipalPolicyRequest getContextKeysForPrincipalPolicyRequest) throws AmazonServiceException, AmazonClientException
Gets a list of all of the context keys referenced in
Condition
elements in all of the IAM policies attached to
the specified IAM entity. The entity can be an IAM user, group, or
role. If you specify a user, then the request also includes all of the
policies attached to groups that the user is a member of.
You can optionally include a list of one or more additional policies, specified as strings. If you want to include only a list of policies by string, use GetContextKeysForCustomPolicy instead.
Note: This API discloses information about the permissions granted to other users. If you do not want users to see other user's permissions, then consider allowing them to use GetContextKeysForCustomPolicy instead.
Context keys are variables maintained by AWS and its services that
provide details about the context of an API query request, and can be
evaluated by using the Condition
element of an IAM
policy. Use GetContextKeysForPrincipalPolicy to understand what key
names and values you must supply when you call
SimulatePrincipalPolicy.
getContextKeysForPrincipalPolicyAsync
in interface AmazonIdentityManagementAsync
getContextKeysForPrincipalPolicyRequest
- Container for the
necessary parameters to execute the GetContextKeysForPrincipalPolicy
operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetContextKeysForPrincipalPolicyResult> getContextKeysForPrincipalPolicyAsync(GetContextKeysForPrincipalPolicyRequest getContextKeysForPrincipalPolicyRequest, AsyncHandler<GetContextKeysForPrincipalPolicyRequest,GetContextKeysForPrincipalPolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Gets a list of all of the context keys referenced in
Condition
elements in all of the IAM policies attached to
the specified IAM entity. The entity can be an IAM user, group, or
role. If you specify a user, then the request also includes all of the
policies attached to groups that the user is a member of.
You can optionally include a list of one or more additional policies, specified as strings. If you want to include only a list of policies by string, use GetContextKeysForCustomPolicy instead.
Note: This API discloses information about the permissions granted to other users. If you do not want users to see other user's permissions, then consider allowing them to use GetContextKeysForCustomPolicy instead.
Context keys are variables maintained by AWS and its services that
provide details about the context of an API query request, and can be
evaluated by using the Condition
element of an IAM
policy. Use GetContextKeysForPrincipalPolicy to understand what key
names and values you must supply when you call
SimulatePrincipalPolicy.
getContextKeysForPrincipalPolicyAsync
in interface AmazonIdentityManagementAsync
getContextKeysForPrincipalPolicyRequest
- Container for the
necessary parameters to execute the GetContextKeysForPrincipalPolicy
operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> removeClientIDFromOpenIDConnectProviderAsync(RemoveClientIDFromOpenIDConnectProviderRequest removeClientIDFromOpenIDConnectProviderRequest) throws AmazonServiceException, AmazonClientException
Removes the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect provider.
This action is idempotent; it does not fail or return an error if you try to remove a client ID that was removed previously.
removeClientIDFromOpenIDConnectProviderAsync
in interface AmazonIdentityManagementAsync
removeClientIDFromOpenIDConnectProviderRequest
- Container for
the necessary parameters to execute the
RemoveClientIDFromOpenIDConnectProvider operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> removeClientIDFromOpenIDConnectProviderAsync(RemoveClientIDFromOpenIDConnectProviderRequest removeClientIDFromOpenIDConnectProviderRequest, AsyncHandler<RemoveClientIDFromOpenIDConnectProviderRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Removes the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect provider.
This action is idempotent; it does not fail or return an error if you try to remove a client ID that was removed previously.
removeClientIDFromOpenIDConnectProviderAsync
in interface AmazonIdentityManagementAsync
removeClientIDFromOpenIDConnectProviderRequest
- Container for
the necessary parameters to execute the
RemoveClientIDFromOpenIDConnectProvider operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateGroupResult> createGroupAsync(CreateGroupRequest createGroupRequest) throws AmazonServiceException, AmazonClientException
Creates a new group.
For information about the number of groups you can create, see Limitations on IAM Entities in the IAM User Guide .
createGroupAsync
in interface AmazonIdentityManagementAsync
createGroupRequest
- Container for the necessary parameters to
execute the CreateGroup operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateGroupResult> createGroupAsync(CreateGroupRequest createGroupRequest, AsyncHandler<CreateGroupRequest,CreateGroupResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new group.
For information about the number of groups you can create, see Limitations on IAM Entities in the IAM User Guide .
createGroupAsync
in interface AmazonIdentityManagementAsync
createGroupRequest
- Container for the necessary parameters to
execute the CreateGroup operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteUserAsync(DeleteUserRequest deleteUserRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified user. The user must not belong to any groups, have any keys or signing certificates, or have any attached policies.
deleteUserAsync
in interface AmazonIdentityManagementAsync
deleteUserRequest
- Container for the necessary parameters to
execute the DeleteUser operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteUserAsync(DeleteUserRequest deleteUserRequest, AsyncHandler<DeleteUserRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified user. The user must not belong to any groups, have any keys or signing certificates, or have any attached policies.
deleteUserAsync
in interface AmazonIdentityManagementAsync
deleteUserRequest
- Container for the necessary parameters to
execute the DeleteUser operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deactivateMFADeviceAsync(DeactivateMFADeviceRequest deactivateMFADeviceRequest) throws AmazonServiceException, AmazonClientException
Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.
For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.
deactivateMFADeviceAsync
in interface AmazonIdentityManagementAsync
deactivateMFADeviceRequest
- Container for the necessary
parameters to execute the DeactivateMFADevice operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deactivateMFADeviceAsync(DeactivateMFADeviceRequest deactivateMFADeviceRequest, AsyncHandler<DeactivateMFADeviceRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.
For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.
deactivateMFADeviceAsync
in interface AmazonIdentityManagementAsync
deactivateMFADeviceRequest
- Container for the necessary
parameters to execute the DeactivateMFADevice operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetPolicyVersionResult> getPolicyVersionAsync(GetPolicyVersionRequest getPolicyVersionRequest) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified version of the specified managed policy, including the policy document.
To list the available versions for a policy, use ListPolicyVersions.
This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded in a user, group, or role, use the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API.
For more information about the types of policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
getPolicyVersionAsync
in interface AmazonIdentityManagementAsync
getPolicyVersionRequest
- Container for the necessary parameters
to execute the GetPolicyVersion operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetPolicyVersionResult> getPolicyVersionAsync(GetPolicyVersionRequest getPolicyVersionRequest, AsyncHandler<GetPolicyVersionRequest,GetPolicyVersionResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified version of the specified managed policy, including the policy document.
To list the available versions for a policy, use ListPolicyVersions.
This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded in a user, group, or role, use the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API.
For more information about the types of policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
getPolicyVersionAsync
in interface AmazonIdentityManagementAsync
getPolicyVersionRequest
- Container for the necessary parameters
to execute the GetPolicyVersion operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GenerateCredentialReportResult> generateCredentialReportAsync(GenerateCredentialReportRequest generateCredentialReportRequest) throws AmazonServiceException, AmazonClientException
Generates a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports in the IAM User Guide .
generateCredentialReportAsync
in interface AmazonIdentityManagementAsync
generateCredentialReportRequest
- Container for the necessary
parameters to execute the GenerateCredentialReport operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GenerateCredentialReportResult> generateCredentialReportAsync(GenerateCredentialReportRequest generateCredentialReportRequest, AsyncHandler<GenerateCredentialReportRequest,GenerateCredentialReportResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Generates a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports in the IAM User Guide .
generateCredentialReportAsync
in interface AmazonIdentityManagementAsync
generateCredentialReportRequest
- Container for the necessary
parameters to execute the GenerateCredentialReport operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> removeUserFromGroupAsync(RemoveUserFromGroupRequest removeUserFromGroupRequest) throws AmazonServiceException, AmazonClientException
Removes the specified user from the specified group.
removeUserFromGroupAsync
in interface AmazonIdentityManagementAsync
removeUserFromGroupRequest
- Container for the necessary
parameters to execute the RemoveUserFromGroup operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> removeUserFromGroupAsync(RemoveUserFromGroupRequest removeUserFromGroupRequest, AsyncHandler<RemoveUserFromGroupRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Removes the specified user from the specified group.
removeUserFromGroupAsync
in interface AmazonIdentityManagementAsync
removeUserFromGroupRequest
- Container for the necessary
parameters to execute the RemoveUserFromGroup operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListAttachedRolePoliciesResult> listAttachedRolePoliciesAsync(ListAttachedRolePoliciesRequest listAttachedRolePoliciesRequest) throws AmazonServiceException, AmazonClientException
Lists all managed policies that are attached to the specified role.
A role can also have inline policies embedded with it. To list the inline policies for a role, use the ListRolePolicies API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. You can use the
PathPrefix
parameter to limit the list of policies to
only those matching the specified path prefix. If there are no
policies attached to the specified role (or none that match the
specified path prefix), the action returns an empty list.
listAttachedRolePoliciesAsync
in interface AmazonIdentityManagementAsync
listAttachedRolePoliciesRequest
- Container for the necessary
parameters to execute the ListAttachedRolePolicies operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListAttachedRolePoliciesResult> listAttachedRolePoliciesAsync(ListAttachedRolePoliciesRequest listAttachedRolePoliciesRequest, AsyncHandler<ListAttachedRolePoliciesRequest,ListAttachedRolePoliciesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists all managed policies that are attached to the specified role.
A role can also have inline policies embedded with it. To list the inline policies for a role, use the ListRolePolicies API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. You can use the
PathPrefix
parameter to limit the list of policies to
only those matching the specified path prefix. If there are no
policies attached to the specified role (or none that match the
specified path prefix), the action returns an empty list.
listAttachedRolePoliciesAsync
in interface AmazonIdentityManagementAsync
listAttachedRolePoliciesRequest
- Container for the necessary
parameters to execute the ListAttachedRolePolicies operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteServerCertificateAsync(DeleteServerCertificateRequest deleteServerCertificateRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified server certificate.
IMPORTANT: If you are using a server certificate with Elastic Load Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn't detect the deletion of bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more information, go to DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference.
deleteServerCertificateAsync
in interface AmazonIdentityManagementAsync
deleteServerCertificateRequest
- Container for the necessary
parameters to execute the DeleteServerCertificate operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteServerCertificateAsync(DeleteServerCertificateRequest deleteServerCertificateRequest, AsyncHandler<DeleteServerCertificateRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified server certificate.
IMPORTANT: If you are using a server certificate with Elastic Load Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn't detect the deletion of bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more information, go to DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference.
deleteServerCertificateAsync
in interface AmazonIdentityManagementAsync
deleteServerCertificateRequest
- Container for the necessary
parameters to execute the DeleteServerCertificate operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListEntitiesForPolicyResult> listEntitiesForPolicyAsync(ListEntitiesForPolicyRequest listEntitiesForPolicyRequest) throws AmazonServiceException, AmazonClientException
Lists all users, groups, and roles that the specified managed policy is attached to.
You can use the optional EntityFilter
parameter to limit
the results to a particular type of entity (users, groups, or roles).
For example, to list only the roles that are attached to the specified
policy, set EntityFilter
to Role
.
You can paginate the results using the MaxItems
and
Marker
parameters.
listEntitiesForPolicyAsync
in interface AmazonIdentityManagementAsync
listEntitiesForPolicyRequest
- Container for the necessary
parameters to execute the ListEntitiesForPolicy operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListEntitiesForPolicyResult> listEntitiesForPolicyAsync(ListEntitiesForPolicyRequest listEntitiesForPolicyRequest, AsyncHandler<ListEntitiesForPolicyRequest,ListEntitiesForPolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists all users, groups, and roles that the specified managed policy is attached to.
You can use the optional EntityFilter
parameter to limit
the results to a particular type of entity (users, groups, or roles).
For example, to list only the roles that are attached to the specified
policy, set EntityFilter
to Role
.
You can paginate the results using the MaxItems
and
Marker
parameters.
listEntitiesForPolicyAsync
in interface AmazonIdentityManagementAsync
listEntitiesForPolicyRequest
- Container for the necessary
parameters to execute the ListEntitiesForPolicy operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> detachGroupPolicyAsync(DetachGroupPolicyRequest detachGroupPolicyRequest) throws AmazonServiceException, AmazonClientException
Removes the specified managed policy from the specified group.
A group can also have inline policies embedded with it. To delete an inline policy, use the DeleteGroupPolicy API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
detachGroupPolicyAsync
in interface AmazonIdentityManagementAsync
detachGroupPolicyRequest
- Container for the necessary parameters
to execute the DetachGroupPolicy operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> detachGroupPolicyAsync(DetachGroupPolicyRequest detachGroupPolicyRequest, AsyncHandler<DetachGroupPolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Removes the specified managed policy from the specified group.
A group can also have inline policies embedded with it. To delete an inline policy, use the DeleteGroupPolicy API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
detachGroupPolicyAsync
in interface AmazonIdentityManagementAsync
detachGroupPolicyRequest
- Container for the necessary parameters
to execute the DetachGroupPolicy operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListInstanceProfilesResult> listInstanceProfilesAsync(ListInstanceProfilesRequest listInstanceProfilesRequest) throws AmazonServiceException, AmazonClientException
Lists the instance profiles that have the specified path prefix. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles .
You can paginate the results using the MaxItems
and
Marker
parameters.
listInstanceProfilesAsync
in interface AmazonIdentityManagementAsync
listInstanceProfilesRequest
- Container for the necessary
parameters to execute the ListInstanceProfiles operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListInstanceProfilesResult> listInstanceProfilesAsync(ListInstanceProfilesRequest listInstanceProfilesRequest, AsyncHandler<ListInstanceProfilesRequest,ListInstanceProfilesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the instance profiles that have the specified path prefix. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles .
You can paginate the results using the MaxItems
and
Marker
parameters.
listInstanceProfilesAsync
in interface AmazonIdentityManagementAsync
listInstanceProfilesRequest
- Container for the necessary
parameters to execute the ListInstanceProfiles operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateAccessKeyAsync(UpdateAccessKeyRequest updateAccessKeyRequest) throws AmazonServiceException, AmazonClientException
Changes the status of the specified access key from Active to Inactive, or vice versa. This action can be used to disable a user's key as part of a key rotation work flow.
If the UserName
field is not specified, the UserName is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, you can use this action to manage root credentials even if
the AWS account has no associated users.
For information about rotating keys, see Managing Keys and Certificates in the IAM User Guide .
updateAccessKeyAsync
in interface AmazonIdentityManagementAsync
updateAccessKeyRequest
- Container for the necessary parameters
to execute the UpdateAccessKey operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateAccessKeyAsync(UpdateAccessKeyRequest updateAccessKeyRequest, AsyncHandler<UpdateAccessKeyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Changes the status of the specified access key from Active to Inactive, or vice versa. This action can be used to disable a user's key as part of a key rotation work flow.
If the UserName
field is not specified, the UserName is
determined implicitly based on the AWS access key ID used to sign the
request. Because this action works for access keys under the AWS
account, you can use this action to manage root credentials even if
the AWS account has no associated users.
For information about rotating keys, see Managing Keys and Certificates in the IAM User Guide .
updateAccessKeyAsync
in interface AmazonIdentityManagementAsync
updateAccessKeyRequest
- Container for the necessary parameters
to execute the UpdateAccessKey operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetOpenIDConnectProviderResult> getOpenIDConnectProviderAsync(GetOpenIDConnectProviderRequest getOpenIDConnectProviderRequest) throws AmazonServiceException, AmazonClientException
Returns information about the specified OpenID Connect provider.
getOpenIDConnectProviderAsync
in interface AmazonIdentityManagementAsync
getOpenIDConnectProviderRequest
- Container for the necessary
parameters to execute the GetOpenIDConnectProvider operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetOpenIDConnectProviderResult> getOpenIDConnectProviderAsync(GetOpenIDConnectProviderRequest getOpenIDConnectProviderRequest, AsyncHandler<GetOpenIDConnectProviderRequest,GetOpenIDConnectProviderResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns information about the specified OpenID Connect provider.
getOpenIDConnectProviderAsync
in interface AmazonIdentityManagementAsync
getOpenIDConnectProviderRequest
- Container for the necessary
parameters to execute the GetOpenIDConnectProvider operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> addUserToGroupAsync(AddUserToGroupRequest addUserToGroupRequest) throws AmazonServiceException, AmazonClientException
Adds the specified user to the specified group.
addUserToGroupAsync
in interface AmazonIdentityManagementAsync
addUserToGroupRequest
- Container for the necessary parameters to
execute the AddUserToGroup operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> addUserToGroupAsync(AddUserToGroupRequest addUserToGroupRequest, AsyncHandler<AddUserToGroupRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Adds the specified user to the specified group.
addUserToGroupAsync
in interface AmazonIdentityManagementAsync
addUserToGroupRequest
- Container for the necessary parameters to
execute the AddUserToGroup operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetGroupResult> getGroupAsync(GetGroupRequest getGroupRequest) throws AmazonServiceException, AmazonClientException
Returns a list of users that are in the specified group. You can
paginate the results using the MaxItems
and
Marker
parameters.
getGroupAsync
in interface AmazonIdentityManagementAsync
getGroupRequest
- Container for the necessary parameters to
execute the GetGroup operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetGroupResult> getGroupAsync(GetGroupRequest getGroupRequest, AsyncHandler<GetGroupRequest,GetGroupResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a list of users that are in the specified group. You can
paginate the results using the MaxItems
and
Marker
parameters.
getGroupAsync
in interface AmazonIdentityManagementAsync
getGroupRequest
- Container for the necessary parameters to
execute the GetGroup operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteGroupAsync(DeleteGroupRequest deleteGroupRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified group. The group must not contain any users or have any attached policies.
deleteGroupAsync
in interface AmazonIdentityManagementAsync
deleteGroupRequest
- Container for the necessary parameters to
execute the DeleteGroup operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteGroupAsync(DeleteGroupRequest deleteGroupRequest, AsyncHandler<DeleteGroupRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified group. The group must not contain any users or have any attached policies.
deleteGroupAsync
in interface AmazonIdentityManagementAsync
deleteGroupRequest
- Container for the necessary parameters to
execute the DeleteGroup operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> detachUserPolicyAsync(DetachUserPolicyRequest detachUserPolicyRequest) throws AmazonServiceException, AmazonClientException
Removes the specified managed policy from the specified user.
A user can also have inline policies embedded with it. To delete an inline policy, use the DeleteUserPolicy API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
detachUserPolicyAsync
in interface AmazonIdentityManagementAsync
detachUserPolicyRequest
- Container for the necessary parameters
to execute the DetachUserPolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> detachUserPolicyAsync(DetachUserPolicyRequest detachUserPolicyRequest, AsyncHandler<DetachUserPolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Removes the specified managed policy from the specified user.
A user can also have inline policies embedded with it. To delete an inline policy, use the DeleteUserPolicy API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
detachUserPolicyAsync
in interface AmazonIdentityManagementAsync
detachUserPolicyRequest
- Container for the necessary parameters
to execute the DetachUserPolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteInstanceProfileAsync(DeleteInstanceProfileRequest deleteInstanceProfileRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified instance profile. The instance profile must not have an associated role.
IMPORTANT: Make sure you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.
For more information about instance profiles, go to About Instance Profiles .
deleteInstanceProfileAsync
in interface AmazonIdentityManagementAsync
deleteInstanceProfileRequest
- Container for the necessary
parameters to execute the DeleteInstanceProfile operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteInstanceProfileAsync(DeleteInstanceProfileRequest deleteInstanceProfileRequest, AsyncHandler<DeleteInstanceProfileRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified instance profile. The instance profile must not have an associated role.
IMPORTANT: Make sure you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.
For more information about instance profiles, go to About Instance Profiles .
deleteInstanceProfileAsync
in interface AmazonIdentityManagementAsync
deleteInstanceProfileRequest
- Container for the necessary
parameters to execute the DeleteInstanceProfile operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetSAMLProviderResult> getSAMLProviderAsync(GetSAMLProviderRequest getSAMLProviderRequest) throws AmazonServiceException, AmazonClientException
Returns the SAML provider metadocument that was uploaded when the provider was created or updated.
NOTE:This operation requires Signature Version 4.
getSAMLProviderAsync
in interface AmazonIdentityManagementAsync
getSAMLProviderRequest
- Container for the necessary parameters
to execute the GetSAMLProvider operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetSAMLProviderResult> getSAMLProviderAsync(GetSAMLProviderRequest getSAMLProviderRequest, AsyncHandler<GetSAMLProviderRequest,GetSAMLProviderResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns the SAML provider metadocument that was uploaded when the provider was created or updated.
NOTE:This operation requires Signature Version 4.
getSAMLProviderAsync
in interface AmazonIdentityManagementAsync
getSAMLProviderRequest
- Container for the necessary parameters
to execute the GetSAMLProvider operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateRoleResult> createRoleAsync(CreateRoleRequest createRoleRequest) throws AmazonServiceException, AmazonClientException
Creates a new role for your AWS account. For more information about roles, go to Working with Roles . For information about limitations on role names and the number of roles you can create, go to Limitations on IAM Entities in the IAM User Guide .
The policy in the following example grants permission to an EC2 instance to assume the role.
createRoleAsync
in interface AmazonIdentityManagementAsync
createRoleRequest
- Container for the necessary parameters to
execute the CreateRole operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreateRoleResult> createRoleAsync(CreateRoleRequest createRoleRequest, AsyncHandler<CreateRoleRequest,CreateRoleResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new role for your AWS account. For more information about roles, go to Working with Roles . For information about limitations on role names and the number of roles you can create, go to Limitations on IAM Entities in the IAM User Guide .
The policy in the following example grants permission to an EC2 instance to assume the role.
createRoleAsync
in interface AmazonIdentityManagementAsync
createRoleRequest
- Container for the necessary parameters to
execute the CreateRole operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateLoginProfileAsync(UpdateLoginProfileRequest updateLoginProfileRequest) throws AmazonServiceException, AmazonClientException
Changes the password for the specified user.
Users can change their own passwords by calling ChangePassword. For more information about modifying passwords, see Managing Passwords in the IAM User Guide .
updateLoginProfileAsync
in interface AmazonIdentityManagementAsync
updateLoginProfileRequest
- Container for the necessary
parameters to execute the UpdateLoginProfile operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> updateLoginProfileAsync(UpdateLoginProfileRequest updateLoginProfileRequest, AsyncHandler<UpdateLoginProfileRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Changes the password for the specified user.
Users can change their own passwords by calling ChangePassword. For more information about modifying passwords, see Managing Passwords in the IAM User Guide .
updateLoginProfileAsync
in interface AmazonIdentityManagementAsync
updateLoginProfileRequest
- Container for the necessary
parameters to execute the UpdateLoginProfile operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteLoginProfileAsync(DeleteLoginProfileRequest deleteLoginProfileRequest) throws AmazonServiceException, AmazonClientException
Deletes the password for the specified user, which terminates the user's ability to access AWS services through the AWS Management Console.
IMPORTANT: Deleting a user's password does not prevent a user from accessing IAM through the command line interface or the API. To prevent all user access you must also either make the access key inactive or delete it. For more information about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey.
deleteLoginProfileAsync
in interface AmazonIdentityManagementAsync
deleteLoginProfileRequest
- Container for the necessary
parameters to execute the DeleteLoginProfile operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteLoginProfileAsync(DeleteLoginProfileRequest deleteLoginProfileRequest, AsyncHandler<DeleteLoginProfileRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the password for the specified user, which terminates the user's ability to access AWS services through the AWS Management Console.
IMPORTANT: Deleting a user's password does not prevent a user from accessing IAM through the command line interface or the API. To prevent all user access you must also either make the access key inactive or delete it. For more information about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey.
deleteLoginProfileAsync
in interface AmazonIdentityManagementAsync
deleteLoginProfileRequest
- Container for the necessary
parameters to execute the DeleteLoginProfile operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<UploadSSHPublicKeyResult> uploadSSHPublicKeyAsync(UploadSSHPublicKeyRequest uploadSSHPublicKeyRequest) throws AmazonServiceException, AmazonClientException
Uploads an SSH public key and associates it with the specified IAM user.
The SSH public key uploaded by this action can be used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
uploadSSHPublicKeyAsync
in interface AmazonIdentityManagementAsync
uploadSSHPublicKeyRequest
- Container for the necessary
parameters to execute the UploadSSHPublicKey operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<UploadSSHPublicKeyResult> uploadSSHPublicKeyAsync(UploadSSHPublicKeyRequest uploadSSHPublicKeyRequest, AsyncHandler<UploadSSHPublicKeyRequest,UploadSSHPublicKeyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Uploads an SSH public key and associates it with the specified IAM user.
The SSH public key uploaded by this action can be used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
uploadSSHPublicKeyAsync
in interface AmazonIdentityManagementAsync
uploadSSHPublicKeyRequest
- Container for the necessary
parameters to execute the UploadSSHPublicKey operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<SimulatePrincipalPolicyResult> simulatePrincipalPolicyAsync(SimulatePrincipalPolicyRequest simulatePrincipalPolicyRequest) throws AmazonServiceException, AmazonClientException
Simulate the set of IAM policies attached to an IAM entity against a list of API actions and AWS resources to determine the policies' effective permissions. The entity can be an IAM user, group, or role. If you specify a user, then the simulation also includes all of the policies attached to groups that the user is a member of.
You can optionally include a list of one or more additional policies specified as strings to include in the simulation. If you want to simulate only policies specified as strings, use SimulateCustomPolicy instead.
The simulation does not perform the API actions, it only checks the authorization to determine if the simulated policies allow or deny the actions.
Note: This API discloses information about the permissions granted to other users. If you do not want users to see other user's permissions, then consider allowing them to use SimulateCustomPolicy instead.
Context keys are variables maintained by AWS and its services that
provide details about the context of an API query request, and can be
evaluated by using the Condition
element of an IAM
policy. To get the list of context keys required by the policies to
simulate them correctly, use GetContextKeysForPrincipalPolicy.
If the output is long, you can paginate the results using the
MaxItems
and Marker
parameters.
simulatePrincipalPolicyAsync
in interface AmazonIdentityManagementAsync
simulatePrincipalPolicyRequest
- Container for the necessary
parameters to execute the SimulatePrincipalPolicy operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<SimulatePrincipalPolicyResult> simulatePrincipalPolicyAsync(SimulatePrincipalPolicyRequest simulatePrincipalPolicyRequest, AsyncHandler<SimulatePrincipalPolicyRequest,SimulatePrincipalPolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Simulate the set of IAM policies attached to an IAM entity against a list of API actions and AWS resources to determine the policies' effective permissions. The entity can be an IAM user, group, or role. If you specify a user, then the simulation also includes all of the policies attached to groups that the user is a member of.
You can optionally include a list of one or more additional policies specified as strings to include in the simulation. If you want to simulate only policies specified as strings, use SimulateCustomPolicy instead.
The simulation does not perform the API actions, it only checks the authorization to determine if the simulated policies allow or deny the actions.
Note: This API discloses information about the permissions granted to other users. If you do not want users to see other user's permissions, then consider allowing them to use SimulateCustomPolicy instead.
Context keys are variables maintained by AWS and its services that
provide details about the context of an API query request, and can be
evaluated by using the Condition
element of an IAM
policy. To get the list of context keys required by the policies to
simulate them correctly, use GetContextKeysForPrincipalPolicy.
If the output is long, you can paginate the results using the
MaxItems
and Marker
parameters.
simulatePrincipalPolicyAsync
in interface AmazonIdentityManagementAsync
simulatePrincipalPolicyRequest
- Container for the necessary
parameters to execute the SimulatePrincipalPolicy operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> attachUserPolicyAsync(AttachUserPolicyRequest attachUserPolicyRequest) throws AmazonServiceException, AmazonClientException
Attaches the specified managed policy to the specified user.
You use this API to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
attachUserPolicyAsync
in interface AmazonIdentityManagementAsync
attachUserPolicyRequest
- Container for the necessary parameters
to execute the AttachUserPolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> attachUserPolicyAsync(AttachUserPolicyRequest attachUserPolicyRequest, AsyncHandler<AttachUserPolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Attaches the specified managed policy to the specified user.
You use this API to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
attachUserPolicyAsync
in interface AmazonIdentityManagementAsync
attachUserPolicyRequest
- Container for the necessary parameters
to execute the AttachUserPolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetServerCertificateResult> getServerCertificateAsync(GetServerCertificateRequest getServerCertificateRequest) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified server certificate.
getServerCertificateAsync
in interface AmazonIdentityManagementAsync
getServerCertificateRequest
- Container for the necessary
parameters to execute the GetServerCertificate operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetServerCertificateResult> getServerCertificateAsync(GetServerCertificateRequest getServerCertificateRequest, AsyncHandler<GetServerCertificateRequest,GetServerCertificateResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves information about the specified server certificate.
getServerCertificateAsync
in interface AmazonIdentityManagementAsync
getServerCertificateRequest
- Container for the necessary
parameters to execute the GetServerCertificate operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> attachGroupPolicyAsync(AttachGroupPolicyRequest attachGroupPolicyRequest) throws AmazonServiceException, AmazonClientException
Attaches the specified managed policy to the specified group.
You use this API to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
attachGroupPolicyAsync
in interface AmazonIdentityManagementAsync
attachGroupPolicyRequest
- Container for the necessary parameters
to execute the AttachGroupPolicy operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> attachGroupPolicyAsync(AttachGroupPolicyRequest attachGroupPolicyRequest, AsyncHandler<AttachGroupPolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Attaches the specified managed policy to the specified group.
You use this API to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
attachGroupPolicyAsync
in interface AmazonIdentityManagementAsync
attachGroupPolicyRequest
- Container for the necessary parameters
to execute the AttachGroupPolicy operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> setDefaultPolicyVersionAsync(SetDefaultPolicyVersionRequest setDefaultPolicyVersionRequest) throws AmazonServiceException, AmazonClientException
Sets the specified version of the specified policy as the policy's default (operative) version.
This action affects all users, groups, and roles that the policy is attached to. To list the users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API.
For information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
setDefaultPolicyVersionAsync
in interface AmazonIdentityManagementAsync
setDefaultPolicyVersionRequest
- Container for the necessary
parameters to execute the SetDefaultPolicyVersion operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> setDefaultPolicyVersionAsync(SetDefaultPolicyVersionRequest setDefaultPolicyVersionRequest, AsyncHandler<SetDefaultPolicyVersionRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Sets the specified version of the specified policy as the policy's default (operative) version.
This action affects all users, groups, and roles that the policy is attached to. To list the users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API.
For information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
setDefaultPolicyVersionAsync
in interface AmazonIdentityManagementAsync
setDefaultPolicyVersionRequest
- Container for the necessary
parameters to execute the SetDefaultPolicyVersion operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListUserPoliciesResult> listUserPoliciesAsync(ListUserPoliciesRequest listUserPoliciesRequest) throws AmazonServiceException, AmazonClientException
Lists the names of the inline policies embedded in the specified user.
A user can also have managed policies attached to it. To list the managed policies that are attached to a user, use ListAttachedUserPolicies. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. If there are no inline policies
embedded with the specified user, the action returns an empty list.
listUserPoliciesAsync
in interface AmazonIdentityManagementAsync
listUserPoliciesRequest
- Container for the necessary parameters
to execute the ListUserPolicies operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListUserPoliciesResult> listUserPoliciesAsync(ListUserPoliciesRequest listUserPoliciesRequest, AsyncHandler<ListUserPoliciesRequest,ListUserPoliciesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the names of the inline policies embedded in the specified user.
A user can also have managed policies attached to it. To list the managed policies that are attached to a user, use ListAttachedUserPolicies. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. If there are no inline policies
embedded with the specified user, the action returns an empty list.
listUserPoliciesAsync
in interface AmazonIdentityManagementAsync
listUserPoliciesRequest
- Container for the necessary parameters
to execute the ListUserPolicies operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetAccessKeyLastUsedResult> getAccessKeyLastUsedAsync(GetAccessKeyLastUsedRequest getAccessKeyLastUsedRequest) throws AmazonServiceException, AmazonClientException
Retrieves information about when the specified access key was last used. The information includes the date and time of last use, along with the AWS service and region that were specified in the last request made with that key.
getAccessKeyLastUsedAsync
in interface AmazonIdentityManagementAsync
getAccessKeyLastUsedRequest
- Container for the necessary
parameters to execute the GetAccessKeyLastUsed operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetAccessKeyLastUsedResult> getAccessKeyLastUsedAsync(GetAccessKeyLastUsedRequest getAccessKeyLastUsedRequest, AsyncHandler<GetAccessKeyLastUsedRequest,GetAccessKeyLastUsedResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves information about when the specified access key was last used. The information includes the date and time of last use, along with the AWS service and region that were specified in the last request made with that key.
getAccessKeyLastUsedAsync
in interface AmazonIdentityManagementAsync
getAccessKeyLastUsedRequest
- Container for the necessary
parameters to execute the GetAccessKeyLastUsed operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListGroupsForUserResult> listGroupsForUserAsync(ListGroupsForUserRequest listGroupsForUserRequest) throws AmazonServiceException, AmazonClientException
Lists the groups the specified user belongs to.
You can paginate the results using the MaxItems
and
Marker
parameters.
listGroupsForUserAsync
in interface AmazonIdentityManagementAsync
listGroupsForUserRequest
- Container for the necessary parameters
to execute the ListGroupsForUser operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListGroupsForUserResult> listGroupsForUserAsync(ListGroupsForUserRequest listGroupsForUserRequest, AsyncHandler<ListGroupsForUserRequest,ListGroupsForUserResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the groups the specified user belongs to.
You can paginate the results using the MaxItems
and
Marker
parameters.
listGroupsForUserAsync
in interface AmazonIdentityManagementAsync
listGroupsForUserRequest
- Container for the necessary parameters
to execute the ListGroupsForUser operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreatePolicyVersionResult> createPolicyVersionAsync(CreatePolicyVersionRequest createPolicyVersionRequest) throws AmazonServiceException, AmazonClientException
Creates a new version of the specified managed policy. To update a managed policy, you create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must delete an existing version using DeletePolicyVersion before you create a new version.
Optionally, you can set the new version as the policy's default version. The default version is the operative version; that is, the version that is in effect for the IAM users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide .
createPolicyVersionAsync
in interface AmazonIdentityManagementAsync
createPolicyVersionRequest
- Container for the necessary
parameters to execute the CreatePolicyVersion operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<CreatePolicyVersionResult> createPolicyVersionAsync(CreatePolicyVersionRequest createPolicyVersionRequest, AsyncHandler<CreatePolicyVersionRequest,CreatePolicyVersionResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new version of the specified managed policy. To update a managed policy, you create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must delete an existing version using DeletePolicyVersion before you create a new version.
Optionally, you can set the new version as the policy's default version. The default version is the operative version; that is, the version that is in effect for the IAM users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide .
createPolicyVersionAsync
in interface AmazonIdentityManagementAsync
createPolicyVersionRequest
- Container for the necessary
parameters to execute the CreatePolicyVersion operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> addRoleToInstanceProfileAsync(AddRoleToInstanceProfileRequest addRoleToInstanceProfileRequest) throws AmazonServiceException, AmazonClientException
Adds the specified role to the specified instance profile. For more information about roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .
addRoleToInstanceProfileAsync
in interface AmazonIdentityManagementAsync
addRoleToInstanceProfileRequest
- Container for the necessary
parameters to execute the AddRoleToInstanceProfile operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> addRoleToInstanceProfileAsync(AddRoleToInstanceProfileRequest addRoleToInstanceProfileRequest, AsyncHandler<AddRoleToInstanceProfileRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Adds the specified role to the specified instance profile. For more information about roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .
addRoleToInstanceProfileAsync
in interface AmazonIdentityManagementAsync
addRoleToInstanceProfileRequest
- Container for the necessary
parameters to execute the AddRoleToInstanceProfile operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetGroupPolicyResult> getGroupPolicyAsync(GetGroupPolicyRequest getGroupPolicyRequest) throws AmazonServiceException, AmazonClientException
Retrieves the specified inline policy document that is embedded in the specified group.
A group can also have managed policies attached to it. To retrieve a managed policy document that is attached to a group, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
getGroupPolicyAsync
in interface AmazonIdentityManagementAsync
getGroupPolicyRequest
- Container for the necessary parameters to
execute the GetGroupPolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetGroupPolicyResult> getGroupPolicyAsync(GetGroupPolicyRequest getGroupPolicyRequest, AsyncHandler<GetGroupPolicyRequest,GetGroupPolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves the specified inline policy document that is embedded in the specified group.
A group can also have managed policies attached to it. To retrieve a managed policy document that is attached to a group, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
getGroupPolicyAsync
in interface AmazonIdentityManagementAsync
getGroupPolicyRequest
- Container for the necessary parameters to
execute the GetGroupPolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetRolePolicyResult> getRolePolicyAsync(GetRolePolicyRequest getRolePolicyRequest) throws AmazonServiceException, AmazonClientException
Retrieves the specified inline policy document that is embedded with the specified role.
A role can also have managed policies attached to it. To retrieve a managed policy document that is attached to a role, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities .
getRolePolicyAsync
in interface AmazonIdentityManagementAsync
getRolePolicyRequest
- Container for the necessary parameters to
execute the GetRolePolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetRolePolicyResult> getRolePolicyAsync(GetRolePolicyRequest getRolePolicyRequest, AsyncHandler<GetRolePolicyRequest,GetRolePolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves the specified inline policy document that is embedded with the specified role.
A role can also have managed policies attached to it. To retrieve a managed policy document that is attached to a role, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities .
getRolePolicyAsync
in interface AmazonIdentityManagementAsync
getRolePolicyRequest
- Container for the necessary parameters to
execute the GetRolePolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListInstanceProfilesForRoleResult> listInstanceProfilesForRoleAsync(ListInstanceProfilesForRoleRequest listInstanceProfilesForRoleRequest) throws AmazonServiceException, AmazonClientException
Lists the instance profiles that have the specified associated role. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles .
You can paginate the results using the MaxItems
and
Marker
parameters.
listInstanceProfilesForRoleAsync
in interface AmazonIdentityManagementAsync
listInstanceProfilesForRoleRequest
- Container for the necessary
parameters to execute the ListInstanceProfilesForRole operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListInstanceProfilesForRoleResult> listInstanceProfilesForRoleAsync(ListInstanceProfilesForRoleRequest listInstanceProfilesForRoleRequest, AsyncHandler<ListInstanceProfilesForRoleRequest,ListInstanceProfilesForRoleResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the instance profiles that have the specified associated role. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles .
You can paginate the results using the MaxItems
and
Marker
parameters.
listInstanceProfilesForRoleAsync
in interface AmazonIdentityManagementAsync
listInstanceProfilesForRoleRequest
- Container for the necessary
parameters to execute the ListInstanceProfilesForRole operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteRolePolicyAsync(DeleteRolePolicyRequest deleteRolePolicyRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified inline policy that is embedded in the specified role.
A role can also have managed policies attached to it. To detach a managed policy from a role, use DetachRolePolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
deleteRolePolicyAsync
in interface AmazonIdentityManagementAsync
deleteRolePolicyRequest
- Container for the necessary parameters
to execute the DeleteRolePolicy operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteRolePolicyAsync(DeleteRolePolicyRequest deleteRolePolicyRequest, AsyncHandler<DeleteRolePolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified inline policy that is embedded in the specified role.
A role can also have managed policies attached to it. To detach a managed policy from a role, use DetachRolePolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
deleteRolePolicyAsync
in interface AmazonIdentityManagementAsync
deleteRolePolicyRequest
- Container for the necessary parameters
to execute the DeleteRolePolicy operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListVirtualMFADevicesResult> listVirtualMFADevicesAsync(ListVirtualMFADevicesRequest listVirtualMFADevicesRequest) throws AmazonServiceException, AmazonClientException
Lists the virtual MFA devices under the AWS account by assignment
status. If you do not specify an assignment status, the action returns
a list of all virtual MFA devices. Assignment status can be
Assigned
, Unassigned
, or Any
.
You can paginate the results using the MaxItems
and
Marker
parameters.
listVirtualMFADevicesAsync
in interface AmazonIdentityManagementAsync
listVirtualMFADevicesRequest
- Container for the necessary
parameters to execute the ListVirtualMFADevices operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListVirtualMFADevicesResult> listVirtualMFADevicesAsync(ListVirtualMFADevicesRequest listVirtualMFADevicesRequest, AsyncHandler<ListVirtualMFADevicesRequest,ListVirtualMFADevicesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the virtual MFA devices under the AWS account by assignment
status. If you do not specify an assignment status, the action returns
a list of all virtual MFA devices. Assignment status can be
Assigned
, Unassigned
, or Any
.
You can paginate the results using the MaxItems
and
Marker
parameters.
listVirtualMFADevicesAsync
in interface AmazonIdentityManagementAsync
listVirtualMFADevicesRequest
- Container for the necessary
parameters to execute the ListVirtualMFADevices operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListGroupPoliciesResult> listGroupPoliciesAsync(ListGroupPoliciesRequest listGroupPoliciesRequest) throws AmazonServiceException, AmazonClientException
Lists the names of the inline policies that are embedded in the specified group.
A group can also have managed policies attached to it. To list the managed policies that are attached to a group, use ListAttachedGroupPolicies. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. If there are no inline policies
embedded with the specified group, the action returns an empty list.
listGroupPoliciesAsync
in interface AmazonIdentityManagementAsync
listGroupPoliciesRequest
- Container for the necessary parameters
to execute the ListGroupPolicies operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListGroupPoliciesResult> listGroupPoliciesAsync(ListGroupPoliciesRequest listGroupPoliciesRequest, AsyncHandler<ListGroupPoliciesRequest,ListGroupPoliciesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the names of the inline policies that are embedded in the specified group.
A group can also have managed policies attached to it. To list the managed policies that are attached to a group, use ListAttachedGroupPolicies. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems
and
Marker
parameters. If there are no inline policies
embedded with the specified group, the action returns an empty list.
listGroupPoliciesAsync
in interface AmazonIdentityManagementAsync
listGroupPoliciesRequest
- Container for the necessary parameters
to execute the ListGroupPolicies operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListRolesResult> listRolesAsync(ListRolesRequest listRolesRequest) throws AmazonServiceException, AmazonClientException
Lists the roles that have the specified path prefix. If there are none, the action returns an empty list. For more information about roles, go to Working with Roles .
You can paginate the results using the MaxItems
and
Marker
parameters.
listRolesAsync
in interface AmazonIdentityManagementAsync
listRolesRequest
- Container for the necessary parameters to
execute the ListRoles operation on AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<ListRolesResult> listRolesAsync(ListRolesRequest listRolesRequest, AsyncHandler<ListRolesRequest,ListRolesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the roles that have the specified path prefix. If there are none, the action returns an empty list. For more information about roles, go to Working with Roles .
You can paginate the results using the MaxItems
and
Marker
parameters.
listRolesAsync
in interface AmazonIdentityManagementAsync
listRolesRequest
- Container for the necessary parameters to
execute the ListRoles operation on AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetAccountPasswordPolicyResult> getAccountPasswordPolicyAsync(GetAccountPasswordPolicyRequest getAccountPasswordPolicyRequest) throws AmazonServiceException, AmazonClientException
Retrieves the password policy for the AWS account. For more information about using a password policy, go to Managing an IAM Password Policy .
getAccountPasswordPolicyAsync
in interface AmazonIdentityManagementAsync
getAccountPasswordPolicyRequest
- Container for the necessary
parameters to execute the GetAccountPasswordPolicy operation on
AmazonIdentityManagement.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.public Future<GetAccountPasswordPolicyResult> getAccountPasswordPolicyAsync(GetAccountPasswordPolicyRequest getAccountPasswordPolicyRequest, AsyncHandler<GetAccountPasswordPolicyRequest,GetAccountPasswordPolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves the password policy for the AWS account. For more information about using a password policy, go to Managing an IAM Password Policy .
getAccountPasswordPolicyAsync
in interface AmazonIdentityManagementAsync
getAccountPasswordPolicyRequest
- Container for the necessary
parameters to execute the GetAccountPasswordPolicy operation on
AmazonIdentityManagement.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonIdentityManagement indicating
either a problem with the data in the request, or a server side issue.Copyright © 2015. All rights reserved.