use of com.amazonaws.services.identitymanagement.model.User in project aws-doc-sdk-examples by awsdocs.
the class ListUsers method main.
public static void main(String[] args) {
final AmazonIdentityManagement iam = AmazonIdentityManagementClientBuilder.defaultClient();
boolean done = false;
while (!done) {
ListUsersRequest request = new ListUsersRequest();
ListUsersResult response = iam.listUsers(request);
for (User user : response.getUsers()) {
System.out.format("Retrieved user %s", user.getUserName());
}
request.setMarker(response.getMarker());
if (!response.getIsTruncated()) {
done = true;
}
}
}
Aggregations