def describe_instance_attribute(self):
    attribute = self.querystring.get('Attribute')[0]
    key = camelcase_to_underscores(attribute)
    instance_ids = instance_ids_from_querystring(self.querystring)
    instance_id = instance_ids[0]
    (instance, value) = self.ec2_backend.describe_instance_attribute(instance_id, key)
    if (key == 'group_set'):
        template = self.response_template(EC2_DESCRIBE_INSTANCE_GROUPSET_ATTRIBUTE)
    else:
        template = self.response_template(EC2_DESCRIBE_INSTANCE_ATTRIBUTE)
    return template.render(instance=instance, attribute=attribute, value=value)
def describe_instance_attribute(self):
    attribute = self.querystring.get('Attribute')[0]
    key = camelcase_to_underscores(attribute)
    instance_ids = instance_ids_from_querystring(self.querystring)
    instance_id = instance_ids[0]
    (instance, value) = self.ec2_backend.describe_instance_attribute(instance_id, key)
    if (key == 'group_set'):
        template = self.response_template(EC2_DESCRIBE_INSTANCE_GROUPSET_ATTRIBUTE)
    else:
        template = self.response_template(EC2_DESCRIBE_INSTANCE_ATTRIBUTE)
    return template.render(instance=instance, attribute=attribute, value=value)