Search in sources :

Example 1 with ListAccountAliasesResult

use of com.amazonaws.services.identitymanagement.model.ListAccountAliasesResult in project aws-doc-sdk-examples by awsdocs.

the class ListAccountAliases method main.

public static void main(String[] args) {
    final AmazonIdentityManagement iam = AmazonIdentityManagementClientBuilder.defaultClient();
    ListAccountAliasesResult response = iam.listAccountAliases();
    for (String alias : response.getAccountAliases()) {
        System.out.printf("Retrieved account alias %s", alias);
    }
}
Also used : ListAccountAliasesResult(com.amazonaws.services.identitymanagement.model.ListAccountAliasesResult) AmazonIdentityManagement(com.amazonaws.services.identitymanagement.AmazonIdentityManagement)

Aggregations

AmazonIdentityManagement (com.amazonaws.services.identitymanagement.AmazonIdentityManagement)1 ListAccountAliasesResult (com.amazonaws.services.identitymanagement.model.ListAccountAliasesResult)1