def get_service_module_name(service_model):
 name = service_model.metadata.get('serviceAbbreviation', service_model.metadata.get('serviceFullName', service_model.service_name))
 name = name.replace('Amazon', '')
 name = name.replace('AWS', '')
 name = re.sub('\\W+', '', name)
 return name

def get_service_module_name ( service_model ) : name = service_model . metadata . get ( 'serviceAbbreviation' , service_model . metadata . get ( 'serviceFullName' , service_model . service_name ) ) name = name . replace ( 'Amazon' , '' ) name = name . replace ( 'AWS' , '' ) name = re . sub ( '\\W+' , '' , name ) return name
returns the module name for a service this is the value used in both the documentation and client class name .