/* This file is part of Eclat. Copyright (C) 2012-2014 Sergey Poznyakoff. Eclat is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. Eclat is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eclat. If not, see . */ if (.DescribeInstanceAttributeResponse.instanceType.value || .DescribeInstanceAttributeResponse.kernel.value || .DescribeInstanceAttributeResponse.ramdisk.value || .DescribeInstanceAttributeResponse.disableApiTermination.value || .DescribeInstanceAttributeResponse.instanceInitiatedShutdownBehavior.value || .DescribeInstanceAttributeResponse.rootDeviceName.value || .DescribeInstanceAttributeResponse.ebsOptimized.value) print(last,"\n"); else if (.DescribeInstanceAttributeResponse.userData.value) print(decode(last), "\n"); else if (.DescribeInstanceAttributeResponse.blockDeviceMapping) for (dev in .DescribeInstanceAttributeResponse.blockDeviceMapping.item) { print(dev.deviceName,"\t", dev.ebs.volumeId, "\t", dev.ebs.status, "\t", dev.ebs.deleteOnTermination); if (dev.ebs.status[attached]) print("\t", dev.ebs.attachTime); print("\n"); } else if (.DescribeInstanceAttributeResponse.sourceDestCheck) print(last,"\n"); else if (.DescribeInstanceAttributeResponse.groupSet) for (gset in .DescribeInstanceAttributeResponse.groupSet.item) { print(gset.groupId); if (gset.groupName) print("\t", gset.groupName); print("\n"); } else if (.DescribeInstanceAttributeResponse.productCodes) for (code in .DescribeInstanceAttributeResponse.productCodes.item) print(code.productCode,"\t",code.type, "\n");