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);
}
}
Aggregations