'Update the launch configuration on a scaling group.'

def replace_launch_config(self, group_id, **kwargs):

    if (kwargs.get('launch_config_type') == 'launch_server'):
        allowed = ['launch_config_type', 'server_name', 'image', 'flavor', 'disk_config', 'metadata', 'personality', 'networks', 'load_balancers', 'key_name', 'user_data', 'config_drive']
    elif (kwargs.get('launch_config_type') == 'launch_stack'):
        allowed = ['launch_config_type', 'template', 'template_url', 'disable_rollback', 'environment', 'files', 'parameters', 'timeout_mins']
    self._check_args(kwargs, allowed)
    self._get_group(group_id).kwargs = kwargs
