Example usage for com.amazonaws.services.ec2 AmazonEC2Client describeAccountAttributes

List of usage examples for com.amazonaws.services.ec2 AmazonEC2Client describeAccountAttributes

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2 AmazonEC2Client describeAccountAttributes.

Prototype

@Override
    public DescribeAccountAttributesResult describeAccountAttributes() 

Source Link

Usage

From source file:de.zalando.awsqueen.awqaccinfo.AccinfoCLI.java

License:Open Source License

@Override
public void run(String... strings) throws Exception {

    AmazonEC2Client amazonEC2Client = new AmazonEC2Client();
    DescribeAccountAttributesResult describeAccountAttributesResult = amazonEC2Client
            .describeAccountAttributes();
    List<AccountAttribute> accountAttributes = describeAccountAttributesResult.getAccountAttributes();
    //System.out.println(accountAttributes.toString());
    for (AccountAttribute accountAttribute : accountAttributes) {
        System.out.println(accountAttribute);
    }// ww  w.j av  a2 s  .c  o  m

}