def export_as_troposphere(self):
    out = {}
    for name in ('groups', 'uid', 'home_dir'):
        value = getattr(self, name, None)
        if (name == 'home_dir'):
            name = 'homeDir'
        if (name == 'uid'):
            value = str(value)
        if (value != None):
            out[name] = value
    return out
def export_as_troposphere(self):
    out = {}
    for name in ('groups', 'uid', 'home_dir'):
        value = getattr(self, name, None)
        if (name == 'home_dir'):
            name = 'homeDir'
        if (name == 'uid'):
            value = str(value)
        if (value != None):
            out[name] = value
    return out