code: def replace_launch_config(self, scaling_group, launch_config_type,
              server_name, image, flavor, disk_config=None, metadata=None,
              personality=None, networks=None, load_balancers=None,
              key_name=None, config_drive=False, user_data=None):
          
          group_id = utils.get_id(scaling_group)
          uri = "/%s/%s/launch" % (self.uri_base, group_id)
          body = self._create_launch_config_body(
                  launch_config_type=launch_config_type, server_name=server_name,
                  image=image, flavor=flavor, disk_config=disk_config,
                  metadata=metadata, personality=personality, networks=networks,
                  load_balancers=load_balancers, key_name=key_name,
                  config_drive=config_drive, user_data=user_data)
          resp, resp_body = self.api.method_put(uri, body=body)
docs: Replace an existing launch configuration. All of the attributes must be
          specified. If you wish to delete any of the optional attributes, pass
          them in as None.