Example usage for com.amazonaws.auth.profile ProfilesConfigFile getAllProfiles

List of usage examples for com.amazonaws.auth.profile ProfilesConfigFile getAllProfiles

Introduction

In this page you can find the example usage for com.amazonaws.auth.profile ProfilesConfigFile getAllProfiles.

Prototype

@Deprecated
    public Map<String, Profile> getAllProfiles() 

Source Link

Usage

From source file:Aws.Profile.java

public ArrayList getCustomerList(ProfilesConfigFile credentials) {
    //As you may have many profiles let's retrive them all
    ArrayList customers = new ArrayList();
    for (String key : credentials.getAllProfiles().keySet()) {
        customers.add(key);/* w  w w . j a v  a 2  s.c o m*/
    }
    return customers;
}